Rule-Based Label Mapping
New APIs for managing the new feature, Rule-based label mapping, are the following:
Label Mapping API Methods
Functionality | HTTP | URI |
|---|---|---|
Returns the collection of label mapping rules. |
|
|
Creates a new label-mapping rule. |
|
|
Deletes multiple label mapping rules |
|
|
Gets the instance of a single label-mapping rule. |
|
|
Updates the instance of a single rule. |
|
|
Deletes the specified label-mapping rule. |
|
|
Reorders label-mapping rules. |
|
|
This asynchronous API runs a set of label-mapping rules on a set of workloads. |
|
|
Gets the status of the async job to run the rules. |
|
|
Downloads the results of the run rules job. |
|
|
Assign labels from the results of the label-mapping rules, and run the job. |
|
|
Bulk label update |
|
|
Bulk label update
If an organization has 500 rules defined, the UI must make up to 500 individual calls in an enable/disable rules operation.
This issue is resolved using the "bulk update" endpoint, which was chosen instead of a "bulk enable/disable" API because it provides additional flexibility to support future use cases.
label_mapping_rule_label_assignments.schema.json
The property label_assignment was deleted and replaced with a reference to label_mapping_rule_label_assignments.schema.json for the following APIs:
label_mapping_rules_postlabel_mapping_rules_getlabel_mapping_rules_put