Updating networks for the staged director
Updating networks for the staged director
Replace the collection of networks and subnets.
OpsManager uses GUIDs to match existing objects in the collection. Unmatched networks will be added, matched networks will be updated, and omitted networks will be deleted.
Request
URI
PUT
https://{opsmanager-installation}/api/v0/staged/director/networks
COPY
Request Body
Networks
of type(s)
application/json
Required
{
"icmp_checks_enabled": false,
"networks": [
{
"guid": "string",
"name": "string",
"subnets": [
{
"guid": "string",
"iaas_identifier": "string",
"cidr": "string",
"dns": "string",
"gateway": "string",
"reserved_ip_ranges": "string"
}
]
}
]
}
boolean
icmp_checks_enabled
Optional
icmp_checks_enabled
array of
networks
networks
Optional
networks
Responses
200
OK
Returns
NetworkVerificationErrors
of type(s)
application/json
{
"status": "string",
"verification_errors": [
"string"
]
}
string
status
Optional
status
array of
string
verification_errors
Optional
verification_errors
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/networks