Projects

Projects implement resource allocation policies and create segregation between different initiatives. It can represent a team, an individual, or an initiative that shares resources or has a specific resources budget (quota). See Projectsarrow-up-right for more information.

Get projects

get

List projects

Authorizations
AuthorizationstringRequired

Bearer authentication

Query parameters
filterBystring[]Optional

Filter results by a parameter. Use the format field-name operator value. Operators are == Equals, != Not equals, <= Less than or equal, >= Greater than or equal, =@ contains, !@ Does not contains, =^ Starts with and =$ Ends with. Dates are in ISO 8601 timestamp format and available for operators ==, !=, <= and >=.

Example: ["name!=some-name"]
sortBystring · enumOptional

Sort results by a parameters.

Possible values:
sortOrderstring · enumOptional

Sort results in descending or ascending order.

Default: ascPossible values:
offsetinteger · int32Optional

The offset of the first item returned in the collection.

Example: 100
limitinteger · int32 · min: 1 · max: 500Optional

The maximum number of entries to return.

Default: 50
Responses
chevron-right
200

ok

application/json
get
/api/v1/org-unit/projects

Create project

post

Create a project

Authorizations
AuthorizationstringRequired

Bearer authentication

Body
Responses
post
/api/v1/org-unit/projects

Get project

get

Get a project by id

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
projectIdstringRequired

The project id

Example: 575c19e8-c7c3-45b0-8290-2f47397a8383
Responses
chevron-right
200

ok

application/json
get
/api/v1/org-unit/projects/{projectId}

Update project

put

Get projects telemetry data by the given query parameters

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
projectIdstringRequired

The project id

Example: 575c19e8-c7c3-45b0-8290-2f47397a8383
Body
Responses
chevron-right
200

Updated

application/json
put
/api/v1/org-unit/projects/{projectId}

Delete project

delete

Delete a project

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
projectIdstringRequired

The project id

Example: 575c19e8-c7c3-45b0-8290-2f47397a8383
Responses
delete
/api/v1/org-unit/projects/{projectId}

No content

Update project resources

put

Update projects resources

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
projectIdstringRequired

The project id

Example: 575c19e8-c7c3-45b0-8290-2f47397a8383
Bodyobject[]

Resources assigned to this Project per Node Pool

Responses
chevron-right
200

Updated

application/json
put
/api/v1/org-unit/projects/{projectId}/resources

Patch project resources

patch

Partial updates to specific items in the list. Should be used for update one or more attributes of an item without modifying the entire resource.

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
projectIdstringRequired

The project id

Example: 575c19e8-c7c3-45b0-8290-2f47397a8383
Bodyobject[]

Resources assigned to this Project per Node Pool

Responses
chevron-right
200

Updated

application/json
patch
/api/v1/org-unit/projects/{projectId}/resources

Count projects

get

count projects

Authorizations
AuthorizationstringRequired

Bearer authentication

Query parameters
filterBystring[]Optional

Filter results by a parameter. Use the format field-name operator value. Operators are == Equals, != Not equals, <= Less than or equal, >= Greater than or equal, =@ contains, !@ Does not contains, =^ Starts with and =$ Ends with. Dates are in ISO 8601 timestamp format and available for operators ==, !=, <= and >=.

Example: ["name!=some-name"]
Responses
chevron-right
200

ok

application/json
get
/api/v1/org-unit/projects/count
Deprecated

Get metrics data for all projects.

get

Retrieves data from the metrics database. \n Use in reporting and analysis tools. \n Use a time range to return historical data (optional). If you use a start date, an end date is required.

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
clusterUuidstring · uuid · min: 1Required

The Universally Unique Identifier (UUID) of the cluster.

Example: 9f55255e-11ed-47c7-acef-fc4054768dbc
Query parameters
startstring · date-timeOptional

Start of time range to fetch data from in UTC format.

Example: 2023-06-06 12:09:18.211
endstring · date-timeOptional

End of time range to fetch data from in UTC format.

Example: 2023-06-07 12:09:18.211
numberOfSamplesinteger · max: 1000Optional

The number of samples to take in the specified time range.

Default: 20Example: 20
nodepoolNamestringOptional

Filter by unique nodepool name.

Example: default
Responses
chevron-right
200

Successfully retrieved metrics for all projects.

application/json
get
/v1/k8s/clusters/{clusterUuid}/projects/metrics
Deprecated

Get metrics data for a specific project.

get

