Use a CSV file to quickly create and update many components at once.
You can add a lot of component data to the CSV file. Some data are required; most are optional.
Field name | Possible values |
---|---|
name | User-defined |
type | SERVICE LIBRARY APPLICATION CAPABILITY CLOUD_RESOURCE DATA_PIPELINE MACHINE_LEARNING_MODEL UI_ELEMENT WEBSITE OTHER |
Field name | Possible values |
---|---|
lifecycle stage | Pre-release Active Deprecated |
tier | 1 2 3 4 |
description | User-defined |
labels | User-defined |
owner team | User-defined, but requires specific formatting (see below) |
chat channels | User-defined |
repositories | User-defined |
projects | User-defined |
documentation | User-defined |
dashboards | User-defined |
on-call schedules | User-defined |
other links | User-defined |
Custom fields | User-defined, prefixed with custom: |
There are a few things to consider when you add and format component data in the CSV file.
Each cell in the header row represents the field name on a Compass component’s Overview page. These can be built-in or custom fields.
If field names or field values have more than one word, add a space between each word.
If you’re not using an application that separates data by cells (like Microsoft Excel or Google Sheets), separate each piece of data with a comma.
For example:
1 2name,type,description Component 1,SERVICE,Description 1 Component 2,LIBRARY,Description 2
Built-in field names, such as Name or Type, must be lowercase.
For example:
1 2name,type,description Component 1,SERVICE,Description 1 Component 2,LIBRARY, Description 2 Component 3,APPLICATION, Description 3
Custom field names are case-sensitive, and must match exactly how you’ve formatted them in the Compass settings.
For example:
1 2name,type,custom:Audience size,custom:Platform Component 1,SERVICE,Large,Facebook Component 2,LIBRARY,Medium,Twitter
All field values are case-sensitive – except for component type values, which must be uppercase.
For example:
1 2name,type,description,lifecycle stage Component 1,SERVICE,Description 1,Active Component 2,LIBRARY,Description 2,Pre-release Component 3,APPLICATION,Description 3,Deprecated
Owner team field values must include a prefix and a team ID: ari:cloud:teams::team/ID
To get an owner team prefix and ID:
You should end up with something like ari:cloud:teams::team/781c0b6b-5167-4515-8517-d18563e0399e
(with your trailing ID being different).
You can add all custom field types to the CSV file, but they need to be formatted in a particular way.
Prefix custom fields with custom:
, and don’t include a space between the prefix and the custom field value – for example, custom:Platform
.
Text custom fields can be freely formatted, and can include numbers, symbols, and special characters.
Checkbox custom fields must have a value of either True
or False
.
Number custom fields can only contain numbers.
User custom field values must include a prefix and a user ID: ari:cloud:identity::user/ID
/users/
, and paste it after the prefix in the CSV file (ari:cloud:identity::user/
)./people/
, and paste it after the prefix in the CSV file (ari:cloud:identity::user/
).Whether you’re an admin or not, you should end up with something like ari:cloud:identity::user/5c527cd0cc3a1d3d8a2c015d
(with your trailing ID being different).
Single-select custom fields can only contain one value.
Multi-select custom fields can include multiple values, which must be separated by double pipes (see below).
For fields where you can add more than one value (such as labels, links, or multi-select custom fields) separate each data point with a double pipe.
For example:
1 2name,type,description,label Component 1,SERVICE,Description 1,label1||label2 Component 2,LIBRARY,Description 2,label1||label3 Component 3,APPLICATION,Description 3,label1||label4
If you need help formatting the CSV file, you can download an example at this step.
csv-import
label so you can easily find them later.You can update existing components using the same steps as creating new components – but you’ll need to know how to update existing components, and when existing components will be ignored.
If the component name and type in the CSV file matches a component in Compass with the same name and type, any other data you change about that component will be updated.
If you remove a field name and its corresponding values from any component, that information won’t change on the existing component – because it hasn’t been included in the CSV file.
If the component name is the same in the CSV file, but the type is different, any existing component with the same name will not be updated; that row in the CSV file will be skipped.
If the component name and type in the CSV file matches multiple existing components in Compass with the same name and type, those components will not be updated; that row in the CSV file will be skipped.
Rate this page: