1. Packages
  2. Google Cloud Native
  3. API Docs
  4. cloudbuild
  5. cloudbuild/v1alpha2
  6. getWorkerPool

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.cloudbuild/v1alpha2.getWorkerPool

Explore with Pulumi AI

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

Returns details of a WorkerPool.

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?: InvokeOptions): Output<GetWorkerPoolResult>
Copy
def get_worker_pool(project: Optional[str] = None,
                    worker_pool_id: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetWorkerPoolResult
def get_worker_pool_output(project: Optional[pulumi.Input[str]] = None,
                    worker_pool_id: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetWorkerPoolResult]
Copy
func LookupWorkerPool(ctx *Context, args *LookupWorkerPoolArgs, opts ...InvokeOption) (*LookupWorkerPoolResult, error)
func LookupWorkerPoolOutput(ctx *Context, args *LookupWorkerPoolOutputArgs, opts ...InvokeOption) LookupWorkerPoolResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetWorkerPoolResult> getWorkerPool(GetWorkerPoolArgs args, InvokeOptions options)
public static Output<GetWorkerPoolResult> getWorkerPool(GetWorkerPoolArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: google-native:cloudbuild/v1alpha2:getWorkerPool
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

WorkerPoolId This property is required. string
Project string
WorkerPoolId This property is required. string
Project string
workerPoolId This property is required. String
project String
workerPoolId This property is required. string
project string
worker_pool_id This property is required. str
project str
workerPoolId This property is required. String
project String

getWorkerPool Result

The following output properties are available:

CreateTime string
Time at which the request to create the WorkerPool was received.
DeleteTime string
Time at which the request to delete the WorkerPool was received.
Name string
The resource name of the WorkerPool. Format of the name is projects/{project_id}/workerPools/{worker_pool_id}, where the value of {worker_pool_id} is provided in the CreateWorkerPool request.
NetworkConfig Pulumi.GoogleNative.CloudBuild.V1Alpha2.Outputs.NetworkConfigResponse
Network configuration for the WorkerPool.
Region string
Immutable. The region where the WorkerPool runs. Only "us-central1" is currently supported. Note that region cannot be changed once the WorkerPool is created.
State string
WorkerPool state.
UpdateTime string
Time at which the request to update the WorkerPool was received.
WorkerConfig Pulumi.GoogleNative.CloudBuild.V1Alpha2.Outputs.WorkerConfigResponse
Worker configuration for the WorkerPool.
CreateTime string
Time at which the request to create the WorkerPool was received.
DeleteTime string
Time at which the request to delete the WorkerPool was received.
Name string
The resource name of the WorkerPool. Format of the name is projects/{project_id}/workerPools/{worker_pool_id}, where the value of {worker_pool_id} is provided in the CreateWorkerPool request.
NetworkConfig NetworkConfigResponse
Network configuration for the WorkerPool.
Region string
Immutable. The region where the WorkerPool runs. Only "us-central1" is currently supported. Note that region cannot be changed once the WorkerPool is created.
State string
WorkerPool state.
UpdateTime string
Time at which the request to update the WorkerPool was received.
WorkerConfig WorkerConfigResponse
Worker configuration for the WorkerPool.
createTime String
Time at which the request to create the WorkerPool was received.
deleteTime String
Time at which the request to delete the WorkerPool was received.
name String
The resource name of the WorkerPool. Format of the name is projects/{project_id}/workerPools/{worker_pool_id}, where the value of {worker_pool_id} is provided in the CreateWorkerPool request.
networkConfig NetworkConfigResponse
Network configuration for the WorkerPool.
region String
Immutable. The region where the WorkerPool runs. Only "us-central1" is currently supported. Note that region cannot be changed once the WorkerPool is created.
state String
WorkerPool state.
updateTime String
Time at which the request to update the WorkerPool was received.
workerConfig WorkerConfigResponse
Worker configuration for the WorkerPool.
createTime string
Time at which the request to create the WorkerPool was received.
deleteTime string
Time at which the request to delete the WorkerPool was received.
name string
The resource name of the WorkerPool. Format of the name is projects/{project_id}/workerPools/{worker_pool_id}, where the value of {worker_pool_id} is provided in the CreateWorkerPool request.
networkConfig NetworkConfigResponse
Network configuration for the WorkerPool.
region string
Immutable. The region where the WorkerPool runs. Only "us-central1" is currently supported. Note that region cannot be changed once the WorkerPool is created.
state string
WorkerPool state.
updateTime string
Time at which the request to update the WorkerPool was received.
workerConfig WorkerConfigResponse
Worker configuration for the WorkerPool.
create_time str
Time at which the request to create the WorkerPool was received.
delete_time str
Time at which the request to delete the WorkerPool was received.
name str
The resource name of the WorkerPool. Format of the name is projects/{project_id}/workerPools/{worker_pool_id}, where the value of {worker_pool_id} is provided in the CreateWorkerPool request.
network_config NetworkConfigResponse
Network configuration for the WorkerPool.
region str
Immutable. The region where the WorkerPool runs. Only "us-central1" is currently supported. Note that region cannot be changed once the WorkerPool is created.
state str
WorkerPool state.
update_time str
Time at which the request to update the WorkerPool was received.
worker_config WorkerConfigResponse
Worker configuration for the WorkerPool.
createTime String
Time at which the request to create the WorkerPool was received.
deleteTime String
Time at which the request to delete the WorkerPool was received.
name String
The resource name of the WorkerPool. Format of the name is projects/{project_id}/workerPools/{worker_pool_id}, where the value of {worker_pool_id} is provided in the CreateWorkerPool request.
networkConfig Property Map
Network configuration for the WorkerPool.
region String
Immutable. The region where the WorkerPool runs. Only "us-central1" is currently supported. Note that region cannot be changed once the WorkerPool is created.
state String
WorkerPool state.
updateTime String
Time at which the request to update the WorkerPool was received.
workerConfig Property Map
Worker configuration for the WorkerPool.

Supporting Types

NetworkConfigResponse

PeeredNetwork This property is required. string
Immutable. The network definition that the workers are peered to. If this section is left empty, the workers will be peered to WorkerPool.project_id on the default network. Must be in the format projects/{project}/global/networks/{network}, where {project} is a project number, such as 12345, and {network} is the name of a VPC network in the project.
PeeredNetwork This property is required. string
Immutable. The network definition that the workers are peered to. If this section is left empty, the workers will be peered to WorkerPool.project_id on the default network. Must be in the format projects/{project}/global/networks/{network}, where {project} is a project number, such as 12345, and {network} is the name of a VPC network in the project.
peeredNetwork This property is required. String
Immutable. The network definition that the workers are peered to. If this section is left empty, the workers will be peered to WorkerPool.project_id on the default network. Must be in the format projects/{project}/global/networks/{network}, where {project} is a project number, such as 12345, and {network} is the name of a VPC network in the project.
peeredNetwork This property is required. string
Immutable. The network definition that the workers are peered to. If this section is left empty, the workers will be peered to WorkerPool.project_id on the default network. Must be in the format projects/{project}/global/networks/{network}, where {project} is a project number, such as 12345, and {network} is the name of a VPC network in the project.
peered_network This property is required. str
Immutable. The network definition that the workers are peered to. If this section is left empty, the workers will be peered to WorkerPool.project_id on the default network. Must be in the format projects/{project}/global/networks/{network}, where {project} is a project number, such as 12345, and {network} is the name of a VPC network in the project.
peeredNetwork This property is required. String
Immutable. The network definition that the workers are peered to. If this section is left empty, the workers will be peered to WorkerPool.project_id on the default network. Must be in the format projects/{project}/global/networks/{network}, where {project} is a project number, such as 12345, and {network} is the name of a VPC network in the project.

WorkerConfigResponse

DiskSizeGb This property is required. string
Size of the disk attached to the worker, in GB. See https://cloud.google.com/compute/docs/disks/ If 0 is specified, Cloud Build will use a standard disk size.
MachineType This property is required. string
Machine Type of the worker, such as n1-standard-1. See https://cloud.google.com/compute/docs/machine-types. If left blank, Cloud Build will use a standard unspecified machine to create the worker pool.
DiskSizeGb This property is required. string
Size of the disk attached to the worker, in GB. See https://cloud.google.com/compute/docs/disks/ If 0 is specified, Cloud Build will use a standard disk size.
MachineType This property is required. string
Machine Type of the worker, such as n1-standard-1. See https://cloud.google.com/compute/docs/machine-types. If left blank, Cloud Build will use a standard unspecified machine to create the worker pool.
diskSizeGb This property is required. String
Size of the disk attached to the worker, in GB. See https://cloud.google.com/compute/docs/disks/ If 0 is specified, Cloud Build will use a standard disk size.
machineType This property is required. String
Machine Type of the worker, such as n1-standard-1. See https://cloud.google.com/compute/docs/machine-types. If left blank, Cloud Build will use a standard unspecified machine to create the worker pool.
diskSizeGb This property is required. string
Size of the disk attached to the worker, in GB. See https://cloud.google.com/compute/docs/disks/ If 0 is specified, Cloud Build will use a standard disk size.
machineType This property is required. string
Machine Type of the worker, such as n1-standard-1. See https://cloud.google.com/compute/docs/machine-types. If left blank, Cloud Build will use a standard unspecified machine to create the worker pool.
disk_size_gb This property is required. str
Size of the disk attached to the worker, in GB. See https://cloud.google.com/compute/docs/disks/ If 0 is specified, Cloud Build will use a standard disk size.
machine_type This property is required. str
Machine Type of the worker, such as n1-standard-1. See https://cloud.google.com/compute/docs/machine-types. If left blank, Cloud Build will use a standard unspecified machine to create the worker pool.
diskSizeGb This property is required. String
Size of the disk attached to the worker, in GB. See https://cloud.google.com/compute/docs/disks/ If 0 is specified, Cloud Build will use a standard disk size.
machineType This property is required. String
Machine Type of the worker, such as n1-standard-1. See https://cloud.google.com/compute/docs/machine-types. If left blank, Cloud Build will use a standard unspecified machine to create the worker pool.

Package Details

Repository
Google Cloud Native pulumi/pulumi-google-native
License
Apache-2.0

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi