Body
application/json
Response
successful
The response is of type object[]
.
curl --request POST \
--url https://console.gmicloud.com/api/v1/containers \
--header 'Content-Type: application/json' \
--data '{
"count": 2,
"idc": "<string>",
"product": "<string>",
"envs": [
{
"name": "access_token",
"value": "kalsk113=="
}
],
"name": "LLM training",
"ports": [],
"storages": [
{
"containerPath": "/workspace",
"id": "550e8400-e29b-41d4-a716-446655440000"
}
],
"templateId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}'
[
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
create Container under default namespace
curl --request POST \
--url https://console.gmicloud.com/api/v1/containers \
--header 'Content-Type: application/json' \
--data '{
"count": 2,
"idc": "<string>",
"product": "<string>",
"envs": [
{
"name": "access_token",
"value": "kalsk113=="
}
],
"name": "LLM training",
"ports": [],
"storages": [
{
"containerPath": "/workspace",
"id": "550e8400-e29b-41d4-a716-446655440000"
}
],
"templateId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}'
[
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
successful
The response is of type object[]
.