Viewing docs for Google Cloud v10.2.0
published on Tuesday, Oct 20, 2026 by Pulumi
published on Tuesday, Oct 20, 2026 by Pulumi
Viewing docs for Google Cloud v10.2.0
published on Tuesday, Oct 20, 2026 by Pulumi
published on Tuesday, Oct 20, 2026 by Pulumi
To get more information about Cloudbuild worker pool, see:
- API documentation
- How-to Guides
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const name = gcp.cloudbuild.getWorkerPool({
project: "your-project-id",
name: "your-pool",
location: "europe-west1",
});
import pulumi
import pulumi_gcp as gcp
name = gcp.cloudbuild.get_worker_pool(project="your-project-id",
name="your-pool",
location="europe-west1")
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v10/go/gcp/cloudbuild"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudbuild.LookupWorkerPool(ctx, &cloudbuild.LookupWorkerPoolArgs{
Project: pulumi.StringRef("your-project-id"),
Name: "your-pool",
Location: "europe-west1",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var name = Gcp.CloudBuild.GetWorkerPool.Invoke(new()
{
Project = "your-project-id",
Name = "your-pool",
Location = "europe-west1",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.cloudbuild.CloudbuildFunctions;
import com.pulumi.gcp.cloudbuild.inputs.GetWorkerPoolArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var name = CloudbuildFunctions.getWorkerPool(GetWorkerPoolArgs.builder()
.project("your-project-id")
.name("your-pool")
.location("europe-west1")
.build());
}
}
variables:
name:
fn::invoke:
function: gcp:cloudbuild:getWorkerPool
arguments:
project: your-project-id
name: your-pool
location: europe-west1
terraform {
required_providers {
gcp = {
source = "pulumi/gcp"
}
}
}
data "gcp_cloudbuild_worker_pool" "name" {
project = "your-project-id"
name = "your-pool"
location = "europe-west1"
}
Using getWorkerPool
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getWorkerPool(args: GetWorkerPoolArgs, opts?: InvokeOptions): Promise<GetWorkerPoolResult>
function getWorkerPoolOutput(args: GetWorkerPoolOutputArgs, opts?: InvokeOutputOptions): Output<GetWorkerPoolResult>def get_worker_pool(location: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetWorkerPoolResult
def get_worker_pool_output(location: pulumi.Input[Optional[str]] = None,
name: pulumi.Input[Optional[str]] = None,
project: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetWorkerPoolResult]func LookupWorkerPool(ctx *Context, args *LookupWorkerPoolArgs, opts ...InvokeOption) (*LookupWorkerPoolResult, error)
func LookupWorkerPoolOutput(ctx *Context, args *LookupWorkerPoolOutputArgs, opts ...InvokeOption) LookupWorkerPoolResultOutput> Note: This function is named LookupWorkerPool in the Go SDK.
public static class GetWorkerPool
{
public static Task<GetWorkerPoolResult> InvokeAsync(GetWorkerPoolArgs args, InvokeOptions? opts = null)
public static Output<GetWorkerPoolResult> Invoke(GetWorkerPoolInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetWorkerPoolResult> Invoke(GetWorkerPoolInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetWorkerPoolResult> getWorkerPool(GetWorkerPoolArgs args, InvokeOptions options)
public static Output<GetWorkerPoolResult> getWorkerPool(GetWorkerPoolArgs args, InvokeOptions options)
public static Output<GetWorkerPoolResult> getWorkerPool(GetWorkerPoolArgs args, InvokeOutputOptions options)
fn::invoke:
function: gcp:cloudbuild/getWorkerPool:getWorkerPool
arguments:
# arguments dictionarydata "gcp_cloudbuild_get_worker_pool" "name" {
# arguments
}The following arguments are supported:
getWorkerPool Result
The following output properties are available:
- Annotations Dictionary<string, string>
- Create
Time string - Delete
Time string - Deletion
Policy string - Display
Name string - Effective
Annotations Dictionary<string, string> - Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- Name string
- Network
Configs List<GetWorker Pool Network Config> - Private
Service List<GetConnects Worker Pool Private Service Connect> - State string
- Uid string
- Update
Time string - Worker
Configs List<GetWorker Pool Worker Config> - Project string
- Annotations map[string]string
- Create
Time string - Delete
Time string - Deletion
Policy string - Display
Name string - Effective
Annotations map[string]string - Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- Name string
- Network
Configs []GetWorker Pool Network Config - Private
Service []GetConnects Worker Pool Private Service Connect - State string
- Uid string
- Update
Time string - Worker
Configs []GetWorker Pool Worker Config - Project string
- annotations map(string)
- create_
time string - delete_
time string - deletion_
policy string - display_
name string - effective_
annotations map(string) - id string
- The provider-assigned unique ID for this managed resource.
- location string
- name string
- network_
configs list(object) - private_
service_ list(object)connects - state string
- uid string
- update_
time string - worker_
configs list(object) - project string
- annotations Map<String,String>
- create
Time String - delete
Time String - deletion
Policy String - display
Name String - effective
Annotations Map<String,String> - id String
- The provider-assigned unique ID for this managed resource.
- location String
- name String
- network
Configs List<GetWorker Pool Network Config> - private
Service List<GetConnects Worker Pool Private Service Connect> - state String
- uid String
- update
Time String - worker
Configs List<GetWorker Pool Worker Config> - project String
- annotations {[key: string]: string}
- create
Time string - delete
Time string - deletion
Policy string - display
Name string - effective
Annotations {[key: string]: string} - id string
- The provider-assigned unique ID for this managed resource.
- location string
- name string
- network
Configs GetWorker Pool Network Config[] - private
Service GetConnects Worker Pool Private Service Connect[] - state string
- uid string
- update
Time string - worker
Configs GetWorker Pool Worker Config[] - project string
- annotations Mapping[str, str]
- create_
time str - delete_
time str - deletion_
policy str - display_
name str - effective_
annotations Mapping[str, str] - id str
- The provider-assigned unique ID for this managed resource.
- location str
- name str
- network_
configs Sequence[GetWorker Pool Network Config] - private_
service_ Sequence[Getconnects Worker Pool Private Service Connect] - state str
- uid str
- update_
time str - worker_
configs Sequence[GetWorker Pool Worker Config] - project str
- annotations Map<String>
- create
Time String - delete
Time String - deletion
Policy String - display
Name String - effective
Annotations Map<String> - id String
- The provider-assigned unique ID for this managed resource.
- location String
- name String
- network
Configs List<Property Map> - private
Service List<Property Map>Connects - state String
- uid String
- update
Time String - worker
Configs List<Property Map> - project String
Supporting Types
GetWorkerPoolNetworkConfig
- Peered
Network string - Required. Immutable. The network definition that the workers are peered to. If this section is left empty, the workers will be peered to
WorkerPool.project_idon the service producer network. Must be in the formatprojects/{project}/global/networks/{network}, where{project}is a project number, such as12345, and{network}is the name of a VPC network in the project. See Understanding network configuration options - Peered
Network stringIp Range - Optional. Immutable. Subnet IP range within the peered network. This is specified in CIDR notation with a slash and the subnet prefix size. You can optionally specify an IP address before the subnet prefix value. e.g.
192.168.0.0/29would specify an IP range starting at 192.168.0.0 with a prefix size of 29 bits./16would specify a prefix size of 16 bits, with an automatically determined IP within the peered VPC. If unspecified, a value of/24will be used.
- Peered
Network string - Required. Immutable. The network definition that the workers are peered to. If this section is left empty, the workers will be peered to
WorkerPool.project_idon the service producer network. Must be in the formatprojects/{project}/global/networks/{network}, where{project}is a project number, such as12345, and{network}is the name of a VPC network in the project. See Understanding network configuration options - Peered
Network stringIp Range - Optional. Immutable. Subnet IP range within the peered network. This is specified in CIDR notation with a slash and the subnet prefix size. You can optionally specify an IP address before the subnet prefix value. e.g.
192.168.0.0/29would specify an IP range starting at 192.168.0.0 with a prefix size of 29 bits./16would specify a prefix size of 16 bits, with an automatically determined IP within the peered VPC. If unspecified, a value of/24will be used.
- peered_
network string - Required. Immutable. The network definition that the workers are peered to. If this section is left empty, the workers will be peered to
WorkerPool.project_idon the service producer network. Must be in the formatprojects/{project}/global/networks/{network}, where{project}is a project number, such as12345, and{network}is the name of a VPC network in the project. See Understanding network configuration options - peered_
network_ stringip_ range - Optional. Immutable. Subnet IP range within the peered network. This is specified in CIDR notation with a slash and the subnet prefix size. You can optionally specify an IP address before the subnet prefix value. e.g.
192.168.0.0/29would specify an IP range starting at 192.168.0.0 with a prefix size of 29 bits./16would specify a prefix size of 16 bits, with an automatically determined IP within the peered VPC. If unspecified, a value of/24will be used.
- peered
Network String - Required. Immutable. The network definition that the workers are peered to. If this section is left empty, the workers will be peered to
WorkerPool.project_idon the service producer network. Must be in the formatprojects/{project}/global/networks/{network}, where{project}is a project number, such as12345, and{network}is the name of a VPC network in the project. See Understanding network configuration options - peered
Network StringIp Range - Optional. Immutable. Subnet IP range within the peered network. This is specified in CIDR notation with a slash and the subnet prefix size. You can optionally specify an IP address before the subnet prefix value. e.g.
192.168.0.0/29would specify an IP range starting at 192.168.0.0 with a prefix size of 29 bits./16would specify a prefix size of 16 bits, with an automatically determined IP within the peered VPC. If unspecified, a value of/24will be used.
- peered
Network string - Required. Immutable. The network definition that the workers are peered to. If this section is left empty, the workers will be peered to
WorkerPool.project_idon the service producer network. Must be in the formatprojects/{project}/global/networks/{network}, where{project}is a project number, such as12345, and{network}is the name of a VPC network in the project. See Understanding network configuration options - peered
Network stringIp Range - Optional. Immutable. Subnet IP range within the peered network. This is specified in CIDR notation with a slash and the subnet prefix size. You can optionally specify an IP address before the subnet prefix value. e.g.
192.168.0.0/29would specify an IP range starting at 192.168.0.0 with a prefix size of 29 bits./16would specify a prefix size of 16 bits, with an automatically determined IP within the peered VPC. If unspecified, a value of/24will be used.
- peered_
network str - Required. Immutable. The network definition that the workers are peered to. If this section is left empty, the workers will be peered to
WorkerPool.project_idon the service producer network. Must be in the formatprojects/{project}/global/networks/{network}, where{project}is a project number, such as12345, and{network}is the name of a VPC network in the project. See Understanding network configuration options - peered_
network_ strip_ range - Optional. Immutable. Subnet IP range within the peered network. This is specified in CIDR notation with a slash and the subnet prefix size. You can optionally specify an IP address before the subnet prefix value. e.g.
192.168.0.0/29would specify an IP range starting at 192.168.0.0 with a prefix size of 29 bits./16would specify a prefix size of 16 bits, with an automatically determined IP within the peered VPC. If unspecified, a value of/24will be used.
- peered
Network String - Required. Immutable. The network definition that the workers are peered to. If this section is left empty, the workers will be peered to
WorkerPool.project_idon the service producer network. Must be in the formatprojects/{project}/global/networks/{network}, where{project}is a project number, such as12345, and{network}is the name of a VPC network in the project. See Understanding network configuration options - peered
Network StringIp Range - Optional. Immutable. Subnet IP range within the peered network. This is specified in CIDR notation with a slash and the subnet prefix size. You can optionally specify an IP address before the subnet prefix value. e.g.
192.168.0.0/29would specify an IP range starting at 192.168.0.0 with a prefix size of 29 bits./16would specify a prefix size of 16 bits, with an automatically determined IP within the peered VPC. If unspecified, a value of/24will be used.
GetWorkerPoolPrivateServiceConnect
- Network
Attachment string - Required. Immutable. The network attachment that the worker network interface is connected to. Must be in the format
projects/{project}/regions/{region}/networkAttachments/{networkAttachment}. The region of network attachment must be the same as the worker pool. See Network Attachments - Route
All boolTraffic - Immutable. Route all traffic through PSC interface. Enable this if you want full control of traffic in the private pool. Configure Cloud NAT for the subnet of network attachment if you need to access public Internet. If false, Only route private IPs, e.g. 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16 through PSC interface.
- Network
Attachment string - Required. Immutable. The network attachment that the worker network interface is connected to. Must be in the format
projects/{project}/regions/{region}/networkAttachments/{networkAttachment}. The region of network attachment must be the same as the worker pool. See Network Attachments - Route
All boolTraffic - Immutable. Route all traffic through PSC interface. Enable this if you want full control of traffic in the private pool. Configure Cloud NAT for the subnet of network attachment if you need to access public Internet. If false, Only route private IPs, e.g. 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16 through PSC interface.
- network_
attachment string - Required. Immutable. The network attachment that the worker network interface is connected to. Must be in the format
projects/{project}/regions/{region}/networkAttachments/{networkAttachment}. The region of network attachment must be the same as the worker pool. See Network Attachments - route_
all_ booltraffic - Immutable. Route all traffic through PSC interface. Enable this if you want full control of traffic in the private pool. Configure Cloud NAT for the subnet of network attachment if you need to access public Internet. If false, Only route private IPs, e.g. 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16 through PSC interface.
- network
Attachment String - Required. Immutable. The network attachment that the worker network interface is connected to. Must be in the format
projects/{project}/regions/{region}/networkAttachments/{networkAttachment}. The region of network attachment must be the same as the worker pool. See Network Attachments - route
All BooleanTraffic - Immutable. Route all traffic through PSC interface. Enable this if you want full control of traffic in the private pool. Configure Cloud NAT for the subnet of network attachment if you need to access public Internet. If false, Only route private IPs, e.g. 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16 through PSC interface.
- network
Attachment string - Required. Immutable. The network attachment that the worker network interface is connected to. Must be in the format
projects/{project}/regions/{region}/networkAttachments/{networkAttachment}. The region of network attachment must be the same as the worker pool. See Network Attachments - route
All booleanTraffic - Immutable. Route all traffic through PSC interface. Enable this if you want full control of traffic in the private pool. Configure Cloud NAT for the subnet of network attachment if you need to access public Internet. If false, Only route private IPs, e.g. 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16 through PSC interface.
- network_
attachment str - Required. Immutable. The network attachment that the worker network interface is connected to. Must be in the format
projects/{project}/regions/{region}/networkAttachments/{networkAttachment}. The region of network attachment must be the same as the worker pool. See Network Attachments - route_
all_ booltraffic - Immutable. Route all traffic through PSC interface. Enable this if you want full control of traffic in the private pool. Configure Cloud NAT for the subnet of network attachment if you need to access public Internet. If false, Only route private IPs, e.g. 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16 through PSC interface.
- network
Attachment String - Required. Immutable. The network attachment that the worker network interface is connected to. Must be in the format
projects/{project}/regions/{region}/networkAttachments/{networkAttachment}. The region of network attachment must be the same as the worker pool. See Network Attachments - route
All BooleanTraffic - Immutable. Route all traffic through PSC interface. Enable this if you want full control of traffic in the private pool. Configure Cloud NAT for the subnet of network attachment if you need to access public Internet. If false, Only route private IPs, e.g. 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16 through PSC interface.
GetWorkerPoolWorkerConfig
- Disk
Size intGb - Size of the disk attached to the worker, in GB. See Worker pool config file. Specify a value of up to 1000. If
0is specified, Cloud Build will use a standard disk size. - Enable
Nested boolVirtualization - Enable nested virtualization on the worker, if supported by the machine type. See Worker pool config file. If left blank, Cloud Build will set this to false.
- Machine
Type string - Machine type of a worker, such as
n1-standard-1. See Worker pool config file. If left blank, Cloud Build will usen1-standard-1. - No
External boolIp - If true, workers are created without any public address, which prevents network egress to public IPs.
- Disk
Size intGb - Size of the disk attached to the worker, in GB. See Worker pool config file. Specify a value of up to 1000. If
0is specified, Cloud Build will use a standard disk size. - Enable
Nested boolVirtualization - Enable nested virtualization on the worker, if supported by the machine type. See Worker pool config file. If left blank, Cloud Build will set this to false.
- Machine
Type string - Machine type of a worker, such as
n1-standard-1. See Worker pool config file. If left blank, Cloud Build will usen1-standard-1. - No
External boolIp - If true, workers are created without any public address, which prevents network egress to public IPs.
- disk_
size_ numbergb - Size of the disk attached to the worker, in GB. See Worker pool config file. Specify a value of up to 1000. If
0is specified, Cloud Build will use a standard disk size. - enable_
nested_ boolvirtualization - Enable nested virtualization on the worker, if supported by the machine type. See Worker pool config file. If left blank, Cloud Build will set this to false.
- machine_
type string - Machine type of a worker, such as
n1-standard-1. See Worker pool config file. If left blank, Cloud Build will usen1-standard-1. - no_
external_ boolip - If true, workers are created without any public address, which prevents network egress to public IPs.
- disk
Size IntegerGb - Size of the disk attached to the worker, in GB. See Worker pool config file. Specify a value of up to 1000. If
0is specified, Cloud Build will use a standard disk size. - enable
Nested BooleanVirtualization - Enable nested virtualization on the worker, if supported by the machine type. See Worker pool config file. If left blank, Cloud Build will set this to false.
- machine
Type String - Machine type of a worker, such as
n1-standard-1. See Worker pool config file. If left blank, Cloud Build will usen1-standard-1. - no
External BooleanIp - If true, workers are created without any public address, which prevents network egress to public IPs.
- disk
Size numberGb - Size of the disk attached to the worker, in GB. See Worker pool config file. Specify a value of up to 1000. If
0is specified, Cloud Build will use a standard disk size. - enable
Nested booleanVirtualization - Enable nested virtualization on the worker, if supported by the machine type. See Worker pool config file. If left blank, Cloud Build will set this to false.
- machine
Type string - Machine type of a worker, such as
n1-standard-1. See Worker pool config file. If left blank, Cloud Build will usen1-standard-1. - no
External booleanIp - If true, workers are created without any public address, which prevents network egress to public IPs.
- disk_
size_ intgb - Size of the disk attached to the worker, in GB. See Worker pool config file. Specify a value of up to 1000. If
0is specified, Cloud Build will use a standard disk size. - enable_
nested_ boolvirtualization - Enable nested virtualization on the worker, if supported by the machine type. See Worker pool config file. If left blank, Cloud Build will set this to false.
- machine_
type str - Machine type of a worker, such as
n1-standard-1. See Worker pool config file. If left blank, Cloud Build will usen1-standard-1. - no_
external_ boolip - If true, workers are created without any public address, which prevents network egress to public IPs.
- disk
Size NumberGb - Size of the disk attached to the worker, in GB. See Worker pool config file. Specify a value of up to 1000. If
0is specified, Cloud Build will use a standard disk size. - enable
Nested BooleanVirtualization - Enable nested virtualization on the worker, if supported by the machine type. See Worker pool config file. If left blank, Cloud Build will set this to false.
- machine
Type String - Machine type of a worker, such as
n1-standard-1. See Worker pool config file. If left blank, Cloud Build will usen1-standard-1. - no
External BooleanIp - If true, workers are created without any public address, which prevents network egress to public IPs.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.
Viewing docs for Google Cloud v10.2.0
published on Tuesday, Oct 20, 2026 by Pulumi
published on Tuesday, Oct 20, 2026 by Pulumi