create_deployment_revision
Pushes a new revision onto a deployment from a platform or external pipeline version. Activate the revision separately to serve it.
Instructions
Pushes a new revision onto a deployment, e.g. from a platform pipeline version.
Creating a revision does not serve it automatically; call activate_deployment_revision
to make it the deployment's served revision.
:param deployment_id: ID of the deployment.
:param comment: Comment describing the revision.
:param config_yaml: Inline pipeline configuration YAML, for an externally pushed revision.
:param source_version_id: ID of the source pipeline version, for a platform pipeline revision.
:param source_type: Where the revision's pipeline configuration comes from, "PLATFORM_PIPELINE"
(default) or "EXTERNAL_PIPELINE".
:returns: The newly created revision or error message.
All parameters accept object references in the form @obj_id or @obj_id.path.to.value.
Examples::
# Direct call with values
create_deployment_revision(data={'key': 'value'}, threshold=10)
# Call with references
create_deployment_revision(data='@obj_123', threshold='@obj_456.config.threshold')
# Mixed call
create_deployment_revision(data='@obj_123.items', threshold=10)The output is automatically stored and can be referenced in other functions.
Returns a formatted preview with an object ID (e.g., @obj_123).
Use the object store tools in combination with the object ID to view nested properties of the object.
Use the returned object ID to pass this result to other functions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comment | Yes | ||
| config_yaml | No | ||
| source_type | No | PLATFORM_PIPELINE | |
| deployment_id | Yes | ||
| source_version_id | No |