リソース共有にタグをアタッチします。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
resourcesharing:TagResources |
update |
*ResourceShare
|
なし | なし |
リクエスト構文
POST HTTP/1.1
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| ResourceType |
string |
必須 |
リソースのタイプ。値は
|
ResourceShare |
| ResourceId |
array |
必須 |
リソース共有の ID。 |
|
|
string |
任意 |
リソース共有の ID。 |
rs-PqysnzIj**** |
|
| RegionId |
string |
必須 |
リソース共有が存在するリージョンの ID。 |
cn-hangzhou |
| Tag |
array<object> |
必須 |
タグ。 最大 20 個のタグをアタッチできます。 |
|
|
object |
任意 |
タグ。 |
||
| Key |
string |
任意 |
タグのキー。 説明
タグキーの長さは最大 128 文字です。空の文字列にすることはできず、 |
k1 |
| Value |
string |
任意 |
タグの値。 説明
タグ値の長さは最大 128 文字です。 |
v1 |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
返された結果。 |
||
| RequestId |
string |
リクエスト ID。 |
E7747EDF-EDDC-5B38-9B6A-6392B9C92B1C |
例
成功レスポンス
JSONJSON
{
"RequestId": "E7747EDF-EDDC-5B38-9B6A-6392B9C92B1C"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | InvalidParameter.ResourceId | The ResourceId is invalid. | The ResourceId is invalid. |
| 400 | InvalidResourceId.NotFound | The specified ResourceIds are not found in our records. | |
| 400 | NumberExceed.ResourceIds | The maximum number of ResourceIds is exceeded. | |
| 400 | InvalidParameter.RegionId | The RegionId parameter is invalid. | |
| 400 | MissingParameter.ResourceIds | You must specify ResourceIds. | |
| 400 | MissingParameter.ResourceType | You must specify ResourceType. | |
| 400 | MissingParameter.Tags | You must specify Tags. | |
| 400 | InvalidParameter.ResourceType | The ResourceType parameter is invalid. | |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 403 | NoPermission | You are not authorized to perform this action. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。