Network API models

Network.NetworkStatus

Option

Description

NETWORK_STATUS_INVALID

NETWORK_STATUS_CREATING

NETWORK_STATUS_ACTIVE

NETWORK_STATUS_DELETING

NETWORK_STATUS_ERROR

NetworkConnection.NetworkConnectionStatus

Option

Description

NETWORK_CONNECTION_STATUS_INVALID

NETWORK_CONNECTION_STATUS_CREATING

NETWORK_CONNECTION_STATUS_PENDING

NETWORK_CONNECTION_STATUS_ACTIVE

NETWORK_CONNECTION_STATUS_DELETING

NETWORK_CONNECTION_STATUS_ERROR

AwsExternalResources

Field

Description

vpc_id

string

account_id

google.protobuf.StringValue ID of the VPC owner account.

iam_role_arn

google.protobuf.StringValue IAM role ARN to use for resource creations.

stack_id

google.protobuf.StringValue ID of the CloudFormation stack, VPC was created by.

cf_template_version

google.protobuf.StringValue CloudFormation template version.

private_subnets

google.protobuf.BoolValue Use private subnets instead of default public.

GcpExternalResources

Field

Description

project_name

google.protobuf.StringValue Name of the BYOC project.

service_account_email

google.protobuf.StringValue ServiceAccount email to use for resource creations.

network_name

google.protobuf.StringValue Name of a network to place instances.

subnetwork_name

google.protobuf.StringValue Name of a subnetwork to place instances.

Network

Field

Description

id

string ID of the network.

project_id

string ID of the project that the network belongs to.

cloud_type

string Type of the cloud provider.

region_id

string ID of the region.

create_time

google.protobuf.Timestamp Creation timestamp.

name

string Name of the network. The name is unique within the project.

description

string Description of the network.

ipv4_cidr_block

string The IPv4 network range for the subnet, in CIDR notation. For example, 10.0.0.0/16.

ipv6_cidr_block

string The IPv6 network range for the subnet, in CIDR notation. For example, 2a05:d014:463:1800::/56.

status

doublecloud.network.v1.Network.NetworkStatus Current state of the network.

status_reason

string The reason for the status change.

external_resources

one of: aws / gcp

aws

doublecloud.network.v1.AwsExternalResources

gcp

doublecloud.network.v1.GcpExternalResources

is_external

bool True if network was imported using BYOC.

AWSNetworkConnectionInfo

Field

Description

type

one of: peering VPC Peering connection info.

peering

doublecloud.network.v1.AWSNetworkConnectionPeeringInfo VPC Peering connection info.

AWSNetworkConnectionPeeringInfo

Field

Description

vpc_id

string VPC ID.

account_id

string ID of the VPC owner account.

region_id

string ID of the AWS region.

ipv4_cidr_block

string Customer IPv4 CIDR block.

ipv6_cidr_block

string Customer IPv6 CIDR block.

peering_connection_id

string Peering Connection ID.

managed_ipv4_cidr_block

string Managed AWS IPv4 CIDR block. Customer will create route to this CIDR using Peering Connection.

managed_ipv6_cidr_block

string managed AWS IPv6 CIDR block. Customer will create route to this CIDR using Peering Connection.

GoogleNetworkConnectionInfo

Field

Description

name

string Name of this peering.

peer_network_url

string The URL of the peer network.

managed_network_url

string The URL of the managed GCP network.

NetworkConnection

Field

Description

id

string ID of the network connection.

network_id

string ID of the network.

connection_info

one of: aws / google AWS connection info.

aws

doublecloud.network.v1.AWSNetworkConnectionInfo AWS connection info.

google

doublecloud.network.v1.GoogleNetworkConnectionInfo Google Cloud connection info.

create_time

google.protobuf.Timestamp Creation timestamp.

description

string Description of the network connection.

status

doublecloud.network.v1.NetworkConnection.NetworkConnectionStatus Current state of the network connection.

status_reason

string The reason for the status change.

CreateAWSNetworkConnectionPeeringRequest

Field

Description

vpc_id

string ID of the VPC.

account_id

string ID of the VPC owner account.

region_id

string ID of the AWS region.

ipv4_cidr_block

string IPv4 CIDR block. Data Cloud will create route to this CIDR using Peering Connection.

ipv6_cidr_block

string IPv6 CIDR block. Data Cloud will create route to this CIDR using Peering Connection.

CreateAWSNetworkConnectionRequest

Field

Description

type

one of: peering Connect AWS VPC using VPC Peering.

peering

doublecloud.network.v1.CreateAWSNetworkConnectionPeeringRequest Connect AWS VPC using VPC Peering.

