API Reference

The following API documentation is generated from the endpoint catalog of the Portal API of the Cloud Services Portal. It covers all endpoints, grouped by functional area. Each operation lists the permission required to call it.

Authentication

Every request to the Portal API must be authenticated with an Access Token. You create the Access Token yourself in the Cloud Services Portal and assign the corresponding permissions to it (see below). Optionally, a start and end date can be set to limit the validity of the token.

The Access Token is passed with every request in the auth-token header. In addition, each request contains the region header, which specifies the region (e.g. ch-zh1).

The permission required by each endpoint is listed in the API documentation below.

Example request:

curl --url 'https://api.portal.ewcs.ch/openstack/availability_zones' \
  -H 'region: ch-zh1' \
  -H 'auth-token: <access-token>'

Creating an Access Token

Navigate to User → API Keys in the left menu (1), switch to the Access Tokens tab (2) and click + Create Token (3).

Access Tokens

In the Create token dialog, enter a name (1) and optionally set a Start and End date to limit the validity (2). Then click Create (3). The generated Access Token is displayed (4) — copy it via Copy Token and store it safely: the token is not stored by the portal and cannot be retrieved once the window has been closed (5).

Create token

Finally, assign the permissions: expand the token's row with the > icon (1) and enable the required permissions with the toggles (2, 3). Enable all and Disable all switch all permissions at once.

Token permissions
Loading API reference…