Create and Assign Tags

post

/paas/api/v1.1/tags/{identityDomainId}/tags

Creates tags and assigns them to existing resources in the same request.

You can also create tags without creating assignments.

Request

Supported Media Types
Path Parameters
Body ()
The request body defines the tags to create and the services to assign the tags to.
Root Schema : createassigntags-request
Type: object
Show Source
Nested Schema : assignments
Type: object
Groups details about the tag assignments to create.
Show Source
  • services
    Groups details about the service resources to tag. Each new tag created is assigned to each service resource.
Nested Schema : tags
Type: array
Groups details about the tags to create. Each tag object is a key/value pair.
Show Source
Nested Schema : services
Type: array
Groups details about the service resources to tag. Each new tag created is assigned to each service resource.
Show Source
Nested Schema : serviceassignment-details
Type: object
Each object describes a service resource.
Show Source
Nested Schema : tagscreate-request
Type: object
Each tag is a key/value pair.
Show Source
  • Specify the key for this tag. A tag key can contain letters, numbers, dashes (-), and underscores ( _ ), and it can contain up to 128 characters.
  • Specify the value for this tag. A tag value can contain up to 256 characters and is case-sensitive.

    Default value is an empty string (if you do not provide a specific value).

Response

Supported Media Types

200 Response

OK.
Body ()
The response body contains information about all tags and their assignments.
Root Schema : tagsassignments-response
Type: array
The response body contains information about all tags and their assignments.
Show Source
Nested Schema : tagsassignments-details
Type: object
Each object describes a tag and its assignments.
Show Source
Nested Schema : assignments
Type: object
Groups assignment details for this tag.
Show Source
Nested Schema : services
Type: array
Groups details about the service resources assigned with this tag.
Show Source
Nested Schema : serviceassignment-details
Type: object
Each object describes a service resource.
Show Source

400 Response

Bad request.