Configure Backup Client for CosmosDB Instance
Select
SaaS
This API creates a Cosmos Cloud DB Instance on metallic azure.
Cloud DB Content is optional . If not provided all containers in the DB are backed up.
- application/json
Request Body
cloudAccount object required
region object required
plan object required
backupGateways object[]
cloudDBContent object
Responses
- 200
- 500
OK
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
instance object
{
"instance": {
"id": 0,
"name": "string"
}
}
{
"instance": {
"id": 1752,
"name": "SQL API [eastus]"
}
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
- errorMessage string
- errorCode integer
entity object
{
"errorMessage": "string",
"errorCode": 0,
"entity": {
"subclientId": 0,
"clientId": 0,
"instanceName": "string",
"instanceId": 0,
"_type_": 0
}
}
{
"errorMessage": "An instance by this name already exists.",
"errorCode": 3,
"entity": {
"subclientId": 0,
"clientId": 2038,
"instanceName": "sqlami-eastus.0b6ca3d85c3b.database.windows.net",
"instanceId": -1,
"_type_": 0
}
}
POST /v4/azuredb/cosmos/instance
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/azuredb/cosmos/instance' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"cloudAccount": {
"id": 0,
"name": "string"
},
"region": {
"id": 0
},
"plan": {
"id": 0
},
"backupGateways": [
{
"id": 0,
"name": "string"
}
],
"cloudDBContent": {
"children": [
{
"path": "string",
"displayName": "string",
"name": "string",
"type": "string",
"value": "string"
}
]
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/azuredb/cosmos/instance' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"cloudAccount": {
"id": 0,
"name": "string"
},
"region": {
"id": 0
},
"plan": {
"id": 0
},
"backupGateways": [
{
"id": 0,
"name": "string"
}
],
"cloudDBContent": {
"children": [
{
"path": "string",
"displayName": "string",
"name": "string",
"type": "string",
"value": "string"
}
]
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/azuredb/cosmos/instance' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"cloudAccount": {
"id": 0,
"name": "string"
},
"region": {
"id": 0
},
"plan": {
"id": 0
},
"backupGateways": [
{
"id": 0,
"name": "string"
}
],
"cloudDBContent": {
"children": [
{
"path": "string",
"displayName": "string",
"name": "string",
"type": "string",
"value": "string"
}
]
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/azuredb/cosmos/instance' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"cloudAccount": {
"id": 0,
"name": "string"
},
"region": {
"id": 0
},
"plan": {
"id": 0
},
"backupGateways": [
{
"id": 0,
"name": "string"
}
],
"cloudDBContent": {
"children": [
{
"path": "string",
"displayName": "string",
"name": "string",
"type": "string",
"value": "string"
}
]
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/azuredb/cosmos/instance' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"cloudAccount": {
"id": 0,
"name": "string"
},
"region": {
"id": 0
},
"plan": {
"id": 0
},
"backupGateways": [
{
"id": 0,
"name": "string"
}
],
"cloudDBContent": {
"children": [
{
"path": "string",
"displayName": "string",
"name": "string",
"type": "string",
"value": "string"
}
]
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/azuredb/cosmos/instance' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"cloudAccount": {
"id": 0,
"name": "string"
},
"region": {
"id": 0
},
"plan": {
"id": 0
},
"backupGateways": [
{
"id": 0,
"name": "string"
}
],
"cloudDBContent": {
"children": [
{
"path": "string",
"displayName": "string",
"name": "string",
"type": "string",
"value": "string"
}
]
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/azuredb/cosmos/instance' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"cloudAccount": {
"id": 0,
"name": "string"
},
"region": {
"id": 0
},
"plan": {
"id": 0
},
"backupGateways": [
{
"id": 0,
"name": "string"
}
],
"cloudDBContent": {
"children": [
{
"path": "string",
"displayName": "string",
"name": "string",
"type": "string",
"value": "string"
}
]
}
}'