GetCloudPermissionTemplate
Queries a permission template.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eiam:GetCloudPermissionTemplate |
get |
*CloudPermissionTemplate
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the IDaaS EIAM instance. |
idaas_ue2jvisn35ea5lmthk267xxxxx |
| CloudAccountId |
string |
Yes |
The cloud account ID. |
ac_mkv7rgt4d7i4u7zqtzev2mxxxx |
| CloudPermissionTemplateId |
string |
Yes |
The permission template ID. |
cpt_mkv7rgt4d7i4u7zqtzev2mxxxx |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
0441BD79-92F3-53AA-8657-F8CE4A2B912A |
| CloudPermissionTemplate |
object |
The permission template. |
|
| InstanceId |
string |
The instance ID. |
idaas_ki6hd7ihir4ybawogqk6kqsfjm |
| CloudAccountId |
string |
The cloud account ID. |
ca_01kq1us6frlbo3rr8m216vj3bkak2 |
| CloudPermissionTemplateId |
string |
The unique identifier of the permission template. |
cpt_01l8dagf2iablhigj75l1n99xxxxx |
| CloudPermissionTemplateName |
string |
The name of the permission template. |
testName |
| PermissionEntityType |
string |
The permission entity type. Fixed value: cloud_account_role. |
cloud_account_role |
| PermissionEntityId |
string |
The ID of the associated CloudAccountRole. |
carole_01kmek49aqxxxx |
| PermissionEntityExternalId |
string |
The external unique identifier of the associated cloud role, which is the role ARN on the cloud provider side. |
acs:ram::123456:role/idaas-test |
| Status |
string |
The status of the permission template. Valid values:
|
enabled |
| AllowRequest |
boolean |
Specifies whether users are allowed to apply for the permission template. |
true |
| Description |
string |
The description of the permission template. |
this is a test. |
| CloudPermissionTemplateUsageType |
string |
The usage type of the permission template. Valid values:
Valid values:
|
user |
| CloudPermissionTemplateSharingMode |
string |
The sharing mode of the permission template. Valid values:
Valid values:
|
shared |
| CloudPermissionTemplateOwnerType |
string |
The owner type of the exclusive template. Valid values:
Valid values:
|
user |
| CloudPermissionTemplateOwnerId |
string |
The ID of the application to which the exclusive template belongs. This parameter is empty for shared templates. |
user_01kexamplexxxx |
| CloudPermissionTemplateCreator |
object |
The creator information of the permission template. |
|
| CreatorType |
string |
The creator type. Valid values:
Valid values:
|
idaas_user |
| CreatorId |
string |
The identity identifier of the creator. |
8645321 |
| CreatorName |
string |
The name of the creator. |
root |
| CloudPermissionTemplateInitResult |
object |
The initialization result. This parameter is returned only when the status is init_failed. |
|
| Result |
string |
The initialization result. Valid values:
|
success |
| ErrorCode |
string |
The error code returned when initialization fails. |
CloudPermissionTemplate.AsyncInitError |
| ErrorMessage |
string |
The error message returned when initialization fails. |
server error |
| ApplicableScope |
object |
The applicable scope of the permission template. |
|
| ScopeType |
string |
The scope type. Valid values:
|
global |
| UserIds |
array |
The list of specified user IDs. This parameter has a value only when ScopeType is set to custom. |
|
|
string |
The account ID. |
user_d6sbsuumeta4h66ec3il7yxxxx |
|
| GroupIds |
array |
The list of specified group IDs. This parameter has a value only when ScopeType is set to custom. |
|
|
string |
The group ID. |
group_lpm6kup6lcbuggywj64i2zioxi |
|
| OrganizationalUnitIds |
array |
The list of specified organizational unit IDs. This parameter has a value only when ScopeType is set to custom. |
|
|
string |
The organizational unit ID. |
ou_xva2ldblzmpqdqcbvau6jca2oe |
|
| CreateTime |
integer |
The creation time. The value is a UNIX timestamp in milliseconds. |
1776239357000 |
| UpdateTime |
integer |
The last update time. The value is a UNIX timestamp in milliseconds. |
1776239357000 |
Examples
Success response
JSON format
{
"RequestId": "0441BD79-92F3-53AA-8657-F8CE4A2B912A",
"CloudPermissionTemplate": {
"InstanceId": "idaas_ki6hd7ihir4ybawogqk6kqsfjm",
"CloudAccountId": "ca_01kq1us6frlbo3rr8m216vj3bkak2",
"CloudPermissionTemplateId": "cpt_01l8dagf2iablhigj75l1n99xxxxx",
"CloudPermissionTemplateName": "testName",
"PermissionEntityType": "cloud_account_role",
"PermissionEntityId": "carole_01kmek49aqxxxx",
"PermissionEntityExternalId": "acs:ram::123456:role/idaas-test",
"Status": "enabled",
"AllowRequest": true,
"Description": "this is a test.",
"CloudPermissionTemplateUsageType": "user",
"CloudPermissionTemplateSharingMode": "shared",
"CloudPermissionTemplateOwnerType": "user",
"CloudPermissionTemplateOwnerId": "user_01kexamplexxxx",
"CloudPermissionTemplateCreator": {
"CreatorType": "idaas_user",
"CreatorId": "8645321",
"CreatorName": "root"
},
"CloudPermissionTemplateInitResult": {
"Result": "success",
"ErrorCode": "CloudPermissionTemplate.AsyncInitError",
"ErrorMessage": "server error"
},
"ApplicableScope": {
"ScopeType": "global",
"UserIds": [
"user_d6sbsuumeta4h66ec3il7yxxxx"
],
"GroupIds": [
"group_lpm6kup6lcbuggywj64i2zioxi"
],
"OrganizationalUnitIds": [
"ou_xva2ldblzmpqdqcbvau6jca2oe"
]
},
"CreateTime": 1776239357000,
"UpdateTime": 1776239357000
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.