Querying the Service Catalog
Function
This API is used to query the service catalog corresponding to X-Auth-Token contained in the request.
The API can be called using both the global endpoint and region-specific endpoints.
URI
GET /v3/auth/catalog
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
Content-Type |
Yes |
String |
Fill application/json;charset=utf8 in this field. |
X-Auth-Token |
Yes |
String |
IAM user token (No special permissions are required, but the scope of the token must be project.) |
Response Parameters
Parameter |
Type |
Description |
---|---|---|
Array of objects |
Service catalog information. |
|
Object |
Resource link information. |
Parameter |
Type |
Description |
---|---|---|
Array of objects |
Endpoint information. |
|
id |
String |
Service ID. |
name |
String |
Service name. |
type |
String |
Service type. |
Example Request
Request for querying a service catalog
GET https://iam.myhuaweicloud.eu/v3/auth/catalog
Example Response
Status code: 200
The request is successful.
{ "catalog": [ { "endpoints": [ { "id": "33e1cbdd86d34e89a63cf8ad16a5f49f", "interface": "public", "region": "*", "region_id": "*", "url": "https://iam.myhuaweicloud.eu/v3.0" } ], "id": "100a6a3477f1495286579b819d399e36", "name": "iam", "type": "iam" }, { "endpoints": [ { "id": "6c91faa9890f40b397542561e3d87444", "interface": "public", "region": "*", "region_id": "*", "url": "https://cbc.sample.domain.com/v1.0" } ], "id": "ad7396ee0eea4281a180c4230641b72f", "name": "bss-intlv1", "type": "bss-intlv1" } ], "links": { "self": "https://iam.myhuaweicloud.eu/v3/auth/catalog" } }
Status Codes
Status Code |
Description |
---|---|
200 |
The request is successful. |
400 |
Invalid parameters. |
401 |
Authentication failed. |
403 |
Access denied. |
404 |
The requested resource cannot be found. |
405 |
The method specified in the request is not allowed for the requested resource. |
413 |
The request entity is too large. |
501 |
The API is not available. |
503 |
Service unavailable. |
Error Codes
None
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.