googleapis / googleapis/google-cloud-node

Unable to list and return status of Instance long running operaions

Open
#7,374 0 comments 0 reactions 0 assignees View on GitHub
api: spanner library: spanner priority: p2 type: bug
Dominant language
TypeScript
Stars
3.2k
Forks
712
Avg merge
2d 3h
Merged PRs (30d)
99

Description

#### Environment details

- OS: All
- Node.js version: v20.11.1
- npm version: 10.2.4
- `@google-cloud/spanner` version: 7.5.0

#### Steps to reproduce

* Start a long running Instance operation externally to Node.JS, for example changing size of an instance.
* Retrieve the Operation ID (`projects/xxx/instances/yyy/operations/zzz`) of this LRO
* Attempt to use the Node.JS Cloud Spanner Client Library to retrieve the status of this operation using only the Operation ID.

This is not possible - There is no public interface to list or get LROs on the instance object (by contrast there _is_ an interfacev to get the InstanceConfigOperations

* https://googleapis.dev/nodejs/spanner/latest/Instance.html
* https://googleapis.dev/nodejs/spanner/latest/v1.InstanceAdminClient.html

This is only possible using the REST API:
* https://cloud.google.com/spanner/docs/manage-and-observe-long-running-operations for how to get the status using REST API.
* https://cloud.google.com/spanner/docs/reference/rest/v1/projects.instances.operations REST operations

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.