Add HBase App
This API is used to create HBase app data protection
Path Parameters
- instanceid string required
- application/json
Request Body
instanceProperties object required
distributedClusterInstanceProperties object required
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": {
"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
- 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 /instance/:instanceid
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X POST 'https://localhost/commandcenter/api/Instance/:instanceid' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"instanceProperties": {
"instance": {
"instanceId": 0,
"applicationId": 0,
"clientId": 0
}
},
"distributedClusterInstanceProperties": {
"clusterType": 2,
"opType": 2,
"instance": {
"instanceId": 0,
"instanceName": "string"
},
"clusterConfig": {
"hadoopConfig": {
"hadoopApps": {
"appConfigs": {
"appConfigs": [
{
"hadoopAppType": 0,
"hBaseConfig": {
"hbaseuser": "string",
"stagingLocation": "string",
"backupRootDir": "string"
}
}
]
}
}
}
}
}
}'
curl -L -X POST 'https://localhost/commandcenter/api/Instance/:instanceid' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"instanceProperties": {
"instance": {
"instanceId": 0,
"applicationId": 0,
"clientId": 0
}
},
"distributedClusterInstanceProperties": {
"clusterType": 2,
"opType": 2,
"instance": {
"instanceId": 0,
"instanceName": "string"
},
"clusterConfig": {
"hadoopConfig": {
"hadoopApps": {
"appConfigs": {
"appConfigs": [
{
"hadoopAppType": 0,
"hBaseConfig": {
"hbaseuser": "string",
"stagingLocation": "string",
"backupRootDir": "string"
}
}
]
}
}
}
}
}
}'
curl -L -X POST 'https://localhost/commandcenter/api/Instance/:instanceid' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"instanceProperties": {
"instance": {
"instanceId": 0,
"applicationId": 0,
"clientId": 0
}
},
"distributedClusterInstanceProperties": {
"clusterType": 2,
"opType": 2,
"instance": {
"instanceId": 0,
"instanceName": "string"
},
"clusterConfig": {
"hadoopConfig": {
"hadoopApps": {
"appConfigs": {
"appConfigs": [
{
"hadoopAppType": 0,
"hBaseConfig": {
"hbaseuser": "string",
"stagingLocation": "string",
"backupRootDir": "string"
}
}
]
}
}
}
}
}
}'
curl -L -X POST 'https://localhost/commandcenter/api/Instance/:instanceid' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"instanceProperties": {
"instance": {
"instanceId": 0,
"applicationId": 0,
"clientId": 0
}
},
"distributedClusterInstanceProperties": {
"clusterType": 2,
"opType": 2,
"instance": {
"instanceId": 0,
"instanceName": "string"
},
"clusterConfig": {
"hadoopConfig": {
"hadoopApps": {
"appConfigs": {
"appConfigs": [
{
"hadoopAppType": 0,
"hBaseConfig": {
"hbaseuser": "string",
"stagingLocation": "string",
"backupRootDir": "string"
}
}
]
}
}
}
}
}
}'
curl -L -X POST 'https://localhost/commandcenter/api/Instance/:instanceid' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"instanceProperties": {
"instance": {
"instanceId": 0,
"applicationId": 0,
"clientId": 0
}
},
"distributedClusterInstanceProperties": {
"clusterType": 2,
"opType": 2,
"instance": {
"instanceId": 0,
"instanceName": "string"
},
"clusterConfig": {
"hadoopConfig": {
"hadoopApps": {
"appConfigs": {
"appConfigs": [
{
"hadoopAppType": 0,
"hBaseConfig": {
"hbaseuser": "string",
"stagingLocation": "string",
"backupRootDir": "string"
}
}
]
}
}
}
}
}
}'
curl -L -X POST 'https://localhost/commandcenter/api/Instance/:instanceid' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"instanceProperties": {
"instance": {
"instanceId": 0,
"applicationId": 0,
"clientId": 0
}
},
"distributedClusterInstanceProperties": {
"clusterType": 2,
"opType": 2,
"instance": {
"instanceId": 0,
"instanceName": "string"
},
"clusterConfig": {
"hadoopConfig": {
"hadoopApps": {
"appConfigs": {
"appConfigs": [
{
"hadoopAppType": 0,
"hBaseConfig": {
"hbaseuser": "string",
"stagingLocation": "string",
"backupRootDir": "string"
}
}
]
}
}
}
}
}
}'
curl -L -X POST 'https://localhost/commandcenter/api/Instance/:instanceid' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"instanceProperties": {
"instance": {
"instanceId": 0,
"applicationId": 0,
"clientId": 0
}
},
"distributedClusterInstanceProperties": {
"clusterType": 2,
"opType": 2,
"instance": {
"instanceId": 0,
"instanceName": "string"
},
"clusterConfig": {
"hadoopConfig": {
"hadoopApps": {
"appConfigs": {
"appConfigs": [
{
"hadoopAppType": 0,
"hBaseConfig": {
"hbaseuser": "string",
"stagingLocation": "string",
"backupRootDir": "string"
}
}
]
}
}
}
}
}
}'