You need to enable JavaScript to run this app.
导航

DeleteCloudConnectorAuthorizationRules

最近更新时间2024.01.09 07:43:30

首次发布时间2024.01.09 07:43:30

调用DeleteCloudConnectorAuthorizationRules删除指定云连接器下指定的授权规则。

请求参数

名称类型是否必选示例值描述
ActionStringDeleteCloudConnectorAuthorizationRules要执行的操作,取值:DeleteCloudConnectorAuthorizationRules。
VersionString2020-04-01API版本信息。
CloudConnectorIdStringcc-1sdsf334j51288***云连接器的ID。您可调用DescribeCloudConnectors查询云连接器实例ID。

AuthorizationRuleIds.N

Array

AuthorizationRuleIds.1=ccrule-1234abcb8tmno0hdq****&AuthorizationRuleIds.2=ccrule-1ef8abcb5tdgerelo6****

授权规则ID。

  • 参数 - N:表示待删除的授权规则ID的序号,数量上限为10个。

  • 多个ID之间用&分隔。

ClientToken

String

1456qwe-xsjs-123s-oies-1239sk2****

客户端Token,用于保证请求的幂等性。

  • 由客户端自动生成一个参数值,确保不同请求间该参数值唯一,避免当调用API超时或服务器内部错误时,客户端多次重试导致重复性操作。

  • 仅支持ASCII字符,且不能超过64个字符。

  • 若不传入ClientToken,则此次API调用不进行幂等校验。

返回数据

名称类型示例值描述
RequestIdString0ED8D006-F706-4D23-88ED-E11ED28D****请求ID。

请求示例

GET /?Action=DeleteCloudConnectorAuthorizationRules&Version=2020-04-01&CloudConnectorId=cc-2fe5klwyjfmdc59gp68w****&AuthorizationRuleIds.1=ccrule-imed6j8qcjy88gbssy**** HTTP/1.1
Host: open.volcengineapi.com
ServiceName: directconnect
Region: cn-beijing

返回示例

{
    "ResponseMetadata": {
        "RequestId": "20240103145511BA455977CF048F2****",
        "Action": "DeleteCloudConnectorAuthorizationRules",
        "Version": "2020-04-01",
        "Service": "directconnect",
        "Region": "cn-beijing"
    },
    "Result": {
        "RequestId": "20240103145511BA455977CF048F2****",
    }
}

错误码

此处仅展示当前API的错误码,更多错误码请参见公共错误码

HttpCode错误码错误信息描述
400DryRunOperationException raised to indicate a successfully authorized action when the DryRun flag is set to true.该请求设置为DryRun操作,操作授权已获得许可,但未被实际执行。
400IdempotentParameterMismatchArguments on this idempotent request are inconsistent with arguments used in previous request(s).此幂等请求的参数与前一个请求中使用的参数不一致。
400InvalidAuthorizationRule.NotBelongToCloudConnectorThe specified authorization rule does not belong to the specified cloud connector.指定的授权规则不属于指定的云连接器。
400InvalidCloudConnector.InvalidStatusThe specified cloud connector is not in the correct status for the request.指定的云连接器所处的状态无法响应该请求。
400InvalidParameter.ClientTokenMalformedThe specified parameter ClientToken is malformed.指定的参数ClientToken格式不合法,长度不能超过64个ASCII字符。

400

LimitExceeded.AuthorizationRuleId

You've reached the limit on the number of authorization rules that you can delete.

已达到可删除的授权规则数量上限。

404InvalidAuthorizationRule.NotFoundThe specified cloud connector authorization rule does not exist.指定的云连接器授权规则不存在。
404InvalidCloudConnector.NotFoundThe specified cloud connector does not exist.指定的云连接器不存在。
412IdempotentProcessingThe request uses the same client token as a previous one that is still in process.幂等请求处理中。