getInstance method

ResponseFuture<GetInstanceResponse> getInstance(
  1. GetInstanceRequest request, {
  2. CallOptions? options,
})

Get Instance

Returns the instance in the current context or by its ID. By default the instance will be determined by the context of the request, e.g. the host header. You can optionally pass an InstanceID to retrieve a specific instance. This requires additional permissions.

Required permissions:

  • iam.read
  • system.instance.read (if InstanceID is set)

Implementation

$grpc.ResponseFuture<$0.GetInstanceResponse> getInstance(
  $0.GetInstanceRequest request, {
  $grpc.CallOptions? options,
}) {
  return $createUnaryCall(_$getInstance, request, options: options);
}