Compute

Create Link

Creates a new network link to connect a compute instance to a subnet. This enables the instance to communicate with other resources within your virtual network infrastructure.

post/compute/v2/thr4/workspaces/{workspaceUUID}/links

Path parameters

workspaceUUIDstring required

UUID of the workspace

Request body

apiVersion'compute/v2' required

Version identifier of the API schema

kind'Link' required

The string value 'Link' that identifies the schema

Example request

{
  "apiVersion": "compute/v2",
  "kind": "Link",
  "metadata": {
    "resourceVersion": "519597875",
    "uid": "00000000-0000-0000-0000-000000000000",
    "workspace": "00000000-0000-0000-0000-000000000000"
  },
  "spec": {
    "forwardableAddresses": [
      {
        "cidr": "192.168.2.0/24",
        "mac": "00:11:22:33:44:55"
      }
    ],
    "ip": "192.168.2.100/24"
  },
  "status": {
    "gatewayIP": "192.168.1.1",
    "mac": "00:11:22:33:44:55"
  }
}

Response

The link was successfully created and is being provisioned. The response contains the complete link details including the assigned unique identifier.

apiVersion'compute/v2' required

Version identifier of the API schema

kind'Link' required

The string value 'Link' that identifies the schema

Example response

{
  "apiVersion": "compute/v2",
  "kind": "Link",
  "metadata": {
    "resourceVersion": "519597875",
    "uid": "00000000-0000-0000-0000-000000000000",
    "workspace": "00000000-0000-0000-0000-000000000000"
  },
  "spec": {
    "forwardableAddresses": [
      {
        "cidr": "192.168.2.0/24",
        "mac": "00:11:22:33:44:55"
      }
    ],
    "ip": "192.168.2.100/24"
  },
  "status": {
    "gatewayIP": "192.168.1.1",
    "mac": "00:11:22:33:44:55"
  }
}

Changes

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