Google Cloud Compute Engine Network Profiles API
The NetworkProfiles API from Google Cloud Compute Engine — 2 operation(s) for networkprofiles.
The NetworkProfiles API from Google Cloud Compute Engine — 2 operation(s) for networkprofiles.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/google-cloud-compute-engine:google-cloud-compute-engine-networkprofiles-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Compute Engine Network Profiles API
version: v1
description: Generated from Google's published Discovery document for Compute Engine API (compute v1, revision 20261106). 2 operation(s).
contact:
name: Google
url: https://developers.google.com/
termsOfService: https://developers.google.com/terms
servers:
- url: https://compute.googleapis.com
tags:
- name: NetworkProfiles
paths:
/compute/v1/projects/{project}/global/networkProfiles:
get:
operationId: compute.networkProfiles.list
summary: List networkProfiles
description: 'Retrieves a list of network profiles available to the specified
project.'
parameters:
- name: project
in: path
required: true
description: Project ID for this request.
schema:
type: string
pattern: (?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))
- name: filter
in: query
required: false
description: 'A filter expression that filters resources listed in the response. Most
Compute resources support two types of filter expressions:
expressions that support regular expressions and expressions that follow
API improvement proposal AIP-160.
These two types of filter expressions cannot be mixed in one request.
If you want to use AIP-160, your expression must specify the field name, an
operator, and the value that you want to use for filtering. The value
must be a string, a number, or a boolean. The operator
must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
For example, if you are filtering Compute Engine instances, you can
exclude instances named `example-instance` by specifying
`name != example-instance`.
The `:*` comparison can be used to test whether a key has been defined.
For example, to find all objects with `owner` label use:
```
labels.owner:*
```
You can also filter nested fields. For example, you could specify
`scheduling.automaticRestart = false` to include instances only
if they are not scheduled for automatic restarts. You can use filtering
on nested fields to filter based onresource labels.
To filter on multiple expressions, provide each separate expression within
parentheses. For example:
```
(scheduling.automaticRestart = true)
(cpuPlatform = "Intel Skylake")
```
By default, each expression is an `AND` expression. However, you
can include `AND` and `OR` expressions explicitly.
For example:
```
(cpuPlatform = "Intel Skylake") OR
(cpuPlatform = "Intel Broadwell") AND
(scheduling.automaticRestart = true)
```
If you want to use a regular expression, use the `eq` (equal) or `ne`
(not equal) operator against a single un-parenthesized expression with or
without quotes or against multiple parenthesized expressions. Examples:
`fieldname eq unquoted literal`
`fieldname eq ''single quoted literal''`
`fieldname eq "double quoted literal"`
`(fieldname1 eq literal) (fieldname2 ne "literal")`
The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
The literal value must match the entire field.
For example, to filter for instances that do not end with name "instance",
you would use `name ne .*instance`.
You cannot combine constraints on multiple fields using regular
expressions.'
schema:
type: string
- name: maxResults
in: query
required: false
description: 'The maximum number of results per page that should be returned.
If the number of available results is larger than `maxResults`,
Compute Engine returns a `nextPageToken` that can be used to get
the next page of results in subsequent list requests. Acceptable values are
`0` to `500`, inclusive. (Default: `500`)'
schema:
minimum: 0
format: uint32
type: integer
default: '500'
- name: orderBy
in: query
required: false
description: 'Sorts list results by a certain order. By default, results
are returned in alphanumerical order based on the resource name.
You can also sort results in descending order based on the creation
timestamp using `orderBy="creationTimestamp desc"`. This sorts
results based on the `creationTimestamp` field in
reverse chronological order (newest result first). Use this to sort
resources like operations so that the newest operation is returned first.
Currently, only sorting by `name` or
`creationTimestamp desc` is supported.'
schema:
type: string
- name: pageToken
in: query
required: false
description: 'Specifies a page token to use. Set `pageToken` to the
`nextPageToken` returned by a previous list request to get
the next page of results.'
schema:
type: string
- name: returnPartialSuccess
in: query
required: false
description: 'Opt-in for partial success behavior which provides partial results in case
of failure. The default value is false.
For example, when partial success behavior is enabled, aggregatedList for a
single zone scope either returns all resources in the zone or no resources,
with an error code.'
schema:
type: boolean
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/NetworkProfilesListResponse'
4XX:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: Error response (google.rpc.Status)
security:
- oauth2:
- https://www.googleapis.com/auth/cloud-platform
- https://www.googleapis.com/auth/compute
- https://www.googleapis.com/auth/compute.readonly
- apiKey: []
tags:
- NetworkProfiles
/compute/v1/projects/{project}/global/networkProfiles/{networkProfile}:
get:
operationId: compute.networkProfiles.get
summary: Get networkProfiles
description: Returns the specified network profile.
parameters:
- name: project
in: path
required: true
description: Project ID for this request.
schema:
type: string
pattern: (?:(?:[-a-z0-9]{1,63}\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))
- name: networkProfile
in: path
required: true
description: Name of the network profile to return.
schema:
pattern: '[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}'
type: string
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/NetworkProfile'
4XX:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
default:
content:
application/json:
schema:
$ref: '#/components/schemas/GoogleRpcError'
description: Error response (google.rpc.Status)
security:
- oauth2:
- https://www.googleapis.com/auth/cloud-platform
- https://www.googleapis.com/auth/compute
- https://www.googleapis.com/auth/compute.readonly
- apiKey: []
tags:
- NetworkProfiles
components:
schemas:
NetworkProfile:
type: object
description: NetworkProfile represents a Google managed network profile resource.
properties:
profileType:
$ref: '#/components/schemas/NetworkProfileProfileType'
description: Output only. [Output Only] Type of the network profile.
creationTimestamp:
type: string
description: 'Output only. [Output Only] Creation timestamp inRFC3339
text format.'
readOnly: true
location:
$ref: '#/components/schemas/NetworkProfileLocation'
description: Output only. [Output Only] Location to which the network is restricted.
name:
pattern: '[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?'
readOnly: true
description: Output only. [Output Only] Name of the resource.
type: string
features:
$ref: '#/components/schemas/NetworkProfileNetworkFeatures'
description: Output only. [Output Only] Features supported by the network.
description:
readOnly: true
description: Output only. [Output Only] An optional description of this resource.
type: string
kind:
description: Output only. [Output Only] Type of the resource. Alwayscompute#networkProfile for network profiles.
type: string
readOnly: true
default: compute#networkProfile
selfLink:
readOnly: true
description: Output only. [Output Only] Server-defined URL for the resource.
type: string
selfLinkWithId:
description: Output only. [Output Only] Server-defined URL for this resource with the resource id.
type: string
readOnly: true
id:
format: uint64
type: string
description: 'Output only. [Output Only] The unique identifier for the resource. This identifier is
defined by the server.'
readOnly: true
GoogleRpcError:
type: object
description: The error envelope every Google API returns.
properties:
error:
type: object
properties:
code:
type: integer
message:
type: string
status:
type: string
details:
type: array
items:
type: object
NetworkProfileProfileType:
properties:
ullSubtype:
type: string
enum:
- OPERATOR
- PARTICIPANT
vpcSubtype:
type: string
enum:
- REGIONAL
rdmaSubtype:
type: string
enum:
- FALCON
- ROCE
- ROCE_METAL
networkType:
type: string
enum:
- RDMA
- ULL
- VPC
type: object
NetworkProfilesListResponse:
type: object
properties:
id:
description: '[Output Only] Unique identifier for the resource; defined by the server.'
type: string
nextPageToken:
description: '[Output Only] This token allows you to get the next page of results for
list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value
for
the query parameter pageToken in the next list request.
Subsequent list requests will have their own nextPageToken
to
continue paging through the results.'
type: string
etag:
type: string
warning:
description: '[Output Only] Informational warning message.'
type: object
properties:
data:
type: array
items:
properties:
key:
type: string
description: '[Output Only] A key that provides more detail on the warning being
returned. For example, for warnings where there are no results in a list
request for a particular zone, this key might be scope and
the key value might be the zone name. Other examples might be a key
indicating a deprecated resource and a suggested replacement, or a
warning about invalid network settings (for example, if an instance
attempts to perform IP forwarding but is not enabled for IP forwarding).'
value:
type: string
description: '[Output Only] A warning data value corresponding to the key.'
type: object
description: "[Output Only] Metadata about this warning in key:\nvalue format. For example:\n\n\"data\": [\n {\n \"key\": \"scope\",\n \"value\": \"zones/us-east1-d\"\n }]"
message:
description: '[Output Only] A human-readable description of the warning code.'
type: string
code:
type: string
description: '[Output Only] A warning code, if applicable. For example, Compute
Engine returns NO_RESULTS_ON_PAGE if there
are no results in the response.'
enum:
- CLEANUP_FAILED
- DEPRECATED_RESOURCE_USED
- DEPRECATED_TYPE_USED
- DISK_SIZE_LARGER_THAN_IMAGE_SIZE
- EXPERIMENTAL_TYPE_USED
- EXTERNAL_API_WARNING
- FIELD_VALUE_OVERRIDEN
- INJECTED_KERNELS_DEPRECATED
- INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB
- LARGE_DEPLOYMENT_WARNING
- LIST_OVERHEAD_QUOTA_EXCEED
- MISSING_TYPE_DEPENDENCY
- NEXT_HOP_ADDRESS_NOT_ASSIGNED
- NEXT_HOP_CANNOT_IP_FORWARD
- NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE
- NEXT_HOP_INSTANCE_NOT_FOUND
- NEXT_HOP_INSTANCE_NOT_ON_NETWORK
- NEXT_HOP_NOT_RUNNING
- NOT_CRITICAL_ERROR
- NO_RESULTS_ON_PAGE
- PARTIAL_SUCCESS
- QUOTA_INFO_UNAVAILABLE
- REQUIRED_TOS_AGREEMENT
- RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING
- RESOURCE_NOT_DELETED
- SCHEMA_VALIDATION_IGNORED
- SINGLE_INSTANCE_PROPERTY_TEMPLATE
- UNDECLARED_PROPERTIES
- UNREACHABLE
kind:
default: compute#networkProfileList
readOnly: true
description: Output only. [Output Only] Type of resource. Alwayscompute#networkProfileList for network profiles.
type: string
items:
description: A list of NetworkProfile resources.
items:
$ref: '#/components/schemas/NetworkProfile'
type: array
unreachables:
items:
type: string
description: 'Output only. [Output Only] Unreachable resources.
end_interface: MixerListResponseWithEtagBuilder'
type: array
readOnly: true
selfLink:
readOnly: true
description: Output only. [Output Only] Server-defined URL for this resource.
type: string
description: Contains a list of network profiles.
NetworkProfileNetworkFeatures:
type: object
properties:
subnetPurposes:
type: array
description: Specifies which subnetwork purposes are supported.
items:
enum:
- SUBNET_PURPOSE_CUSTOM_HARDWARE
- SUBNET_PURPOSE_PRIVATE
type: string
allowVpn:
enum:
- VPN_ALLOWED
- VPN_BLOCKED
description: Specifies whether VPN creation is allowed.
type: string
allowNcc:
description: Specifies whether NCC is allowed.
type: string
enum:
- NCC_ALLOWED
- NCC_BLOCKED
subnetworkStackTypes:
readOnly: true
type: array
items:
type: string
enum:
- IPV4_IPV6
- IPV4_ONLY
- IPV6_ONLY
description: Output only. Specifies which subnetwork stack types are supported.
allowSameNetworkUnicast:
description: Specifies whether unicast within the same network is allowed.
enum:
- SAME_NETWORK_UNICAST_ALLOWED
- SAME_NETWORK_UNICAST_BLOCKED
type: string
allowClassDFirewalls:
type: string
description: Specifies whether firewalls for Class D address ranges are supported.
enum:
- CLASS_D_FIREWALLS_ALLOWED
- CLASS_D_FIREWALLS_BLOCKED
allowSubnetworkCreation:
enum:
- SUBNETWORK_CREATION_ALLOWED
- SUBNETWORK_CREATION_BLOCKED
description: Specifies whether subnetwork creation is allowed.
type: string
allowAutoModeSubnet:
type: string
description: Specifies whether auto mode subnet creation is allowed.
enum:
- AUTO_MODE_SUBNET_ALLOWED
- AUTO_MODE_SUBNET_BLOCKED
allowExternalIpAccess:
enum:
- EXTERNAL_IP_ACCESS_ALLOWED
- EXTERNAL_IP_ACCESS_BLOCKED
description: 'Specifies whether VMs are allowed to have external IP access on network
interfaces connected to this VPC.'
type: string
allowFirewallPolicy:
type: string
enum:
- FIREWALL_POLICY_ALLOWED
- FIREWALL_POLICY_BLOCKED
description: Specifies whether firewall policy can be attached to the network.
predefinedNetworkInternalIpv6Range:
type: string
description: Specifies a predefined internal IPv6 range for the network.
allowCloudRouter:
enum:
- CLOUD_ROUTER_ALLOWED
- CLOUD_ROUTER_BLOCKED
description: Specifies whether cloud router creation is allowed.
type: string
allowPsc:
description: Specifies whether PSC creation is allowed.
enum:
- PSC_ALLOWED
- PSC_BLOCKED
type: string
allowStaticRoutes:
enum:
- STATIC_ROUTES_ALLOWED
- STATIC_ROUTES_BLOCKED
description: Specifies whether static route creation is allowed.
type: string
allowMultiNicInSameNetwork:
type: string
enum:
- MULTI_NIC_IN_SAME_NETWORK_ALLOWED
- MULTI_NIC_IN_SAME_NETWORK_BLOCKED
description: Specifies whether multi-nic in the same network is allowed.
allowMulticast:
description: Specifies whether multicast is allowed.
enum:
- MULTICAST_ALLOWED
- MULTICAST_BLOCKED
type: string
subnetworkPurposes:
description: Output only. Specifies which subnetwork purposes are supported.
type: array
readOnly: true
items:
enum:
- GLOBAL_MANAGED_PROXY
- INTERNAL_HTTPS_LOAD_BALANCER
- PEER_MIGRATION
- PRIVATE
- PRIVATE_NAT
- PRIVATE_RFC_1918
- PRIVATE_SERVICE_CONNECT
- REGIONAL_MANAGED_PROXY
type: string
allowAliasIpRanges:
type: string
description: 'Specifies whether alias IP ranges (and secondary address ranges) are
allowed.'
enum:
- ALIAS_IP_RANGES_ALLOWED
- ALIAS_IP_RANGES_BLOCKED
allowCloudNat:
type: string
description: Specifies whether cloud NAT creation is allowed.
enum:
- CLOUD_NAT_ALLOWED
- CLOUD_NAT_BLOCKED
firewallPolicyTypes:
type: array
items:
type: string
enum:
- RDMA_ROCE_POLICY
- ULL_POLICY
- VPC_POLICY
allowIpForwarding:
type: string
enum:
- IP_FORWARDING_ALLOWED
- IP_FORWARDING_BLOCKED
description: Specifies whether IP forwarding is allowed.
allowAddressCreation:
description: Specifies whether address creation is allowed.
type: string
enum:
- ADDRESS_CREATION_ALLOWED
- ADDRESS_CREATION_BLOCKED
interfaceTypes:
type: array
items:
type: string
enum:
- GVNIC
- IDPF
- IRDMA
- MRDMA
- UNSPECIFIED_NIC_TYPE
- VIRTIO_NET
description: 'If set, limits the interface types that the network supports. If
empty, all interface types are supported.'
allowLoadBalancing:
type: string
description: Specifies whether cloud load balancing is allowed.
enum:
- LOAD_BALANCING_ALLOWED
- LOAD_BALANCING_BLOCKED
predefinedSubnetworkRanges:
description: Predefined subnetwork ranges for the network.
type: array
items:
$ref: '#/components/schemas/NetworkProfileNetworkFeaturesPredefinedSubnetworkRange'
allowPacketMirroring:
enum:
- PACKET_MIRRORING_ALLOWED
- PACKET_MIRRORING_BLOCKED
description: Specifies whether Packet Mirroring 1.0 is supported.
type: string
allowPrivateGoogleAccess:
description: Specifies whether private Google access is allowed.
type: string
enum:
- PRIVATE_GOOGLE_ACCESS_ALLOWED
- PRIVATE_GOOGLE_ACCESS_BLOCKED
multicast:
type: string
description: Specifies which type of multicast is supported.
enum:
- MULTICAST_SDN
- MULTICAST_ULL
allowNetworkMigration:
enum:
- NETWORK_MIGRATION_ALLOWED
- NETWORK_MIGRATION_BLOCKED
description: Specifies whether VM network migration is allowed.
type: string
allowVpcPeering:
enum:
- VPC_PEERING_ALLOWED
- VPC_PEERING_BLOCKED
description: Specifies whether VPC peering is allowed.
type: string
allowDefaultNicAttachment:
enum:
- DEFAULT_NIC_ATTACHMENT_ALLOWED
- DEFAULT_NIC_ATTACHMENT_BLOCKED
description: Specifies whether default NIC attachment is allowed.
type: string
unicast:
description: Specifies which type of unicast is supported.
enum:
- UNICAST_SDN
- UNICAST_ULL
type: string
allowMultiNicInSameSubnetwork:
type: string
description: Specifies whether multi-nic in the same subnetwork is allowed.
enum:
- MULTI_NIC_IN_SAME_SUBNETWORK_ALLOWED
- MULTI_NIC_IN_SAME_SUBNETWORK_BLOCKED
allowVpcFirewallRules:
enum:
- VPC_FIREWALL_RULES_ALLOWED
- VPC_FIREWALL_RULES_BLOCKED
description: Specifies whether VPC firewall rules can be created under the network.
type: string
subnetStackTypes:
type: array
description: Specifies which subnetwork stack types are supported.
items:
type: string
enum:
- SUBNET_STACK_TYPE_IPV4_IPV6
- SUBNET_STACK_TYPE_IPV4_ONLY
- SUBNET_STACK_TYPE_IPV6_ONLY
addressPurposes:
type: array
description: 'Specifies what address purposes are supported. If empty, all address
purposes are supported.'
items:
enum:
- DNS_RESOLVER
- GCE_ENDPOINT
- IPSEC_INTERCONNECT
- NAT_AUTO
- PRIVATE_SERVICE_CONNECT
- SERVERLESS
- SHARED_LOADBALANCER_VIP
- VPC_PEERING
type: string
allowSubInterfaces:
enum:
- SUBINTERFACES_ALLOWED
- SUBINTERFACES_BLOCKED
description: Specifies whether sub interfaces are allowed.
type: string
allowInterconnect:
enum:
- INTERCONNECT_ALLOWED
- INTERCONNECT_BLOCKED
description: Specifies whether Cloud Interconnect creation is allowed.
type: string
NetworkProfileNetworkFeaturesPredefinedSubnetworkRange:
properties:
ipv6Range:
type: string
description: The IPv6 range of the predefined subnetwork.
namePrefix:
description: The naming prefix of the predefined subnetwork.
type: string
type: object
NetworkProfileLocation:
type: object
properties:
name:
type: string
scope:
type: string
enum:
- REGION
- ZONE
securitySchemes:
apiKey:
type: apiKey
in: query
name: key
description: API key; accepted by methods that do not need user data.
oauth2:
type: oauth2
flows:
authorizationCode:
authorizationUrl: https://accounts.google.com/o/oauth2/auth
tokenUrl: https://oauth2.googleapis.com/token
scopes:
https://www.googleapis.com/auth/devstorage.read_only: View your data in Google Cloud Storage
https://www.googleapis.com/auth/compute: View and manage your Google Compute Engine resources
https://www.googleapis.com/auth/devstorage.read_write: Manage your data in Cloud Storage and see the email address of your Google Account
https://www.googleapis.com/auth/cloud-platform: See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
https://www.googleapis.com/auth/compute.readonly: View your Google Compute Engine resources
https://www.googleapis.com/auth/devstorage.full_control: Manage your data and permissions in Cloud Storage and see the email address for your Google Account
externalDocs:
url: https://cloud.google.com/compute/
x-provenance:
method: harvested
publisher: Google
source: https://www.googleapis.com/discovery/v1/apis/compute/v1/rest
note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261106)