verify_control_in_assessment
Verify control existence in assessments and validate leaf control status to confirm rule attachment eligibility while checking current rule associations.
Instructions
Verify the existence of a specific control by alias within an assessment and confirm it is a leaf control.
CONTROL VERIFICATION AND VALIDATION:
Confirms the control with the specified alias exists in the given assessment.
Validates that the control is a leaf control (eligible for rule attachment).
Checks if a rule is already attached to the control.
Returns control details and attachment status.
LEAF CONTROL IDENTIFICATION:
A control is considered a leaf control if:
leafControl = true, OR
has no planControls array, OR
planControls array is empty.
Only leaf controls can have rules attached.
If the control is not a leaf control, an error will be returned.
Args: assessment_name: Name of the assessment. control_alias: Alias of the control to verify.
Returns: Dict containing control details, leaf status, and rule attachment info.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| assessment_name | Yes | ||
| control_alias | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||