调用DeleteCloudConnectorAuthorizationRules删除指定云连接器下指定的授权规则。
授权规则删除后立即生效,且删除操作为不可逆操作,请谨慎操作以免对业务产生影响。
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DeleteCloudConnectorAuthorizationRules | 要执行的操作,取值:DeleteCloudConnectorAuthorizationRules。 |
Version | String | 是 | 2020-04-01 | API版本信息。 |
CloudConnectorId | String | 是 | cc-1sdsf334j51288*** | 云连接器的ID。您可调用DescribeCloudConnectors查询云连接器实例ID。 |
AuthorizationRuleIds.N | Array | 是 | AuthorizationRuleIds.1=ccrule-1234abcb8tmno0hdq****&AuthorizationRuleIds.2=ccrule-1ef8abcb5tdgerelo6**** | 授权规则ID。
|
ClientToken | String | 否 | 1456qwe-xsjs-123s-oies-1239sk2**** | 客户端Token,用于保证请求的幂等性。
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | 0ED8D006-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 | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | DryRunOperation | Exception raised to indicate a successfully authorized action when the DryRun flag is set to true. | 该请求设置为DryRun操作,操作授权已获得许可,但未被实际执行。 |
400 | IdempotentParameterMismatch | Arguments on this idempotent request are inconsistent with arguments used in previous request(s). | 此幂等请求的参数与前一个请求中使用的参数不一致。 |
400 | InvalidAuthorizationRule.NotBelongToCloudConnector | The specified authorization rule does not belong to the specified cloud connector. | 指定的授权规则不属于指定的云连接器。 |
400 | InvalidCloudConnector.InvalidStatus | The specified cloud connector is not in the correct status for the request. | 指定的云连接器所处的状态无法响应该请求。 |
400 | InvalidParameter.ClientTokenMalformed | The 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. | 已达到可删除的授权规则数量上限。 |
404 | InvalidAuthorizationRule.NotFound | The specified cloud connector authorization rule does not exist. | 指定的云连接器授权规则不存在。 |
404 | InvalidCloudConnector.NotFound | The specified cloud connector does not exist. | 指定的云连接器不存在。 |
412 | IdempotentProcessing | The request uses the same client token as a previous one that is still in process. | 幂等请求处理中。 |