Obtain the configuration parameters of the ModelArts OS service, such as the CIDR block and user resource quota.
You can debug this API through automatic authentication in or use the SDK sample code generated by API Explorer.
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. |
None
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 code. |
error_msg |
String |
Error description. |
None
Status code: 200
OK.
{ "networkCidrs" : [ "192.168.0.0/24", "172.16.31.0/16" ], "networkQuota" : 15, "poolQuota" : 15, "pooHighAvailable" : true }
Status Code |
Description |
---|---|
200 |
OK. |
404 |
Not Found. |
See Error Codes.