Querying Supported Service Deployment Specifications
Function
This API is used to query supported service deployment specifications.
URI
GET /v1/{project_id}/services/specifications
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Project ID. For details about how to obtain the project ID, see Obtaining a Project ID. |
|
is_personal_cluster |
No |
boolean |
Whether to query the service deployment specifications supported by dedicated resource pool. The default value is false. |
|
infer_type |
No |
string |
Inference mode. The default value is real-time. The value can be real-time, batch, or edge. |
Request Body
None
Response Body
|
Parameter |
Type |
Description |
|---|---|---|
|
specifications |
specification array |
Supported service deployment specifications. For details, see Table 3. |
|
Parameter |
Type |
Description |
|---|---|---|
|
specification |
string |
Unique specifications ID |
|
billing_spec |
string |
Unique ID of the billing specifications |
|
spec_status |
string |
Specifications status
|
|
is_open |
boolean |
Whether to enable the specifications. The default value is true. If this parameter is set to false, you need to submit a service ticket to apply for the specifications. |
|
source_type |
string |
Type of the model to which the specifications apply.
|
|
is_free |
boolean |
Whether the flavor is free of charge. The value true indicates that the flavor is free of charge. |
|
over_quota |
boolean |
Whether the quota exceeds the upper limit. The value true indicates that the quota exceeds the upper limit. |
|
extend_params |
integer |
Billing item |
Samples
- Sample request
GET https://endpoint/v1/{project_id}/services/specifications
- Sample response
{ "specifications": [ { "specification": "modelarts.vm.cpu.2u", "billing_spec": "modelarts.vm.cpu.2u", "is_open": true, "spec_status": "normal", "is_free": false, "over_quota": false, "extend_params": 1 }, { "specification": "modelarts.vm.gpu.p4", "billing_spec": "modelarts.vm.gpu.p4", "is_open": true, "spec_status": "normal", "is_free": false, "over_quota": false, "extend_params": 1 }, { "specification": "modelarts.vm.high.p3", "billing_spec": "modelarts.vm.high.p3", "is_open": true, "source_type": "auto", "spec_status": "normal", "is_free": false, "over_quota": false, "extend_params": 1 }, { "specification": "modelarts.vm.high.p2", "billing_spec": "modelarts.vm.high.p2", "is_open": true, "source_type": "auto", "spec_status": "normal", "is_free": false, "over_quota": false, "extend_params": 1 }, { "specification": "modelarts.vm.ai1.a310", "billing_spec": "modelarts.vm.ai1.a310", "is_open": false, "spec_status": "normal", "is_free": false, "over_quota": false, "extend_params": 1 } ] }
Status Code
For details about the status code, see Table 1.
Last Article: Deleting a Service
Next Article: Querying Dedicated Resource Pools
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.