Queries the details of automatic snapshot policies.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecd:DescribeAutoSnapshotPolicy |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. To query the regions supported by Elastic Desktop Service, call the DescribeRegions operation. |
cn-hangzhou |
| PolicyId |
string |
No |
The ID of the automatic snapshot policy. |
sp-c5tv9d64ebjnj**** |
| PolicyName |
string |
No |
The name of the automatic snapshot policy. |
测试1201 |
| MaxResults |
integer |
No |
The maximum number of entries to return per page.
|
10 |
| NextToken |
string |
No |
The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of NextToken. |
AAAAAV3MpHK1AP0pfERHZN5pu6mqIGdPhID94rjhZFGsvpJo |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| NextToken |
string |
The pagination token that is used in the next request to retrieve a new page of results. If the return value is empty, no more results are returned. |
caeba0bbb2be03f84eb48b699f0a4883 |
| RequestId |
string |
The request ID. |
A7F6612E-59CC-59F9-9DD1-91867FCC**** |
| AutoSnapshotPolicies |
array<object> |
The automatic snapshot policies. |
|
|
object |
An automatic snapshot policy. |
||
| TimePoints |
string |
The points in time when automatic snapshots are created. The value is a JSON array of integers. Example: |
["17","18"] |
| CreationTime |
string |
The time when the policy was created. The time follows the ISO 8601 standard in the |
2023-01-11T09:14:00Z |
| Status |
string |
The status of the automatic snapshot policy. Valid values:
|
Normal |
| DesktopNum |
integer |
The number of cloud computers to which the automatic snapshot policy is applied. |
1 |
| CronExpression |
string |
The cron expression that is used to create snapshots. |
0 0 5,7 ? * 2/2 |
| RetentionDays |
string |
The retention period of automatic snapshots. Unit: days. Valid values: 1 to 180. |
2 |
| PolicyName |
string |
The name of the automatic snapshot policy. |
snapshot01 |
| PolicyId |
string |
The ID of the automatic snapshot policy. |
sp-3e3bmfcdkjfl1**** |
| RegionId |
string |
The ID of the region where the automatic snapshot policy resides. |
cn-hangzhou |
| DiskType |
string |
Examples
Success response
JSON format
{
"NextToken": "caeba0bbb2be03f84eb48b699f0a4883",
"RequestId": "A7F6612E-59CC-59F9-9DD1-91867FCC****",
"AutoSnapshotPolicies": [
{
"TimePoints": "[\"17\",\"18\"]",
"CreationTime": "2023-01-11T09:14:00Z",
"Status": "Normal",
"DesktopNum": 1,
"CronExpression": "0 0 5,7 ? * 2/2",
"RetentionDays": "2",
"PolicyName": "snapshot01",
"PolicyId": "sp-3e3bmfcdkjfl1****",
"RegionId": "cn-hangzhou",
"DiskType": ""
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.