Send feedback
Method: googleapis.compute.beta.globalNetworkEndpointGroups.insert
Stay organized with collections
Save and categorize content based on your preferences.
Creates a network endpoint group in the specified project using the
parameters that are included in the request.
This method waits—the workflow execution is paused—until the operation is
complete, fails, or times out. The default timeout value is 1800
seconds (30
minutes) and can be changed to a maximum value of 31536000
seconds (one year)
for long-running operations using the connector_params
field. See the
Connectors reference .
The connector uses polling to monitor the long-running operation, which might
generate additional billable steps. For more information about retries and
long-running operations, refer to Understand connectors .
The polling policy for the long-running operation can be configured. To set the
connector-specific parameters (connector_params
), refer to
Invoke a connector call .
Arguments
Parameters
project
string
Required. Project ID for this request.
requestId
string
An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
body
object (NetworkEndpointGroup )
Required.
Raised exceptions
Exceptions
ConnectionError
In case of a network problem (such as DNS failure or refused connection).
HttpError
If the response status is >= 400 (excluding 429 and 503).
TimeoutError
If a long-running operation takes longer to finish than the specified timeout limit.
TypeError
If an operation or function receives an argument of the wrong type.
ValueError
If an operation or function receives an argument of the right type but an inappropriate value. For example, a negative timeout.
OperationError
If the long-running operation finished unsuccessfully.
ResponseTypeError
If the long-running operation returned a response of the wrong type.
Response
If successful, the response contains an instance of Operation
.
Subworkflow snippet
Some fields might be optional or required.
To identify required fields, refer to the API documentation .
YAML
- insert :
call : googleapis.compute.beta.globalNetworkEndpointGroups.insert
args :
project : ...
requestId : ...
body :
annotations : ...
appEngine :
service : ...
urlMask : ...
version : ...
cloudFunction :
function : ...
urlMask : ...
cloudRun :
service : ...
tag : ...
urlMask : ...
defaultPort : ...
description : ...
loadBalancer :
defaultPort : ...
network : ...
subnetwork : ...
name : ...
network : ...
networkEndpointType : ...
pscData : ...
pscTargetService : ...
serverlessDeployment :
platform : ...
resource : ...
urlMask : ...
version : ...
subnetwork : ...
result : insertResult
JSON
[
{
"insert" : {
"call" : "googleapis.compute.beta.globalNetworkEndpointGroups.insert" ,
"args" : {
"project" : "..." ,
"requestId" : "..." ,
"body" : {
"annotations" : "..." ,
"appEngine" : {
"service" : "..." ,
"urlMask" : "..." ,
"version" : "..."
},
"cloudFunction" : {
"function" : "..." ,
"urlMask" : "..."
},
"cloudRun" : {
"service" : "..." ,
"tag" : "..." ,
"urlMask" : "..."
},
"defaultPort" : "..." ,
"description" : "..." ,
"loadBalancer" : {
"defaultPort" : "..." ,
"network" : "..." ,
"subnetwork" : "..."
},
"name" : "..." ,
"network" : "..." ,
"networkEndpointType" : "..." ,
"pscData" : "..." ,
"pscTargetService" : "..." ,
"serverlessDeployment" : {
"platform" : "..." ,
"resource" : "..." ,
"urlMask" : "..." ,
"version" : "..."
},
"subnetwork" : "..."
}
},
"result" : "insertResult"
}
}
]
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Method: googleapis.compute.beta.globalNetworkEndpointGroups.insert\n\nCreates a network endpoint group in the specified project using the\nparameters that are included in the request.\n\nThis method waits---the workflow execution is paused---until the operation is\ncomplete, fails, or times out. The default timeout value is `1800` seconds (30\nminutes) and can be changed to a maximum value of `31536000` seconds (one year)\nfor long-running operations using the `connector_params` field. See the\n[Connectors reference](/workflows/docs/reference/googleapis).\n\nThe connector uses polling to monitor the long-running operation, which might\ngenerate additional billable steps. For more information about retries and\nlong-running operations, refer to [Understand connectors](/workflows/docs/connectors).\n\nThe polling policy for the long-running operation can be configured. To set the\nconnector-specific parameters (`connector_params`), refer to\n[Invoke a connector call](/workflows/docs/reference/googleapis#invoke_a_connector_call).\n\nArguments\n---------\n\nRaised exceptions\n-----------------\n\nResponse\n--------\n\nIf successful, the response contains an instance of [`Operation`](/workflows/docs/reference/googleapis/compute/beta/Overview#Operation).\n\nSubworkflow snippet\n-------------------\n\nSome fields might be optional or required.\nTo identify required fields, refer to the [API documentation](https://cloud.google.com/compute/docs/reference/rest/beta/globalNetworkEndpointGroups/insert). \n\n### YAML\n\n```yaml\n- insert:\n call: googleapis.compute.beta.globalNetworkEndpointGroups.insert\n args:\n project: ...\n requestId: ...\n body:\n annotations: ...\n appEngine:\n service: ...\n urlMask: ...\n version: ...\n cloudFunction:\n function: ...\n urlMask: ...\n cloudRun:\n service: ...\n tag: ...\n urlMask: ...\n defaultPort: ...\n description: ...\n loadBalancer:\n defaultPort: ...\n network: ...\n subnetwork: ...\n name: ...\n network: ...\n networkEndpointType: ...\n pscData: ...\n pscTargetService: ...\n serverlessDeployment:\n platform: ...\n resource: ...\n urlMask: ...\n version: ...\n subnetwork: ...\n result: insertResult\n```\n\n### JSON\n\n```json\n[\n {\n \"insert\": {\n \"call\": \"googleapis.compute.beta.globalNetworkEndpointGroups.insert\",\n \"args\": {\n \"project\": \"...\",\n \"requestId\": \"...\",\n \"body\": {\n \"annotations\": \"...\",\n \"appEngine\": {\n \"service\": \"...\",\n \"urlMask\": \"...\",\n \"version\": \"...\"\n },\n \"cloudFunction\": {\n \"function\": \"...\",\n \"urlMask\": \"...\"\n },\n \"cloudRun\": {\n \"service\": \"...\",\n \"tag\": \"...\",\n \"urlMask\": \"...\"\n },\n \"defaultPort\": \"...\",\n \"description\": \"...\",\n \"loadBalancer\": {\n \"defaultPort\": \"...\",\n \"network\": \"...\",\n \"subnetwork\": \"...\"\n },\n \"name\": \"...\",\n \"network\": \"...\",\n \"networkEndpointType\": \"...\",\n \"pscData\": \"...\",\n \"pscTargetService\": \"...\",\n \"serverlessDeployment\": {\n \"platform\": \"...\",\n \"resource\": \"...\",\n \"urlMask\": \"...\",\n \"version\": \"...\"\n },\n \"subnetwork\": \"...\"\n }\n },\n \"result\": \"insertResult\"\n }\n }\n]\n```"]]