All Products
Search
Document Center

Server Migration Center:DescribeWorkgroups

Last Updated:Oct 29, 2024

Queries the information about workgroups. After you create a workgroup, you can query the information about the workgroup, such as the name, description, and alert information.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
WorkgroupIdarrayNo

The workgroup IDs. You can specify up to 50 workgroup IDs.

stringNo

The workgroup ID.

w-***
NamestringNo

The name of the workgroup.

test
StatusstringNo

The state of the workgroup. Valid values:

  • NotStarted
  • InProgress
  • Cutover
  • Completed
InProgress
PageNumberintegerNo

The page number. Pages start from page 1. Default value: 1.

1
PageSizeintegerNo

The number of entries per page. Valid values: 1 to 50. Default value: 10.

10

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

2D69A58F-345C-4FDE-88E4-BF518948****
TotalCountinteger

The total number of workgroups.

1
PageSizeinteger

The number of entries per page. Valid values: 1 to 50. Default value: 10.

10
PageNumberinteger

The page number.

1
Workgroupsarray<object>

The queried workgroups.

Workgroupobject

The queried workgroup.

WorkgroupIdstring

The workgroup ID.

w-***
Namestring

The name of the workgroup.

testWorkgroupName
Descriptionstring

The description of the workgroup.

test
Statusstring

The state of the workgroup. Valid values:

  • NotStarted
  • InProgress
  • Cutover
  • Completed
InProgress
Warningsarray<object>

The alert information of the workgroup, which can contain multiple types of alerts.

Waringobject

The information about the alert.

WarningTypestring

The type of the alert. Valid values:

  • InError: A migration job failed.
  • UnRelated: No migration job is created for a migration source.
  • NotPassed: A migration job failed to pass the migration test.
InError
SourceIdsarray

The migration sources for which alerts are generated.

SourceIdstring

The ID of the migration source.

s-***

Examples

Sample success responses

JSONformat

{
  "RequestId": "2D69A58F-345C-4FDE-88E4-BF518948****",
  "TotalCount": 1,
  "PageSize": 10,
  "PageNumber": 1,
  "Workgroups": {
    "Workgroup": [
      {
        "WorkgroupId": "w-***",
        "Name": "testWorkgroupName",
        "Description": "test",
        "Status": "InProgress",
        "Warnings": {
          "Waring": [
            {
              "WarningType": "InError",
              "SourceIds": {
                "SourceId": [
                  "s-***"
                ]
              }
            }
          ]
        }
      }
    ]
  }
}

Error codes

HTTP status codeError codeError messageDescription
403Forbidden.UnauthorizedA required authorization for the specified action is not supplied.-
500InternalErrorAn 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.

For a list of error codes, visit the Service error codes.