REST Resource: projects

Resource: Project

A Project is a high-level Trusted Cloud Platform entity. It is a container for ACLs, APIs, App Engine Apps, VMs, and other Trusted Cloud Platform resources.

JSON representation
{
  "projectNumber": string,
  "projectId": string,
  "lifecycleState": enum (LifecycleState),
  "name": string,
  "createTime": string,
  "labels": {
    string: string,
    ...
  },
  "parent": {
    object (ResourceId)
  },
  "tags": {
    string: string,
    ...
  },
  "configuredCapabilities": [
    string
  ]
}
Fields
projectNumber

string (int64 format)

The number uniquely identifying the project.

Example: 415104041262

Read-only.

projectId

string

The unique, user-assigned ID of the Project. It must be 6 to 30 lowercase letters, digits, or hyphens. It must start with a letter. Trailing hyphens are prohibited.

Example: tokyo-rain-123

Read-only after creation.

lifecycleState

enum (LifecycleState)

The Project lifecycle state.

Read-only.

name

string

The optional user-assigned display name of the Project. When present it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, single-quote, double-quote, space, and exclamation point.

Example: My Project

Read-write.

createTime

string (Timestamp format)

Creation time.

Read-only.

Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".

labels

map (key: string, value: string)

The labels associated with this Project.

Label keys must be between 1 and 63 characters long and must conform to the following regular expression: [a-z][a-z0-9_-]{0,62}.

Label values must be between 0 and 63 characters long and must conform to the regular expression [a-z0-9_-]{0,63}. A label value can be empty.

No more than 256 labels can be associated with a given resource.

Clients should store labels in a representation such as JSON that does not depend on specific characters being disallowed.

Example:

"environment" : "dev"

Read-write.

parent

object (ResourceId)

An optional reference to a parent Resource.

Supported parent types include "organization" and "folder". Once set, the parent cannot be cleared. The parent can be set on creation or using the projects.update method; the end user must have the resourcemanager.projects.create permission on the parent.

tags

map (key: string, value: string)

Optional. Input only. Immutable. Tag keys/values directly bound to this project. Each item in the map must be expressed as " : ". For example: "123/environment" : "production", "123/costCenter" : "marketing"

Note: Currently this field is in Preview.

configuredCapabilities[]

string

Output only. If this project is a Management Project, list of capabilities configured on the parent folder. Note, presence of any capability implies that this is a Management Project. Example: folders/123/capabilities/app-management. OUTPUT ONLY.

LifecycleState

Project lifecycle states.

Enums
LIFECYCLE_STATE_UNSPECIFIED Unspecified state. This is only used/useful for distinguishing unset values.
ACTIVE The normal and active state.
DELETE_REQUESTED The project has been marked for deletion by the user (by invoking projects.delete) or by the system (Trusted Cloud Platform). This can generally be reversed by invoking projects.undelete.
DELETE_IN_PROGRESS This lifecycle state is no longer used and not returned by the API.

ResourceId

A container to reference an id for any resource type. A resource in Trusted Cloud Platform is a generic term for something you (a developer) may want to interact with through one of our API's. Some examples are an App Engine app, a Compute Engine instance, a Cloud SQL database, and so on.

JSON representation
{
  "type": string,
  "id": string
}
Fields
type

string

The resource type this id is for. At present, the valid types are: "organization", "folder", and "project".

id

string

The type-specific id. This should correspond to the id used in the type-specific API's.

Methods

create

Request that a new Project be created.

delete

Marks the Project identified by the specified project_id (for example, my-project-123) for deletion.

get

Retrieves the Project identified by the specified project_id (for example, my-project-123).

getAncestry

Gets a list of ancestors in the resource hierarchy for the Project identified by the specified project_id (for example, my-project-123).

getIamPolicy

Returns the IAM access control policy for the specified Project.

list

Lists Projects that the caller has the resourcemanager.projects.get permission on and satisfy the specified filter.

setIamPolicy

Sets the IAM access control policy for the specified Project.

testIamPermissions

Returns permissions that a caller has on the specified Project.

undelete

Restores the Project identified by the specified project_id (for example, my-project-123).

update

Updates the attributes of the Project identified by the specified project_id (for example, my-project-123).

clearOrgPolicy

The method google.cloud.orgpolicy.v1.OrgPolicy.ClearOrgPolicy is not available in Trusted Cloud by S3NS.

getEffectiveOrgPolicy

The method google.cloud.orgpolicy.v1.OrgPolicy.GetEffectiveOrgPolicy is not available in Trusted Cloud by S3NS.

getOrgPolicy

The method google.cloud.orgpolicy.v1.OrgPolicy.GetOrgPolicy is not available in Trusted Cloud by S3NS.

listAvailableOrgPolicyConstraints

The method google.cloud.orgpolicy.v1.OrgPolicy.ListAvailableOrgPolicyConstraints is not available in Trusted Cloud by S3NS.

listOrgPolicies

The method google.cloud.orgpolicy.v1.OrgPolicy.ListOrgPolicies is not available in Trusted Cloud by S3NS.

setOrgPolicy

The method google.cloud.orgpolicy.v1.OrgPolicy.SetOrgPolicy is not available in Trusted Cloud by S3NS.