Triggering An Apply Change

Triggering An Apply Change
Triggering an Apply Change

Transmits pending changes to BOSH.

Submitting a POST request to this endpoint is equivalent to triggering the Apply Changes button in the GUI.

When deploy_products is an array of product guids ["my-guid", "another-guid"], it will deploy the director tile and all passed-in products. If there are any tiles being deployed, which are dependent on tiles with staged changes not being deployed, there will be validation errors and the deploy will not occur.

Request
URI
POST
https://{opsmanager-installation}/api/v0/installations
COPY
Request Body
PostInstallations of type(s) application/json
Optional
{
    "force_latest_variables": false,
    "ignore_warnings": false,
    "deploy_products": [
        "string"
    ],
    "errands": {},
    "rotate_certs": {
        "non_configurable_leaf": false
    }
}
boolean
force_latest_variables
Optional

When true, the BOSH deploy will use the --force-latest-variables CLI flag. This will force any certificates or other BOSH variables to use their latest version even when a stemcell is not being upgraded for the deployment.

boolean
ignore_warnings
Optional

When true, bypass warnings from ignorable verifiers. (Optional)

deploy_products
Optional

Apply changes only for the specified products. Will always apply changes for the BOSH Director. Can either be an array of product guids or a string with the value "all" or "none".

object
errands
Optional

Hash of products with their enabled errands. (Optional)

Post Deploy errands support the following states:

  • true
  • false
  • "default"

Pre Delete errands support the following states:

  • true
  • false
  • "default"
object
rotate_certs
Optional

Options for rotating certificates during Apply Changes.

Responses
200

OK

Returns Install of type(s) application/json
{
    "install": {
        "id": "number"
    }
}
install
Optional

install


400

Setup is not completed or bad request

OneOf
This class returns at least one of the following:
{
    "errors": {
        "errors": [
            "string"
        ]
    }
}

401

Unauthorized

Returns UnauthorizedResponse of type(s) application/json
{
    "errors": {
        "errors": [
            "string"
        ]
    }
}

403

Forbidden

Returns ForbiddenResponse of type(s) application/json
{
    "errors": {
        "errors": [
            "string"
        ]
    }
}

422

Unprocessable Content

Returns InstallationsErrorResponse of type(s) application/json
{
    "errors": [
        "string"
    ],
    "warnings": [
        "string"
    ],
    "deployment_errors": {
        "products": [
            {
                "identifier": "string",
                "complete": false,
                "network": {
                    "assigned": false
                },
                "availability_zone": {
                    "assigned": false
                },
                "stemcells": [
                    {
                        "assigned": false,
                        "required_stemcell_version": "string",
                        "required_stemcell_os": "string"
                    }
                ],
                "properties": [
                    {
                        "name": "string",
                        "type": "string",
                        "errors": [
                            "string"
                        ],
                        "records": [
                            {
                                "index": "number",
                                "errors": [
                                    {
                                        "name": "string",
                                        "type": "string",
                                        "errors": [
                                            "string"
                                        ]
                                    }
                                ]
                            }
                        ]
                    }
                ],
                "resources": {
                    "jobs": [
                        {
                            "identifier": "string",
                            "guid": "string",
                            "error": [
                                "string"
                            ]
                        }
                    ]
                },
                "verifiers": [
                    {
                        "type": "string",
                        "ignorable": false,
                        "errors": [
                            "string"
                        ]
                    }
                ]
            }
        ]
    }
}
array of string
errors
Required

errors

array of string
warnings
Optional

warnings

deployment_errors
Optional

deployment_errors


Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '}' https://{api_host}/api/v0/installations