ModifyStorageBundle

更新时间: 2024-09-18 15:36:52

调用ModifyStorageBundle可对指定网关集群的基本信息进行修改,包括网关集群名称、描述。

请求参数

名称

类型

是否必选

示例值

描述

Action String ModifyStorageBundle

系统规定参数。取值:ModifyStorageBundle

StorageBundleId String sb-000ibk4xrlr03qrjr***

网关集群ID。

Name String alex-123***

网关集群名。长度限制1~60个字符,可以包含大小写字母,中文,数字,“.”,“_”或“-”,同时必须以大小写字母或者中文开头。

Description String 测试使用

网关集群描述。 长度不可超过128个字符。

返回数据

名称

类型

示例值

描述

Message String successful

请求结果描述。

RequestId String 70EACC9C-D07A-4A34-ADA4-77506C42777

请求ID。

StorageBundleId String sb-000ibk4xrlr03qr***

网关集群ID。

Code String 200

请求错误代号,正确时为200。

Success Boolean true

请求是否成功。

示例

请求示例

http(s)://[Endpoint]/?Action=ModifyStorageBundle
&StorageBundleId=sb-000ibk4xrlr03qrjr***
&Name=alex-123***
&Description=测试使用
&公共请求参数

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<ModifyStorageBundleResponse>
    <Message>successful</Message>
    <RequestId>70EACC9C-D07A-4A34-ADA4-77506C42777</RequestId>
    <StorageBundleId>sb-000ibk4xrlr03qr***</StorageBundleId>
    <Code>200</Code>
    <Success>true</Success>
</ModifyStorageBundleResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "Message" : "successful",
  "RequestId" : "70EACC9C-D07A-4A34-ADA4-77506C42777",
  "StorageBundleId" : "sb-000ibk4xrlr03qr***",
  "Code" : "200",
  "Success" : true
}

错误码

HttpCode

错误码

错误信息

描述

400 EmptyStorageBundleId You must enter a valid ID for the gateway cluster. 网关集群ID不能为空。
400 EmptyStorageBundleName You must enter a valid name for the gateway cluster. 网关集群名称不能为空。
400 StorageBundleDescriptionOverLimit The length of the specified description of the gateway cluster exceeds the maximum limit. The description cannot exceed 128 characters in length. 网关集群描述超过最大长度,最大限度为128个字符。
400 InvalidStorageBundleName The specified name for the gateway cluster is invalid. The name must be 1 to 60 characters in length and can contain letters, Chinese, digits, periods (.), underscores (_), and hyphens (-). The name must start with a letter or Chinese. 无效的网关集群名称,网关集群名称长度限制1~60个字符,可以包含大小写字母,中文,数字,“.”,“_”或“-”,同时必须以大小写字母或者中文开头。
404 StorageBundleNotExist The name you specified for the gateway cluster does not exist. You must specify a valid parameter. 网关集群不存在,请确认输入参数是否正确。

访问错误中心查看更多错误码。

上一篇: DescribeStorageBundles 下一篇: 网关
阿里云首页 云存储网关 相关技术圈