Listing Services
Function
This API is used to list all services.
The API can be called using both the global endpoint and region-specific endpoints. For IAM endpoints, see Regions and Endpoints.
Debugging
You can debug this API in API Explorer.
URI
GET /v3/services
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
type |
No |
String |
Service type. |
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 permission requirements). |
Response Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
Object |
Service resource link information. |
|
|
Array of objects |
Service information. |
|
Parameter |
Type |
Description |
|---|---|---|
|
self |
String |
Resource link. |
|
previous |
String |
Previous resource link. If the previous resource link is unavailable, this parameter is set to null. |
|
next |
String |
Next resource link. If the next resource link is unavailable, this parameter is set to null. |
|
Parameter |
Type |
Description |
|---|---|---|
|
name |
String |
Service name. |
|
description |
String |
Description of the service. This parameter is not returned when no service description is registered. |
|
Object |
Service resource link. |
|
|
id |
String |
Service ID. |
|
type |
String |
Service type. |
|
enabled |
Boolean |
Enabling status of the service. |
Example Request
Request for querying a list of services
GET https://iam.myhuaweicloud.com/v3/services
Example Response
Status code: 200
The request is successful.
{
"links": {
"next": null,
"previous": null,
"self": "https://iam.myhuaweicloud.com/v3/services"
},
"services": [
{
"name": "keystone",
"links": {
"next": null,
"previous": null,
"self": "https://iam.myhuaweicloud.com/v3/services/1842ae22353d45a39a1eb89c22f0fe50"
},
"id": "1842ae22353d45a39a1eb89c22f0fe50",
"type": "identity",
"enabled": true
},
{
"name": "iam",
"links": {
"next": null,
"previous": null,
"self": "https://iam.myhuaweicloud.com/v3/services/6cf6e23e00dd49beb13313b024aec598"
},
"id": "6cf6e23e00dd49beb13313b024aec598",
"type": "identity",
"enabled": true
}
]
}
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.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot