Governance API- Validation of Governance Approval for a specific bundle of a project

ankit_sikka
ankit_sikka Registered Posts: 6

I am trying to a create a logic to validate the governance approval for a particular bundle of a project.

Input params: PROJECT_KEY, BUNDLE_ID

The python code should be able to validate the governance approval status and provide the result as approved, pending , rejected,etc.

I am trying to use the new_artifact_search_request method to filter out the exact bundle but in vain.

results = gc.new_artifact_search_request(GovernArtifactSearchQuery(        
artifact_filters=[         
GovernArtifactFilterArchivedStatus(is_archived=False),
GovernArtifactFilterBlueprints(blueprint_ids=['bp.system.project_deployer_deployment']),
GovernArtifactFilterFieldValue(condition_type='EQUALS', condition=bundle_id, field_id='bundle_id'),
GovernArtifactFilterFieldValue(condition_type='EQUALS', condition=project_key, field_id='project_key'),
])

Setup Info
    Tags
      Help me…