Mengkueri kelompok.
Deskripsi operasi
This topic provides an example on how to query the groups in the directory d-00fc2p61****. The returned result shows that the directory contains three groups. The groups group1 and group2 are synchronized from an external identity provider (IdP). The group TestGroup is manually created in CloudSSO.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cloudsso:ListGroups |
list |
*Group
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DirectoryId |
string |
Yes |
ID direktori. |
d-00fc2p61**** |
| NextToken |
string |
No |
Token paginasi yang digunakan di permintaan berikutnya untuk mengambil halaman hasil baru. Anda tidak perlu menentukan parameter ini untuk permintaan pertama. Anda harus menentukan token yang diperoleh dari kueri sebelumnya sebagai nilai Saat Anda memanggil operasi ini untuk pertama kali, jika jumlah total entri yang akan dikembalikan lebih besar dari nilai parameter |
K1c3o9K7pFxoTtxH1Nm7MMLb7zrDGvftYBQBPDVv7AD3a8yhRb3Mk8L9ivmN6bFSjfkZNTAg3h4**** |
| MaxResults |
integer |
No |
Jumlah entri per halaman. Nilai valid: 1 hingga 100. Nilai default: 10. |
10 |
| Filter |
string |
No |
Kondisi filter. Anda harus menentukan nilai dalam format Misalnya, jika Anda mengatur Filter ke GroupName sw test, operasi mengkueri kelompok yang namanya dimulai dengan test. Jika Anda mengatur Filter ke GroupName eq testgroup, operasi mengkueri kelompok yang namanya adalah testgroup. |
GroupName eq testgroup |
| ProvisionType |
string |
No |
Tipe kelompok. Tipe dapat digunakan untuk memfilter kelompok. Nilai valid:
|
Manual |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| NextToken |
string |
A pagination token. It can be used in the next request to retrieve a new page of results. Catatan
This parameter is returned only when the value of the |
K1c3o9K7pFxoTtxH1Nm7MMLb7zrDGvftYBQBPDVv7AD3a8yhRb3Mk8L9ivmN6bFSjfkZNTAg3h4**** |
| RequestId |
string |
The request ID. |
768F908D-A66A-5A5D-816C-20C93CBBFEE3 |
| Groups |
array<object> |
The groups. |
|
|
object |
The group. |
||
| GroupName |
string |
The name of the group. |
TestGroup |
| Description |
string |
The description of the group. |
This is a group. |
| CreateTime |
string |
The time when the group was created. |
2021-11-01T02:38:27Z |
| ProvisionType |
string |
The type of the group. Valid values:
|
Manual |
| UpdateTime |
string |
The time when the information about the group was modified. |
2021-11-01T02:38:27Z |
| GroupId |
string |
The ID of the group. |
g-00jqzghi2n3o5hkh**** |
| MaxResults |
integer |
The number of entries per page. |
10 |
| TotalCounts |
integer |
The total number of entries returned. |
3 |
| IsTruncated |
boolean |
Indicates whether the queried entries are truncated. Valid values:
|
false |
Contoh
Respons sukses
JSONformat
{
"NextToken": "K1c3o9K7pFxoTtxH1Nm7MMLb7zrDGvftYBQBPDVv7AD3a8yhRb3Mk8L9ivmN6bFSjfkZNTAg3h4****",
"RequestId": "768F908D-A66A-5A5D-816C-20C93CBBFEE3",
"Groups": [
{
"GroupName": "TestGroup",
"Description": "This is a group.",
"CreateTime": "2021-11-01T02:38:27Z",
"ProvisionType": "Manual",
"UpdateTime": "2021-11-01T02:38:27Z",
"GroupId": "g-00jqzghi2n3o5hkh****"
}
],
"MaxResults": 10,
"TotalCounts": 3,
"IsTruncated": false
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.