Skip to content
DocsOpenAPI spec

    VPCs

    Create VPC
    client.Networking.VPCs.New(ctx, body) (*Operation, error)
    POST/v1/networking/vpcs
    Get VPC Details
    client.Networking.VPCs.Get(ctx, vpcID) (*VPC, error)
    GET/v1/networking/vpcs/{vpc_id}
    Update VPC
    client.Networking.VPCs.Update(ctx, vpcID, body) (*Operation, error)
    PATCH/v1/networking/vpcs/{vpc_id}
    Delete VPC
    client.Networking.VPCs.Delete(ctx, vpcID) (*Operation, error)
    DELETE/v1/networking/vpcs/{vpc_id}
    List VPCs
    client.Networking.VPCs.List(ctx, query) (*Cursor[VPC], error)
    GET/v1/networking/vpcs
    ModelsExpand Collapse
    type Subnet struct{…}

    Subnet of the VPC.

    ID string

    Unique identifier for the Subnet.

    CIDR string

    CIDR block for the Subnet.

    CreatedAt Time

    When the Subnet was created.

    formatdate-time
    Name string

    Name of the Subnet.

    UpdatedAt Time

    When the Subnet was updated.

    formatdate-time
    type VPC struct{…}

    VPC details.

    ID string

    Unique identifier for the VPC.

    CreatedAt Time

    When the VPC was created.

    formatdate-time
    FirewallRuleIDs []string

    IDs of the Firewall Rules associated with the VPC.

    ManagedBy VPCManagedBy

    What manages the resource, or null when nothing does. A managed resource can be read but not changed.

    ID string

    ID of the thing managing the resource. For a vpc_egress_policy, the ID of the VPC.

    Type string

    Kind of thing managing the resource. A vpc_egress_policy manages the Firewall Rules that block outbound traffic to ports commonly used for abuse.

    One of the following:
    const VPCManagedByTypeSandboxCluster VPCManagedByType = "sandbox_cluster"
    const VPCManagedByTypeVPCEgressPolicy VPCManagedByType = "vpc_egress_policy"
    Name string

    Name of the VPC.

    ProjectID string

    Project ID the VPC belongs to.

    Region RegionName

    Region the resource is in.

    One of the following:
    const RegionNameUsSva2 RegionName = "us-sva-2"
    const RegionNameUsWdc1 RegionName = "us-wdc-1"

    Status of the resource.

    One of the following:
    const ResourceStatusPending ResourceStatus = "pending"
    const ResourceStatusCreating ResourceStatus = "creating"
    const ResourceStatusUpdating ResourceStatus = "updating"
    const ResourceStatusReady ResourceStatus = "ready"
    const ResourceStatusDeleting ResourceStatus = "deleting"
    const ResourceStatusDeleted ResourceStatus = "deleted"
    const ResourceStatusError ResourceStatus = "error"
    const ResourceStatusSuspended ResourceStatus = "suspended"
    Subnet Subnet

    Subnet of the VPC.

    ID string

    Unique identifier for the Subnet.

    CIDR string

    CIDR block for the Subnet.

    CreatedAt Time

    When the Subnet was created.

    formatdate-time
    Name string

    Name of the Subnet.

    UpdatedAt Time

    When the Subnet was updated.

    formatdate-time
    Tags []string

    Tags to attach to the VPC.

    UpdatedAt Time

    When the VPC was updated.

    formatdate-time
    type VPCList struct{…}
    Items []VPC
    ID string

    Unique identifier for the VPC.

    CreatedAt Time

    When the VPC was created.

    formatdate-time
    FirewallRuleIDs []string

    IDs of the Firewall Rules associated with the VPC.

    ManagedBy VPCManagedBy

    What manages the resource, or null when nothing does. A managed resource can be read but not changed.

    ID string

    ID of the thing managing the resource. For a vpc_egress_policy, the ID of the VPC.

    Type string

    Kind of thing managing the resource. A vpc_egress_policy manages the Firewall Rules that block outbound traffic to ports commonly used for abuse.

    One of the following:
    const VPCManagedByTypeSandboxCluster VPCManagedByType = "sandbox_cluster"
    const VPCManagedByTypeVPCEgressPolicy VPCManagedByType = "vpc_egress_policy"
    Name string

    Name of the VPC.

    ProjectID string

    Project ID the VPC belongs to.

    Region RegionName

    Region the resource is in.

    One of the following:
    const RegionNameUsSva2 RegionName = "us-sva-2"
    const RegionNameUsWdc1 RegionName = "us-wdc-1"

    Status of the resource.

    One of the following:
    const ResourceStatusPending ResourceStatus = "pending"
    const ResourceStatusCreating ResourceStatus = "creating"
    const ResourceStatusUpdating ResourceStatus = "updating"
    const ResourceStatusReady ResourceStatus = "ready"
    const ResourceStatusDeleting ResourceStatus = "deleting"
    const ResourceStatusDeleted ResourceStatus = "deleted"
    const ResourceStatusError ResourceStatus = "error"
    const ResourceStatusSuspended ResourceStatus = "suspended"
    Subnet Subnet

    Subnet of the VPC.

    ID string

    Unique identifier for the Subnet.

    CIDR string

    CIDR block for the Subnet.

    CreatedAt Time

    When the Subnet was created.

    formatdate-time
    Name string

    Name of the Subnet.

    UpdatedAt Time

    When the Subnet was updated.

    formatdate-time
    Tags []string

    Tags to attach to the VPC.

    UpdatedAt Time

    When the VPC was updated.

    formatdate-time

    VPCsAvailability

    Check Create VPC Availability
    client.Networking.VPCs.Availability.New(ctx, body) error
    POST/v1/networking/vpcs/availability
    Check Update VPC Availability
    client.Networking.VPCs.Availability.Update(ctx, vpcID, body) error
    PATCH/v1/networking/vpcs/{vpc_id}/availability

    VPCsCost

    Estimate VPC Create Cost
    client.Networking.VPCs.Cost.New(ctx, body) (*CostQuote, error)
    POST/v1/networking/vpcs/cost
    Estimate VPC Update Cost
    client.Networking.VPCs.Cost.Update(ctx, vpcID, body) (*CostQuoteUpdate, error)
    PATCH/v1/networking/vpcs/{vpc_id}/cost