kubernetes

Get a list of namespaces

Changed on

Get a list of all namespaces within the given environment based on the user role and permissions. If the user is an admin, they can access all namespaces. If the user is not an admin, they can only access namespaces that they have access to. Access policy: Authenticated user.

get/kubernetes/{id}/namespaces

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/kubernetes/{id}/namespaces
  • Auth
    API key in header X-API-KEY and API key in header Authorization

Path parameters

idinteger required

Environment identifier

Query parameters

withResourceQuotaboolean

When set to true, include the resource quota information as part of the Namespace information. Default is false

withUnhealthyEventsboolean

When set to true, include the unhealthy events information as part of the Namespace information. Default is false

Response

Success

Annotationsobject
CreationDatestring
Idstring
IsDefaultboolean
IsSystemboolean
Namestring
NamespaceOwnerstring
UnhealthyEventCountinteger

Changes

    • info

      the query request parameter withResourceQuota became optional

    • info

      the query request parameter withUnhealthyEvents became optional