Skip to content

Custom Property Definitions ​

Custom property definitions allow tenant administrators to add tenant-specific fields to service instances in the Enterprise Service Cloud (ESC) Portal. Examples are cost centers, application identifiers, environments, support groups, or compliance classifications. Values entered for an instance are stored on the instance as customProperties.

Configuration ​

Custom property definitions are managed in Administration -> Tenant Administration -> Custom Property Definitions.

Each definition contains the following fields:

FieldDescription
NameDisplay name shown in the ESC Portal.
KeyTechnical identifier used in API payloads and stored instance data.
DescriptionOptional help text for the field.
Field TypeValue type. Supported values are string, number, and boolean.
Instance TypesService instance types for which the field is shown. Empty means that the definition applies to all instance types.

The key must be unique within the tenant and cannot be changed after creation. It can contain letters, digits, spaces, _, ., :, /, =, +, -, and @, with a maximum length of 128 characters. For API usage and instance filtering, short keys without spaces, such as costCenter, are easier to work with.

Values on Service Instances ​

For service instances that match a custom property definition, the ESC Portal shows the fields during provisioning and on the instance detail page. Existing values can be changed in the Custom Properties tab. Only custom properties that have a matching definition are shown as editable fields.

Example:

json
{
  "customProperties": {
    "costCenter": "CC-12345",
    "environment": "production",
    "businessCritical": true
  }
}

The customProperties object supports up to 50 entries. Values can be strings, numbers, or booleans. String values can contain up to 256 characters.

Defaults and Restrictions ​

Custom properties can be combined with Parameter Defaults and Parameter Restrictions. The field name uses the customProperties.<key> format, for example customProperties.costCenter.

Parameter Defaults can prefill a custom property, make the value constant, hide the field, or require the field by setting Is Optional? to false. Custom property fields created from definitions are shown as required in provisioning forms. Setting Is Optional? to false also prevents the value from being deleted on the instance Custom Properties tab.

Parameter Restrictions define the available values for a custom property. When restrictions are configured for customProperties.<key>, the ESC Portal shows the custom property as a dropdown with the configured values instead of a free text field. The same allowed values are also enforced by the API.

API Usage ​

The ESC Portal supports creating and editing custom property definitions. The API is useful for automation and for provisioning or updating instances from external systems.

When service instances are created or updated through the Swisscom Cloud Orchestrator (SCO) API, custom property values are sent in the top-level customProperties object, next to the regular service-specific parameters object. Custom property definitions are part of the tenant configuration in the Tenancy API. Instance values are part of the Orchestration API.

Example:

json
{
  "instanceType": "IAAS_VM",
  "name": "web-application-01",
  "customProperties": {
    "costCenter": "CC-12345",
    "environment": "production"
  },
  "parameters": {
    "...": "..."
  }
}

WARNING

When customProperties is updated through the API, the full object is replaced. Keys that are omitted from the update payload are removed from the instance.

Instances can also be filtered by a custom property through the instance list endpoint. Use parameterFilterKey=customProperties.<key>, for example parameterFilterKey=customProperties.costCenter.

IaaS Virtual Machines and vCloud Director Metadata ​

For IaaS Virtual Machine (IAAS_VM) instances, custom properties are synchronized with vCloud Director metadata. This makes the values available both in the ESC Portal and on the VM in vCloud Director.

During VM provisioning, each custom property is written as vCloud Director metadata with the customer. prefix:

ESC customProperties keyvCloud Director metadata key
costCentercustomer.costCenter
environmentcustomer.environment

When VM details are read back from vCloud Director, metadata keys with the customer. prefix are shown in ESC without the prefix. For example, customer.costCenter is shown as customProperties.costCenter.

INFO

For IaaS VM updates, additions or changes to custom properties and deletion of custom properties must be submitted separately. At most one custom property can be deleted per update request.