Getting Operation Information

Use this topic to learn how to get status information and other metadata about Cloud Filestore operations.

Before you begin

If you want to use the command-line examples in this topic, enable the gcloud command-line tool by installing the Cloud SDK.

Getting information about all operations

  1. Get a list of Cloud Filestore operations by running the operations list command, replacing [VALUES_IN_BRACKETS] with the appropriate values:

    gcloud filestore operations list
        --project=[PROJECT_ID] \
        --location=[LOCATION]
    

    where:

    • [PROJECT_ID] is the ID of the GCP project that contains the instance associated with the operation. You can skip this flag if you have set the gcloud default project and want to use that.
    • [LOCATION] is the GCP zone for which you want to list Cloud Filestore operations. If you skip this flag, operations in all locations are returned. Run the gcloud filestore locations list command to get a list of supported locations.

Response

The operations list command returns a response similar to the following:

OPERATION_NAME                                           LOCATION        TYPE    TARGET   STATUS  CREATE_TIME          DURATION
operation-1505929956434-559a2a41c217c-231e6a94-a4b6a803  us-central1-c   create  nfs1     DONE    2017-09-20T17:52:36  <1S
operation-1505931180862-559a2ed176d0d-a0d70ae0-35ef2e71  europe-west1-b  create  nfs2     DONE    2017-09-20T18:13:00  <1S

Getting information about a specific operation

  1. Get the details for a specific Cloud Filestore operation by running the operations describe command, replacing [VALUES_IN_BRACKETS] with the appropriate values:

    gcloud filestore operations describe [OPERATION_NAME] \
        --project=[PROJECT_ID] \
        --location=[LOCATION]
    

    where:

    • [OPERATION_NAME] is the name of the Cloud Filestore operation. Use the operations list command to get a list of operation names.
    • [PROJECT_ID] is the ID of the GCP project that contains the instance associated with the operation. You can skip this flag if you have set the gcloud default project and want to use that.
    • [LOCATION] is the GCP zone in which the instance associated with the operation resides. Run the gcloud filestore locations list command to get a list of supported locations. You can skip this flag if you have set the gcloud default location by running the gcloud config set filestore/location command.

Response

The operations describe command returns a response similar to the following:

done: true
metadata:
  '@type': type.googleapis.com/google.cloud.common.OperationMetadata
  apiVersion: v1beta1
  createTime: '2017-10-09T22:18:09.347400Z'
  endTime: '2017-10-09T22:20:04.392199183Z'
  target: projects/filestore-test/locations/us-central1-c/instances/filer3
  verb: delete
name: projects/filestore-test/locations/us-central1-c/operations/operation-1507587489330-55b2490c4f394-faece090-1c0e16db
このページは役立ちましたか?評価をお願いいたします。

フィードバックを送信...

Cloud Filestore Documentation