A tenant has a set of assigned sites, to which it can deploy applications.
The tenant's parent tenant assigns sites to the tenant by
creating a resource in
/config/tenants/<tenant-name>/assigned-sites/<site-name>
.
A tenant can see the sites it has been assigned by viewing
assigned-sites
in the operational state, i.e.,
/state/assigned-sites
.
A tenant can add its own (private) labels to a site by modifying
the assigned site resource in the configuration, i.e,
/config/assigned-sites/<site-name>
.
Created
Bad Request
Unauthorized
Forbidden
Not Found
Conflict (instance exists)
Service Unavailable (strongbox sealed)
name: gothenburg-bergakungen labels: system/type: edge system/name: gothenburg-bergakungen region: sw-west gpus: - uuid: GPU-de663f3f-856c-4e48-9269-c2269169bfda name: NVIDIA GeForce serial: "12345678" memory: 2048 MiB driver-version: 525.85.5 compute-mode: Default compute-capability: "8.0" display-mode: Disabled resource-profile: appowner-profile site-profiles: - sweden
fields | string Retrieve only requested fields from the resource See section fields |
validate | string <enumeration> Validate the request but do not actually perform the requested operation |
keys | string <enumeration> Retrieve only the keys for the list |
count | string <enumeration> Retrieve only the number of elements in the list |
OK
Bad Request
Unauthorized
Forbidden
Not Found
Precondition Failed
Service Unavailable (strongbox sealed)
- name: gothenburg-bergakungen labels: system/type: edge system/name: gothenburg-bergakungen region: sw-west gpus: - uuid: GPU-de663f3f-856c-4e48-9269-c2269169bfda name: NVIDIA GeForce serial: "12345678" memory: 2048 MiB driver-version: 525.85.5 compute-mode: Default compute-capability: "8.0" display-mode: Disabled resource-profile: appowner-profile site-profiles: - sweden
No Content
Bad Request
Unauthorized
Forbidden
Not Found
Precondition Failed
Service Unavailable (strongbox sealed)
name: gothenburg-bergakungen labels: system/type: edge system/name: gothenburg-bergakungen region: sw-west gpus: - uuid: GPU-de663f3f-856c-4e48-9269-c2269169bfda name: NVIDIA GeForce serial: "12345678" memory: 2048 MiB driver-version: 525.85.5 compute-mode: Default compute-capability: "8.0" display-mode: Disabled resource-profile: appowner-profile site-profiles: - sweden
Created
No Content
Bad Request
Unauthorized
Forbidden
Not Found
Precondition Failed
Service Unavailable (strongbox sealed)
name: gothenburg-bergakungen labels: system/type: edge system/name: gothenburg-bergakungen region: sw-west gpus: - uuid: GPU-de663f3f-856c-4e48-9269-c2269169bfda name: NVIDIA GeForce serial: "12345678" memory: 2048 MiB driver-version: 525.85.5 compute-mode: Default compute-capability: "8.0" display-mode: Disabled resource-profile: appowner-profile site-profiles: - sweden
fields | string Retrieve only requested fields from the resource See section fields |
validate | string <enumeration> Validate the request but do not actually perform the requested operation |
OK
Bad Request
Unauthorized
Forbidden
Not Found
Precondition Failed
Service Unavailable (strongbox sealed)
name: gothenburg-bergakungen labels: system/type: edge system/name: gothenburg-bergakungen region: sw-west gpus: - uuid: GPU-de663f3f-856c-4e48-9269-c2269169bfda name: NVIDIA GeForce serial: "12345678" memory: 2048 MiB driver-version: 525.85.5 compute-mode: Default compute-capability: "8.0" display-mode: Disabled resource-profile: appowner-profile site-profiles: - sweden
fields | string Retrieve only requested fields from the resource See section fields |
site | string Send the request to the specfifed site |
content | string <enumeration> Filter descendant nodes in the response |
keys | string <enumeration> Retrieve only the keys for the list |
count | string <enumeration> Retrieve only the number of elements in the list |
OK
Bad Request
Unauthorized
Forbidden
Not Found
Service Unavailable (strongbox sealed)
- name: gothenburg-bergakungen descriptive-name: Bergakungen type: edge location: latitude: 57.7 longitude: 11.99 description: Sk�negatan connection-state: connected: true last-connect: 2021-11-22T12:09:56Z last-disconnect: 2021-01-22T12:09:56Z labels: system/type: edge system/name: gothenburg-bergakungen region: sw-west host-labels: camera: present volume-labels: speed: - fast - slow system-volumes: daemon-socket: /var/run/my-daemon.sock device-labels: rtc: /dev/rtc0 tty: - /dev/ttyS1 - /dev/ttyS2 - /dev/ttyS3 gpus: - uuid: GPU-de663f3f-856c-4e48-9269-c2269169bfda name: NVIDIA GeForce serial: "12345678" memory: 2048 MiB driver-version: 525.85.5 compute-mode: Default compute-capability: "8.0" display-mode: Disabled gpu-labels: - name: gpu-display max-number-gpus: 1 matching-gpus: - uuid: GPU-de663f3f-856c-4e48-9269-c2269169bfda network-interface-labels: scope: global resource-profile: appowner-profile site-profiles: - sweden application-upgrade-windows: - days-of-week: Friday, Saturday start-time: 01:00 timezone: site-local duration: 4h inherited-application-upgrade-windows: - days-of-week: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday start-time: 00:00 timezone: UTC duration: 6h deployed-applications: 3 warning: false application-upgrades-blocked: true
fields | string Retrieve only requested fields from the resource See section fields |
site | string Send the request to the specfifed site |
content | string <enumeration> Filter descendant nodes in the response |
OK
Bad Request
Unauthorized
Forbidden
Not Found
Service Unavailable (strongbox sealed)
name: gothenburg-bergakungen descriptive-name: Bergakungen type: edge location: latitude: 57.7 longitude: 11.99 description: Sk�negatan connection-state: connected: true last-connect: 2021-11-22T12:09:56Z last-disconnect: 2021-01-22T12:09:56Z labels: system/type: edge system/name: gothenburg-bergakungen region: sw-west host-labels: camera: present volume-labels: speed: - fast - slow system-volumes: daemon-socket: /var/run/my-daemon.sock device-labels: rtc: /dev/rtc0 tty: - /dev/ttyS1 - /dev/ttyS2 - /dev/ttyS3 gpus: - uuid: GPU-de663f3f-856c-4e48-9269-c2269169bfda name: NVIDIA GeForce serial: "12345678" memory: 2048 MiB driver-version: 525.85.5 compute-mode: Default compute-capability: "8.0" display-mode: Disabled gpu-labels: - name: gpu-display max-number-gpus: 1 matching-gpus: - uuid: GPU-de663f3f-856c-4e48-9269-c2269169bfda network-interface-labels: scope: global resource-profile: appowner-profile site-profiles: - sweden application-upgrade-windows: - days-of-week: Friday, Saturday start-time: 01:00 timezone: site-local duration: 4h inherited-application-upgrade-windows: - days-of-week: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday start-time: 00:00 timezone: UTC duration: 6h deployed-applications: 3 warning: false application-upgrades-blocked: true