Skip to content
Docs

    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.

    Name string

    Name of the VPC.

    ProjectID string

    Project ID the VPC belongs to.

    Region RegionName

    Region the resource is in.

    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"
    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.

    Name string

    Name of the VPC.

    ProjectID string

    Project ID the VPC belongs to.

    Region RegionName

    Region the resource is in.

    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"
    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