CreateGoogleNetworkConnectionRequest

Field

Description

name

string Name of this peering. The name must comply with RFC1035. Specifically, the name must be 1-63 characters long and match regular expression [a-z]([-a-z0-9]*[a-z0-9])?. The first character must be a lowercase letter, and all the following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

peer_network_url

string The URL of the peer network. It can be either full URL or partial URL. Partial URL must contain project.

CreateNetworkConnectionRequest

Field

Description

network_id

string ID of the Network.

params

one of: aws / google Connect DoubleCloud Network with AWS VPC.

aws

doublecloud.network.v1.CreateAWSNetworkConnectionRequest Connect DoubleCloud Network with AWS VPC.

google

doublecloud.network.v1.CreateGoogleNetworkConnectionRequest Connect DoubleCloud Network with Google Cloud VPC.

description

string Description of the Network Connection.

DeleteNetworkConnectionRequest

Field

Description

network_connection_id

string ID of the Network Connection to delete. To get the Network Connection ID, use a [NetworkConnectionService.List] request.

GetNetworkConnectionRequest

Field

Description

network_connection_id

string ID of the Network Connection resource to return.

ListNetworkConnectionsRequest

Field

Description

project_id

string ID of the project to list Networks Connections in.

paging

doublecloud.v1.Paging Paging information of the request

ListNetworkConnectionsResponse

Field

Description

network_connections

list List of Network Connection resources.

network_connections[]

doublecloud.network.v1.NetworkConnection

next_page

doublecloud.v1.NextPage Pagination information of the response

UpdateNetworkConnectionRequest

Field

Description

network_connection_id

string ID of the Network Connection to update.

description

string Description of the Network Connection.

CreateNetworkRequest

Field

Description

project_id

string ID of the project to create the Network in.

cloud_type

string Type of the cloud where instances should be hosted.

region_id

string ID of the region to place instances.

name

string Name of the Network. The name must be unique within the project.

description

string Description of the Network.

ipv4_cidr_block

string The IPv4 network range for the subnet, in CIDR notation. For example, 10.0.0.0/16.

DeleteNetworkRequest

Field

Description

network_id

string ID of the Network to delete. To get the Network ID, use a [NetworkService.List] request.

GetNetworkRequest

Field

Description

network_id

string ID of the Network resource to return.

ImportAWSVPCRequest

Field

Description

vpc_id

string ID of the VPC.

region_id

string ID of the region to place instances.

account_id

string ID of the VPC owner account.

iam_role_arn

string IAM role ARN to use for resource creations.

stack_id

string ID of the CloudFormation stack.

version

string CloudFormation template version.

private_subnets

bool Create private subnets instead of default public.

ImportGoogleVPCRequest

Field

Description

service_account_email

string Service account email.

project_name

string Name of a project where is an imported network is located.

network_name

string Name of a network to import.

region_id

string ID of a region to place instances.

subnetwork_name

string Name of a subnetwork to import.

ImportNetworkRequest

Field

Description

project_id

string ID of the project to create the Network in.

name

string Name of the Network. The name must be unique within the project.

description

string Description of the Network.

params

one of: aws / google Import AWS VPC.

aws

doublecloud.network.v1.ImportAWSVPCRequest Import AWS VPC.

google

doublecloud.network.v1.ImportGoogleVPCRequest Import Google Cloud VPC.

ListNetworksRequest

Field

Description

project_id

string ID of the project to list Networks in.

paging

doublecloud.v1.Paging Paging information of the request

filter

doublecloud.network.v1.ListNetworksRequest.Filter Fields to filter a network list

ListNetworksRequest.Filter

Field

Description

cloud_type

google.protobuf.StringValue Type of the cloud where instances should be hosted.

region_id

google.protobuf.StringValue ID of the region to place instances.

status

doublecloud.network.v1.Network.NetworkStatus Status of the network.

is_external

google.protobuf.BoolValue Flag to show if a network is external (BYOC feature)

ListNetworksResponse

Field

Description

networks

list List of Network resources.

networks[]

doublecloud.network.v1.Network

next_page

doublecloud.v1.NextPage Pagination information of the response

GetOperationRequest

Field

Description

operation_id

string Required. ID of the operation to return.

ListOperationsRequest

Field

Description

project_id

string ID of the project to list clusters operations in.

paging

doublecloud.v1.Paging Paging information of the request

ListOperationsResponse

Field

Description

operations

list List of operations.

operations[]

doublecloud.v1.Operation

next_page

doublecloud.v1.NextPage Pagination information of the response