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

DisassociateCloudConnector

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

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

调用DisassociateCloudConnector为云连接器解绑VPC资源。

请求参数

名称类型是否必选示例值描述
ActionStringDisassociateCloudConnector要执行的操作,取值:DisassociateCloudConnector。
VersionString2020-04-01API版本信息。
CloudConnectorIdStringcc-1sdsf334j51288****云连接器实例的ID。您可调用DescribeCloudConnectors查询云连接器实例ID。
VpcIdStringvpc-12wdsha83hd****待解绑的VPC的ID。您可调用DescribeCloudConnectors查询与云连接器绑定的VPC的ID。

ClientToken

String

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

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

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

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

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

返回数据

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

请求示例

GET /?Action=DisassociateCloudConnector&Version=2020-04-01&CloudConnectorId=cc-12bjay8vxvl6o17q7y2h****&VpcId=vpc-2femkfaiigohs59gp67j**** HTTP/1.1
Host: open.volcengineapi.com
ServiceName: directconnect
Region: cn-beijing

返回示例

{
    "ResponseMetadata": {
        "RequestId": "20240103142947D7B43387DE2BC43****",
        "Action": "DisassociateCloudConnector",
        "Version": "2020-04-01",
        "Service": "directconnect",
        "Region": "cn-beijing"
    },
    "Result": {
        "RequestId": "20240103142947D7B43387DE2BC43****",
    }
}

错误码

此处仅展示当前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).此幂等请求的参数与前一个请求中使用的参数不一致。
400InvalidCloudConnector.InvalidStatusThe specified cloud connector is not in the correct status for the request.指定的云连接器所处的状态无法响应该请求。
400InvalidParameter.ClientTokenMalformedThe specified parameter ClientToken is malformed.指定的参数ClientToken格式不合法,长度不能超过64个ASCII字符。
400InvalidVPC.MalformedThe specified VPC is malformed. The specified VPC does not associate with the cloud connector.指定的VPC与云连接器没有关联关系。
400InvalidVpc.InvalidStatusThe specified VPC is not in the correct status for the request.指定的VPC所处状态无法响应该请求。
403InvalidCloudConnector.ServiceRoleNotAuthorizedThe service role for CloudConnector has not been authorized.当前账号尚未授权云连接器的服务角色。
404InvalidCloudConnector.NotFoundThe specified cloud connector does not exist.指定的云连接器不存在。
404InvalidVPC.NotFoundThe specified VPC does not exist.指定的 VPC 不存在。
412IdempotentProcessingThe request uses the same client token as a previous one that is still in process.幂等请求处理中。