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)
  },
  "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.

Read-write.

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 is 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

Required field representing the resource type this id is for. At present, the valid types are "project", "folder", and "organization".

id

string

Required field for the type-specific id. This should correspond to the id used in the type-specific API's.

Methods

create

The method google.cloudresourcemanager.projects.v1beta1.DeveloperProjects.CreateProject is not available in Trusted Cloud by S3NS.

delete

The method google.cloudresourcemanager.projects.v1beta1.DeveloperProjects.DeleteProject is not available in Trusted Cloud by S3NS.

get

The method google.cloudresourcemanager.projects.v1beta1.DeveloperProjects.GetProject is not available in Trusted Cloud by S3NS.

getAncestry

The method google.cloudresourcemanager.projects.v1beta1.DeveloperProjects.GetAncestry is not available in Trusted Cloud by S3NS.

getIamPolicy

The method google.cloudresourcemanager.projects.v1beta1.DeveloperProjects.GetIamPolicy is not available in Trusted Cloud by S3NS.

list

The method google.cloudresourcemanager.projects.v1beta1.DeveloperProjects.ListProjects is not available in Trusted Cloud by S3NS.

setIamPolicy

The method google.cloudresourcemanager.projects.v1beta1.DeveloperProjects.SetIamPolicy is not available in Trusted Cloud by S3NS.

testIamPermissions

The method google.cloudresourcemanager.projects.v1beta1.DeveloperProjects.TestIamPermissions is not available in Trusted Cloud by S3NS.

undelete

The method google.cloudresourcemanager.projects.v1beta1.DeveloperProjects.UndeleteProject is not available in Trusted Cloud by S3NS.

update

The method google.cloudresourcemanager.projects.v1beta1.DeveloperProjects.UpdateProject is not available in Trusted Cloud by S3NS.