POST /v2/costformation/definition/versions
Create a new CloudZero CostFormation Definition version. Ten (10) MB is the general payload size limitation and it cannot be raised. For more information, see the Sample Python CostFormation Script.
Request
- Base URLhttps://api.cloudzero.com
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
If passed, the endpoint will only validate the CloudZero CostFormation definition, and NOT save or publish.
If using namespaced multi-file CloudZero CostFormation, specify the namespace to interact with.
Headers
If passed, any subsequent operation with the same value for this header will return the exact same result. This is true for all responses, i.e. successes and errors.
If passed, the operation executes in the namespace specified by this key. Resource mutations in the namespace last for 1 hour.
Request body multipart/form-data
Response
Successful Operation
Example response
{
"version": {
"version": "3",
"last_updated_by": "api-key-id-abc123",
"uri": "https://example-presigned-url.s3.amazonaws.com/versions/3/definition.cfdl?X-Amz-Signature=abcdef123456"
}
}Changes
No recorded changes to this operation across all 2 revisions of this API.