This API is used to query the authentication information of a development environment instance, which is used to open the development environment instance.
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. |
None
The following shows how to obtain the authentication token of instance 6fa459ea-ee8a-3ca4-894e-db77e160355e.
GET https://endpoint/v1/{project_id}/demanager/instances/6fa459ea-ee8a-3ca4-894e-db77e160355e/token
{ "token": "7211546f57cd432790643bb6612da19d" }
{ "error_message": "The instance does not exist.", "error_code": "ModelArts.6309" }
For details about the status code, see Status Code.