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.remotebuildexecution/v1alpha.getInstance
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 the specified instance.
Using getInstance
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 getInstance(args: GetInstanceArgs, opts?: InvokeOptions): Promise<GetInstanceResult>
function getInstanceOutput(args: GetInstanceOutputArgs, opts?: InvokeOptions): Output<GetInstanceResult>
def get_instance(instance_id: Optional[str] = None,
project: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetInstanceResult
def get_instance_output(instance_id: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetInstanceResult]
func LookupInstance(ctx *Context, args *LookupInstanceArgs, opts ...InvokeOption) (*LookupInstanceResult, error)
func LookupInstanceOutput(ctx *Context, args *LookupInstanceOutputArgs, opts ...InvokeOption) LookupInstanceResultOutput
> Note: This function is named LookupInstance
in the Go SDK.
public static class GetInstance
{
public static Task<GetInstanceResult> InvokeAsync(GetInstanceArgs args, InvokeOptions? opts = null)
public static Output<GetInstanceResult> Invoke(GetInstanceInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetInstanceResult> getInstance(GetInstanceArgs args, InvokeOptions options)
public static Output<GetInstanceResult> getInstance(GetInstanceArgs args, InvokeOptions options)
fn::invoke:
function: google-native:remotebuildexecution/v1alpha:getInstance
arguments:
# arguments dictionary
The following arguments are supported:
- Instance
Id This property is required. string - Project string
- Instance
Id This property is required. string - Project string
- instance
Id This property is required. String - project String
- instance
Id This property is required. string - project string
- instance_
id This property is required. str - project str
- instance
Id This property is required. String - project String
getInstance Result
The following output properties are available:
- Feature
Policy Pulumi.Google Native. Remote Build Execution. V1Alpha. Outputs. Google Devtools Remotebuildexecution Admin V1alpha Feature Policy Response - The policy to define whether or not RBE features can be used or how they can be used.
- Location string
- The location is a GCP region. Currently only
us-central1
is supported. - Logging
Enabled bool - Whether stack driver logging is enabled for the instance.
- Name string
- Instance resource name formatted as:
projects/[PROJECT_ID]/instances/[INSTANCE_ID]
. Name should not be populated when creating an instance since it is provided in theinstance_id
field. - State string
- State of the instance.
- Feature
Policy GoogleDevtools Remotebuildexecution Admin V1alpha Feature Policy Response - The policy to define whether or not RBE features can be used or how they can be used.
- Location string
- The location is a GCP region. Currently only
us-central1
is supported. - Logging
Enabled bool - Whether stack driver logging is enabled for the instance.
- Name string
- Instance resource name formatted as:
projects/[PROJECT_ID]/instances/[INSTANCE_ID]
. Name should not be populated when creating an instance since it is provided in theinstance_id
field. - State string
- State of the instance.
- feature
Policy GoogleDevtools Remotebuildexecution Admin V1alpha Feature Policy Response - The policy to define whether or not RBE features can be used or how they can be used.
- location String
- The location is a GCP region. Currently only
us-central1
is supported. - logging
Enabled Boolean - Whether stack driver logging is enabled for the instance.
- name String
- Instance resource name formatted as:
projects/[PROJECT_ID]/instances/[INSTANCE_ID]
. Name should not be populated when creating an instance since it is provided in theinstance_id
field. - state String
- State of the instance.
- feature
Policy GoogleDevtools Remotebuildexecution Admin V1alpha Feature Policy Response - The policy to define whether or not RBE features can be used or how they can be used.
- location string
- The location is a GCP region. Currently only
us-central1
is supported. - logging
Enabled boolean - Whether stack driver logging is enabled for the instance.
- name string
- Instance resource name formatted as:
projects/[PROJECT_ID]/instances/[INSTANCE_ID]
. Name should not be populated when creating an instance since it is provided in theinstance_id
field. - state string
- State of the instance.
- feature_
policy GoogleDevtools Remotebuildexecution Admin V1alpha Feature Policy Response - The policy to define whether or not RBE features can be used or how they can be used.
- location str
- The location is a GCP region. Currently only
us-central1
is supported. - logging_
enabled bool - Whether stack driver logging is enabled for the instance.
- name str
- Instance resource name formatted as:
projects/[PROJECT_ID]/instances/[INSTANCE_ID]
. Name should not be populated when creating an instance since it is provided in theinstance_id
field. - state str
- State of the instance.
- feature
Policy Property Map - The policy to define whether or not RBE features can be used or how they can be used.
- location String
- The location is a GCP region. Currently only
us-central1
is supported. - logging
Enabled Boolean - Whether stack driver logging is enabled for the instance.
- name String
- Instance resource name formatted as:
projects/[PROJECT_ID]/instances/[INSTANCE_ID]
. Name should not be populated when creating an instance since it is provided in theinstance_id
field. - state String
- State of the instance.
Supporting Types
GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse
- Allowed
Values This property is required. List<string> - A list of acceptable values. Only effective when the policy is
RESTRICTED
. - Policy
This property is required. string - The policy of the feature.
- Allowed
Values This property is required. []string - A list of acceptable values. Only effective when the policy is
RESTRICTED
. - Policy
This property is required. string - The policy of the feature.
- allowed
Values This property is required. List<String> - A list of acceptable values. Only effective when the policy is
RESTRICTED
. - policy
This property is required. String - The policy of the feature.
- allowed
Values This property is required. string[] - A list of acceptable values. Only effective when the policy is
RESTRICTED
. - policy
This property is required. string - The policy of the feature.
- allowed_
values This property is required. Sequence[str] - A list of acceptable values. Only effective when the policy is
RESTRICTED
. - policy
This property is required. str - The policy of the feature.
- allowed
Values This property is required. List<String> - A list of acceptable values. Only effective when the policy is
RESTRICTED
. - policy
This property is required. String - The policy of the feature.
GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyResponse
- Container
Image Sources This property is required. Pulumi.Google Native. Remote Build Execution. V1Alpha. Inputs. Google Devtools Remotebuildexecution Admin V1alpha Feature Policy Feature Response - Which container image sources are allowed. Currently only RBE-supported registry (gcr.io) is allowed. One can allow all repositories under a project or one specific repository only. E.g. container_image_sources { policy: RESTRICTED allowed_values: [ "gcr.io/project-foo", "gcr.io/project-bar/repo-baz", ] } will allow any repositories under "gcr.io/project-foo" plus the repository "gcr.io/project-bar/repo-baz". Default (UNSPECIFIED) is equivalent to any source is allowed.
- Docker
Add Capabilities This property is required. Pulumi.Google Native. Remote Build Execution. V1Alpha. Inputs. Google Devtools Remotebuildexecution Admin V1alpha Feature Policy Feature Response - Whether dockerAddCapabilities can be used or what capabilities are allowed.
- Docker
Chroot Path This property is required. Pulumi.Google Native. Remote Build Execution. V1Alpha. Inputs. Google Devtools Remotebuildexecution Admin V1alpha Feature Policy Feature Response - Whether dockerChrootPath can be used.
- Docker
Network This property is required. Pulumi.Google Native. Remote Build Execution. V1Alpha. Inputs. Google Devtools Remotebuildexecution Admin V1alpha Feature Policy Feature Response - Whether dockerNetwork can be used or what network modes are allowed. E.g. one may allow
off
value only viaallowed_values
. - Docker
Privileged This property is required. Pulumi.Google Native. Remote Build Execution. V1Alpha. Inputs. Google Devtools Remotebuildexecution Admin V1alpha Feature Policy Feature Response - Whether dockerPrivileged can be used.
- Docker
Run As Root This property is required. Pulumi.Google Native. Remote Build Execution. V1Alpha. Inputs. Google Devtools Remotebuildexecution Admin V1alpha Feature Policy Feature Response - Whether dockerRunAsRoot can be used.
- Docker
Runtime This property is required. Pulumi.Google Native. Remote Build Execution. V1Alpha. Inputs. Google Devtools Remotebuildexecution Admin V1alpha Feature Policy Feature Response - Whether dockerRuntime is allowed to be set or what runtimes are allowed. Note linux_isolation takes precedence, and if set, docker_runtime values may be rejected if they are incompatible with the selected isolation.
- Docker
Sibling Containers This property is required. Pulumi.Google Native. Remote Build Execution. V1Alpha. Inputs. Google Devtools Remotebuildexecution Admin V1alpha Feature Policy Feature Response - Whether dockerSiblingContainers can be used.
- Linux
Isolation This property is required. string - linux_isolation allows overriding the docker runtime used for containers started on Linux.
- Container
Image Sources This property is required. GoogleDevtools Remotebuildexecution Admin V1alpha Feature Policy Feature Response - Which container image sources are allowed. Currently only RBE-supported registry (gcr.io) is allowed. One can allow all repositories under a project or one specific repository only. E.g. container_image_sources { policy: RESTRICTED allowed_values: [ "gcr.io/project-foo", "gcr.io/project-bar/repo-baz", ] } will allow any repositories under "gcr.io/project-foo" plus the repository "gcr.io/project-bar/repo-baz". Default (UNSPECIFIED) is equivalent to any source is allowed.
- Docker
Add Capabilities This property is required. GoogleDevtools Remotebuildexecution Admin V1alpha Feature Policy Feature Response - Whether dockerAddCapabilities can be used or what capabilities are allowed.
- Docker
Chroot Path This property is required. GoogleDevtools Remotebuildexecution Admin V1alpha Feature Policy Feature Response - Whether dockerChrootPath can be used.
- Docker
Network This property is required. GoogleDevtools Remotebuildexecution Admin V1alpha Feature Policy Feature Response - Whether dockerNetwork can be used or what network modes are allowed. E.g. one may allow
off
value only viaallowed_values
. - Docker
Privileged This property is required. GoogleDevtools Remotebuildexecution Admin V1alpha Feature Policy Feature Response - Whether dockerPrivileged can be used.
- Docker
Run As Root This property is required. GoogleDevtools Remotebuildexecution Admin V1alpha Feature Policy Feature Response - Whether dockerRunAsRoot can be used.
- Docker
Runtime This property is required. GoogleDevtools Remotebuildexecution Admin V1alpha Feature Policy Feature Response - Whether dockerRuntime is allowed to be set or what runtimes are allowed. Note linux_isolation takes precedence, and if set, docker_runtime values may be rejected if they are incompatible with the selected isolation.
- Docker
Sibling Containers This property is required. GoogleDevtools Remotebuildexecution Admin V1alpha Feature Policy Feature Response - Whether dockerSiblingContainers can be used.
- Linux
Isolation This property is required. string - linux_isolation allows overriding the docker runtime used for containers started on Linux.
- container
Image Sources This property is required. GoogleDevtools Remotebuildexecution Admin V1alpha Feature Policy Feature Response - Which container image sources are allowed. Currently only RBE-supported registry (gcr.io) is allowed. One can allow all repositories under a project or one specific repository only. E.g. container_image_sources { policy: RESTRICTED allowed_values: [ "gcr.io/project-foo", "gcr.io/project-bar/repo-baz", ] } will allow any repositories under "gcr.io/project-foo" plus the repository "gcr.io/project-bar/repo-baz". Default (UNSPECIFIED) is equivalent to any source is allowed.
- docker
Add Capabilities This property is required. GoogleDevtools Remotebuildexecution Admin V1alpha Feature Policy Feature Response - Whether dockerAddCapabilities can be used or what capabilities are allowed.
- docker
Chroot Path This property is required. GoogleDevtools Remotebuildexecution Admin V1alpha Feature Policy Feature Response - Whether dockerChrootPath can be used.
- docker
Network This property is required. GoogleDevtools Remotebuildexecution Admin V1alpha Feature Policy Feature Response - Whether dockerNetwork can be used or what network modes are allowed. E.g. one may allow
off
value only viaallowed_values
. - docker
Privileged This property is required. GoogleDevtools Remotebuildexecution Admin V1alpha Feature Policy Feature Response - Whether dockerPrivileged can be used.
- docker
Run As Root This property is required. GoogleDevtools Remotebuildexecution Admin V1alpha Feature Policy Feature Response - Whether dockerRunAsRoot can be used.
- docker
Runtime This property is required. GoogleDevtools Remotebuildexecution Admin V1alpha Feature Policy Feature Response - Whether dockerRuntime is allowed to be set or what runtimes are allowed. Note linux_isolation takes precedence, and if set, docker_runtime values may be rejected if they are incompatible with the selected isolation.
- docker
Sibling Containers This property is required. GoogleDevtools Remotebuildexecution Admin V1alpha Feature Policy Feature Response - Whether dockerSiblingContainers can be used.
- linux
Isolation This property is required. String - linux_isolation allows overriding the docker runtime used for containers started on Linux.
- container
Image Sources This property is required. GoogleDevtools Remotebuildexecution Admin V1alpha Feature Policy Feature Response - Which container image sources are allowed. Currently only RBE-supported registry (gcr.io) is allowed. One can allow all repositories under a project or one specific repository only. E.g. container_image_sources { policy: RESTRICTED allowed_values: [ "gcr.io/project-foo", "gcr.io/project-bar/repo-baz", ] } will allow any repositories under "gcr.io/project-foo" plus the repository "gcr.io/project-bar/repo-baz". Default (UNSPECIFIED) is equivalent to any source is allowed.
- docker
Add Capabilities This property is required. GoogleDevtools Remotebuildexecution Admin V1alpha Feature Policy Feature Response - Whether dockerAddCapabilities can be used or what capabilities are allowed.
- docker
Chroot Path This property is required. GoogleDevtools Remotebuildexecution Admin V1alpha Feature Policy Feature Response - Whether dockerChrootPath can be used.
- docker
Network This property is required. GoogleDevtools Remotebuildexecution Admin V1alpha Feature Policy Feature Response - Whether dockerNetwork can be used or what network modes are allowed. E.g. one may allow
off
value only viaallowed_values
. - docker
Privileged This property is required. GoogleDevtools Remotebuildexecution Admin V1alpha Feature Policy Feature Response - Whether dockerPrivileged can be used.
- docker
Run As Root This property is required. GoogleDevtools Remotebuildexecution Admin V1alpha Feature Policy Feature Response - Whether dockerRunAsRoot can be used.
- docker
Runtime This property is required. GoogleDevtools Remotebuildexecution Admin V1alpha Feature Policy Feature Response - Whether dockerRuntime is allowed to be set or what runtimes are allowed. Note linux_isolation takes precedence, and if set, docker_runtime values may be rejected if they are incompatible with the selected isolation.
- docker
Sibling Containers This property is required. GoogleDevtools Remotebuildexecution Admin V1alpha Feature Policy Feature Response - Whether dockerSiblingContainers can be used.
- linux
Isolation This property is required. string - linux_isolation allows overriding the docker runtime used for containers started on Linux.
- container_
image_ sources This property is required. GoogleDevtools Remotebuildexecution Admin V1alpha Feature Policy Feature Response - Which container image sources are allowed. Currently only RBE-supported registry (gcr.io) is allowed. One can allow all repositories under a project or one specific repository only. E.g. container_image_sources { policy: RESTRICTED allowed_values: [ "gcr.io/project-foo", "gcr.io/project-bar/repo-baz", ] } will allow any repositories under "gcr.io/project-foo" plus the repository "gcr.io/project-bar/repo-baz". Default (UNSPECIFIED) is equivalent to any source is allowed.
- docker_
add_ capabilities This property is required. GoogleDevtools Remotebuildexecution Admin V1alpha Feature Policy Feature Response - Whether dockerAddCapabilities can be used or what capabilities are allowed.
- docker_
chroot_ path This property is required. GoogleDevtools Remotebuildexecution Admin V1alpha Feature Policy Feature Response - Whether dockerChrootPath can be used.
- docker_
network This property is required. GoogleDevtools Remotebuildexecution Admin V1alpha Feature Policy Feature Response - Whether dockerNetwork can be used or what network modes are allowed. E.g. one may allow
off
value only viaallowed_values
. - docker_
privileged This property is required. GoogleDevtools Remotebuildexecution Admin V1alpha Feature Policy Feature Response - Whether dockerPrivileged can be used.
- docker_
run_ as_ root This property is required. GoogleDevtools Remotebuildexecution Admin V1alpha Feature Policy Feature Response - Whether dockerRunAsRoot can be used.
- docker_
runtime This property is required. GoogleDevtools Remotebuildexecution Admin V1alpha Feature Policy Feature Response - Whether dockerRuntime is allowed to be set or what runtimes are allowed. Note linux_isolation takes precedence, and if set, docker_runtime values may be rejected if they are incompatible with the selected isolation.
- docker_
sibling_ containers This property is required. GoogleDevtools Remotebuildexecution Admin V1alpha Feature Policy Feature Response - Whether dockerSiblingContainers can be used.
- linux_
isolation This property is required. str - linux_isolation allows overriding the docker runtime used for containers started on Linux.
- container
Image Sources This property is required. Property Map - Which container image sources are allowed. Currently only RBE-supported registry (gcr.io) is allowed. One can allow all repositories under a project or one specific repository only. E.g. container_image_sources { policy: RESTRICTED allowed_values: [ "gcr.io/project-foo", "gcr.io/project-bar/repo-baz", ] } will allow any repositories under "gcr.io/project-foo" plus the repository "gcr.io/project-bar/repo-baz". Default (UNSPECIFIED) is equivalent to any source is allowed.
- docker
Add Capabilities This property is required. Property Map - Whether dockerAddCapabilities can be used or what capabilities are allowed.
- docker
Chroot Path This property is required. Property Map - Whether dockerChrootPath can be used.
- docker
Network This property is required. Property Map - Whether dockerNetwork can be used or what network modes are allowed. E.g. one may allow
off
value only viaallowed_values
. - docker
Privileged This property is required. Property Map - Whether dockerPrivileged can be used.
- docker
Run As Root This property is required. Property Map - Whether dockerRunAsRoot can be used.
- docker
Runtime This property is required. Property Map - Whether dockerRuntime is allowed to be set or what runtimes are allowed. Note linux_isolation takes precedence, and if set, docker_runtime values may be rejected if they are incompatible with the selected isolation.
- docker
Sibling Containers This property is required. Property Map - Whether dockerSiblingContainers can be used.
- linux
Isolation This property is required. String - linux_isolation allows overriding the docker runtime used for containers started on Linux.
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