Mengkueri statistik direktori.
Deskripsi operasi
This topic provides an example on how to query the statistics of a directory whose ID is d-00fc2p61****. The statistics include the number of users, quota for users, number of groups, quota for groups, number of access configurations, quota for access configurations, number of access permissions that are assigned, number of system policies that can be configured for an access configuration, number of System for Cross-domain Identity Management (SCIM) credentials, number of asynchronous tasks, status of single sign-on (SSO) logon, and status of SCIM synchronization.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cloudsso:GetDirectoryStatistics |
get |
*Directory
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DirectoryId |
string |
Yes |
ID direktori. |
d-00fc2p61**** |
Untuk informasi selengkapnya tentang parameter permintaan umum, lihat Parameter umum.
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
7B7228B0-A435-5D27-A6B2-ED3571F0654B |
| DirectoryStatistics |
object |
The statistics of the directory. |
|
| UserCount |
integer |
The number of users. |
16 |
| GroupCount |
integer |
The number of user groups. |
4 |
| UserQuota |
integer |
The quota for users. |
1000 |
| GroupQuota |
integer |
The quota for user groups. |
500 |
| AccessConfigurationQuota |
integer |
The quota for access configurations. |
1000 |
| AccessAssignmentCount |
integer |
The number of access permissions that are assigned. |
5 |
| SCIMServerCredentialCount |
integer |
The number of SCIM credentials. |
2 |
| DirectoryId |
string |
The ID of the directory. |
d-00fc2p61**** |
| SSOEnabled |
boolean |
Indicates whether SSO is enabled. Valid values:
|
false |
| Region |
string |
The region ID of the directory. |
cn-shanghai |
| AccessConfigurationCount |
integer |
The number of access configurations. |
6 |
| DirectoryName |
string |
The name of the directory. |
new-example |
| InProgressTaskCount |
integer |
The number of tasks that are being performed. |
0 |
| SCIMSyncEnabled |
boolean |
Indicates whether SCIM synchronization is enabled. Valid values:
|
true |
| SystemPolicyPerAccessConfigurationQuota |
integer |
The quota for system policies that can be configured for an access configuration. |
20 |
| InlinePolicyPerAccessConfigurationQuota |
integer |
The number of inline policies that can be configured for an access configuration. |
1 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "7B7228B0-A435-5D27-A6B2-ED3571F0654B",
"DirectoryStatistics": {
"UserCount": 16,
"GroupCount": 4,
"UserQuota": 1000,
"GroupQuota": 500,
"AccessConfigurationQuota": 1000,
"AccessAssignmentCount": 5,
"SCIMServerCredentialCount": 2,
"DirectoryId": "d-00fc2p61****",
"SSOEnabled": false,
"Region": "cn-shanghai",
"AccessConfigurationCount": 6,
"DirectoryName": "new-example",
"InProgressTaskCount": 0,
"SCIMSyncEnabled": true,
"SystemPolicyPerAccessConfigurationQuota": 20,
"InlinePolicyPerAccessConfigurationQuota": 1
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.