Add Tag
POSThttps://core-pl.ocplanet.cloud/backend/api/openstack/instances/:instance_id/tag
Host: https://core.ocplanet.cloud
Add a tag to the specified instance.
Request
- application/json
Body
name stringrequired
Responses
- 200
Response contain all instance tags.
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
id integerrequired
name stringrequired
[
{
"id": 0,
"name": "string"
}
]
[
{
"id": 33,
"name": "gggtag"
},
{
"id": 34,
"name": "ddddd"
}
]
Authorization: Authorization
name: Authorizationtype: apiKeyin: headerdescription: Use 'OpenAPIToken {token}' as the value
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X POST 'https://core-pl.ocplanet.cloud/backend/api/openstack/instances/:instance_id/tag' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"name": "string"
}'
ResponseClear