Request
GET https://{hostname}:{port}
/cli/resource/tag?{parameters}
Accept: application/json
Table 1. Request parameters
Parameter |
Type |
Required |
Description |
resource |
string |
true |
ID or path to the resource, such as /ResourceGroup/Agents/Agent1 |
template |
string |
false |
Name or ID of the resource template (Optional) |
blueprintId |
string |
false |
Name or ID of the blueprint (Optional) |
application |
string |
false |
Name or ID of the application (Required to look up blueprint by name) |
Example response
[
{
"id": "eeff1b7d-ef7c-4052-812b-a97405b97606",
"name": "Tag1",
"color": "#FFFFFF",
"description": "",
"objectType": "Resource"
},
{
"id": "b03313f2-a3fa-4ac8-a84a-32869958ba06",
"name": "Tag2",
"color": "#87ceeb",
"description": "",
"objectType": "Resource"
}
]