Harthelm Docs

Get an organization

One organization as the caller sees it, with their role and permissions. Organizations the caller may not see answer 404.

Generated from openapi/harthelm.yaml at v1.5.0
GET
/orgs/{org}

Authorization

cookie__Host-harthelm_session<token>

Browser session of the UI (12 h idle, 7 days absolute). State-changing requests also need the header Harthelm-CSRF: 1 and a matching Origin.

Path Parameters

org*string
Formatuuid

Response Body

The organization.

application/json
  1. response
id*string
Formatuuid
name*string
role?OrgRole

The caller's role; absent when a cluster admin sees an organization they are not a member of.

Value in"owner""member"
created_at*string
Formatdate-time
deleting?boolean

The organization is being deleted; it takes no writes. Absent for an older core.

delete_operation_id?string

The org.delete operation of a deleting organization.

Formatuuid
permissions?array<>

The caller's permissions on the resource; the UI shows only what they allow. Absent for an older core.

curl -X GET 'https://console.example.com/api/v1/orgs/497f6eca-6276-4993-bfeb-53cbbbba6f08'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "name": "string",  "role": "owner",  "created_at": "2019-08-24T14:15:22Z",  "deleting": true,  "delete_operation_id": "2a58cc5e-4ba9-418a-8f8b-9007f099696a",  "permissions": [    "string"  ]}