Areas

An area groups sites, e.g., by geography or organization. Areas form a tree: an area either has child areas or sites, but not both. A site belongs to at most one area.

The label system/area of a site contains the site's area and each of its ancestor areas, so that system/area = <name> matches all sites in the subtree of the area <name>.

Create a new area

SecurityaccessToken
Request
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 <name> ^[a-z0-9]([a-z0-9\-]*[a-z0-9])?$
descriptive-name
string

Free form name of the area.

description
string
parent-area
string <leafref>

The parent of this area. If not set, this is a root area. The parent area must not have any sites.

object

Map of string keys and values that are added to the labels of all sites in the subtree of this area.

A label configured on a site takes precedence over a label with the same name in the site's area, and a label in an area takes precedence over a label with the same name in any of its ancestor areas.

A label name consists of an optional prefix followed by /, followed by a name segment. The optional prefix is a DNS host name (must match inet:domain-name). The name segment must match ava:name.

The prefix system is used for labels assigned by the system.

Label names without prefixes are reserved for application owners.

For example:

  • system/controller
  • example.com/location.city
  • example.com/color
  • color

A label name that can be configured, i.e., a label name that does not have the prefix system.

object
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/system/areas
Request samples
name: gothenburg
descriptive-name: Gothenburg
description: Sites in the Gothenburg region
parent-area: sweden-west
labels:
  city: gothenburg
location:
  latitude: 57.7
  longitude: 11.97
  description: Gothenburg, Sweden

Retrieve the configuration of all areas

SecurityaccessToken
Request
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/system/areas
Response samples
- name: gothenburg
  descriptive-name: Gothenburg
  description: Sites in the Gothenburg region
  parent-area: sweden-west
  labels:
    city: gothenburg
  location:
    latitude: 57.7
    longitude: 11.97
    description: Gothenburg, Sweden
  

Update an area

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

name of 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 <name> ^[a-z0-9]([a-z0-9\-]*[a-z0-9])?$
descriptive-name
string

Free form name of the area.

description
string
parent-area
string <leafref>

The parent of this area. If not set, this is a root area. The parent area must not have any sites.

object

Map of string keys and values that are added to the labels of all sites in the subtree of this area.

A label configured on a site takes precedence over a label with the same name in the site's area, and a label in an area takes precedence over a label with the same name in any of its ancestor areas.

A label name consists of an optional prefix followed by /, followed by a name segment. The optional prefix is a DNS host name (must match inet:domain-name). The name segment must match ava:name.

The prefix system is used for labels assigned by the system.

Label names without prefixes are reserved for application owners.

For example:

  • system/controller
  • example.com/location.city
  • example.com/color
  • color

A label name that can be configured, i.e., a label name that does not have the prefix system.

object
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/system/areas/{area-name}
Request samples
name: gothenburg
descriptive-name: Gothenburg
description: Sites in the Gothenburg region
parent-area: sweden-west
labels:
  city: gothenburg
location:
  latitude: 57.7
  longitude: 11.97
  description: Gothenburg, Sweden

Delete an area

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

name of 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/system/areas/{area-name}

Replace or create a new area

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

name of 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 <name> ^[a-z0-9]([a-z0-9\-]*[a-z0-9])?$
descriptive-name
string

Free form name of the area.

description
string
parent-area
string <leafref>

The parent of this area. If not set, this is a root area. The parent area must not have any sites.

object

Map of string keys and values that are added to the labels of all sites in the subtree of this area.

A label configured on a site takes precedence over a label with the same name in the site's area, and a label in an area takes precedence over a label with the same name in any of its ancestor areas.

A label name consists of an optional prefix followed by /, followed by a name segment. The optional prefix is a DNS host name (must match inet:domain-name). The name segment must match ava:name.

The prefix system is used for labels assigned by the system.

Label names without prefixes are reserved for application owners.

For example:

  • system/controller
  • example.com/location.city
  • example.com/color
  • color

A label name that can be configured, i.e., a label name that does not have the prefix system.

object
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/system/areas/{area-name}
Request samples
name: gothenburg
descriptive-name: Gothenburg
description: Sites in the Gothenburg region
parent-area: sweden-west
labels:
  city: gothenburg
location:
  latitude: 57.7
  longitude: 11.97
  description: Gothenburg, Sweden

Retrieve the configuration of an area

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

name of 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/system/areas/{area-name}
Response samples
name: gothenburg
descriptive-name: Gothenburg
description: Sites in the Gothenburg region
parent-area: sweden-west
labels:
  city: gothenburg
location:
  latitude: 57.7
  longitude: 11.97
  description: Gothenburg, Sweden

Retrieve the state of all areas

SecurityaccessToken
Request
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

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/system/areas
Response samples
- name: gothenburg
  descriptive-name: Gothenburg
  description: Sites in the Gothenburg region
  parent-area: sweden-west
  labels:
    city: gothenburg
  location:
    latitude: 57.7
    longitude: 11.97
    description: Gothenburg, Sweden
  areas: []
  sites:
    - gothenburg-bergakungen
    - gothenburg-heden
  

Retrieve the state of an area

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

name of 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

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/system/areas/{area-name}
Response samples
name: gothenburg
descriptive-name: Gothenburg
description: Sites in the Gothenburg region
parent-area: sweden-west
labels:
  city: gothenburg
location:
  latitude: 57.7
  longitude: 11.97
  description: Gothenburg, Sweden
areas: []
sites:
  - gothenburg-bergakungen
  - gothenburg-heden