Skip to main content

networks

Creates, updates, deletes, gets or lists a networks resource.

Overview

Namenetworks
TypeResource
Idvercel.networking.networks

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe unique identifier of the Network.
namestringThe name of the network.
aws_account_idstringThe ID of the AWS Account in which the network exists. (wire: awsAccountId)
team_idstringThe unique identifier of the Team that owns the Network. (wire: teamId)
vpc_idstringThe ID of the VPC which hosts the network. (wire: vpcId)
aws_availability_zone_idsarrayThe IDs of the AWS Availability Zones in which the network exists, if specified during creation. (wire: awsAvailabilityZoneIds)
aws_regionstringThe AWS Region in which the network exists. (wire: awsRegion)
cidrstringThe CIDR range of the Network.
created_atnumberThe date at which the Network was created, represented as a UNIX timestamp since EPOCH. (wire: createdAt)
egress_ip_addressesarray (wire: egressIpAddresses)
hosted_zonesobjectMetadata about any AWS Route53 Hosted Zones associated with the Network. (wire: hostedZones)
peering_connectionsobjectMetadata about any AWS Route53 Hosted Zones associated with the Network. (wire: peeringConnections)
projectsobjectMetadata about any projects associated with the Network.
regionstringThe Vercel region in which the Network exists.
statusstringThe status of the Network. (create_in_progress, delete_in_progress, error, ready)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectnetwork_idteam_id, slugAllows to read a Secure Compute network.
listselectinclude_hosted_zones, include_peering_connections, include_projects, search, team_id, slugAllows to list Secure Compute networks.
createinsertcidr, name, regionteam_id, slugAllows to create a Secure Compute network.
updateupdatenetwork_id, nameteam_id, slugAllows to update a Secure Compute network.
deletedeletenetwork_idteam_id, slugAllows to delete a Secure Compute network.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
network_idstringThe ID of the network to delete
include_hosted_zonesbooleanWhether to include Hosted Zones in the response (wire: includeHostedZones)
include_peering_connectionsbooleanWhether to include VPC Peering connections in the response (wire: includePeeringConnections)
include_projectsbooleanWhether to include projects in the response (wire: includeProjects)
slugstringThe Team slug to perform the request on behalf of.
team_idstringThe Team identifier to perform the request on behalf of. (wire: teamId)

SELECT examples

Allows to read a Secure Compute network.

SELECT
id,
name,
aws_account_id,
team_id,
vpc_id,
aws_availability_zone_ids,
aws_region,
cidr,
created_at,
egress_ip_addresses,
hosted_zones,
peering_connections,
projects,
region,
status
FROM vercel.networking.networks
WHERE network_id = '{{ network_id }}' -- required
AND team_id = '{{ team_id }}'
AND slug = '{{ slug }}'
;

INSERT examples

Allows to create a Secure Compute network.

INSERT INTO vercel.networking.networks (
aws_availability_zone_ids,
cidr,
name,
region,
team_id,
slug
)
SELECT
'{{ aws_availability_zone_ids }}',
'{{ cidr }}' /* required */,
'{{ name }}' /* required */,
'{{ region }}' /* required */,
'{{ team_id }}',
'{{ slug }}'
RETURNING
id,
name,
aws_account_id,
team_id,
vpc_id,
aws_availability_zone_ids,
aws_region,
cidr,
created_at,
egress_ip_addresses,
hosted_zones,
peering_connections,
projects,
region,
status
;

UPDATE examples

Allows to update a Secure Compute network.

UPDATE vercel.networking.networks
SET
name = '{{ name }}'
WHERE
network_id = '{{ network_id }}' --required
AND name = '{{ name }}' --required
AND team_id = '{{ team_id}}'
AND slug = '{{ slug}}'
RETURNING
id,
name,
aws_account_id,
team_id,
vpc_id,
aws_availability_zone_ids,
aws_region,
cidr,
created_at,
egress_ip_addresses,
hosted_zones,
peering_connections,
projects,
region,
status;

DELETE examples

Allows to delete a Secure Compute network.

DELETE FROM vercel.networking.networks
WHERE network_id = '{{ network_id }}' --required
AND team_id = '{{ team_id }}'
AND slug = '{{ slug }}'
;