API
Tags
Tag resources

Tag Resources

  • Name
    get
    Type
    /v1/tags/:name/resources
    Description

    Send a POST request to tag resources.

Request

Required Attributes

  • Name
    id
    Type
    string
    Description

    Resource unique identifier.

  • Name
    type
    Type
    string
    Description

    Type of the Resource.

Example

curl -X GET "https://api.simplystack.com/v1/tags/web/resources" \
  -H "Content-Type: application/json" \
  -H "Authorization: Token d359ad9cc9422b5ff07aede0cd2707da4ff82be0" \
  -d '{"id": 123, "type": "stacklet"}'
 

Response

JSON object with a key named resources which is an array of the following attributes:

Attributes

  • Name
    id
    Type
    string
    Description

    Resource unique identifier.

  • Name
    type
    Type
    string
    Description

    Type of the Resource.

  • Name
    tags
    Type
    array
    Description

    List of the tags associated with the resource.

Example

json
}
  "resources": [
    {
      "id": 123,
      "ipv4_address": "192.168.50.75",
      "name": "test",
      "status": "active",
      "tags": [
          "web", "server"
      ],
      "type": "stacklet"
    }
  ]
}