IAM
The function of this interface is to obtain a list of control groups (CGs) that the current user account has permission to access, along with their associated domain information. Users do not need to provide specific parameters when calling this interface; the system will return a complete list containing the CG names and corresponding domains. The results include the ID of each control group and the associated domains. This interface is particularly useful for scenarios where there is a need to quickly understand the full scope of domains that an account can manage or monitor, helping users effectively manage resources and permissions.
Single user trigger frequency: 300/5min
| Name | Description |
|---|---|
controlGroupCodeList | Control Group Code, If this parameter is empty, all authorized control groups will be returned |
| Name | Description |
|---|---|
codeString | request result status code |
dataList | |
controlGroupDetailList | |
controlGroupCodeString | Control Group Code |
controlGroupNameString | Control Group Name |
domainListList | domain list |
| Error code(code) | Description(message) | HTTP status | Semantic |
|---|---|---|---|
| 24192202 | Account not exist | 400 | Account not exist |
| 24194257 | Control group not exist. | 400 | Control group not exist. |
| 24191001 | The operator/loginName does not have the operating authority. | 400 | The operator/loginName does not have the operating authority. |
| 24192000 | Param: %s is null or invalid. | 400 | Param: %s is null or invalid. |
#!/bin/bash
username="example_username"
apiKey="example_apiKey"
date=`env LANG="en_US.UTF-8" date -u "+%a, %d %b %Y %H:%M:%S GMT"`
password=`echo -en "$date" | openssl dgst -sha1 -hmac $apiKey -binary | openssl enc -base64`
curl -i --url "https://api.cdnetworks.com/user/cgdomainlist" \
-X "POST" \
-u "$username:$password" \
-H "Date: $date" \
-H "Accept: application/json" \
-d '{"controlGroupCode":[]}'{
"code": "0",
"msg": "success",
"data": [
{
"controlGroupDetail": [
{
"controlGroupCode": "1131",
"controlGroupName": "1102552-10",
"domainList": [
"1.com",
"2.com"
]
},
{
"controlGroupCode": "1121",
"controlGroupName": "1102552-20",
"domainList": [
"3.com",
"4.com"
]
}
]
}
]
}