Departments

Get departments

get

list departments

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:
verbositystring · enumOptional

Departments verbosity. If it is set to "verbose", status will be returned. If it is not defined or set to "brief" only unit specific data will be returned.

Example: verbosePossible 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/departments

Create department

post

Create Department

Authorizations
AuthorizationstringRequired

Bearer authentication

Body
and
Responses
post
/api/v1/org-unit/departments

Get department

get

Get department by Id

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
departmentIdstringRequired

The id of the department.

Example: 1Pattern: .*
Responses
chevron-right
200

ok

application/json
get
/api/v1/org-unit/departments/{departmentId}

Update department

put

Update department by Id

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
departmentIdstringRequired

The id of the department.

Example: 1Pattern: .*
Body
and
Responses
chevron-right
200

Updated

application/json
put
/api/v1/org-unit/departments/{departmentId}

Delete department

delete

Delete department by Id

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
departmentIdstringRequired

The id of the department.

Example: 1Pattern: .*
Responses
delete
/api/v1/org-unit/departments/{departmentId}

No content

Update department resources

put

Update department resources by Id

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
departmentIdstringRequired

The id of the department.

Example: 1Pattern: .*
Bodyobject[]

Resources assigned to this Project per Node Pool

rankstring · nullableOptional

The scheduling rank of this org-unit within the node pool. Determines the scheduling order of workloads between org-units. Workloads in higher-ranked org-units are scheduled before workloads in lower-ranked org-units. For example, all workloads in rank "High" will be scheduled before all workloads in rank "Medium".

Default: MediumLowExample: High
prioritystring · nullableOptionalDeprecated

Deprecated. Use rank instead. The scheduling priority for workloads in this node pool.

Example: Normal
Responses
chevron-right
200

Updated

application/json
put
/api/v1/org-unit/departments/{departmentId}/resources

Patch department 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
departmentIdstringRequired

The id of the department.

Example: 1Pattern: .*
Bodyobject[]

Resources assigned to this Project per Node Pool

rankstring · nullableOptional

The scheduling rank of this org-unit within the node pool. Determines the scheduling order of workloads between org-units. Workloads in higher-ranked org-units are scheduled before workloads in lower-ranked org-units. For example, all workloads in rank "High" will be scheduled before all workloads in rank "Medium".

Default: MediumLowExample: High
prioritystring · nullableOptionalDeprecated

Deprecated. Use rank instead. The scheduling priority for workloads in this node pool.

Example: Normal
Responses
chevron-right
200

Updated

application/json
patch
/api/v1/org-unit/departments/{departmentId}/resources

Get department metrics data.

get

Retrieves department data metrics from the metrics database. Use in reporting and analysis tools.

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
departmentIdstringRequired

The id of the department.

Example: 1Pattern: .*
Query parameters
startstring · date-timeRequired

Start date of time range to fetch data in ISO 8601 timestamp format.

Example: 2023-06-06T12:09:18.211Z
endstring · date-timeRequired

End date of time range to fetch data in ISO 8601 timestamp format.

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

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

Default: 20Example: 20
nodepoolNamestringOptional

Filter using the nodepool.

Example: default
Responses
chevron-right
200

Executed successfully.

get
/api/v1/org-unit/departments/{departmentId}/metrics

Get departments telemetry

get
Authorizations
AuthorizationstringRequired

Bearer authentication

Query parameters
clusterIdstring · uuidOptional

Filter using the Universally Unique Identifier (UUID) of the cluster.

Example: d73a738f-fab3-430a-8fa3-5241493d7128
nodepoolNamestringOptional

Filter using the nodepool.

Example: default
departmentIdstringOptional

Filter using the department id.

Example: 1
telemetryTypestring · enumRequired

Select a telemetry type.

Possible values:
Responses
chevron-right
200

Executed successfully.

application/json
get
/api/v1/org-unit/departments/telemetry

Count departments

get

count departments

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/departments/count

Get departments node pool resources

get

List departments node pool resources

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: ["nodePoolName!=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
searchstringOptional

Filter results by a free text search.

Example: test project
Responses
chevron-right
200

ok

application/json
get
/api/v1/org-unit/departments/node-pool-resources

Count departments node pool resources

get

Count departments node pool resources

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: ["nodePoolName!=some-name"]
searchstringOptional

Filter results by a free text search.

Example: test project
Responses
chevron-right
200

ok

application/json
get
/api/v1/org-unit/departments/node-pool-resources/count

Patch multiple departments node pool resources in batch.

post

Partially updates node pool resource quotas for multiple departments in a single request.

Authorizations
AuthorizationstringRequired

Bearer authentication

Body

Batch of node pool resources patch requests.

Responses
chevron-right
200

Batch patch processed. Returns succeeded and failed items with totals and a batch id.

application/json
post
/api/v1/org-unit/departments/node-pool-resources/batch-patch
Deprecated

Get metrics for all departments.

get

Get metrics for all departments in the cluster. 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 departments.

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

Get metrics for a specific department.

get

Get metrics for a specific department in the cluster. 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
departmentIdstringRequired

The id of the department.

Example: 1Pattern: .*
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 department.

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

List all departments.

get

List all the departments managed by the tenant on a specific cluster.

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 departmentAdmins field. If true, the departmentAdmins field in the returned departments is not set. If false, the departmentAdmins is set in the returned departments.

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 Departments.

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

Successfully retrieved a list of Departments.

Deprecated

Set the department admins.

put

Deprecated. Instead, use the accessrules API to add the department-admin permissions to a specific subject.

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
clusterIdstringRequired

The unique uuid identifying the cluster.

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

The unique id identifying the department.

Example: 2
Body
departmentIdinteger · int32Optional

The unique id identifying the department.

Example: 2
departmentAdminsstring[]Optional

Id's of users with department admin role that are assigned to managed the department

Responses
put
/v1/k8s/clusters/{clusterId}/departments/{department-id}/access-control

Last updated