Skip to main content

REST APIs for 24.2.20 and 24.2.10

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.

GET

/orgs/:xorg_id/label_mapping_rules

Creates a new label-mapping rule.

POST

/orgs/:xorg_id/label_mapping_rules

Deletes multiple label mapping rules

PUT

/orgs/{org_id}/label_mapping_rules/delete

Gets the instance of a single label-mapping rule.

GET

/orgs/:xorg_id/label_mapping_rules/: label_mapping_rule_id

Updates the instance of a single rule.

PUT

/orgs/:xorg_id/label_mapping_rules/: label_mapping_rule_id

Deletes the specified label-mapping rule.

DELETE

/orgs/:xorg_id/label_mapping_rules/: label_mapping_rule_id

Reorders label-mapping rules.

PUT

/orgs/{org_id}/label_mapping_rules/ {label_mapping_rule_id}/reorder

This asynchronous API runs a set of label-mapping rules on a set of workloads.

POST

/orgs/:xorg_id/label_mapping_rules/run

Gets the status of the async job to run the rules.

GET

/orgs/:xorg_id/label_mapping_rules/run/: job_uuid

Downloads the results of the run rules job.

GET

/orgs/:xorg_id/label_mapping_rules/run/: job_uuid/download

Assigns labels from the results of the label-mapping rules run job.

PUT

/:xorg_id/label_mapping_rules/run/: job_uuid/assign_labels