Create CockroachDB Instance
Select
SaaS
Customer Managed
This API is used to create a cockroachDB instance
- application/json
Request Body
createPseudoClientRequest object
Responses
- 200
- 400
- 401
OK
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
processinginstructioninfo object
response object
{
"processinginstructioninfo": {
"attributes": [
{
"name": "string",
"value": "string"
}
]
},
"response": {
"errorCode": 0,
"entity": {
"clientId": 0,
"clientName": "string",
"instanceId": 0,
"_type_": 0
}
}
}
{
"processinginstructioninfo": {
"attributes": [
{
"name": "exitval",
"value": "0"
}
]
},
"response": {
"errorCode": 0,
"entity": {
"clientId": 341,
"clientName": "",
"instanceId": 285,
"_type_": 3
}
}
}
Bad Request
- application/json
- Schema
- Example 1
Schema
- string
Request body is empty or format is invalid
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
- errorMessage string
- errorCode integer
{
"errorMessage": "string",
"errorCode": 0
}
{
"errorMessage": "Access Denied",
"errorCode": 5
}
POST /client/cockroachdb
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Client/CockroachDB' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"createPseudoClientRequest": {
"clientInfo": {
"clientType": 0,
"plan": {
"planName": "string"
},
"subclientInfo": {
"useLocalContent": true,
"contentOperationType": 0,
"content": "string",
"fsSubClientProp": {
"useGlobalFilters": "string"
}
},
"distributedClusterInstanceProperties": {
"clusterType": 0,
"opType": 0,
"instance": {
"instanceId": 0,
"instanceName": "string",
"clientName": "string",
"applicationId": 64
},
"clusterConfig": {
"cockroachdbConfig": {
"port": 0,
"sslRootCert": "string",
"sslCert": "string",
"sslKey": "string",
"user": {
"userName": "string",
"password": "string"
},
"dbHost": "string",
"dbCredentials": {
"credentialId": 0,
"credentialName": "string"
},
"staging": {
"stagingType": 0,
"stagingPath": "string",
"serviceHost": "string",
"instanceType": 0,
"cloudURL": "string",
"stagingCredentials": {
"credentialId": 0,
"credentialName": "string"
}
}
}
},
"dataAccessNodes": {
"dataAccessNodes": [
{
"hostName": "string",
"clientId": 0,
"clientName": "string",
"displayName": "string",
"selected": true
}
]
}
}
},
"entity": {
"clientName": "string"
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Client/CockroachDB' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"createPseudoClientRequest": {
"clientInfo": {
"clientType": 0,
"plan": {
"planName": "string"
},
"subclientInfo": {
"useLocalContent": true,
"contentOperationType": 0,
"content": "string",
"fsSubClientProp": {
"useGlobalFilters": "string"
}
},
"distributedClusterInstanceProperties": {
"clusterType": 0,
"opType": 0,
"instance": {
"instanceId": 0,
"instanceName": "string",
"clientName": "string",
"applicationId": 64
},
"clusterConfig": {
"cockroachdbConfig": {
"port": 0,
"sslRootCert": "string",
"sslCert": "string",
"sslKey": "string",
"user": {
"userName": "string",
"password": "string"
},
"dbHost": "string",
"dbCredentials": {
"credentialId": 0,
"credentialName": "string"
},
"staging": {
"stagingType": 0,
"stagingPath": "string",
"serviceHost": "string",
"instanceType": 0,
"cloudURL": "string",
"stagingCredentials": {
"credentialId": 0,
"credentialName": "string"
}
}
}
},
"dataAccessNodes": {
"dataAccessNodes": [
{
"hostName": "string",
"clientId": 0,
"clientName": "string",
"displayName": "string",
"selected": true
}
]
}
}
},
"entity": {
"clientName": "string"
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Client/CockroachDB' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"createPseudoClientRequest": {
"clientInfo": {
"clientType": 0,
"plan": {
"planName": "string"
},
"subclientInfo": {
"useLocalContent": true,
"contentOperationType": 0,
"content": "string",
"fsSubClientProp": {
"useGlobalFilters": "string"
}
},
"distributedClusterInstanceProperties": {
"clusterType": 0,
"opType": 0,
"instance": {
"instanceId": 0,
"instanceName": "string",
"clientName": "string",
"applicationId": 64
},
"clusterConfig": {
"cockroachdbConfig": {
"port": 0,
"sslRootCert": "string",
"sslCert": "string",
"sslKey": "string",
"user": {
"userName": "string",
"password": "string"
},
"dbHost": "string",
"dbCredentials": {
"credentialId": 0,
"credentialName": "string"
},
"staging": {
"stagingType": 0,
"stagingPath": "string",
"serviceHost": "string",
"instanceType": 0,
"cloudURL": "string",
"stagingCredentials": {
"credentialId": 0,
"credentialName": "string"
}
}
}
},
"dataAccessNodes": {
"dataAccessNodes": [
{
"hostName": "string",
"clientId": 0,
"clientName": "string",
"displayName": "string",
"selected": true
}
]
}
}
},
"entity": {
"clientName": "string"
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Client/CockroachDB' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"createPseudoClientRequest": {
"clientInfo": {
"clientType": 0,
"plan": {
"planName": "string"
},
"subclientInfo": {
"useLocalContent": true,
"contentOperationType": 0,
"content": "string",
"fsSubClientProp": {
"useGlobalFilters": "string"
}
},
"distributedClusterInstanceProperties": {
"clusterType": 0,
"opType": 0,
"instance": {
"instanceId": 0,
"instanceName": "string",
"clientName": "string",
"applicationId": 64
},
"clusterConfig": {
"cockroachdbConfig": {
"port": 0,
"sslRootCert": "string",
"sslCert": "string",
"sslKey": "string",
"user": {
"userName": "string",
"password": "string"
},
"dbHost": "string",
"dbCredentials": {
"credentialId": 0,
"credentialName": "string"
},
"staging": {
"stagingType": 0,
"stagingPath": "string",
"serviceHost": "string",
"instanceType": 0,
"cloudURL": "string",
"stagingCredentials": {
"credentialId": 0,
"credentialName": "string"
}
}
}
},
"dataAccessNodes": {
"dataAccessNodes": [
{
"hostName": "string",
"clientId": 0,
"clientName": "string",
"displayName": "string",
"selected": true
}
]
}
}
},
"entity": {
"clientName": "string"
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Client/CockroachDB' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"createPseudoClientRequest": {
"clientInfo": {
"clientType": 0,
"plan": {
"planName": "string"
},
"subclientInfo": {
"useLocalContent": true,
"contentOperationType": 0,
"content": "string",
"fsSubClientProp": {
"useGlobalFilters": "string"
}
},
"distributedClusterInstanceProperties": {
"clusterType": 0,
"opType": 0,
"instance": {
"instanceId": 0,
"instanceName": "string",
"clientName": "string",
"applicationId": 64
},
"clusterConfig": {
"cockroachdbConfig": {
"port": 0,
"sslRootCert": "string",
"sslCert": "string",
"sslKey": "string",
"user": {
"userName": "string",
"password": "string"
},
"dbHost": "string",
"dbCredentials": {
"credentialId": 0,
"credentialName": "string"
},
"staging": {
"stagingType": 0,
"stagingPath": "string",
"serviceHost": "string",
"instanceType": 0,
"cloudURL": "string",
"stagingCredentials": {
"credentialId": 0,
"credentialName": "string"
}
}
}
},
"dataAccessNodes": {
"dataAccessNodes": [
{
"hostName": "string",
"clientId": 0,
"clientName": "string",
"displayName": "string",
"selected": true
}
]
}
}
},
"entity": {
"clientName": "string"
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Client/CockroachDB' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"createPseudoClientRequest": {
"clientInfo": {
"clientType": 0,
"plan": {
"planName": "string"
},
"subclientInfo": {
"useLocalContent": true,
"contentOperationType": 0,
"content": "string",
"fsSubClientProp": {
"useGlobalFilters": "string"
}
},
"distributedClusterInstanceProperties": {
"clusterType": 0,
"opType": 0,
"instance": {
"instanceId": 0,
"instanceName": "string",
"clientName": "string",
"applicationId": 64
},
"clusterConfig": {
"cockroachdbConfig": {
"port": 0,
"sslRootCert": "string",
"sslCert": "string",
"sslKey": "string",
"user": {
"userName": "string",
"password": "string"
},
"dbHost": "string",
"dbCredentials": {
"credentialId": 0,
"credentialName": "string"
},
"staging": {
"stagingType": 0,
"stagingPath": "string",
"serviceHost": "string",
"instanceType": 0,
"cloudURL": "string",
"stagingCredentials": {
"credentialId": 0,
"credentialName": "string"
}
}
}
},
"dataAccessNodes": {
"dataAccessNodes": [
{
"hostName": "string",
"clientId": 0,
"clientName": "string",
"displayName": "string",
"selected": true
}
]
}
}
},
"entity": {
"clientName": "string"
}
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/Client/CockroachDB' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"createPseudoClientRequest": {
"clientInfo": {
"clientType": 0,
"plan": {
"planName": "string"
},
"subclientInfo": {
"useLocalContent": true,
"contentOperationType": 0,
"content": "string",
"fsSubClientProp": {
"useGlobalFilters": "string"
}
},
"distributedClusterInstanceProperties": {
"clusterType": 0,
"opType": 0,
"instance": {
"instanceId": 0,
"instanceName": "string",
"clientName": "string",
"applicationId": 64
},
"clusterConfig": {
"cockroachdbConfig": {
"port": 0,
"sslRootCert": "string",
"sslCert": "string",
"sslKey": "string",
"user": {
"userName": "string",
"password": "string"
},
"dbHost": "string",
"dbCredentials": {
"credentialId": 0,
"credentialName": "string"
},
"staging": {
"stagingType": 0,
"stagingPath": "string",
"serviceHost": "string",
"instanceType": 0,
"cloudURL": "string",
"stagingCredentials": {
"credentialId": 0,
"credentialName": "string"
}
}
}
},
"dataAccessNodes": {
"dataAccessNodes": [
{
"hostName": "string",
"clientId": 0,
"clientName": "string",
"displayName": "string",
"selected": true
}
]
}
}
},
"entity": {
"clientName": "string"
}
}
}'