Test a Yaml paylod against a restore modfier
Select
SaaS
Customer Managed
Test a Yaml paylod against a restore modfier
Path Parameters
- clusterId int32 required
Id of the cluster whose modifier needs to be tested
- application/json
Request Body
- resourceYAML string
Payload(Yaml) to test against the restore modifiers.
- restoreModifierListYAML string
YAML of Restore Modifier(s) to be tested.
Responses
- 200
Success
- application/json
- Schema
- Example (from schema)
Schema
- outputYAML string
Output YAML
resp object
{
"outputYAML": "string",
"resp": {
"errorMessage": "string",
"errorCode": 0
}
}
POST /v4/kubernetes/:clusterid/modifier/test
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/Kubernetes/:clusterId/Modifier/Test' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"resourceYAML": "string",
"restoreModifierListYAML": "string"
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/Kubernetes/:clusterId/Modifier/Test' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"resourceYAML": "string",
"restoreModifierListYAML": "string"
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/Kubernetes/:clusterId/Modifier/Test' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"resourceYAML": "string",
"restoreModifierListYAML": "string"
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/Kubernetes/:clusterId/Modifier/Test' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"resourceYAML": "string",
"restoreModifierListYAML": "string"
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/Kubernetes/:clusterId/Modifier/Test' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"resourceYAML": "string",
"restoreModifierListYAML": "string"
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/Kubernetes/:clusterId/Modifier/Test' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"resourceYAML": "string",
"restoreModifierListYAML": "string"
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/Kubernetes/:clusterId/Modifier/Test' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"resourceYAML": "string",
"restoreModifierListYAML": "string"
}'