Create a Profile
Define a reusable set of attribute values for a Profile-enabled node type.
Prerequisites​
- A schema node with
generate_profile: true(the default for nodes that support Profiles) - Permission to create objects on the target branch
Create the Profile​
Replace <Kind> with your node kind (e.g. InfraInterface), <profile-name> with a unique name (3-32 characters), and <attribute> / <value> with the values you want the Profile to set.
- Web interface
- GraphQL
- Navigate to Object Management → Profiles
- Click Add Profile
- Select your node kind as the Profile type
- Fill in:
- Profile Name: a unique name (3-32 characters)
- Profile Priority: a numeric value (default
1000; lower = higher priority) - Any attribute values this Profile should define
- Click Save
mutation {
Profile<Kind>Create(
data: {
profile_name: { value: "<profile-name>" }
profile_priority: { value: 1000 }
<attribute>: { value: <value> }
}
) {
ok
object { id }
}
}
The profile_priority value defaults to 1000. Lower numbers have higher priority — see Priority and inheritance.
Verify​
- Web interface
- GraphQL
- Navigate to Object Management → Profiles
- Locate the Profile by name and click it to confirm all attribute values are set
Query the Profile by name to confirm it exists and the values were set:
query {
Profile<Kind>(profile_name__value: "<profile-name>") {
edges {
node {
profile_name { value }
<attribute> { value }
}
}
}
}
Next​
- Assign a Profile to an object
- Use multiple Profiles to combine this Profile with others using priority