After a workgroup is created, you can view its information, such as the workgroup name, description, and alert information.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
smc:DescribeWorkgroups |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| WorkgroupId |
array |
No |
A list of workgroup IDs. You can specify up to 50 workgroup IDs. |
|
|
string |
No |
The workgroup ID. |
w-*** |
|
| Name |
string |
No |
The name of the workgroup. |
test |
| Status |
string |
No |
The status of the workgroup. Valid values:
|
InProgress |
| PageNumber |
integer |
No |
The page number of the workgroup list. The value starts from 1. Default value: 1. |
1 |
| PageSize |
integer |
No |
The number of entries to return on each page for a paged query. Maximum value: 50. Default value: 10. |
10 |
| Tag |
array<object> |
No |
The array of tags. The array can contain 1 to 20 tags. If the array contains multiple tag objects, the tag keys cannot be the same. |
|
|
object |
No |
The tag object. |
||
| Key |
string |
No |
The tag key of the workgroup. The key can be up to 128 characters in length. If you specify this parameter, the value cannot be an empty string. The key cannot start with |
TestKey |
| Value |
string |
No |
The tag value of the workgroup. The value can be up to 128 characters in length. If you specify this parameter, the value can be an empty string. The value cannot contain |
TestValue |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned parameters. |
||
| RequestId |
string |
The request ID. |
2D69A58F-345C-4FDE-88E4-BF518948**** |
| TotalCount |
integer |
The total number of workgroups. |
1 |
| PageSize |
integer |
The number of entries returned on each page. Maximum value: 50. Default value: 10. |
10 |
| PageNumber |
integer |
The page number of the workgroup list. |
1 |
| Workgroups |
object |
||
| Workgroup |
array<object> |
The details of the workgroups. |
|
|
object |
The workgroup object. |
||
| WorkgroupId |
string |
The workgroup ID. |
w-*** |
| Name |
string |
The name of the workgroup. |
testWorkgroupName |
| Description |
string |
The description of the workgroup. |
test |
| Status |
string |
The status of the workgroup. Possible values:
|
InProgress |
| Warnings |
object |
||
| Warning |
array<object> |
A list of alert information for the workgroup. The list may contain multiple types of alerts. |
|
|
object |
The alert information. |
||
| WarningType |
string |
The alert type. Possible values:
|
InError |
| SourceIds |
object |
||
| SourceId |
array |
A list of migration sources that have issues. |
|
|
string |
The ID of the migration source that has an issue. |
s-bp1h7ymebl7swbt4**** |
|
| Tags |
object |
||
| Tag |
array<object> |
The tag information of the workgroup. |
|
|
object |
The tag information of the workgroup. |
||
| Key |
string |
The tag key of the workgroup. |
TestKey |
| Value |
string |
The tag value of the workgroup. |
TestValue |
Examples
Success response
JSON format
{
"RequestId": "2D69A58F-345C-4FDE-88E4-BF518948****",
"TotalCount": 1,
"PageSize": 10,
"PageNumber": 1,
"Workgroups": {
"Workgroup": [
{
"WorkgroupId": "w-***",
"Name": "testWorkgroupName",
"Description": "test",
"Status": "InProgress",
"Warnings": {
"Warning": [
{
"WarningType": "InError",
"SourceIds": {
"SourceId": [
"s-bp1h7ymebl7swbt4****"
]
}
}
]
},
"Tags": {
"Tag": [
{
"Key": "\t\nTestKey",
"Value": "TestValue"
}
]
}
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | InternalError | An error occurred while processing your request. Please try again. If the problem still exists, please submit a ticket. | An error occurred while processing your request. Please try again. If the problem still exists, please submit a ticket. |
| 403 | Forbidden.Unauthorized | A required authorization for the specified action is not supplied. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.