Update the YugabyteDB instance properties
This operation is used to update the YugabyteDB Instance properties
Path Parameters
- instanceId integer required
Id of the YugabyteDB instance to be updates
- application/json
Request Body required
Request Body
instanceProperties object
Responses
- 200
- 400
- 401
OK
- application/json
- Schema
- Example (from schema)
- Example1
Schema
processinginstructioninfo object
response object[]
{
"processinginstructioninfo": {
"attributes": [
{
"name": "string",
"value": "string"
}
]
},
"response": [
{
"warningCode": 0,
"errorCode": 0,
"warningMessage": "string",
"entity": {
"subclientId": 0,
"clientId": 0,
"instanceName": "string",
"instanceId": 0,
"_type_": 0
}
}
]
}
{
"processinginstructioninfo": {
"attributes": [
{
"name": "exitval",
"value": "0"
}
]
},
"response": [
{
"warningCode": 0,
"errorCode": 0,
"warningMessage": "",
"entity": {
"subclientId": 0,
"clientId": 0,
"instanceName": "",
"instanceId": 0,
"_type_": 0
}
}
]
}
Bad Request
- application/json
- application/xml
- Schema
- Example
Schema
- string
Request body is empty or format is invalid
- Schema
- Example (from schema)
Schema
- object
<root/>
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example
Schema
- errorMessage string
- errorCode integer
{
"errorMessage": "string",
"errorCode": 0
}
{
"errorMessage": "Access Denied",
"errorCode": 5
}
POST /instance/:instanceid
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X POST 'https://localhost/webconsole/api/Instance/:instanceId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"instanceProperties": {
"excludeFromSLA": true,
"instance": {
"instanceId": 0,
"clientId": 0,
"applicationId": 64
},
"distributedClusterInstance": {
"clusterType": 0,
"opType": 0,
"instance": {
"instanceName": "string",
"instanceId": 0
},
"clusterConfig": {
"yugabytedbConfig": {
"dbHost": "string",
"customerConfig": {
"name": "string",
"uuid": "string"
},
"universe": {
"name": "string",
"uuid": "string"
},
"customer": {
"name": "string",
"uuid": "string"
}
},
"config": {
"staging": {
"stagingType": 0,
"serviceHost": "string",
"cloudURL": "string",
"recordType": 0,
"instanceType": 0,
"stagingPath": "string",
"stagingCredentials": {
"credentialId": 0,
"credentialName": "string",
"recordType": 0,
"description": "string",
"selected": true
}
}
}
},
"dataAccessNodes": {
"dataAccessNodes": [
{
"hostName": "string",
"clientId": 0,
"clientName": "string",
"displayName": "string"
}
]
}
}
}
}'
curl -L -X POST 'https://localhost/webconsole/api/Instance/:instanceId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"instanceProperties": {
"excludeFromSLA": true,
"instance": {
"instanceId": 0,
"clientId": 0,
"applicationId": 64
},
"distributedClusterInstance": {
"clusterType": 0,
"opType": 0,
"instance": {
"instanceName": "string",
"instanceId": 0
},
"clusterConfig": {
"yugabytedbConfig": {
"dbHost": "string",
"customerConfig": {
"name": "string",
"uuid": "string"
},
"universe": {
"name": "string",
"uuid": "string"
},
"customer": {
"name": "string",
"uuid": "string"
}
},
"config": {
"staging": {
"stagingType": 0,
"serviceHost": "string",
"cloudURL": "string",
"recordType": 0,
"instanceType": 0,
"stagingPath": "string",
"stagingCredentials": {
"credentialId": 0,
"credentialName": "string",
"recordType": 0,
"description": "string",
"selected": true
}
}
}
},
"dataAccessNodes": {
"dataAccessNodes": [
{
"hostName": "string",
"clientId": 0,
"clientName": "string",
"displayName": "string"
}
]
}
}
}
}'
curl -L -X POST 'https://localhost/webconsole/api/Instance/:instanceId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"instanceProperties": {
"excludeFromSLA": true,
"instance": {
"instanceId": 0,
"clientId": 0,
"applicationId": 64
},
"distributedClusterInstance": {
"clusterType": 0,
"opType": 0,
"instance": {
"instanceName": "string",
"instanceId": 0
},
"clusterConfig": {
"yugabytedbConfig": {
"dbHost": "string",
"customerConfig": {
"name": "string",
"uuid": "string"
},
"universe": {
"name": "string",
"uuid": "string"
},
"customer": {
"name": "string",
"uuid": "string"
}
},
"config": {
"staging": {
"stagingType": 0,
"serviceHost": "string",
"cloudURL": "string",
"recordType": 0,
"instanceType": 0,
"stagingPath": "string",
"stagingCredentials": {
"credentialId": 0,
"credentialName": "string",
"recordType": 0,
"description": "string",
"selected": true
}
}
}
},
"dataAccessNodes": {
"dataAccessNodes": [
{
"hostName": "string",
"clientId": 0,
"clientName": "string",
"displayName": "string"
}
]
}
}
}
}'
curl -L -X POST 'https://localhost/webconsole/api/Instance/:instanceId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"instanceProperties": {
"excludeFromSLA": true,
"instance": {
"instanceId": 0,
"clientId": 0,
"applicationId": 64
},
"distributedClusterInstance": {
"clusterType": 0,
"opType": 0,
"instance": {
"instanceName": "string",
"instanceId": 0
},
"clusterConfig": {
"yugabytedbConfig": {
"dbHost": "string",
"customerConfig": {
"name": "string",
"uuid": "string"
},
"universe": {
"name": "string",
"uuid": "string"
},
"customer": {
"name": "string",
"uuid": "string"
}
},
"config": {
"staging": {
"stagingType": 0,
"serviceHost": "string",
"cloudURL": "string",
"recordType": 0,
"instanceType": 0,
"stagingPath": "string",
"stagingCredentials": {
"credentialId": 0,
"credentialName": "string",
"recordType": 0,
"description": "string",
"selected": true
}
}
}
},
"dataAccessNodes": {
"dataAccessNodes": [
{
"hostName": "string",
"clientId": 0,
"clientName": "string",
"displayName": "string"
}
]
}
}
}
}'
curl -L -X POST 'https://localhost/webconsole/api/Instance/:instanceId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"instanceProperties": {
"excludeFromSLA": true,
"instance": {
"instanceId": 0,
"clientId": 0,
"applicationId": 64
},
"distributedClusterInstance": {
"clusterType": 0,
"opType": 0,
"instance": {
"instanceName": "string",
"instanceId": 0
},
"clusterConfig": {
"yugabytedbConfig": {
"dbHost": "string",
"customerConfig": {
"name": "string",
"uuid": "string"
},
"universe": {
"name": "string",
"uuid": "string"
},
"customer": {
"name": "string",
"uuid": "string"
}
},
"config": {
"staging": {
"stagingType": 0,
"serviceHost": "string",
"cloudURL": "string",
"recordType": 0,
"instanceType": 0,
"stagingPath": "string",
"stagingCredentials": {
"credentialId": 0,
"credentialName": "string",
"recordType": 0,
"description": "string",
"selected": true
}
}
}
},
"dataAccessNodes": {
"dataAccessNodes": [
{
"hostName": "string",
"clientId": 0,
"clientName": "string",
"displayName": "string"
}
]
}
}
}
}'
curl -L -X POST 'https://localhost/webconsole/api/Instance/:instanceId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"instanceProperties": {
"excludeFromSLA": true,
"instance": {
"instanceId": 0,
"clientId": 0,
"applicationId": 64
},
"distributedClusterInstance": {
"clusterType": 0,
"opType": 0,
"instance": {
"instanceName": "string",
"instanceId": 0
},
"clusterConfig": {
"yugabytedbConfig": {
"dbHost": "string",
"customerConfig": {
"name": "string",
"uuid": "string"
},
"universe": {
"name": "string",
"uuid": "string"
},
"customer": {
"name": "string",
"uuid": "string"
}
},
"config": {
"staging": {
"stagingType": 0,
"serviceHost": "string",
"cloudURL": "string",
"recordType": 0,
"instanceType": 0,
"stagingPath": "string",
"stagingCredentials": {
"credentialId": 0,
"credentialName": "string",
"recordType": 0,
"description": "string",
"selected": true
}
}
}
},
"dataAccessNodes": {
"dataAccessNodes": [
{
"hostName": "string",
"clientId": 0,
"clientName": "string",
"displayName": "string"
}
]
}
}
}
}'
curl -L -X POST 'https://localhost/webconsole/api/Instance/:instanceId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"instanceProperties": {
"excludeFromSLA": true,
"instance": {
"instanceId": 0,
"clientId": 0,
"applicationId": 64
},
"distributedClusterInstance": {
"clusterType": 0,
"opType": 0,
"instance": {
"instanceName": "string",
"instanceId": 0
},
"clusterConfig": {
"yugabytedbConfig": {
"dbHost": "string",
"customerConfig": {
"name": "string",
"uuid": "string"
},
"universe": {
"name": "string",
"uuid": "string"
},
"customer": {
"name": "string",
"uuid": "string"
}
},
"config": {
"staging": {
"stagingType": 0,
"serviceHost": "string",
"cloudURL": "string",
"recordType": 0,
"instanceType": 0,
"stagingPath": "string",
"stagingCredentials": {
"credentialId": 0,
"credentialName": "string",
"recordType": 0,
"description": "string",
"selected": true
}
}
}
},
"dataAccessNodes": {
"dataAccessNodes": [
{
"hostName": "string",
"clientId": 0,
"clientName": "string",
"displayName": "string"
}
]
}
}
}
}'