Create Couchbase Instance
This API is used to create a couchbase instance/pseudoclient
- application/json
Request Body
createPseudoClientRequest object required
Responses
- 200
- 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
}
}
}
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/couchbase
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X POST 'https://localhost/commandcenter/api/Client/Couchbase' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"createPseudoClientRequest": {
"clientInfo": {
"clientType": 29,
"plan": {
"planId": 0,
"planName": "string",
"type": "string",
"selected": true
},
"subclientInfo": {
"useLocalContent": true,
"contentOperationType": 0,
"content": [
{
"path": "string"
}
],
"fsSubClientProp": {
"useGlobalFilters": "USE_CELL_LEVEL_POLICY"
}
},
"distributedClusterInstanceProperties": {
"clusterType": 17,
"opType": 2,
"instance": {
"instanceName": "string",
"clientName": "string",
"applicationId": 64
},
"clusterConfig": {
"couchbaseConfig": {
"port": 0,
"user": {
"userName": "string",
"password": "string"
},
"staging": {
"stagingType": 0,
"stagingPath": "string",
"instanceType": 5,
"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://localhost/commandcenter/api/Client/Couchbase' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"createPseudoClientRequest": {
"clientInfo": {
"clientType": 29,
"plan": {
"planId": 0,
"planName": "string",
"type": "string",
"selected": true
},
"subclientInfo": {
"useLocalContent": true,
"contentOperationType": 0,
"content": [
{
"path": "string"
}
],
"fsSubClientProp": {
"useGlobalFilters": "USE_CELL_LEVEL_POLICY"
}
},
"distributedClusterInstanceProperties": {
"clusterType": 17,
"opType": 2,
"instance": {
"instanceName": "string",
"clientName": "string",
"applicationId": 64
},
"clusterConfig": {
"couchbaseConfig": {
"port": 0,
"user": {
"userName": "string",
"password": "string"
},
"staging": {
"stagingType": 0,
"stagingPath": "string",
"instanceType": 5,
"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://localhost/commandcenter/api/Client/Couchbase' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"createPseudoClientRequest": {
"clientInfo": {
"clientType": 29,
"plan": {
"planId": 0,
"planName": "string",
"type": "string",
"selected": true
},
"subclientInfo": {
"useLocalContent": true,
"contentOperationType": 0,
"content": [
{
"path": "string"
}
],
"fsSubClientProp": {
"useGlobalFilters": "USE_CELL_LEVEL_POLICY"
}
},
"distributedClusterInstanceProperties": {
"clusterType": 17,
"opType": 2,
"instance": {
"instanceName": "string",
"clientName": "string",
"applicationId": 64
},
"clusterConfig": {
"couchbaseConfig": {
"port": 0,
"user": {
"userName": "string",
"password": "string"
},
"staging": {
"stagingType": 0,
"stagingPath": "string",
"instanceType": 5,
"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://localhost/commandcenter/api/Client/Couchbase' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"createPseudoClientRequest": {
"clientInfo": {
"clientType": 29,
"plan": {
"planId": 0,
"planName": "string",
"type": "string",
"selected": true
},
"subclientInfo": {
"useLocalContent": true,
"contentOperationType": 0,
"content": [
{
"path": "string"
}
],
"fsSubClientProp": {
"useGlobalFilters": "USE_CELL_LEVEL_POLICY"
}
},
"distributedClusterInstanceProperties": {
"clusterType": 17,
"opType": 2,
"instance": {
"instanceName": "string",
"clientName": "string",
"applicationId": 64
},
"clusterConfig": {
"couchbaseConfig": {
"port": 0,
"user": {
"userName": "string",
"password": "string"
},
"staging": {
"stagingType": 0,
"stagingPath": "string",
"instanceType": 5,
"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://localhost/commandcenter/api/Client/Couchbase' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"createPseudoClientRequest": {
"clientInfo": {
"clientType": 29,
"plan": {
"planId": 0,
"planName": "string",
"type": "string",
"selected": true
},
"subclientInfo": {
"useLocalContent": true,
"contentOperationType": 0,
"content": [
{
"path": "string"
}
],
"fsSubClientProp": {
"useGlobalFilters": "USE_CELL_LEVEL_POLICY"
}
},
"distributedClusterInstanceProperties": {
"clusterType": 17,
"opType": 2,
"instance": {
"instanceName": "string",
"clientName": "string",
"applicationId": 64
},
"clusterConfig": {
"couchbaseConfig": {
"port": 0,
"user": {
"userName": "string",
"password": "string"
},
"staging": {
"stagingType": 0,
"stagingPath": "string",
"instanceType": 5,
"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://localhost/commandcenter/api/Client/Couchbase' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"createPseudoClientRequest": {
"clientInfo": {
"clientType": 29,
"plan": {
"planId": 0,
"planName": "string",
"type": "string",
"selected": true
},
"subclientInfo": {
"useLocalContent": true,
"contentOperationType": 0,
"content": [
{
"path": "string"
}
],
"fsSubClientProp": {
"useGlobalFilters": "USE_CELL_LEVEL_POLICY"
}
},
"distributedClusterInstanceProperties": {
"clusterType": 17,
"opType": 2,
"instance": {
"instanceName": "string",
"clientName": "string",
"applicationId": 64
},
"clusterConfig": {
"couchbaseConfig": {
"port": 0,
"user": {
"userName": "string",
"password": "string"
},
"staging": {
"stagingType": 0,
"stagingPath": "string",
"instanceType": 5,
"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://localhost/commandcenter/api/Client/Couchbase' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"createPseudoClientRequest": {
"clientInfo": {
"clientType": 29,
"plan": {
"planId": 0,
"planName": "string",
"type": "string",
"selected": true
},
"subclientInfo": {
"useLocalContent": true,
"contentOperationType": 0,
"content": [
{
"path": "string"
}
],
"fsSubClientProp": {
"useGlobalFilters": "USE_CELL_LEVEL_POLICY"
}
},
"distributedClusterInstanceProperties": {
"clusterType": 17,
"opType": 2,
"instance": {
"instanceName": "string",
"clientName": "string",
"applicationId": 64
},
"clusterConfig": {
"couchbaseConfig": {
"port": 0,
"user": {
"userName": "string",
"password": "string"
},
"staging": {
"stagingType": 0,
"stagingPath": "string",
"instanceType": 5,
"cloudURL": "string",
"stagingCredentials": {
"credentialId": 0,
"credentialName": "string"
}
}
}
},
"dataAccessNodes": {
"dataAccessNodes": [
{
"hostName": "string",
"clientId": 0,
"clientName": "string",
"displayName": "string",
"selected": true
}
]
}
}
},
"entity": {
"clientName": "string"
}
}
}'