CreateTags
処理概要
タグを作成します。 1回のリクエストで複数のタグを作成可能です。
リクエストURL
POST /v1/tags指定するパラメーター
リクエストボディ
パラメーター | 型 | 説明 | 必須 |
---|---|---|---|
tags[] | object[] |
|
|
␣nrn | string |
タグを付与したいリソースのNRN |
○ |
␣key | string |
キー 使用可能文字: UTF-8で全角半角128文字以内 |
○ |
␣value | string |
値 使用可能文字: UTF-8で全角半角256文字以内 |
○ |
応答フィールド
フィールド (項目) | 型 | 説明 |
---|---|---|
tags[] | object[] |
|
␣id | string |
タグID |
␣nrn | string |
タグが付与されているリソースのNRN |
␣key | string |
キー |
␣value | string |
値 |
リクエストサンプル
curl -XPOST https://jp-east-1.hatoba.api.nifcloud.com/v1/tags
-H "X-Amz-Date: 20190724T000000Z"
-H "Authorization: AWS4-HMAC-SHA256 ..."
-d {
"tags": [
{
"key": "key01",
"nrn": "nrn:nifcloud:hatoba:jp-east-1:xxxxxxxx:firewall-group:3c896258-c296-433f-bfa2-97e97ffec0ff",
"value": "value01"
},
{
"key": "key02",
"nrn": "nrn:nifcloud:hatoba:jp-east-1:xxxxxxxx:cluster:da1543af-1cc3-469d-963b-760969a7a75f",
"value": "value02"
}
]
}
応答サンプル
{
"tags": [
{
"id": "3f0d76e1-ba42-4099-8452-0ede1e074f23",
"key": "key01",
"nrn": "nrn:nifcloud:hatoba:jp-east-1:xxxxxxxx:firewall-group:3c896258-c296-433f-bfa2-97e97ffec0ff",
"value": "value01"
},
{
"id": "f9a82261-21cf-4f33-8753-584efc2c7e7b",
"key": "key02",
"nrn": "nrn:nifcloud:hatoba:jp-east-1:xxxxxxxx:cluster:da1543af-1cc3-469d-963b-760969a7a75f",
"value": "value02"
}
]
}