ListSources
Retrieves a list of sources.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
apig:ListSources |
none |
*Source
|
None | None |
Request syntax
GET /v1/sources HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| gatewayId |
string |
No |
The gateway ID. |
gw-cpv4sqdl**** |
| type |
string |
No |
The source type used to filter the query results. Valid values:
|
MSE_NACOS |
| pageNumber |
integer |
No |
The page number. Pages start from 1. Default value: 1. |
1 |
| pageSize |
integer |
No |
The number of entries per page. Valid values: 1 to 100. Default value: 10. |
10 |
| resourceGroupId |
string |
No |
The resource group ID used to filter results. This parameter is also used for RAM authentication. |
rg-xxxx |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| requestId |
string |
The request ID. |
8FA9BB94-915B-5299-A694-49FCC7F5DD00 |
| code |
string |
The response status code. |
Ok |
| message |
string |
The response message. |
success |
| data |
object |
The response data. |
|
| pageNumber |
integer |
The page number. |
1 |
| pageSize |
integer |
The number of entries per page. |
10 |
| totalSize |
integer |
The total number of entries. |
10 |
| items |
array<object> |
The list of sources. |
|
|
array<object> |
The source information. |
||
| sourceId |
string |
The source ID. |
src-crdddallhtgtria*** |
| name |
string |
The source name. If the source type is container service, the name is the container service cluster name. If the source type is MSE Nacos, the name is the Nacos instance name. |
itemcenter-dev-cluster |
| k8sSourceInfo |
object |
The container service source information. |
|
| clusterId |
string |
The container service cluster ID. |
c09212180612a42adbed6a940d01d*** |
| nacosSourceInfo |
object |
The MSE Nacos source information. |
|
| instanceId |
string |
The Nacos instance ID. |
mse_prepaid_public_cn-wuf*** |
| clusterId |
string |
The NACOS registry cluster ID. |
mse-3353*** |
| address |
string |
The access address of the Nacos instance. |
mse-3353***-nacos-ans.mse.aliyuncs.com:8848 |
| associationStatus |
string |
The association status of the source |
ASSOCIATED |
| associationReason |
string |
The reason for the association status |
Association completed |
| createTimestamp |
integer |
The creation timestamp. Unit: milliseconds. |
1719386834548 |
| updateTimestamp |
integer |
The update timestamp. Unit: milliseconds. |
1719386834548 |
| resourceGroupId |
string |
The resource group ID. |
rg-xxxx |
Examples
Success response
JSON format
{
"requestId": "8FA9BB94-915B-5299-A694-49FCC7F5DD00",
"code": "Ok",
"message": "success",
"data": {
"pageNumber": 1,
"pageSize": 10,
"totalSize": 10,
"items": [
{
"sourceId": "src-crdddallhtgtria***",
"name": "itemcenter-dev-cluster",
"k8sSourceInfo": {
"clusterId": "c09212180612a42adbed6a940d01d***"
},
"nacosSourceInfo": {
"instanceId": "mse_prepaid_public_cn-wuf***",
"clusterId": "mse-3353***",
"address": "mse-3353***-nacos-ans.mse.aliyuncs.com:8848"
},
"associationStatus": "ASSOCIATED",
"associationReason": "Association completed",
"createTimestamp": 1719386834548,
"updateTimestamp": 1719386834548,
"resourceGroupId": "rg-xxxx"
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.