REST Resource: projects.locations.serviceProjectAttachments

Resource: ServiceProjectAttachment

ServiceProjectAttachment represents an attachment from a service project to a host project. Service projects contain the underlying cloud infrastructure resources, and expose these resources to the host project through a ServiceProjectAttachment. With the attachments, the host project can provide an aggregated view of resources across all service projects.

JSON representation
{
  "name": string,
  "serviceProject": string,
  "createTime": string,
  "uid": string,
  "state": enum (State)
}
Fields
name

string

Identifier. The resource name of a ServiceProjectAttachment. Format: "projects/{host-project-id}/locations/global/serviceProjectAttachments/{service-project-id}."

serviceProject

string

Required. Immutable. Service project name in the format: "projects/abc" or "projects/123". As input, project name with either project id or number are accepted. As output, this field will contain project number.

createTime

string (Timestamp format)

Output only. Create time.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

uid

string

Output only. A globally unique identifier (in UUID4 format) for the ServiceProjectAttachment.

state

enum (State)

Output only. ServiceProjectAttachment state.

State

ServiceProjectAttachment state.

Enums
STATE_UNSPECIFIED Unspecified state.
CREATING The ServiceProjectAttachment is being created.
ACTIVE The ServiceProjectAttachment is ready. This means Services and Workloads under the corresponding ServiceProjectAttachment is ready for registration.
DELETING The ServiceProjectAttachment is being deleted.

Methods

create

Attaches a service project to the host project.

delete

Deletes a service project attachment.

get

Gets a service project attachment.

list

Lists service projects attached to the host project.