Querying the Access Keys of ModelArts

Function

This API is used to query the access keys of ModelArts.

URI

GET/v1/{project_id}/modelArts/aksk

Table 1 describes the URI parameters.
Table 1 URI parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID, which is used for resource isolation. For details about how to obtain the project ID, see Obtaining a Project ID.

Response

Table 2 describes the response parameters.

Table 2 Response parameters

Parameter

Type

Description

is_success

Boolean

Whether the request is successful

message

String

Response message

error_msg

String

Error message that indicates a request has failed. This parameter is unavailable when a request is successful.

error_code

String

Error code that indicates a request has failed. This parameter is unavailable when a request is successful.

Example

  • Example of a successful response
    {
      "is_success": true,
      "message": "the query was successful"
    }
  • Example of a failed response
    { 
        "is_success": false, 
        "error_code": "res.1006", 
        "error_msg": "The content for the request is invalid." 
    }

Status Code

For details about status codes, see Status Codes.