共有ユニットの情報を変更します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
resourcesharing:UpdateResourceShare |
update |
*All Resource
|
|
なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| ResourceShareId |
string |
必須 |
共有ユニットの ID。 |
rs-qSkW1HBY**** |
| ResourceShareName |
string |
必須 |
共有ユニットの新しい名前。 名前の長さは 1~50 文字である必要があります。 使用可能な文字は、英字、数字、ピリオド (.)、アンダースコア (_)、ハイフン (-) です。 |
new |
| AllowExternalTargets |
boolean |
任意 |
リソースをリソースディレクトリ外のアカウントと共有するかどうかを指定します。有効な値:
|
false |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
レスポンスパラメーター。 |
||
| RequestId |
string |
リクエスト ID。 |
2860A3A4-D8C1-4EF4-954E-84A3945E26E5 |
| ResourceShare |
object |
共有ユニットに関する情報。 |
|
| UpdateTime |
string |
共有ユニットが更新された時刻。 |
2020-12-04T08:55:25.382Z |
| ResourceShareName |
string |
共有ユニットの名前。 |
new |
| ResourceShareOwner |
string |
共有ユニットのオーナー。 |
151266687691**** |
| CreateTime |
string |
共有ユニットが作成された時刻。 |
2020-12-03T08:02:22.413Z |
| ResourceShareId |
string |
共有ユニットの ID。 |
rs-qSkW1HBY**** |
| ResourceShareStatus |
string |
共有ユニットのステータス。有効な値:
説明
システムは、48~96 時間以内に |
Active |
| AllowExternalTargets |
boolean |
リソースをリソースディレクトリ外のアカウントと共有できるかどうかを示します。有効な値:
|
false |
例
成功レスポンス
JSONJSON
{
"RequestId": "2860A3A4-D8C1-4EF4-954E-84A3945E26E5",
"ResourceShare": {
"UpdateTime": "2020-12-04T08:55:25.382Z",
"ResourceShareName": "new",
"ResourceShareOwner": "151266687691****",
"CreateTime": "2020-12-03T08:02:22.413Z",
"ResourceShareId": "rs-qSkW1HBY****",
"ResourceShareStatus": "Active",
"AllowExternalTargets": false
}
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | MissingParameter.ResourceShareId | You must specify ResourceShareId. | You must specify ResourceShareId. |
| 400 | InvalidParameter.ResourceShareId | The ResourceShareId is invalid. | The ResourceShareId is invalid. |
| 400 | MissingParameter.ResourceShareName | You must specify ResourceShareName. | You must specify ResourceShareName. |
| 400 | InvalidParameter.ResourceShareName | The ResourceShareName is invalid. | The ResourceShareName is invalid. |
| 400 | InvalidParameter.ResourceShareName.Length | The maximum length of ResourceShareName exceeds 50 characters. | The maximum length of ResourceShareName exceeds 50 characters. |
| 400 | InvalidParameter | The specified parameter is invalid. | The specified parameter is invalid. |
| 404 | EntityNotExists.ResourceShare | The resource share does not exist in the current account. | The resource share does not exist in the current account. |
| 409 | OperationNotPermitted | You do not have permission to do this operation. | |
| 409 | ResourceShareStatusMismatchAction | The status of the resource share does not allow the specified operation. | The status of the resource share does not allow the specified operation. |
| 409 | NotSupport.AllowExternalTargets | External sharing is not permitted for resource shares with unsupported configurations. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。