google-native.cloudbuild/v1alpha2.getWorkerPool
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>
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]
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 CompletableFuture<GetWorkerPoolResult> getWorkerPool(GetWorkerPoolArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: google-native:cloudbuild/v1alpha2:getWorkerPool
arguments:
# arguments dictionary
The following arguments are supported:
- Worker
Pool stringId - Project string
- Worker
Pool stringId - Project string
- worker
Pool StringId - project String
- worker
Pool stringId - project string
- worker_
pool_ strid - project str
- worker
Pool StringId - project String
getWorkerPool Result
The following output properties are available:
- Create
Time string Time at which the request to create the
WorkerPool
was received.- Delete
Time string Time at which the request to delete the
WorkerPool
was received.- Name string
The resource name of the
WorkerPool
. Format of the name isprojects/{project_id}/workerPools/{worker_pool_id}
, where the value of {worker_pool_id} is provided in the CreateWorkerPool request.- Network
Config Pulumi.Google Native. Cloud Build. V1Alpha2. Outputs. Network Config Response Network configuration for the
WorkerPool
.- Region string
Immutable. The region where the
WorkerPool
runs. Only "us-central1" is currently supported. Note thatregion
cannot be changed once theWorkerPool
is created.- State string
WorkerPool state.
- Update
Time string Time at which the request to update the
WorkerPool
was received.- Worker
Config Pulumi.Google Native. Cloud Build. V1Alpha2. Outputs. Worker Config Response Worker configuration for the
WorkerPool
.
- Create
Time string Time at which the request to create the
WorkerPool
was received.- Delete
Time string Time at which the request to delete the
WorkerPool
was received.- Name string
The resource name of the
WorkerPool
. Format of the name isprojects/{project_id}/workerPools/{worker_pool_id}
, where the value of {worker_pool_id} is provided in the CreateWorkerPool request.- Network
Config NetworkConfig Response Network configuration for the
WorkerPool
.- Region string
Immutable. The region where the
WorkerPool
runs. Only "us-central1" is currently supported. Note thatregion
cannot be changed once theWorkerPool
is created.- State string
WorkerPool state.
- Update
Time string Time at which the request to update the
WorkerPool
was received.- Worker
Config WorkerConfig Response Worker configuration for the
WorkerPool
.
- create
Time String Time at which the request to create the
WorkerPool
was received.- delete
Time String Time at which the request to delete the
WorkerPool
was received.- name String
The resource name of the
WorkerPool
. Format of the name isprojects/{project_id}/workerPools/{worker_pool_id}
, where the value of {worker_pool_id} is provided in the CreateWorkerPool request.- network
Config NetworkConfig Response Network configuration for the
WorkerPool
.- region String
Immutable. The region where the
WorkerPool
runs. Only "us-central1" is currently supported. Note thatregion
cannot be changed once theWorkerPool
is created.- state String
WorkerPool state.
- update
Time String Time at which the request to update the
WorkerPool
was received.- worker
Config WorkerConfig Response Worker configuration for the
WorkerPool
.
- create
Time string Time at which the request to create the
WorkerPool
was received.- delete
Time string Time at which the request to delete the
WorkerPool
was received.- name string
The resource name of the
WorkerPool
. Format of the name isprojects/{project_id}/workerPools/{worker_pool_id}
, where the value of {worker_pool_id} is provided in the CreateWorkerPool request.- network
Config NetworkConfig Response Network configuration for the
WorkerPool
.- region string
Immutable. The region where the
WorkerPool
runs. Only "us-central1" is currently supported. Note thatregion
cannot be changed once theWorkerPool
is created.- state string
WorkerPool state.
- update
Time string Time at which the request to update the
WorkerPool
was received.- worker
Config WorkerConfig Response 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 isprojects/{project_id}/workerPools/{worker_pool_id}
, where the value of {worker_pool_id} is provided in the CreateWorkerPool request.- network_
config NetworkConfig Response Network configuration for the
WorkerPool
.- region str
Immutable. The region where the
WorkerPool
runs. Only "us-central1" is currently supported. Note thatregion
cannot be changed once theWorkerPool
is created.- state str
WorkerPool state.
- update_
time str Time at which the request to update the
WorkerPool
was received.- worker_
config WorkerConfig Response Worker configuration for the
WorkerPool
.
- create
Time String Time at which the request to create the
WorkerPool
was received.- delete
Time String Time at which the request to delete the
WorkerPool
was received.- name String
The resource name of the
WorkerPool
. Format of the name isprojects/{project_id}/workerPools/{worker_pool_id}
, where the value of {worker_pool_id} is provided in the CreateWorkerPool request.- network
Config Property Map Network configuration for the
WorkerPool
.- region String
Immutable. The region where the
WorkerPool
runs. Only "us-central1" is currently supported. Note thatregion
cannot be changed once theWorkerPool
is created.- state String
WorkerPool state.
- update
Time String Time at which the request to update the
WorkerPool
was received.- worker
Config Property Map Worker configuration for the
WorkerPool
.
Supporting Types
NetworkConfigResponse
- Peered
Network 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 as12345
, and {network} is the name of a VPC network in the project.
- Peered
Network 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 as12345
, and {network} is the name of a VPC network in the project.
- peered
Network 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 as12345
, and {network} is the name of a VPC network in the project.
- peered
Network 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 as12345
, and {network} is the name of a VPC network in the project.
- peered_
network 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 as12345
, and {network} is the name of a VPC network in the project.
- peered
Network 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 as12345
, and {network} is the name of a VPC network in the project.
WorkerConfigResponse
- Disk
Size stringGb 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 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 stringGb 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 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 StringGb 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 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 stringGb 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 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_ strgb 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 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.
- disk
Size StringGb 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 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