Resource Center/CloudFormation Operations
POSTCloudFormation OperationsSince 2.5.0SynchronousAuth Required
PreviewResourceStack
PreviewResourceStack
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
paramsObjectRequiredRequest body parameter object.
typeStringOptional.
templateContentStringOptional. The template content.
uuidStringOptional. The template UUID.
parametersStringOptional. The parameters in the stack. The parameters are JSON strings.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
POST/zstack/v1/cloudformation/stack/preview
/zstack/v1/cloudformation/stack/preview
Request Example
curl -X POST 'http://{host}/zstack/v1/cloudformation/stack/preview' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"params":{"type":"<type>","templateContent":"<templateContent>","uuid":"<uuid>","parameters":"<parameters>"},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "preview": { "actions": [ { "resourceName": "WebServer1", "actionName": "org.zstack.sdk.CreateVmInstanceAction", "round": 0.0, "inDegree": [], "actions": { "name": "vm", "instanceOfferingUuid": "f524c10459ce32f0b70a1c0878769b2d", "imageUuid": "66296cfc1c6d36fa8405788cb2fb85a0", "l3NetworkUuids": [ "e99fce59e6463758aef45bdfc5579203" ], "strategy": "InstantStart", "timeout": -1.0, "pollingInterval": -1.0 } } ], "conditions": { "WithDataVolume": false } } }Change History
This API has no change history records yet.
