Skip to main content

otdfctl policy subject-mappings create

create - Create a new subject mapping

Synopsis

otdfctl policy subject-mappings create [flags]

Description

Create a Subject Mapping to entitle an entity (via existing or new Subject Condition Set) to an Attribute Value.

For more information about subject mappings, see the subject-mappings subcommand.

For more information about subject condition sets, see the subject-condition-sets subcommand.

Options

-a, --attribute-value-id <attribute-value-id>
The ID of the attribute value to map to a subject set (required: true)
-s, --action-standard <action-standard>
The standard action to map to a subject set (required: true)
-c, --action-custom <action-custom>
The custom action to map to a subject set (required: false)
--subject-condition-set-id <subject-condition-set-id>
Known preexisting Subject Condition Set Id (required: true)
--subject-condition-set-new <subject-condition-set-new>
JSON array of Subject Sets to create a new Subject Condition Set associated with the created Subject Mapping (required: false)
-l, --label <label>
Optional metadata 'labels' in the format: key=value (required: false)

Aliases

new, add, c