projects

GET /v1/projects/{projectsId}/locations/{locationsId}/units/{unitsId}

Changed on

Retrieve a single unit.

Request

  • Base URL
    https://saasservicemgmt.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/saasservicemgmt.read-write
      Authorization codehttps://accounts.google.com/o/oauth2/auth
      Token URLhttps://accounts.google.com/o/oauth2/token
      Scopeshttps://www.googleapis.com/auth/saasservicemgmt.read-write
    • or OAuth 2 and OAuth 2
      Implicithttps://accounts.google.com/o/oauth2/auth
      Scopeshttps://www.googleapis.com/auth/saasservicemgmt.readonly
      Authorization codehttps://accounts.google.com/o/oauth2/auth
      Token URLhttps://accounts.google.com/o/oauth2/token
      Scopeshttps://www.googleapis.com/auth/saasservicemgmt.readonly

Path parameters

projectsId, string required
locationsId, string required
unitsId, string required

Query parameters

$.xgafv, '1' | '2'

V1 error format.

access_token, string

OAuth access token.

alt, 'json' | 'media' | 'proto'

Data format for response.

callback, string

JSONP

fields, string

Selector specifying which fields to include in a partial response.

key, string

API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.

oauth_token, string

OAuth 2.0 token for the current user.

prettyPrint, boolean

Returns response with indentations and line breaks.

quotaUser, string

Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

uploadType, string

Legacy upload protocol for media (e.g. "media", "multipart").

upload_protocol, string

Upload protocol for media (e.g. "raw", "multipart").

Response

Successful response

Unit required

A unit of deployment that has its lifecycle via a CRUD API using an actuation engine under the hood (e.g. based on Terraform, or a custom implementation provided by a service producer). A building block of a SaaS Tenant.

annotations, object

Optional. Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/user-guide/annotations

application, string

Optional. Reference to the AppHub Application this unit belongs to. All resources deployed in this Unit will be associated with the specified Application.

conditions, UnitCondition[]

Optional. Output only. A set of conditions which indicate the various conditions this resource can have.

createTime, string google-datetime

Output only. The timestamp when the resource was created.

dependencies, UnitDependency[]

Optional. Output only. Set of dependencies for this unit. Maximum 10.

dependents, UnitDependency[]

Optional. Output only. List of Units that depend on this unit. Unit can only be deprovisioned if this list is empty. Maximum 1000.

etag, string

Output only. An opaque value that uniquely identifies a version or generation of a resource. It can be used to confirm that the client and server agree on the ordering of a resource being written.

inputVariables, UnitVariable[]

Optional. Output only. Indicates the current input variables deployed by the unit

labels, object

Optional. The labels on the resource, which can be used for categorization. similar to Kubernetes resource labels.

maintenance, MaintenanceSettings

Captures requested directives for performing future maintenance on the unit. This includes a request for the unit to skip maintenance for a period of time and remain pinned to its current release as well as controls for postponing maintenance scheduled in future.

managementMode, 'MANAGEMENT_MODE_UNSPECIFIED' | 'MANAGEMENT_MODE_USER' | 'MANAGEMENT_MODE_SYSTEM'

Optional. Immutable. Indicates whether the Unit life cycle is controlled by the user or by the system. Immutable once created.

name, string

Identifier. The resource name (full URI of the resource) following the standard naming scheme: "projects/{project}/locations/{location}/units/{unit}"

ongoingOperations, string[]

Optional. Output only. List of concurrent UnitOperations that are operating on this Unit.

outputVariables, UnitVariable[]

Optional. Output only. Set of key/value pairs corresponding to output variables from execution of actuation templates. The variables are declared in actuation configs (in Terraform for example) and the values are fetched and returned by the actuation engine upon completion of execution.

pendingOperations, string[]

Optional. Output only. List of pending (wait to be executed) UnitOperations for this unit.

release, string

Optional. Output only. The current Release object for this Unit.

satisfiesPzi, boolean

Output only. Reserved for future use.

satisfiesPzs, boolean

Output only. Indicates whether the resource location satisfies Zone Separation constraints. This is false by default.

scheduledOperations, string[]

Optional. Output only. List of scheduled UnitOperations for this unit.

state, 'UNIT_STATE_UNSPECIFIED' | 'UNIT_STATE_NOT_PROVISIONED' | 'UNIT_STATE_PROVISIONING' | 'UNIT_STATE_UPDATING' | 'UNIT_STATE_DEPROVISIONING' | 'UNIT_STATE_READY' | 'UNIT_STATE_ERROR'

Optional. Output only. Current lifecycle state of the resource (e.g. if it's being created or ready to use).

systemCleanupAt, string google-datetime

Optional. Output only. If set, indicates the time when the system will start removing the unit.

systemManagedState, 'SYSTEM_MANAGED_STATE_UNSPECIFIED' | 'SYSTEM_MANAGED_STATE_ACTIVE' | 'SYSTEM_MANAGED_STATE_INACTIVE' | 'SYSTEM_MANAGED_STATE_DECOMMISSIONED'

Optional. Output only. Indicates the system managed state of the unit.

tenant, string

Optional. Reference to the Saas Tenant resource this unit belongs to. This for example informs the maintenance policies to use for scheduling future updates on a unit. (optional and immutable once created)

uid, string

Output only. The unique identifier of the resource. UID is unique in the time and space for this resource within the scope of the service. It is typically generated by the server on successful creation of a resource and must not be changed. UID is used to uniquely identify resources with resource name reuses. This should be a UUID4.

unitKind, string

Optional. Reference to the UnitKind this Unit belongs to. Immutable once set.

updateTime, string google-datetime

Output only. The timestamp when the resource was last updated. Any change to the resource made by users must refresh this value. Changes to a resource made by the service should refresh this value.

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/saasservicemgmt.readonly was removed from the endpoint's security scheme Oauth2

    1 more change in this revision