Retrieves data from the metrics database. \n Use in reporting and analysis tools. \n Use a time range to return historical data (optional). If you use a start date, an end date is required.

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
clusterUuidstring · uuid · min: 1Required

The Universally Unique Identifier (UUID) of the cluster.

Example: 9f55255e-11ed-47c7-acef-fc4054768dbc
projectIdstringRequired

The unique project-id of the project.

Query parameters
startstring · date-timeOptional

Start of time range to fetch data from in UTC format.

Example: 2023-06-06 12:09:18.211
endstring · date-timeOptional

End of time range to fetch data from in UTC format.

Example: 2023-06-07 12:09:18.211
numberOfSamplesinteger · max: 1000Optional

The number of samples to take in the specified time range.

Default: 20Example: 20
nodepoolNamestringOptional

Filter by unique nodepool name.

Example: default
Responses
chevron-right
200

Successfully retrieved metrics for the project.

application/json
get
/v1/k8s/clusters/{clusterUuid}/projects/{projectId}/metrics
Deprecated

List all projects and their details.

get

Retrieves a list of all projects and details from a specific cluster. Use in reporting and analysis tools. Deprecated - use /api/v1/org-unit/projects instead.

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
clusterIdstringRequired

The Universally Unique Identifier (UUID) of the cluster.

Example: 9f55255e-11ed-47c7-acef-fc4054768dbc
Query parameters
excludePermissionsbooleanOptional

Backward compatibility of the 'permissions' field. If 'true', the 'permissions' field in the returned projects is not set. If 'false', the 'permissions' field is set in the returned projects.

Example: true
memoryUnitMbbooleanOptional

Memory returned in MB. When set to false (default) memory will be returned in MiB.

Example: true
Responses
chevron-right
200

Successfully retrieved a list of all the projects.

application/json
get
/v1/k8s/clusters/{clusterId}/projects
200

Successfully retrieved a list of all the projects.

Deprecated

Create a new project.

post

Creates a new project in a specific cluster. Deprecated - use /api/v1/org-unit/projects instead.

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
clusterIdstringRequired

The Universally Unique Identifier (UUID) of the cluster.

Example: 9f55255e-11ed-47c7-acef-fc4054768dbc
Query parameters
excludePermissionsbooleanOptional

Backward compatibility of the permissions field. If true, the permissions field in the request body is ignored. If false, relevant access rules for the permissions field are created in the project scope.

Example: true
Body
and
Responses
chevron-right
200

Project created successfully.

application/json
post
/v1/k8s/clusters/{clusterId}/projects
Deprecated

List details of a specific project.

get

Retrieves the details of a specific project from a specific cluster. Use for project analysis. Requires view permissions to the queried project. Deprecated - use /api/v1/org-unit/projects/{projectId} instead.

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
clusterIdstringRequired

The Universally Unique Identifier (UUID) of the cluster.

Example: 9f55255e-11ed-47c7-acef-fc4054768dbc
idstringRequired

The unique project-id identifying the project.

Query parameters
excludePermissionsbooleanOptional

Backward compatibility of the 'permissions' field. If 'true', the 'permissions' field in the returned projects is not set. If 'false', the 'permissions' field is set in the returned projects.

Example: true
Responses
chevron-right
200

Successfully retrieved project details.

application/json
get
/v1/k8s/clusters/{clusterId}/projects/{id}
Deprecated

Update a project.

put

Updates a project's details in a specific cluster. For example, node pool resources, and others. Deprecated - use /api/v1/org-unit/projects/{projectId} instead.

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
idstringRequired

The unique project-id.

clusterIdstringRequired

The Universally Unique Identifier (UUID) of the cluster.

Example: 9f55255e-11ed-47c7-acef-fc4054768dbc
Query parameters
excludePermissionsbooleanOptional

Backward compatibility of the permissions field. If true, the permissions field in the returned projects is not set. If false, the permissions field is set in the returned projects.

Example: true
Body
and
Responses
chevron-right
200

An updated project details.

application/json
put
/v1/k8s/clusters/{clusterId}/projects/{id}
Deprecated

Delete a project.

delete

Deletes a project from a specific cluster. Deprecated - use /api/v1/org-unit/projects/{projectId} instead.

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
clusterIdstringRequired

The Universally Unique Identifier (UUID) of the cluster.

Example: 9f55255e-11ed-47c7-acef-fc4054768dbc
idintegerRequired

The unique id of the project.

Example: 2
Responses
chevron-right
200

Project deleted successfully.

application/json
delete
/v1/k8s/clusters/{clusterId}/projects/{id}

Last updated