Mengambil informasi tentang versi kebijakan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ram:GetPolicyVersion |
get |
Policy
Policy
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| PolicyType |
string |
No |
Tipe kebijakan. Nilai yang valid: |
Custom |
| PolicyName |
string |
No |
Nama kebijakan. |
OSS-Administrator |
| VersionId |
string |
No |
ID versi kebijakan. |
v3 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| PolicyVersion |
object |
Informasi mengenai versi kebijakan. |
|
| IsDefaultVersion |
boolean |
Menunjukkan apakah versi kebijakan tersebut merupakan versi default. |
false |
| PolicyDocument |
string |
Dokumen kebijakan. |
{ "Statement": [{ "Action": ["oss:*"], "Effect": "Allow", "Resource": ["acs:oss:*:*:*"]}], "Version": "1"} |
| VersionId |
string |
ID versi kebijakan. |
v3 |
| CreateDate |
string |
Waktu pembuatan. |
2015-01-23T12:33:18Z |
| RequestId |
string |
ID permintaan. |
9B34724D-54B0-4A51-B34D-4512372FE1BE |
Contoh
Respons sukses
JSONformat
{
"PolicyVersion": {
"IsDefaultVersion": false,
"PolicyDocument": "{ \"Statement\": [{ \"Action\": [\"oss:*\"], \"Effect\": \"Allow\", \"Resource\": [\"acs:oss:*:*:*\"]}], \"Version\": \"1\"}",
"VersionId": "v3",
"CreateDate": "2015-01-23T12:33:18Z"
},
"RequestId": "9B34724D-54B0-4A51-B34D-4512372FE1BE"
}
Respons error
JSONformat
{
"RequestId": "9B34724D-54B0-4A51-B34D-4512372FE1BE",
"PolicyVersion": {
"VersionId": "v3",
"IsDefaultVersion": false,
"CreateDate": "2015-01-23T12:33:18Z",
"PolicyDocument": "{ \"Statement\": [{ \"Action\": [\"oss:*\"], \"Effect\": \"Allow\", \"Resource\": [\"acs:oss:*:*:*\"]}], \"Version\": \"1\"}"
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.