Subnetworks

Update subnetwork

This method updates a subnetwork. Only the subnetwork name can be updated.

put/v1/subnetworks/{subnetworkId}

Request

  • Base URL
    https://api.emma.ms/external
  • Auth
    HTTP bearer

Path parameters

subnetworkIdstring required

Subnetwork ID

Request body

namestring

Subnetwork name

Example request

{
  "name": "subnetwork-name"
}

Response

Successful operation

idstring

Subnetwork id

namestring

Subnetwork name

dataCenterIdstring

ID of the cloud provider's data center

subnetworkPrefixstring

The prefix for the subnetwork IP address range

subnetworkSizeinteger

The net mask size for the subnetwork

statusstring

Subnetwork status

Example response

{
  "id": "d6ffb3db-4940-4979-94f3-68b11a018d98",
  "name": "default",
  "dataCenterId": "gcore-frankfurt",
  "subnetworkPrefix": "192.168.0.0",
  "subnetworkSize": 24,
  "resources": [
    {
      "id": 22,
      "resourceType": "vm"
    }
  ],
  "status": "active"
}

Changes

No recorded changes to this operation across all 1 revision of this API.