Querying OS Configuration Parameters
Function
Obtain the configuration parameters of the ModelArts OS service, such as the network segment and user resource quota.
Debugging
You can debug this API through automatic authentication in API Explorer or use the SDK sample code generated by API Explorer.
URI
GET /v1/{project_id}/os-user-config
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. For details, see Obtaining a Project ID and Name. |
Request Parameters
None
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
networkCidrs |
Array of strings |
Network configuration item. |
networkQuota |
Integer |
Specifies the number of networks that a user can create. |
poolQuota |
Integer |
Specifies the quota for the number of resource pools that can be created by a user. |
pooHighAvailable |
Boolean |
Specifies whether HA resource pools can be created in the current environment or site. |
Status code: 404
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error codes of ModelArts. |
error_msg |
String |
Error message. |
Example Requests
GET https://{endpoint}/v1/{project_id}/os-user-config
Example Responses
Status code: 200
OK.
{ "networkCidrs" : [ "192.168.0.0/24", "172.16.31.0/16" ], "networkQuota" : 15, "poolQuota" : 15, "pooHighAvailable" : true }
Status Codes
Status Code |
Description |
---|---|
200 |
OK. |
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