All Products
Search
Document Center

File Storage NAS:DescribeAutoSnapshotPolicies

Last Updated:Jun 12, 2026

Mengkueri kebijakan snapshot otomatis yang telah dibuat.

Deskripsi operasi

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

Action

Access level

Resource type

Condition key

Dependent action

nas:DescribeAutoSnapshotPolicies

list

*全部资源

*

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

AutoSnapshotPolicyId

string

No

ID kebijakan snapshot otomatis.

sp-extreme-233e6****

PageSize

integer

No

Jumlah kebijakan snapshot otomatis pada setiap halaman.

Nilai valid: 1 hingga 100.

Nilai default: 10.

10

PageNumber

integer

No

Nomor halaman daftar kebijakan snapshot otomatis.

Nilai awal (nilai default): 1.

1

FileSystemType

string

No

Tipe sistem file.

Nilai valid: extreme (sistem file Extreme NAS).

extreme

Elemen respons

Element

Type

Description

Example

object

TotalCount

integer

Jumlah total kebijakan snapshot otomatis.

2

RequestId

string

ID permintaan.

473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

PageSize

integer

Jumlah entri per halaman.

10

PageNumber

integer

Nomor halaman daftar kebijakan snapshot otomatis.

1

AutoSnapshotPolicies

object

AutoSnapshotPolicy

array<object>

Detail kebijakan snapshot otomatis.

object

TimePoints

string

The points in time at which auto snapshots are created.

Unit: hours.

Valid values: 0 to 23. The values from 0 to 23 indicate a total of 24 hours from 00:00 to 23:00. For example, 1 indicates 01:00. A maximum of 24 points in time can be returned. Multiple points in time are separated with commas (,).

4,19

Status

string

The status of the automatic snapshot policy.

Valid values:

  • Creating: The automatic snapshot policy is being created.

  • Available: The automatic snapshot policy is available.

Available

RepeatWeekdays

string

The days of a week on which auto snapshots are created.

Auto snapshots are created on a weekly basis.

Valid values: 1 to 7. The values from 1 to 7 indicate 7 days in a week from Monday to Sunday.

1,5

AutoSnapshotPolicyName

string

The name of the automatic snapshot policy.

FinanceJoshua

CreateTime

string

The time when the automatic snapshot policy was created.

The time follows the ISO8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

2014-04-21T12:08:52Z

AutoSnapshotPolicyId

string

The ID of the automatic snapshot policy.

sp-extreme-233e6****

RetentionDays

integer

The retention period of auto snapshots.

Unit: days.

Valid values:

  • -1: Auto snapshots are permanently retained. After the number of auto snapshots exceeds the upper limit, the earliest auto snapshot is automatically deleted.

  • 1 to 65536: Auto snapshots are retained for the specified days. After the retention period of auto snapshots expires, the auto snapshots are automatically deleted.

30

FileSystemNums

integer

The number of file systems to which the automatic snapshot policy applies.

2

RegionId

string

The region ID of the automatic snapshot policy.

cn-hangzhou

FileSystemType

string

The type of the file system.

extreme

Contoh

Respons sukses

JSONformat

{
  "TotalCount": 2,
  "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
  "PageSize": 10,
  "PageNumber": 1,
  "AutoSnapshotPolicies": {
    "AutoSnapshotPolicy": [
      {
        "TimePoints": "4,19",
        "Status": "Available",
        "RepeatWeekdays": "1,5",
        "AutoSnapshotPolicyName": "FinanceJoshua",
        "CreateTime": "2014-04-21T12:08:52Z",
        "AutoSnapshotPolicyId": "sp-extreme-233e6****",
        "RetentionDays": 30,
        "FileSystemNums": 2,
        "RegionId": "cn-hangzhou",
        "FileSystemType": "extreme"
      }
    ]
  }
}

Kode kesalahan

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.