POST
Attach a workload to a VPC

Authorizations

Authorization
string
header
required

Bearer token for authentication. Format: 'Bearer {token}'

Headers

X-Workspace-Id
string

Workspace ID (uses default workspace if not provided)

Path Parameters

uuid
string
required

VPC UUID

Body

application/json

Attach a workload to a VPC

subnet_uuid
string
required

UUID of the subnet to join

attachable_type
enum<string>
required

Kind of workload: App, Service or Addon

Available options:
App,
Service,
Addon
attachable_uuid
string
required

UUID of the workload

static_ip
boolean
default:false

Give the app a fixed address on the subnet instead of one that changes whenever its pod is replaced. Apps only, and the app must run a single replica without autoscaling. Deployments of the app then replace the pod instead of rolling it, which means a short downtime on every deploy. The address is allocated when the attachment is created and returned at once in address_v4, and in address_v6 when the subnet has an IPv6 range. Defaults to false.

Response

Attach a workload to a VPC

Api_V1_Entities_VpcAttachment model

uuid
string
required

Unique attachment identifier

status
string
required

Current status (pending, active, failed, detaching)

attachable_type
string
required

Kind of workload attached (App, Service, Addon)

attachable_uuid
string
required

UUID of the attached workload

workload_name
string
required

Name the platform uses to find the workload

subnet_uuid
string
required

UUID of the subnet the workload joined, the same value POST attachments takes as subnet_uuid

subnet_name
string
required

Subnet the workload joined

fqdn
string
required

Name this workload answers to inside the VPC. Absent for a cronjob, whose pods are transient. For a static attachment it resolves to the fixed address; for any other it points at a pod address, which changes when the pod is replaced.

static_ip
boolean
required

Whether the app holds a fixed address on the subnet. Only apps can, and it is chosen when attaching.

address_v4
string
required

Fixed IPv4 address of a static attachment. Null unless static_ip is true.

address_v6
string
required

Fixed IPv6 address of a static attachment. Null unless static_ip is true and the subnet has an IPv6 range.

created_at
string<date-time>
required

Creation timestamp