Creating or Deleting a Tag

Function

This API is used to create or delete a resource tag.

Each AS group can have a maximum of 10 tags added to it.

URI

POST /autoscaling-api/v1/{project_id}/{resource_type}/{resource_id}/tags/action

Table 1 Parameter description

Parameter

Mandatory

Type

Description

project_id

Yes

String

Specifies the project ID.

resource_type

Yes

String

Specifies the resource type. The option is as follows:

scaling_group_tag: indicates that the resource type is an AS group.

resource_id

Yes

String

Resource ID

Request Message

Response Message

Returned Values

Error Codes

See Error Codes.