Departments

Departments, in the hierarchy of resource allocation, are above Projects. A Department can contain multiple Projects, and has its own quotas. A Department's quota supersedes the total of the Project quotas in the Department, so tt is recommended that a Department's quota be the total, or more than of all the Project quotas in the Department. For further information see, Working with Departmentsarrow-up-right.

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
get
/api/v1/org-unit/departments

Create department

post

Create Department

Authorizations
AuthorizationstringRequired

Bearer authentication

Body
and
Responses
chevron-right
201

Created

application/json
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
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
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

prioritystring · nullableOptionalExample: Normal
Responses
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

prioritystring · nullableOptionalExample: Normal
Responses
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
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
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
get
/api/v1/org-unit/departments/count
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
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
get
/v1/k8s/clusters/{clusterUuid}/departments/{departmentId}/metrics
Deprecated

Get a specific department.

get

Retrieves the details of a specific department. Requires theview permission for the department.

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
clusterIdstringRequired

The Universally Unique Identifier (UUID) of the cluster.

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

The unique id of the department.

Example: 2
Query parameters
excludePermissionsbooleanOptional

backwards compatibility of the 'departmentAdmins' field. if 'true', will not set the 'departmentAdmins' field in the returned department. if 'false', will set the 'departmentAdmins' field in the returned department.

Example: true
Responses
get
/v1/k8s/clusters/{clusterId}/departments/{department-id}
200

Successfully retrieved department details.

Deprecated

Update a department.

put

Updates a department's details in the cluster. \n For example, node pools and other details.

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
and
Responses
put
/v1/k8s/clusters/{clusterId}/departments/{department-id}
200

Department updated successfully.

Deprecated

Delete a department.

delete

Deletes a department from a specific cluster.

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
Responses
delete
/v1/k8s/clusters/{clusterId}/departments/{department-id}
200

Department deleted successfully.

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
get
/v1/k8s/clusters/{clusterId}/departments
200

Successfully retrieved a list of Departments.

Deprecated

Create a new department.

post

Creates a new department in the cluster.

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
clusterIdstringRequired

The unique uuid identifying the cluster.

Example: 9f55255e-11ed-47c7-acef-fc4054768dbc
Body
and
Responses
post
/v1/k8s/clusters/{clusterId}/departments
200

Department created successfully.

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
chevron-right
201

Department admin set successfully.

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

Last updated