Sends a verification code.

Description

When you attach your workspace network to a Cloud Enterprise Network (CEN) instance in another Alibaba Cloud account, you need to call this operation to obtain a verification code. After the call is successful, the system sends a verification code to the email address associated with the Alibaba Cloud account.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes SendVerifyCode

The operation that you want to perform. Set the value to SendVerifyCode.

RegionId String Yes cn-hangzhou

The ID of the region.

VerifyCodeAction String Yes eds_cenID_securityverification

The action that indicates what the verification code is used for. The parameter is only used to verify the security of CEN. The value is eds_cenID_securityverification.

ExtraInfo String Yes {"cenOwnerId": 1234567890******,"cenId": "cen-3weq30r6t0s7t4****"}

The information in JSON format that is required for sending the verification code. To verify the security of CEN, you must provide the ID of the CEN instance and the ID of the Alibaba Cloud account to which the instance belongs. Example: {"cenOwnerId": 1234567890******,"cenId": "cen-3weq30r6t0s7t4****"}.

Response parameters

Parameter Type Example Description
RequestId String 0AF9D857-AE96-53D6-B317-5DD665EC4EC0

The ID of the request.

Examples

Sample requests

https://ecd.cn-hangzhou.aliyuncs.com/?Action=SendVerifyCode
&RegionId=cn-hangzhou
&VerifyCodeAction=eds_cenID_securityverification
&ExtraInfo={"cenOwnerId": 1234567890******,"cenId": "cen-3weq30r6t0s7t4****"}
&<Common request parameters>

Sample success responses

XML format

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

<SendVerifyCodeResponse>
    <RequestId>0AF9D857-AE96-53D6-B317-5DD665EC4EC0</RequestId>
</SendVerifyCodeResponse>

JSON format

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

{
  "RequestId" : "0AF9D857-AE96-53D6-B317-5DD665EC4EC0"
}