projects

GET /v1b3/projects/{projectId}/snapshots/{snapshotId}

Changed on

Gets information about a snapshot.

Request

  • Base URL
    https://dataflow.googleapis.com
  • Auth
    • OAuth 2 and OAuth 2
      Implicithttps://accounts.google.com/o/oauth2/auth
      Scopeshttps://www.googleapis.com/auth/cloud-platform
      Authorization codehttps://accounts.google.com/o/oauth2/auth
      Token URLhttps://accounts.google.com/o/oauth2/token
      Scopeshttps://www.googleapis.com/auth/cloud-platform
    • or OAuth 2 and OAuth 2
      Implicithttps://accounts.google.com/o/oauth2/auth
      Scopeshttps://www.googleapis.com/auth/compute
      Authorization codehttps://accounts.google.com/o/oauth2/auth
      Token URLhttps://accounts.google.com/o/oauth2/token
      Scopeshttps://www.googleapis.com/auth/compute
  • TypeScript
    A function with typed inputs. Its response is checked against the schema.

Path parameters

projectIdstring required

The ID of the Cloud Platform project that the snapshot belongs to.

snapshotIdstring required

The ID of the snapshot.

Query parameters

locationstring

The location that contains this snapshot.

Response

Successful response

creationTimestring google-datetime

The time this snapshot was created.

descriptionstring

User specified description of the snapshot. Maybe empty.

diskSizeBytesstring int64

The disk byte size of the snapshot. Only available for snapshots in READY state.

idstring

The unique ID of this snapshot.

projectIdstring

The project this snapshot belongs to.

regionstring

Cloud region where this snapshot lives in, e.g., "us-central1".

sourceJobIdstring

The job this snapshot was created from.

state'UNKNOWN_SNAPSHOT_STATE' | 'PENDING' | 'RUNNING' | 'READY' | 'FAILED' | 'DELETED'

State of the snapshot.

ttlstring google-duration

The time after which this snapshot will be automatically deleted.

Changes

    • info

      the security scope https://www.googleapis.com/auth/cloud-platform was added to the endpoint's security scheme Oauth2

    • info

      the security scope https://www.googleapis.com/auth/cloud-platform was added to the endpoint's security scheme Oauth2c

    • info

      the security scope https://www.googleapis.com/auth/compute was removed from the endpoint's security scheme Oauth2

    • info

      the security scope https://www.googleapis.com/auth/compute was removed from the endpoint's security scheme Oauth2c

    • info

      the security scope https://www.googleapis.com/auth/cloud-platform was added to the endpoint's security scheme Oauth2

    • info

      the security scope https://www.googleapis.com/auth/cloud-platform was added to the endpoint's security scheme Oauth2c

    • info

      the security scope https://www.googleapis.com/auth/compute was removed from the endpoint's security scheme Oauth2

    • info

      the security scope https://www.googleapis.com/auth/compute was removed from the endpoint's security scheme Oauth2c