move doc sources to other location Reviewed-by: OpenTelekomCloud Bot <None>
7.9 KiB
Querying the Authentication Information of a Development Environment Instance
Function
This API is used to query the authentication information of a development environment instance, which is used to open the development environment instance.
URI
GET /v1/{project_id}/demanager/instances/{instance_id}/token
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID |
instance_id |
Yes |
String |
Instance ID It is the ID of the development environment instance you create. The instance ID is contained in the response code after the instance has been created. For details, see Creating a Development Environment Instance. If the development environment instance is created on the ModelArts management console, you can view the ID of the instance on the ModelArts management console. |
Request Body
None
Response Body
Samples
The following shows how to obtain the authentication token of instance 6fa459ea-ee8a-3ca4-894e-db77e160355e.
- Sample request
GET https://endpoint/v1/{project_id}/demanager/instances/6fa459ea-ee8a-3ca4-894e-db77e160355e/token
- Successful sample response
{ "token": "7211546f57cd432790643bb6612da19d" }
- Failed sample response
{ "error_message": "The instance does not exist.", "error_code": "ModelArts.6309" }
Status Code
For details about the status code, see Status Code.