getInstance

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)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: google-native:remotebuildexecution/v1alpha:getInstance
  arguments:
    # arguments dictionary

The following arguments are supported:

InstanceId string
Project string
InstanceId string
Project string
instanceId String
project String
instanceId string
project string
instanceId 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 List<string>

A list of acceptable values. Only effective when the policy is RESTRICTED.

Policy string

The policy of the feature.

AllowedValues []string

A list of acceptable values. Only effective when the policy is RESTRICTED.

Policy string

The policy of the feature.

allowedValues List<String>

A list of acceptable values. Only effective when the policy is RESTRICTED.

policy String

The policy of the feature.

allowedValues string[]

A list of acceptable values. Only effective when the policy is RESTRICTED.

policy string

The policy of the feature.

allowed_values Sequence[str]

A list of acceptable values. Only effective when the policy is RESTRICTED.

policy str

The policy of the feature.

allowedValues List<String>

A list of acceptable values. Only effective when the policy is RESTRICTED.

policy String

The policy of the feature.

GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyResponse

ContainerImageSources 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 Pulumi.GoogleNative.RemoteBuildExecution.V1Alpha.Inputs.GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse

Whether dockerAddCapabilities can be used or what capabilities are allowed.

DockerChrootPath Pulumi.GoogleNative.RemoteBuildExecution.V1Alpha.Inputs.GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse

Whether dockerChrootPath can be used.

DockerNetwork 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 Pulumi.GoogleNative.RemoteBuildExecution.V1Alpha.Inputs.GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse

Whether dockerPrivileged can be used.

DockerRunAsRoot Pulumi.GoogleNative.RemoteBuildExecution.V1Alpha.Inputs.GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse

Whether dockerRunAsRoot can be used.

DockerRuntime 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 Pulumi.GoogleNative.RemoteBuildExecution.V1Alpha.Inputs.GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse

Whether dockerSiblingContainers can be used.

LinuxIsolation string

linux_isolation allows overriding the docker runtime used for containers started on Linux.

ContainerImageSources 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 GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse

Whether dockerAddCapabilities can be used or what capabilities are allowed.

DockerChrootPath GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse

Whether dockerChrootPath can be used.

DockerNetwork GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse

Whether dockerNetwork can be used or what network modes are allowed. E.g. one may allow off value only via allowed_values.

DockerPrivileged GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse

Whether dockerPrivileged can be used.

DockerRunAsRoot GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse

Whether dockerRunAsRoot can be used.

DockerRuntime 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 GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse

Whether dockerSiblingContainers can be used.

LinuxIsolation string

linux_isolation allows overriding the docker runtime used for containers started on Linux.

containerImageSources 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 GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse

Whether dockerAddCapabilities can be used or what capabilities are allowed.

dockerChrootPath GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse

Whether dockerChrootPath can be used.

dockerNetwork GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse

Whether dockerNetwork can be used or what network modes are allowed. E.g. one may allow off value only via allowed_values.

dockerPrivileged GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse

Whether dockerPrivileged can be used.

dockerRunAsRoot GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse

Whether dockerRunAsRoot can be used.

dockerRuntime 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 GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse

Whether dockerSiblingContainers can be used.

linuxIsolation String

linux_isolation allows overriding the docker runtime used for containers started on Linux.

containerImageSources 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 GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse

Whether dockerAddCapabilities can be used or what capabilities are allowed.

dockerChrootPath GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse

Whether dockerChrootPath can be used.

dockerNetwork GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse

Whether dockerNetwork can be used or what network modes are allowed. E.g. one may allow off value only via allowed_values.

dockerPrivileged GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse

Whether dockerPrivileged can be used.

dockerRunAsRoot GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse

Whether dockerRunAsRoot can be used.

dockerRuntime 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 GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse

Whether dockerSiblingContainers can be used.

linuxIsolation string

linux_isolation allows overriding the docker runtime used for containers started on Linux.

container_image_sources 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 GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse

Whether dockerAddCapabilities can be used or what capabilities are allowed.

docker_chroot_path GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse

Whether dockerChrootPath can be used.

docker_network 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 GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse

Whether dockerPrivileged can be used.

docker_run_as_root GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse

Whether dockerRunAsRoot can be used.

docker_runtime 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 GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeatureResponse

Whether dockerSiblingContainers can be used.

linux_isolation str

linux_isolation allows overriding the docker runtime used for containers started on Linux.

containerImageSources 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 Property Map

Whether dockerAddCapabilities can be used or what capabilities are allowed.

dockerChrootPath Property Map

Whether dockerChrootPath can be used.

dockerNetwork 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 Property Map

Whether dockerPrivileged can be used.

dockerRunAsRoot Property Map

Whether dockerRunAsRoot can be used.

dockerRuntime 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 Property Map

Whether dockerSiblingContainers can be used.

linuxIsolation String

linux_isolation allows overriding the docker runtime used for containers started on Linux.

Package Details

Repository
https://github.com/pulumi/pulumi-google-native
License
Apache-2.0