Configuring A product's networks and azs

Configuring A product's networks and azs
Configuring a product's networks and azs

Assigns AZs and networks for a staged product.

Subnets in the specified network must align with the specified availability zones.

On Azure, when the Availability Mode is Sets, the singleton_availability_zone and other_availability_zones keys are not required, and will be ignored. The network name must match the name of an already created network.

Request
URI
PUT
https://{opsmanager-installation}/api/v0/staged/products/{product_guid}/networks_and_azs
COPY
Path Parameters
string
product_guid
Required

The guid of the product


Request Body
ProductNetworkAndAZs of type(s) application/json
Optional
{
    "networks_and_azs": {
        "network": {
            "name": "string"
        },
        "service_network": {}
    }
}
networks_and_azs
Optional

networks_and_azs

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


404

Product not found

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

errors


422

Unprocessable Content

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

errors


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