Statistic and Management/Model Platform Config APIs
POSTModel Platform Config APIsSince 5.1.8SynchronousAuth Required
AddModelCenter
AddModelCenter
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
nameStringRequiredResource name
urlStringRequiredURL of the model storage
descriptionStringDetailed description of the resource
parametersStringAdditional parameters of the model center
systemTagsListSystem tag
Responses
Endpoint
POST/zstack/v1/ai/model-centers
/zstack/v1/ai/model-centers
Request Example
curl -X POST 'http://{host}/zstack/v1/ai/model-centers' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"name":"<name>","url":"<url>","description":"<description>","parameters":"<parameters>","systemTags":["<systemTags>"],"userTags":["<userTags>"],"managementIp":"<managementIp>","managementPort":1,"storageNetworkUuid":"<storageNetworkUuid>","serviceNetworkUuid":"<serviceNetworkUuid>","containerRegistry":"<containerRegistry>","containerNetwork":"<containerNetwork>","resourceUuid":"<resourceUuid>","tagUuids":["<tagUuids>"],"containerStorageNetwork":"<containerStorageNetwork>","zoneUuid":"<zoneUuid>"}'
Response Example
200{ "inventory": { "description": "", "managementPort": 0 } }Change History
This API has no change history records yet.
