You can call this operation to create a disaster recovery plan for a Global Traffic Manager (GTM) instance.

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 AddGtmRecoveryPlan

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

FaultAddrPool String Yes ["hra0or"]

The list of IDs of faulty address pools.

Name String Yes name-example

The name of the disaster recovery plan that you want to create.

Remark String Yes remark

The remarks on the disaster recovery plan.

Lang String No en

The language used by the user.

Response parameters

Parameter Type Example Description
RecoveryPlanId String 100

The ID of the disaster recovery plan created.

RequestId String 6856BCF6-11D6-4D7E-AC53-FD579933522B

The ID of the request.

Examples

Sample requests


http(s)://alidns.aliyuncs.com/? Action=AddGtmRecoveryPlan
&FaultAddrPool=["hra0or"]
&Name=name-example
&Remark=remark
&<Common request parameters>

Sample success responses

XML format

<AddGtmRecoveryPlanResponse>
	  <RequestId>6856BCF6-11D6-4D7E-AC53-FD579933522B</RequestId>
	  <RecoveryPlanId>100</RecoveryPlanId>
</AddGtmRecoveryPlanResponse>

JSON format

{
	"RecoveryPlanId":100,
	"RequestId":"6856BCF6-11D6-4D7E-AC53-FD579933522B"
}

Error codes

For a list of error codes, visit the API Error Center.