Subtenant Assigned Areas

A site provider tenant with assigned areas has access only to the sites in these areas and the areas below them. A site provider without assigned areas has the same access as its parent tenant.

The tenant's parent tenant assigns areas to the tenant by creating a resource in /config/tenants/<tenant-name>/assigned-areas/<area-name>. Areas can only be assigned to site provider tenants other than the top site provider tenants, and an area can only be assigned if the parent tenant itself has access to it. A tenant cannot change its own assigned areas.

Create a new assigned area

SecurityaccessToken
Request
path Parameters
tenant-name
required
string <name> ^[a-z0-9]([a-z0-9\-]*[a-z0-9])?$

name of tenant

query Parameters
validate
string <enumeration>

Validate the request but do not actually perform the requested operation

Value: "true"
dry-run
string <enumeration>

Check which other resources would be impacted by this operation, but does not actually perform the requested operation

Value: "true"
Request Body schema:
name
required
string <leafref>
Responses
201

Created

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

409

Conflict (instance exists)

503

Service Unavailable (strongbox sealed)

post/v1/config/tenants/{tenant-name}/assigned-areas
Request samples
name: gothenburg

Retrieve the configuration of all assigned areas

SecurityaccessToken
Request
path Parameters
tenant-name
required
string <name> ^[a-z0-9]([a-z0-9\-]*[a-z0-9])?$

name of tenant

query Parameters
fields
string

Retrieve only requested fields from the resource

See section fields

where
string

Retrieve only items matching the given expression.

See section where

validate
string <enumeration>

Validate the request but do not actually perform the requested operation

Value: "true"
keys
string <enumeration>

Retrieve only the keys for the list

Value: "true"
count
string <enumeration>

Retrieve only the number of elements in the list

Value: "true"
Responses
200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

412

Precondition Failed

503

Service Unavailable (strongbox sealed)

get/v1/config/tenants/{tenant-name}/assigned-areas
Response samples
- name: gothenburg
  

Update an assigned area

SecurityaccessToken
Request
path Parameters
tenant-name
required
string <name> ^[a-z0-9]([a-z0-9\-]*[a-z0-9])?$

name of tenant

assigned-area-name
required
string <leafref>

name of assigned-area

query Parameters
validate
string <enumeration>

Validate the request but do not actually perform the requested operation

Value: "true"
dry-run
string <enumeration>

Check which other resources would be impacted by this operation, but does not actually perform the requested operation

Value: "true"
Request Body schema:
name
required
string <leafref>
Responses
204

No Content

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

412

Precondition Failed

503

Service Unavailable (strongbox sealed)

patch/v1/config/tenants/{tenant-name}/assigned-areas/{assigned-area-name}
Request samples
name: gothenburg

Delete an assigned area

SecurityaccessToken
Request
path Parameters
tenant-name
required
string <name> ^[a-z0-9]([a-z0-9\-]*[a-z0-9])?$

name of tenant

assigned-area-name
required
string <leafref>

name of assigned-area

query Parameters
validate
string <enumeration>

Validate the request but do not actually perform the requested operation

Value: "true"
dry-run
string <enumeration>

Check which other resources would be impacted by this operation, but does not actually perform the requested operation

Value: "true"
Responses
204

No Content

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

412

Precondition Failed

503

Service Unavailable (strongbox sealed)

delete/v1/config/tenants/{tenant-name}/assigned-areas/{assigned-area-name}

Replace or create a new assigned area

SecurityaccessToken
Request
path Parameters
tenant-name
required
string <name> ^[a-z0-9]([a-z0-9\-]*[a-z0-9])?$

name of tenant

assigned-area-name
required
string <leafref>

name of assigned-area

query Parameters
validate
string <enumeration>

Validate the request but do not actually perform the requested operation

Value: "true"
dry-run
string <enumeration>

Check which other resources would be impacted by this operation, but does not actually perform the requested operation

Value: "true"
Request Body schema:
name
required
string <leafref>
Responses
201

Created

204

No Content

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

412

Precondition Failed

503

Service Unavailable (strongbox sealed)

put/v1/config/tenants/{tenant-name}/assigned-areas/{assigned-area-name}
Request samples
name: gothenburg

Retrieve the configuration of an assigned area

SecurityaccessToken
Request
path Parameters
tenant-name
required
string <name> ^[a-z0-9]([a-z0-9\-]*[a-z0-9])?$

name of tenant

assigned-area-name
required
string <leafref>

name of assigned-area

query Parameters
fields
string

Retrieve only requested fields from the resource

See section fields

where
string

Retrieve only items matching the given expression.

See section where

validate
string <enumeration>

Validate the request but do not actually perform the requested operation

Value: "true"
Responses
200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

412

Precondition Failed

503

Service Unavailable (strongbox sealed)

get/v1/config/tenants/{tenant-name}/assigned-areas/{assigned-area-name}
Response samples
name: gothenburg

Retrieve the state of all assigned areas

SecurityaccessToken
Request
path Parameters
tenant-name
required
string <name> ^[a-z0-9]([a-z0-9\-]*[a-z0-9])?$

name of tenant

query Parameters
fields
string

Retrieve only requested fields from the resource

See section fields

where
string

Retrieve only items matching the given expression.

See section where

site
string

Send the request to the specfifed site

content
string <enumeration>

Filter descendant nodes in the response

Enum: "config" "nonconfig"
keys
string <enumeration>

Retrieve only the keys for the list

Value: "true"
count
string <enumeration>

Retrieve only the number of elements in the list

Value: "true"
Responses
200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

503

Service Unavailable (strongbox sealed)

get/v1/state/tenants/{tenant-name}/assigned-areas
Response samples
- name: gothenburg
  

Retrieve the state of an assigned area

SecurityaccessToken
Request
path Parameters
tenant-name
required
string <name> ^[a-z0-9]([a-z0-9\-]*[a-z0-9])?$

name of tenant

assigned-area-name
required
string <leafref>

name of assigned-area

query Parameters
fields
string

Retrieve only requested fields from the resource

See section fields

where
string

Retrieve only items matching the given expression.

See section where

site
string

Send the request to the specfifed site

content
string <enumeration>

Filter descendant nodes in the response

Enum: "config" "nonconfig"
Responses
200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

404

Not Found

503

Service Unavailable (strongbox sealed)

get/v1/state/tenants/{tenant-name}/assigned-areas/{assigned-area-name}
Response samples
name: gothenburg