Configuring the director's networks and azs

Configuring the director's networks and azs
Configuring the director's networks and azs

Set the network and singleton availability zone for the bosh director. You cannot use this endpoint if the director is already deployed.

The parameters must match the names of an already created network and availability zone. The network must have at least one subnet on the singleton availability zone and cannot be a service network.

On Azure, when the Availability Mode is Sets, the singleton_availability_zone key is not required, and will be ignored.

Request
URI
PUT
https://{opsmanager-installation}/api/v0/staged/director/network_and_az
COPY
Request Body
PutNetworkAndAZ of type(s) application/json
Required
{
    "network_and_az": {
        "network": {
            "name": "string"
        },
        "singleton_availability_zone": {
            "name": "string"
        }
    }
}
network_and_az
Optional

network_and_az

Responses
200

OK

Returns EmptyResponse of type(s) application/json
Operation doesn't return any data structure

400

Setup is not completed

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

errors


401

Unauthorized

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

errors


403

Forbidden

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

errors


422

Unprocessable Content

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

errors


Code Samples
COPY
                    curl -X PUT -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/api/v0/staged/director/network_and_az