All Products
Search
Document Center

Alibaba Cloud DNS:PreviewGtmRecoveryPlan

Last Updated:Mar 15, 2024

You can call this operation to preview a disaster recovery plan of 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.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
LangstringNo

The language used by the user.

en
RecoveryPlanIdlongYes

The ID of the disaster recovery plan that you want to preview.

100
PageNumberintegerNo

The number of the page to return. Pages start from page 1. Default value: 1.

1
PageSizeintegerNo

The number of entries to return on per page. Maximum value: 20. Default value: 5.

5

Response parameters

ParameterTypeDescriptionExample
object
TotalPagesinteger

The total number of pages returned.

3
TotalItemsinteger

The total number of entries returned on all pages.

15
PageNumberinteger

The page number of the returned page.

1
PageSizeinteger

The number of entries returned per page.

5
RequestIdstring

The ID of the request.

853805EA-3D47-47D5-9A1A-A45C24313ABD
Previewsobject []

The returned preview information of the disaster recovery plan.

InstanceIdstring

The ID of the GTM instance to which the previewed disaster recovery plan belongs.

instance-example
Namestring

The name of the GTM instance to which the previewed disaster recovery plan belongs.

name-example
UserDomainNamestring

The user's domain name or domain name list.

30.yyy.com
SwitchInfosobject []

The returned information of the switching policies for address pools.

Contentstring

The formatted message content.

StrategyNamestring

The name of the switching policy for address pools.

strategy-name-example-1

Examples

Sample success responses

JSONformat

{
  "TotalPages": 3,
  "TotalItems": 15,
  "PageNumber": 1,
  "PageSize": 5,
  "RequestId": "853805EA-3D47-47D5-9A1A-A45C24313ABD",
  "Previews": {
    "Preview": [
      {
        "InstanceId": "instance-example",
        "Name": "name-example",
        "UserDomainName": "30.yyy.com",
        "SwitchInfos": {
          "SwitchInfo": [
            {
              "Content": "",
              "StrategyName": "strategy-name-example-1"
            }
          ]
        }
      }
    ]
  }
}

Error codes

For a list of error codes, visit the Service error codes.