Obtaining an O&M URL
Function
This API is used to obtain an O&M URL.
Calling Method
For details, see Calling APIs.
URI
GET /v2/{project_id}/cbs/instance/get-om-url
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Project ID. To obtain the value, see Obtaining a Project ID. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
server_id |
Yes |
String |
ID of the server where the CBH instance is deployed. |
|
ip_address |
Yes |
String |
IP address of the server managed by the CBH instance. |
|
host_account_name |
Yes |
String |
Account that the managed server belongs to. |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
User token. You can obtain it by calling the IAM API for obtaining a user token. The token is the value of X-Subject-Token in the response header. For details, see Obtaining a User Token. |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
state |
String |
Link acquisition status.
|
|
description |
String |
Message displayed when the task for obtaining an URL fails. |
|
login_url |
String |
ECS O&M login address |
Status code: 400
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code |
|
error_description |
String |
Incorrect request parameters. |
Status code: 401
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code |
|
error_description |
String |
Failed to verify the token. |
Status code: 403
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code |
|
error_description |
String |
Permissions required. |
Status code: 404
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code |
|
error_description |
String |
Not CBH instances found. |
Example Requests
None
Example Responses
Status code: 200
Get HOST O&M URL Success
{
"state" : "SUCCESS",
"login_url" : "xxxxxx"
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Get HOST O&M URL Success |
|
400 |
Bad Request |
|
401 |
Unauthorized |
|
403 |
Forbidden |
|
404 |
Not Found |
Error Codes
See Error Codes.
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