1. Packages
  2. Google Cloud Native
  3. API Docs
  4. remotebuildexecution
  5. remotebuildexecution/v1alpha
  6. getInstance

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>
Copy
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]
Copy
func LookupInstance(ctx *Context, args *LookupInstanceArgs, opts ...InvokeOption) (*LookupInstanceResult, error)
func LookupInstanceOutput(ctx *Context, args *LookupInstanceOutputArgs, opts ...InvokeOption) LookupInstanceResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetInstanceResult> getInstance(GetInstanceArgs args, InvokeOptions options)
public static Output<GetInstanceResult> getInstance(GetInstanceArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: google-native:remotebuildexecution/v1alpha:getInstance
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

InstanceId This property is required. string
Project string
InstanceId This property is required. string
Project string
instanceId This property is required. String
project String
instanceId This property is required. string
project string
instance_id This property is required. str
project str
instanceId This property is required. String
project String

getInstance Result

The following output properties are available:

FeaturePolicy Pulumi.GoogleNative.RemoteBuildExecution.V1Alpha.Outputs.GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyResponse
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.
LoggingEnabled 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 the instance_id field.
State string
State of the instance.
FeaturePolicy GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyResponse
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.
LoggingEnabled 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 the instance_id field.
State string
State of the instance.
featurePolicy GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyResponse
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.
loggingEnabled 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 the instance_id field.
state String
State of the instance.
featurePolicy GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyResponse
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.
loggingEnabled 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 the instance_id field.
state string
State of the instance.
feature_policy GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyResponse
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 the instance_id field.
state str
State of the instance.
featurePolicy 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.
loggingEnabled 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 the instance_id field.
state String
State of the instance.

Supporting Types

GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse

AllowedValues 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.
AllowedValues 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.
allowedValues 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.
allowedValues 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.
allowedValues 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

ContainerImageSources This property is required. Pulumi.GoogleNative.RemoteBuildExecution.V1Alpha.Inputs.GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse
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.
DockerAddCapabilities This property is required. Pulumi.GoogleNative.RemoteBuildExecution.V1Alpha.Inputs.GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse
Whether dockerAddCapabilities can be used or what capabilities are allowed.
DockerChrootPath This property is required. Pulumi.GoogleNative.RemoteBuildExecution.V1Alpha.Inputs.GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse
Whether dockerChrootPath can be used.
DockerNetwork This property is required. Pulumi.GoogleNative.RemoteBuildExecution.V1Alpha.Inputs.GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse
Whether dockerNetwork can be used or what network modes are allowed. E.g. one may allow off value only via allowed_values.
DockerPrivileged This property is required. Pulumi.GoogleNative.RemoteBuildExecution.V1Alpha.Inputs.GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse
Whether dockerPrivileged can be used.
DockerRunAsRoot This property is required. Pulumi.GoogleNative.RemoteBuildExecution.V1Alpha.Inputs.GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse
Whether dockerRunAsRoot can be used.
DockerRuntime This property is required. Pulumi.GoogleNative.RemoteBuildExecution.V1Alpha.Inputs.GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse
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.
DockerSiblingContainers This property is required. Pulumi.GoogleNative.RemoteBuildExecution.V1Alpha.Inputs.GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse
Whether dockerSiblingContainers can be used.
LinuxIsolation This property is required. string
linux_isolation allows overriding the docker runtime used for containers started on Linux.
ContainerImageSources This property is required. GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse
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.
DockerAddCapabilities This property is required. GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse
Whether dockerAddCapabilities can be used or what capabilities are allowed.
DockerChrootPath This property is required. GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse
Whether dockerChrootPath can be used.
DockerNetwork This property is required. GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse
Whether dockerNetwork can be used or what network modes are allowed. E.g. one may allow off value only via allowed_values.
DockerPrivileged This property is required. GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse
Whether dockerPrivileged can be used.
DockerRunAsRoot This property is required. GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse
Whether dockerRunAsRoot can be used.
DockerRuntime This property is required. GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse
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.
DockerSiblingContainers This property is required. GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse
Whether dockerSiblingContainers can be used.
LinuxIsolation This property is required. string
linux_isolation allows overriding the docker runtime used for containers started on Linux.
containerImageSources This property is required. GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse
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.
dockerAddCapabilities This property is required. GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse
Whether dockerAddCapabilities can be used or what capabilities are allowed.
dockerChrootPath This property is required. GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse
Whether dockerChrootPath can be used.
dockerNetwork This property is required. GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse
Whether dockerNetwork can be used or what network modes are allowed. E.g. one may allow off value only via allowed_values.
dockerPrivileged This property is required. GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse
Whether dockerPrivileged can be used.
dockerRunAsRoot This property is required. GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse
Whether dockerRunAsRoot can be used.
dockerRuntime This property is required. GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse
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.
dockerSiblingContainers This property is required. GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse
Whether dockerSiblingContainers can be used.
linuxIsolation This property is required. String
linux_isolation allows overriding the docker runtime used for containers started on Linux.
containerImageSources This property is required. GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse
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.
dockerAddCapabilities This property is required. GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse
Whether dockerAddCapabilities can be used or what capabilities are allowed.
dockerChrootPath This property is required. GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse
Whether dockerChrootPath can be used.
dockerNetwork This property is required. GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse
Whether dockerNetwork can be used or what network modes are allowed. E.g. one may allow off value only via allowed_values.
dockerPrivileged This property is required. GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse
Whether dockerPrivileged can be used.
dockerRunAsRoot This property is required. GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse
Whether dockerRunAsRoot can be used.
dockerRuntime This property is required. GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse
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.
dockerSiblingContainers This property is required. GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse
Whether dockerSiblingContainers can be used.
linuxIsolation 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. GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse
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. GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse
Whether dockerAddCapabilities can be used or what capabilities are allowed.
docker_chroot_path This property is required. GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse
Whether dockerChrootPath can be used.
docker_network This property is required. GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse
Whether dockerNetwork can be used or what network modes are allowed. E.g. one may allow off value only via allowed_values.
docker_privileged This property is required. GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse
Whether dockerPrivileged can be used.
docker_run_as_root This property is required. GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse
Whether dockerRunAsRoot can be used.
docker_runtime This property is required. GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse
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. GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse
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.
containerImageSources 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.
dockerAddCapabilities This property is required. Property Map
Whether dockerAddCapabilities can be used or what capabilities are allowed.
dockerChrootPath This property is required. Property Map
Whether dockerChrootPath can be used.
dockerNetwork 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 via allowed_values.
dockerPrivileged This property is required. Property Map
Whether dockerPrivileged can be used.
dockerRunAsRoot This property is required. Property Map
Whether dockerRunAsRoot can be used.
dockerRuntime 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.
dockerSiblingContainers This property is required. Property Map
Whether dockerSiblingContainers can be used.
linuxIsolation 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