For the complete documentation index, see llms.txt. This page is also available as Markdown.

Policysets

Create, edit and delete Governance policy sets

get

List all policy sets

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
accountIdentifierstringOptional

Harness account ID

Default: ""Example: eBqAoNchMLKigC_qZ5EdC
orgIdentifierstringOptional

Harness organization ID

Default: ""Example: test-org
projectIdentifierstringOptional

Harness project ID

Default: ""Example: test-project
per_pageinteger · int64 · min: 1 · max: 100Optional

Number of results per page

Default: 50Example: 20
pageinteger · int64Optional

Page number (starting from 0)

Default: 0Example: 4
identifierFilterstringOptional

Comma separated List of Identifiers to filter on

Default: ""Example: test-projectId1, test-projectId2
searchTermstringOptional

Filter results by partial name match

Default: ""Example: poli
sortstring · enumOptional

Sort order for results

Default: name,ASCExample: name,ASCPossible values:
typestring · min: 1Optional

Filter results by type

Example: pipeline
typesstring · min: 1Optional

Filter results by multiple types (comma-separated), e.g. pipeline,environment

Example: pipeline,environment
actionstring · min: 1Optional

Filter results by action

Example: onrun
yaml_versionstring · enumOptional

Harness yaml version associated with this policySet

Default: 0Example: 0Possible values:
Header parameters
x-api-keystringOptional

Harness PAT key used to perform authorization

Example: Qui maxime molestiae.
Responses
200

OK response.

application/json
get/api/v1/policysets
GET /gateway/pm/api/v1/policysets HTTP/1.1
Host: app.harness.io/
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
  {
    "account_id": "eBqAoNchMLKigC_qZ5EdC",
    "action": "onrun",
    "created": 1636669297674,
    "description": "Captures critical production policies",
    "enabled": true,
    "entity_selector": "all_entities_in_resource_groups",
    "identifier": "policyset-1",
    "infra_params": {
      "annotations": {
        "Perspiciatis ipsam explicabo sit omnis magni omnis.": "At neque dignissimos harum asperiores dolorum.",
        "Voluptatem quia maxime fugit voluptatem repudiandae nulla.": "Rem eum commodi quasi aut sapiente tenetur."
      },
      "connectorRef": "account.k8s_connector",
      "harnessImageConnectorRef": "account.docker_connector",
      "initTimeout": "10m",
      "labels": {
        "Commodi sunt quas suscipit dolores id dolore.": "Facere nobis."
      },
      "namespace": "default",
      "nodeSelector": {
        "Quasi ut doloribus ea.": "Doloribus voluptatem est repudiandae numquam.",
        "Veritatis et saepe non culpa ea.": "Omnis numquam reiciendis cum esse voluptates et."
      },
      "os": "linux",
      "poolName": "vm-pool-1",
      "resources": {
        "limits": {
          "cpu": "100m",
          "memory": "128Mi"
        },
        "requests": {
          "cpu": "100m",
          "memory": "128Mi"
        }
      }
    },
    "infra_type": "KubernetesDirect",
    "name": "Production Policies",
    "org_id": "test-org",
    "policies": [
      {
        "account_id": "eBqAoNchMLKigC_qZ5EdC",
        "created": 1636669297674,
        "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
        "git_connector_ref": ".",
        "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
        "git_file_url": "",
        "git_path": ".harness/policy.rego",
        "git_repo": "github.com/org/repo,omitempty",
        "identifier": "policy-1",
        "imported_policies": [
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          },
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          },
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          }
        ],
        "name": "Pipeline Approval",
        "org_id": "test-org",
        "parent_unique_id": "Odio expedita adipisci.",
        "polciy_size_in_bytes": 7440435055692947000,
        "policy_package_name": "Enim ea.",
        "project_id": "test-project",
        "rego": "",
        "severity": "warning",
        "unique_id": "Exercitationem molestiae consequuntur sint adipisci iusto.",
        "updated": 1636669297674
      },
      {
        "account_id": "eBqAoNchMLKigC_qZ5EdC",
        "created": 1636669297674,
        "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
        "git_connector_ref": ".",
        "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
        "git_file_url": "",
        "git_path": ".harness/policy.rego",
        "git_repo": "github.com/org/repo,omitempty",
        "identifier": "policy-1",
        "imported_policies": [
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          },
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          },
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          }
        ],
        "name": "Pipeline Approval",
        "org_id": "test-org",
        "parent_unique_id": "Odio expedita adipisci.",
        "polciy_size_in_bytes": 7440435055692947000,
        "policy_package_name": "Enim ea.",
        "project_id": "test-project",
        "rego": "",
        "severity": "warning",
        "unique_id": "Exercitationem molestiae consequuntur sint adipisci iusto.",
        "updated": 1636669297674
      },
      {
        "account_id": "eBqAoNchMLKigC_qZ5EdC",
        "created": 1636669297674,
        "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
        "git_connector_ref": ".",
        "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
        "git_file_url": "",
        "git_path": ".harness/policy.rego",
        "git_repo": "github.com/org/repo,omitempty",
        "identifier": "policy-1",
        "imported_policies": [
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          },
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          },
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          }
        ],
        "name": "Pipeline Approval",
        "org_id": "test-org",
        "parent_unique_id": "Odio expedita adipisci.",
        "polciy_size_in_bytes": 7440435055692947000,
        "policy_package_name": "Enim ea.",
        "project_id": "test-project",
        "rego": "",
        "severity": "warning",
        "unique_id": "Exercitationem molestiae consequuntur sint adipisci iusto.",
        "updated": 1636669297674
      },
      {
        "account_id": "eBqAoNchMLKigC_qZ5EdC",
        "created": 1636669297674,
        "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
        "git_connector_ref": ".",
        "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
        "git_file_url": "",
        "git_path": ".harness/policy.rego",
        "git_repo": "github.com/org/repo,omitempty",
        "identifier": "policy-1",
        "imported_policies": [
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          },
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          },
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          }
        ],
        "name": "Pipeline Approval",
        "org_id": "test-org",
        "parent_unique_id": "Odio expedita adipisci.",
        "polciy_size_in_bytes": 7440435055692947000,
        "policy_package_name": "Enim ea.",
        "project_id": "test-project",
        "rego": "",
        "severity": "warning",
        "unique_id": "Exercitationem molestiae consequuntur sint adipisci iusto.",
        "updated": 1636669297674
      }
    ],
    "project_id": "test-project",
    "resource_groups": [
      {
        "account_id": "Exercitationem harum consequatur dolorum minima molestiae aperiam.",
        "created": 3521594352669719600,
        "identifier": "Voluptates dolor aut corporis qui doloremque possimus.",
        "name": "Doloremque nihil.",
        "org_id": "Maxime pariatur ut architecto quisquam earum suscipit.",
        "project_id": "Iste qui molestias qui."
      },
      {
        "account_id": "Exercitationem harum consequatur dolorum minima molestiae aperiam.",
        "created": 3521594352669719600,
        "identifier": "Voluptates dolor aut corporis qui doloremque possimus.",
        "name": "Doloremque nihil.",
        "org_id": "Maxime pariatur ut architecto quisquam earum suscipit.",
        "project_id": "Iste qui molestias qui."
      },
      {
        "account_id": "Exercitationem harum consequatur dolorum minima molestiae aperiam.",
        "created": 3521594352669719600,
        "identifier": "Voluptates dolor aut corporis qui doloremque possimus.",
        "name": "Doloremque nihil.",
        "org_id": "Maxime pariatur ut architecto quisquam earum suscipit.",
        "project_id": "Iste qui molestias qui."
      },
      {
        "account_id": "Exercitationem harum consequatur dolorum minima molestiae aperiam.",
        "created": 3521594352669719600,
        "identifier": "Voluptates dolor aut corporis qui doloremque possimus.",
        "name": "Doloremque nihil.",
        "org_id": "Maxime pariatur ut architecto quisquam earum suscipit.",
        "project_id": "Iste qui molestias qui."
      }
    ],
    "type": "pipeline",
    "updated": 1636669297674,
    "yaml_version": "0"
  },
  {
    "account_id": "eBqAoNchMLKigC_qZ5EdC",
    "action": "onrun",
    "created": 1636669297674,
    "description": "Captures critical production policies",
    "enabled": true,
    "entity_selector": "all_entities_in_resource_groups",
    "identifier": "policyset-1",
    "infra_params": {
      "annotations": {
        "Perspiciatis ipsam explicabo sit omnis magni omnis.": "At neque dignissimos harum asperiores dolorum.",
        "Voluptatem quia maxime fugit voluptatem repudiandae nulla.": "Rem eum commodi quasi aut sapiente tenetur."
      },
      "connectorRef": "account.k8s_connector",
      "harnessImageConnectorRef": "account.docker_connector",
      "initTimeout": "10m",
      "labels": {
        "Commodi sunt quas suscipit dolores id dolore.": "Facere nobis."
      },
      "namespace": "default",
      "nodeSelector": {
        "Quasi ut doloribus ea.": "Doloribus voluptatem est repudiandae numquam.",
        "Veritatis et saepe non culpa ea.": "Omnis numquam reiciendis cum esse voluptates et."
      },
      "os": "linux",
      "poolName": "vm-pool-1",
      "resources": {
        "limits": {
          "cpu": "100m",
          "memory": "128Mi"
        },
        "requests": {
          "cpu": "100m",
          "memory": "128Mi"
        }
      }
    },
    "infra_type": "KubernetesDirect",
    "name": "Production Policies",
    "org_id": "test-org",
    "policies": [
      {
        "account_id": "eBqAoNchMLKigC_qZ5EdC",
        "created": 1636669297674,
        "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
        "git_connector_ref": ".",
        "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
        "git_file_url": "",
        "git_path": ".harness/policy.rego",
        "git_repo": "github.com/org/repo,omitempty",
        "identifier": "policy-1",
        "imported_policies": [
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          },
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          },
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          }
        ],
        "name": "Pipeline Approval",
        "org_id": "test-org",
        "parent_unique_id": "Odio expedita adipisci.",
        "polciy_size_in_bytes": 7440435055692947000,
        "policy_package_name": "Enim ea.",
        "project_id": "test-project",
        "rego": "",
        "severity": "warning",
        "unique_id": "Exercitationem molestiae consequuntur sint adipisci iusto.",
        "updated": 1636669297674
      },
      {
        "account_id": "eBqAoNchMLKigC_qZ5EdC",
        "created": 1636669297674,
        "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
        "git_connector_ref": ".",
        "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
        "git_file_url": "",
        "git_path": ".harness/policy.rego",
        "git_repo": "github.com/org/repo,omitempty",
        "identifier": "policy-1",
        "imported_policies": [
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          },
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          },
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          }
        ],
        "name": "Pipeline Approval",
        "org_id": "test-org",
        "parent_unique_id": "Odio expedita adipisci.",
        "polciy_size_in_bytes": 7440435055692947000,
        "policy_package_name": "Enim ea.",
        "project_id": "test-project",
        "rego": "",
        "severity": "warning",
        "unique_id": "Exercitationem molestiae consequuntur sint adipisci iusto.",
        "updated": 1636669297674
      },
      {
        "account_id": "eBqAoNchMLKigC_qZ5EdC",
        "created": 1636669297674,
        "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
        "git_connector_ref": ".",
        "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
        "git_file_url": "",
        "git_path": ".harness/policy.rego",
        "git_repo": "github.com/org/repo,omitempty",
        "identifier": "policy-1",
        "imported_policies": [
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          },
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          },
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          }
        ],
        "name": "Pipeline Approval",
        "org_id": "test-org",
        "parent_unique_id": "Odio expedita adipisci.",
        "polciy_size_in_bytes": 7440435055692947000,
        "policy_package_name": "Enim ea.",
        "project_id": "test-project",
        "rego": "",
        "severity": "warning",
        "unique_id": "Exercitationem molestiae consequuntur sint adipisci iusto.",
        "updated": 1636669297674
      },
      {
        "account_id": "eBqAoNchMLKigC_qZ5EdC",
        "created": 1636669297674,
        "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
        "git_connector_ref": ".",
        "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
        "git_file_url": "",
        "git_path": ".harness/policy.rego",
        "git_repo": "github.com/org/repo,omitempty",
        "identifier": "policy-1",
        "imported_policies": [
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          },
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          },
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          }
        ],
        "name": "Pipeline Approval",
        "org_id": "test-org",
        "parent_unique_id": "Odio expedita adipisci.",
        "polciy_size_in_bytes": 7440435055692947000,
        "policy_package_name": "Enim ea.",
        "project_id": "test-project",
        "rego": "",
        "severity": "warning",
        "unique_id": "Exercitationem molestiae consequuntur sint adipisci iusto.",
        "updated": 1636669297674
      }
    ],
    "project_id": "test-project",
    "resource_groups": [
      {
        "account_id": "Exercitationem harum consequatur dolorum minima molestiae aperiam.",
        "created": 3521594352669719600,
        "identifier": "Voluptates dolor aut corporis qui doloremque possimus.",
        "name": "Doloremque nihil.",
        "org_id": "Maxime pariatur ut architecto quisquam earum suscipit.",
        "project_id": "Iste qui molestias qui."
      },
      {
        "account_id": "Exercitationem harum consequatur dolorum minima molestiae aperiam.",
        "created": 3521594352669719600,
        "identifier": "Voluptates dolor aut corporis qui doloremque possimus.",
        "name": "Doloremque nihil.",
        "org_id": "Maxime pariatur ut architecto quisquam earum suscipit.",
        "project_id": "Iste qui molestias qui."
      },
      {
        "account_id": "Exercitationem harum consequatur dolorum minima molestiae aperiam.",
        "created": 3521594352669719600,
        "identifier": "Voluptates dolor aut corporis qui doloremque possimus.",
        "name": "Doloremque nihil.",
        "org_id": "Maxime pariatur ut architecto quisquam earum suscipit.",
        "project_id": "Iste qui molestias qui."
      },
      {
        "account_id": "Exercitationem harum consequatur dolorum minima molestiae aperiam.",
        "created": 3521594352669719600,
        "identifier": "Voluptates dolor aut corporis qui doloremque possimus.",
        "name": "Doloremque nihil.",
        "org_id": "Maxime pariatur ut architecto quisquam earum suscipit.",
        "project_id": "Iste qui molestias qui."
      }
    ],
    "type": "pipeline",
    "updated": 1636669297674,
    "yaml_version": "0"
  }
]
post

Create a policy set

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
accountIdentifierstringOptional

Harness account ID

Default: ""Example: eBqAoNchMLKigC_qZ5EdC
orgIdentifierstringOptional

Harness organization ID

Default: ""Example: test-org
projectIdentifierstringOptional

Harness project ID

Default: ""Example: test-project
Header parameters
x-api-keystringOptional

Harness PAT key used to perform authorization

Example: Nobis porro possimus pariatur praesentium et sit.
Body
actionstring · min: 1Required

Action that triggers the policy set

Example: onrun
descriptionstringOptional

Description of the policy set

Example: Captures critical production policies
enabledbooleanRequired

Only enabled policy sets are evaluated when evaluating by type/action

Example: true
identifierstring · min: 1Required

Identifier for the policy set

Example: policyset-1
namestring · min: 1Required

Name of the policy set

Example: Production Policies
typestring · min: 1Required

Type of input suitable for the policy set

Example: pipeline
yaml_versionstring · enumOptional

Harness yaml version associated with this policySet

Default: 0Example: 0Possible values:
Responses
201

Created response.

application/json
account_idstringRequired

Harness account ID associated with this policy set

Default: ""Example: eBqAoNchMLKigC_qZ5EdC
actionstring · min: 1Required

Action that triggers the policy set

Example: onrun
createdinteger · int64Required

Time the policy set was created

Example: 1636669297674
descriptionstringOptional

Description of the policy set

Example: Captures critical production policies
enabledbooleanRequired

Only enabled policy sets are evaluated when evaluating by type/action

Example: true
entity_selectorstring · enumRequired

A string enum value which determines which entities the policy set applies to during evaluation

Example: all_entities_in_resource_groupsPossible values:
identifierstring · min: 1Required

Identifier of the policy set

Example: policyset-1
infra_typestring · enumOptional

Infrastructure type for executing policies on customer infrastructure

Example: KubernetesDirectPossible values:
namestring · min: 1Required

Name of the policy set

Example: Production Policies
org_idstringRequired

Harness organization ID associated with this policy set

Default: ""Example: test-org
project_idstringRequired

Harness project ID associated with this policy set

Default: ""Example: test-project
typestring · min: 1Required

Type of input suitable for the policy set

Example: pipeline
updatedinteger · int64Required

Time the policy set was last updated

Example: 1636669297674
yaml_versionstring · enumOptional

Harness yaml version associated with this policySet

Default: 0Example: 0Possible values:
post/api/v1/policysets
POST /gateway/pm/api/v1/policysets HTTP/1.1
Host: app.harness.io/
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 180

{
  "action": "onrun",
  "description": "Captures critical production policies",
  "enabled": true,
  "identifier": "policyset-1",
  "name": "Production Policies",
  "type": "pipeline",
  "yaml_version": "0"
}
{
  "account_id": "eBqAoNchMLKigC_qZ5EdC",
  "action": "onrun",
  "created": 1636669297674,
  "description": "Captures critical production policies",
  "enabled": true,
  "entity_selector": "all_entities_in_resource_groups",
  "identifier": "policyset-1",
  "infra_params": {
    "annotations": {
      "Quam ratione molestiae deleniti facere est est.": "Veniam eius veritatis.",
      "Vel et tempora similique reiciendis aut esse.": "Et quos id ut perspiciatis impedit rerum."
    },
    "connectorRef": "account.k8s_connector",
    "harnessImageConnectorRef": "account.docker_connector",
    "initTimeout": "10m",
    "labels": {
      "Dolorum quia earum.": "Vero accusamus illum libero adipisci beatae.",
      "Expedita nobis praesentium.": "In iste voluptatem consequatur ut."
    },
    "namespace": "default",
    "nodeSelector": {
      "Accusantium odit aut et.": "Aperiam earum eligendi quas aspernatur recusandae."
    },
    "os": "linux",
    "poolName": "vm-pool-1",
    "resources": {
      "limits": {
        "cpu": "100m",
        "memory": "128Mi"
      },
      "requests": {
        "cpu": "100m",
        "memory": "128Mi"
      }
    }
  },
  "infra_type": "KubernetesDirect",
  "name": "Production Policies",
  "org_id": "test-org",
  "policies": [
    {
      "account_id": "eBqAoNchMLKigC_qZ5EdC",
      "created": 1636669297674,
      "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
      "git_connector_ref": ".",
      "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
      "git_file_url": "",
      "git_path": ".harness/policy.rego",
      "git_repo": "github.com/org/repo,omitempty",
      "identifier": "policy-1",
      "imported_policies": [
        {
          "account_id": "eBqAoNchMLKigC_qZ5EdC",
          "cache_response": {
            "cache_state": "STALE_CACHE",
            "is_sync_enabled": true,
            "last_updated_at": 1773917288158,
            "ttl_left": 258234442
          },
          "created": 1636669297674,
          "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_connector_ref": ".",
          "git_default_branch": "main",
          "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_default_branch_file_url": "",
          "git_default_branch_update_error": {
            "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
            "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
            "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
          },
          "git_default_branch_updated": 1636669297674,
          "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_file_url": "",
          "git_path": ".harness/policy.rego",
          "git_repo": "github.com/org/repo,omitempty",
          "identifier": "policy-1",
          "name": "Pipeline Approval",
          "org_id": "test-org",
          "parent_unique_id": "Aperiam quod.",
          "polciy_size_in_bytes": 8751929130004460000,
          "policy_package_name": "Eum qui praesentium.",
          "policy_set_count": 3,
          "project_id": "test-project",
          "rego": "",
          "unique_id": "Ullam quo libero illo officiis id quo.",
          "updated": 1636669297674
        },
        {
          "account_id": "eBqAoNchMLKigC_qZ5EdC",
          "cache_response": {
            "cache_state": "STALE_CACHE",
            "is_sync_enabled": true,
            "last_updated_at": 1773917288158,
            "ttl_left": 258234442
          },
          "created": 1636669297674,
          "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_connector_ref": ".",
          "git_default_branch": "main",
          "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_default_branch_file_url": "",
          "git_default_branch_update_error": {
            "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
            "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
            "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
          },
          "git_default_branch_updated": 1636669297674,
          "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_file_url": "",
          "git_path": ".harness/policy.rego",
          "git_repo": "github.com/org/repo,omitempty",
          "identifier": "policy-1",
          "name": "Pipeline Approval",
          "org_id": "test-org",
          "parent_unique_id": "Aperiam quod.",
          "polciy_size_in_bytes": 8751929130004460000,
          "policy_package_name": "Eum qui praesentium.",
          "policy_set_count": 3,
          "project_id": "test-project",
          "rego": "",
          "unique_id": "Ullam quo libero illo officiis id quo.",
          "updated": 1636669297674
        },
        {
          "account_id": "eBqAoNchMLKigC_qZ5EdC",
          "cache_response": {
            "cache_state": "STALE_CACHE",
            "is_sync_enabled": true,
            "last_updated_at": 1773917288158,
            "ttl_left": 258234442
          },
          "created": 1636669297674,
          "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_connector_ref": ".",
          "git_default_branch": "main",
          "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_default_branch_file_url": "",
          "git_default_branch_update_error": {
            "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
            "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
            "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
          },
          "git_default_branch_updated": 1636669297674,
          "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_file_url": "",
          "git_path": ".harness/policy.rego",
          "git_repo": "github.com/org/repo,omitempty",
          "identifier": "policy-1",
          "name": "Pipeline Approval",
          "org_id": "test-org",
          "parent_unique_id": "Aperiam quod.",
          "polciy_size_in_bytes": 8751929130004460000,
          "policy_package_name": "Eum qui praesentium.",
          "policy_set_count": 3,
          "project_id": "test-project",
          "rego": "",
          "unique_id": "Ullam quo libero illo officiis id quo.",
          "updated": 1636669297674
        }
      ],
      "name": "Pipeline Approval",
      "org_id": "test-org",
      "parent_unique_id": "Voluptatem ut repellat asperiores mollitia accusantium.",
      "polciy_size_in_bytes": 6449960843080837000,
      "policy_package_name": "Veniam voluptates et tempore saepe.",
      "project_id": "test-project",
      "rego": "",
      "severity": "warning",
      "unique_id": "Dolor ex facilis nesciunt.",
      "updated": 1636669297674
    },
    {
      "account_id": "eBqAoNchMLKigC_qZ5EdC",
      "created": 1636669297674,
      "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
      "git_connector_ref": ".",
      "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
      "git_file_url": "",
      "git_path": ".harness/policy.rego",
      "git_repo": "github.com/org/repo,omitempty",
      "identifier": "policy-1",
      "imported_policies": [
        {
          "account_id": "eBqAoNchMLKigC_qZ5EdC",
          "cache_response": {
            "cache_state": "STALE_CACHE",
            "is_sync_enabled": true,
            "last_updated_at": 1773917288158,
            "ttl_left": 258234442
          },
          "created": 1636669297674,
          "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_connector_ref": ".",
          "git_default_branch": "main",
          "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_default_branch_file_url": "",
          "git_default_branch_update_error": {
            "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
            "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
            "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
          },
          "git_default_branch_updated": 1636669297674,
          "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_file_url": "",
          "git_path": ".harness/policy.rego",
          "git_repo": "github.com/org/repo,omitempty",
          "identifier": "policy-1",
          "name": "Pipeline Approval",
          "org_id": "test-org",
          "parent_unique_id": "Aperiam quod.",
          "polciy_size_in_bytes": 8751929130004460000,
          "policy_package_name": "Eum qui praesentium.",
          "policy_set_count": 3,
          "project_id": "test-project",
          "rego": "",
          "unique_id": "Ullam quo libero illo officiis id quo.",
          "updated": 1636669297674
        },
        {
          "account_id": "eBqAoNchMLKigC_qZ5EdC",
          "cache_response": {
            "cache_state": "STALE_CACHE",
            "is_sync_enabled": true,
            "last_updated_at": 1773917288158,
            "ttl_left": 258234442
          },
          "created": 1636669297674,
          "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_connector_ref": ".",
          "git_default_branch": "main",
          "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_default_branch_file_url": "",
          "git_default_branch_update_error": {
            "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
            "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
            "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
          },
          "git_default_branch_updated": 1636669297674,
          "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_file_url": "",
          "git_path": ".harness/policy.rego",
          "git_repo": "github.com/org/repo,omitempty",
          "identifier": "policy-1",
          "name": "Pipeline Approval",
          "org_id": "test-org",
          "parent_unique_id": "Aperiam quod.",
          "polciy_size_in_bytes": 8751929130004460000,
          "policy_package_name": "Eum qui praesentium.",
          "policy_set_count": 3,
          "project_id": "test-project",
          "rego": "",
          "unique_id": "Ullam quo libero illo officiis id quo.",
          "updated": 1636669297674
        },
        {
          "account_id": "eBqAoNchMLKigC_qZ5EdC",
          "cache_response": {
            "cache_state": "STALE_CACHE",
            "is_sync_enabled": true,
            "last_updated_at": 1773917288158,
            "ttl_left": 258234442
          },
          "created": 1636669297674,
          "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_connector_ref": ".",
          "git_default_branch": "main",
          "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_default_branch_file_url": "",
          "git_default_branch_update_error": {
            "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
            "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
            "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
          },
          "git_default_branch_updated": 1636669297674,
          "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_file_url": "",
          "git_path": ".harness/policy.rego",
          "git_repo": "github.com/org/repo,omitempty",
          "identifier": "policy-1",
          "name": "Pipeline Approval",
          "org_id": "test-org",
          "parent_unique_id": "Aperiam quod.",
          "polciy_size_in_bytes": 8751929130004460000,
          "policy_package_name": "Eum qui praesentium.",
          "policy_set_count": 3,
          "project_id": "test-project",
          "rego": "",
          "unique_id": "Ullam quo libero illo officiis id quo.",
          "updated": 1636669297674
        }
      ],
      "name": "Pipeline Approval",
      "org_id": "test-org",
      "parent_unique_id": "Voluptatem ut repellat asperiores mollitia accusantium.",
      "polciy_size_in_bytes": 6449960843080837000,
      "policy_package_name": "Veniam voluptates et tempore saepe.",
      "project_id": "test-project",
      "rego": "",
      "severity": "warning",
      "unique_id": "Dolor ex facilis nesciunt.",
      "updated": 1636669297674
    },
    {
      "account_id": "eBqAoNchMLKigC_qZ5EdC",
      "created": 1636669297674,
      "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
      "git_connector_ref": ".",
      "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
      "git_file_url": "",
      "git_path": ".harness/policy.rego",
      "git_repo": "github.com/org/repo,omitempty",
      "identifier": "policy-1",
      "imported_policies": [
        {
          "account_id": "eBqAoNchMLKigC_qZ5EdC",
          "cache_response": {
            "cache_state": "STALE_CACHE",
            "is_sync_enabled": true,
            "last_updated_at": 1773917288158,
            "ttl_left": 258234442
          },
          "created": 1636669297674,
          "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_connector_ref": ".",
          "git_default_branch": "main",
          "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_default_branch_file_url": "",
          "git_default_branch_update_error": {
            "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
            "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
            "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
          },
          "git_default_branch_updated": 1636669297674,
          "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_file_url": "",
          "git_path": ".harness/policy.rego",
          "git_repo": "github.com/org/repo,omitempty",
          "identifier": "policy-1",
          "name": "Pipeline Approval",
          "org_id": "test-org",
          "parent_unique_id": "Aperiam quod.",
          "polciy_size_in_bytes": 8751929130004460000,
          "policy_package_name": "Eum qui praesentium.",
          "policy_set_count": 3,
          "project_id": "test-project",
          "rego": "",
          "unique_id": "Ullam quo libero illo officiis id quo.",
          "updated": 1636669297674
        },
        {
          "account_id": "eBqAoNchMLKigC_qZ5EdC",
          "cache_response": {
            "cache_state": "STALE_CACHE",
            "is_sync_enabled": true,
            "last_updated_at": 1773917288158,
            "ttl_left": 258234442
          },
          "created": 1636669297674,
          "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_connector_ref": ".",
          "git_default_branch": "main",
          "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_default_branch_file_url": "",
          "git_default_branch_update_error": {
            "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
            "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
            "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
          },
          "git_default_branch_updated": 1636669297674,
          "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_file_url": "",
          "git_path": ".harness/policy.rego",
          "git_repo": "github.com/org/repo,omitempty",
          "identifier": "policy-1",
          "name": "Pipeline Approval",
          "org_id": "test-org",
          "parent_unique_id": "Aperiam quod.",
          "polciy_size_in_bytes": 8751929130004460000,
          "policy_package_name": "Eum qui praesentium.",
          "policy_set_count": 3,
          "project_id": "test-project",
          "rego": "",
          "unique_id": "Ullam quo libero illo officiis id quo.",
          "updated": 1636669297674
        },
        {
          "account_id": "eBqAoNchMLKigC_qZ5EdC",
          "cache_response": {
            "cache_state": "STALE_CACHE",
            "is_sync_enabled": true,
            "last_updated_at": 1773917288158,
            "ttl_left": 258234442
          },
          "created": 1636669297674,
          "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_connector_ref": ".",
          "git_default_branch": "main",
          "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_default_branch_file_url": "",
          "git_default_branch_update_error": {
            "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
            "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
            "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
          },
          "git_default_branch_updated": 1636669297674,
          "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_file_url": "",
          "git_path": ".harness/policy.rego",
          "git_repo": "github.com/org/repo,omitempty",
          "identifier": "policy-1",
          "name": "Pipeline Approval",
          "org_id": "test-org",
          "parent_unique_id": "Aperiam quod.",
          "polciy_size_in_bytes": 8751929130004460000,
          "policy_package_name": "Eum qui praesentium.",
          "policy_set_count": 3,
          "project_id": "test-project",
          "rego": "",
          "unique_id": "Ullam quo libero illo officiis id quo.",
          "updated": 1636669297674
        }
      ],
      "name": "Pipeline Approval",
      "org_id": "test-org",
      "parent_unique_id": "Voluptatem ut repellat asperiores mollitia accusantium.",
      "polciy_size_in_bytes": 6449960843080837000,
      "policy_package_name": "Veniam voluptates et tempore saepe.",
      "project_id": "test-project",
      "rego": "",
      "severity": "warning",
      "unique_id": "Dolor ex facilis nesciunt.",
      "updated": 1636669297674
    }
  ],
  "project_id": "test-project",
  "resource_groups": [
    {
      "account_id": "Labore pariatur.",
      "created": 2310597787532854300,
      "identifier": "Doloremque enim quia nihil vero iusto molestiae.",
      "name": "Nam vel ut.",
      "org_id": "Repellendus quia.",
      "project_id": "Aperiam maxime fugit autem provident ut."
    },
    {
      "account_id": "Labore pariatur.",
      "created": 2310597787532854300,
      "identifier": "Doloremque enim quia nihil vero iusto molestiae.",
      "name": "Nam vel ut.",
      "org_id": "Repellendus quia.",
      "project_id": "Aperiam maxime fugit autem provident ut."
    }
  ],
  "type": "pipeline",
  "updated": 1636669297674,
  "yaml_version": "0"
}

List all policy sets hierarchically

get

List all policy sets hierarchically (includes policy sets from account, org, and project levels)

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
accountIdentifierstringOptional

Harness account ID

Default: ""Example: eBqAoNchMLKigC_qZ5EdC
orgIdentifierstringOptional

Harness organization ID

Default: ""Example: test-org
projectIdentifierstringOptional

Harness project ID

Default: ""Example: test-project
per_pageinteger · int64 · min: 1 · max: 100Optional

Number of results per page

Default: 50Example: 20
pageinteger · int64Optional

Page number (starting from 0)

Default: 0Example: 4
identifierFilterstringOptional

Comma separated List of Identifiers to filter on

Default: ""Example: test-projectId1, test-projectId2
typestring · min: 1Optional

Filter results by type

Example: pipeline
actionstring · min: 1Optional

Filter results by action

Example: onrun
Header parameters
x-api-keystringOptional

Harness PAT key used to perform authorization

Example: Rem exercitationem molestias et quia dolorem.
Responses
200

OK response.

application/json
get/api/v1/policysets/all
GET /gateway/pm/api/v1/policysets/all HTTP/1.1
Host: app.harness.io/
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
  {
    "account_id": "eBqAoNchMLKigC_qZ5EdC",
    "action": "onrun",
    "created": 1636669297674,
    "description": "Captures critical production policies",
    "enabled": true,
    "entity_selector": "all_entities_in_resource_groups",
    "identifier": "policyset-1",
    "infra_params": {
      "annotations": {
        "Perspiciatis ipsam explicabo sit omnis magni omnis.": "At neque dignissimos harum asperiores dolorum.",
        "Voluptatem quia maxime fugit voluptatem repudiandae nulla.": "Rem eum commodi quasi aut sapiente tenetur."
      },
      "connectorRef": "account.k8s_connector",
      "harnessImageConnectorRef": "account.docker_connector",
      "initTimeout": "10m",
      "labels": {
        "Commodi sunt quas suscipit dolores id dolore.": "Facere nobis."
      },
      "namespace": "default",
      "nodeSelector": {
        "Quasi ut doloribus ea.": "Doloribus voluptatem est repudiandae numquam.",
        "Veritatis et saepe non culpa ea.": "Omnis numquam reiciendis cum esse voluptates et."
      },
      "os": "linux",
      "poolName": "vm-pool-1",
      "resources": {
        "limits": {
          "cpu": "100m",
          "memory": "128Mi"
        },
        "requests": {
          "cpu": "100m",
          "memory": "128Mi"
        }
      }
    },
    "infra_type": "KubernetesDirect",
    "name": "Production Policies",
    "org_id": "test-org",
    "policies": [
      {
        "account_id": "eBqAoNchMLKigC_qZ5EdC",
        "created": 1636669297674,
        "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
        "git_connector_ref": ".",
        "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
        "git_file_url": "",
        "git_path": ".harness/policy.rego",
        "git_repo": "github.com/org/repo,omitempty",
        "identifier": "policy-1",
        "imported_policies": [
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          },
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          },
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          }
        ],
        "name": "Pipeline Approval",
        "org_id": "test-org",
        "parent_unique_id": "Odio expedita adipisci.",
        "polciy_size_in_bytes": 7440435055692947000,
        "policy_package_name": "Enim ea.",
        "project_id": "test-project",
        "rego": "",
        "severity": "warning",
        "unique_id": "Exercitationem molestiae consequuntur sint adipisci iusto.",
        "updated": 1636669297674
      },
      {
        "account_id": "eBqAoNchMLKigC_qZ5EdC",
        "created": 1636669297674,
        "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
        "git_connector_ref": ".",
        "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
        "git_file_url": "",
        "git_path": ".harness/policy.rego",
        "git_repo": "github.com/org/repo,omitempty",
        "identifier": "policy-1",
        "imported_policies": [
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          },
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          },
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          }
        ],
        "name": "Pipeline Approval",
        "org_id": "test-org",
        "parent_unique_id": "Odio expedita adipisci.",
        "polciy_size_in_bytes": 7440435055692947000,
        "policy_package_name": "Enim ea.",
        "project_id": "test-project",
        "rego": "",
        "severity": "warning",
        "unique_id": "Exercitationem molestiae consequuntur sint adipisci iusto.",
        "updated": 1636669297674
      },
      {
        "account_id": "eBqAoNchMLKigC_qZ5EdC",
        "created": 1636669297674,
        "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
        "git_connector_ref": ".",
        "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
        "git_file_url": "",
        "git_path": ".harness/policy.rego",
        "git_repo": "github.com/org/repo,omitempty",
        "identifier": "policy-1",
        "imported_policies": [
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          },
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          },
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          }
        ],
        "name": "Pipeline Approval",
        "org_id": "test-org",
        "parent_unique_id": "Odio expedita adipisci.",
        "polciy_size_in_bytes": 7440435055692947000,
        "policy_package_name": "Enim ea.",
        "project_id": "test-project",
        "rego": "",
        "severity": "warning",
        "unique_id": "Exercitationem molestiae consequuntur sint adipisci iusto.",
        "updated": 1636669297674
      },
      {
        "account_id": "eBqAoNchMLKigC_qZ5EdC",
        "created": 1636669297674,
        "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
        "git_connector_ref": ".",
        "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
        "git_file_url": "",
        "git_path": ".harness/policy.rego",
        "git_repo": "github.com/org/repo,omitempty",
        "identifier": "policy-1",
        "imported_policies": [
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          },
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          },
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          }
        ],
        "name": "Pipeline Approval",
        "org_id": "test-org",
        "parent_unique_id": "Odio expedita adipisci.",
        "polciy_size_in_bytes": 7440435055692947000,
        "policy_package_name": "Enim ea.",
        "project_id": "test-project",
        "rego": "",
        "severity": "warning",
        "unique_id": "Exercitationem molestiae consequuntur sint adipisci iusto.",
        "updated": 1636669297674
      }
    ],
    "project_id": "test-project",
    "resource_groups": [
      {
        "account_id": "Exercitationem harum consequatur dolorum minima molestiae aperiam.",
        "created": 3521594352669719600,
        "identifier": "Voluptates dolor aut corporis qui doloremque possimus.",
        "name": "Doloremque nihil.",
        "org_id": "Maxime pariatur ut architecto quisquam earum suscipit.",
        "project_id": "Iste qui molestias qui."
      },
      {
        "account_id": "Exercitationem harum consequatur dolorum minima molestiae aperiam.",
        "created": 3521594352669719600,
        "identifier": "Voluptates dolor aut corporis qui doloremque possimus.",
        "name": "Doloremque nihil.",
        "org_id": "Maxime pariatur ut architecto quisquam earum suscipit.",
        "project_id": "Iste qui molestias qui."
      },
      {
        "account_id": "Exercitationem harum consequatur dolorum minima molestiae aperiam.",
        "created": 3521594352669719600,
        "identifier": "Voluptates dolor aut corporis qui doloremque possimus.",
        "name": "Doloremque nihil.",
        "org_id": "Maxime pariatur ut architecto quisquam earum suscipit.",
        "project_id": "Iste qui molestias qui."
      },
      {
        "account_id": "Exercitationem harum consequatur dolorum minima molestiae aperiam.",
        "created": 3521594352669719600,
        "identifier": "Voluptates dolor aut corporis qui doloremque possimus.",
        "name": "Doloremque nihil.",
        "org_id": "Maxime pariatur ut architecto quisquam earum suscipit.",
        "project_id": "Iste qui molestias qui."
      }
    ],
    "type": "pipeline",
    "updated": 1636669297674,
    "yaml_version": "0"
  },
  {
    "account_id": "eBqAoNchMLKigC_qZ5EdC",
    "action": "onrun",
    "created": 1636669297674,
    "description": "Captures critical production policies",
    "enabled": true,
    "entity_selector": "all_entities_in_resource_groups",
    "identifier": "policyset-1",
    "infra_params": {
      "annotations": {
        "Perspiciatis ipsam explicabo sit omnis magni omnis.": "At neque dignissimos harum asperiores dolorum.",
        "Voluptatem quia maxime fugit voluptatem repudiandae nulla.": "Rem eum commodi quasi aut sapiente tenetur."
      },
      "connectorRef": "account.k8s_connector",
      "harnessImageConnectorRef": "account.docker_connector",
      "initTimeout": "10m",
      "labels": {
        "Commodi sunt quas suscipit dolores id dolore.": "Facere nobis."
      },
      "namespace": "default",
      "nodeSelector": {
        "Quasi ut doloribus ea.": "Doloribus voluptatem est repudiandae numquam.",
        "Veritatis et saepe non culpa ea.": "Omnis numquam reiciendis cum esse voluptates et."
      },
      "os": "linux",
      "poolName": "vm-pool-1",
      "resources": {
        "limits": {
          "cpu": "100m",
          "memory": "128Mi"
        },
        "requests": {
          "cpu": "100m",
          "memory": "128Mi"
        }
      }
    },
    "infra_type": "KubernetesDirect",
    "name": "Production Policies",
    "org_id": "test-org",
    "policies": [
      {
        "account_id": "eBqAoNchMLKigC_qZ5EdC",
        "created": 1636669297674,
        "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
        "git_connector_ref": ".",
        "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
        "git_file_url": "",
        "git_path": ".harness/policy.rego",
        "git_repo": "github.com/org/repo,omitempty",
        "identifier": "policy-1",
        "imported_policies": [
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          },
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          },
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          }
        ],
        "name": "Pipeline Approval",
        "org_id": "test-org",
        "parent_unique_id": "Odio expedita adipisci.",
        "polciy_size_in_bytes": 7440435055692947000,
        "policy_package_name": "Enim ea.",
        "project_id": "test-project",
        "rego": "",
        "severity": "warning",
        "unique_id": "Exercitationem molestiae consequuntur sint adipisci iusto.",
        "updated": 1636669297674
      },
      {
        "account_id": "eBqAoNchMLKigC_qZ5EdC",
        "created": 1636669297674,
        "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
        "git_connector_ref": ".",
        "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
        "git_file_url": "",
        "git_path": ".harness/policy.rego",
        "git_repo": "github.com/org/repo,omitempty",
        "identifier": "policy-1",
        "imported_policies": [
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          },
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          },
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          }
        ],
        "name": "Pipeline Approval",
        "org_id": "test-org",
        "parent_unique_id": "Odio expedita adipisci.",
        "polciy_size_in_bytes": 7440435055692947000,
        "policy_package_name": "Enim ea.",
        "project_id": "test-project",
        "rego": "",
        "severity": "warning",
        "unique_id": "Exercitationem molestiae consequuntur sint adipisci iusto.",
        "updated": 1636669297674
      },
      {
        "account_id": "eBqAoNchMLKigC_qZ5EdC",
        "created": 1636669297674,
        "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
        "git_connector_ref": ".",
        "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
        "git_file_url": "",
        "git_path": ".harness/policy.rego",
        "git_repo": "github.com/org/repo,omitempty",
        "identifier": "policy-1",
        "imported_policies": [
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          },
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          },
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          }
        ],
        "name": "Pipeline Approval",
        "org_id": "test-org",
        "parent_unique_id": "Odio expedita adipisci.",
        "polciy_size_in_bytes": 7440435055692947000,
        "policy_package_name": "Enim ea.",
        "project_id": "test-project",
        "rego": "",
        "severity": "warning",
        "unique_id": "Exercitationem molestiae consequuntur sint adipisci iusto.",
        "updated": 1636669297674
      },
      {
        "account_id": "eBqAoNchMLKigC_qZ5EdC",
        "created": 1636669297674,
        "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
        "git_connector_ref": ".",
        "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
        "git_file_url": "",
        "git_path": ".harness/policy.rego",
        "git_repo": "github.com/org/repo,omitempty",
        "identifier": "policy-1",
        "imported_policies": [
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          },
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          },
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          }
        ],
        "name": "Pipeline Approval",
        "org_id": "test-org",
        "parent_unique_id": "Odio expedita adipisci.",
        "polciy_size_in_bytes": 7440435055692947000,
        "policy_package_name": "Enim ea.",
        "project_id": "test-project",
        "rego": "",
        "severity": "warning",
        "unique_id": "Exercitationem molestiae consequuntur sint adipisci iusto.",
        "updated": 1636669297674
      }
    ],
    "project_id": "test-project",
    "resource_groups": [
      {
        "account_id": "Exercitationem harum consequatur dolorum minima molestiae aperiam.",
        "created": 3521594352669719600,
        "identifier": "Voluptates dolor aut corporis qui doloremque possimus.",
        "name": "Doloremque nihil.",
        "org_id": "Maxime pariatur ut architecto quisquam earum suscipit.",
        "project_id": "Iste qui molestias qui."
      },
      {
        "account_id": "Exercitationem harum consequatur dolorum minima molestiae aperiam.",
        "created": 3521594352669719600,
        "identifier": "Voluptates dolor aut corporis qui doloremque possimus.",
        "name": "Doloremque nihil.",
        "org_id": "Maxime pariatur ut architecto quisquam earum suscipit.",
        "project_id": "Iste qui molestias qui."
      },
      {
        "account_id": "Exercitationem harum consequatur dolorum minima molestiae aperiam.",
        "created": 3521594352669719600,
        "identifier": "Voluptates dolor aut corporis qui doloremque possimus.",
        "name": "Doloremque nihil.",
        "org_id": "Maxime pariatur ut architecto quisquam earum suscipit.",
        "project_id": "Iste qui molestias qui."
      },
      {
        "account_id": "Exercitationem harum consequatur dolorum minima molestiae aperiam.",
        "created": 3521594352669719600,
        "identifier": "Voluptates dolor aut corporis qui doloremque possimus.",
        "name": "Doloremque nihil.",
        "org_id": "Maxime pariatur ut architecto quisquam earum suscipit.",
        "project_id": "Iste qui molestias qui."
      }
    ],
    "type": "pipeline",
    "updated": 1636669297674,
    "yaml_version": "0"
  },
  {
    "account_id": "eBqAoNchMLKigC_qZ5EdC",
    "action": "onrun",
    "created": 1636669297674,
    "description": "Captures critical production policies",
    "enabled": true,
    "entity_selector": "all_entities_in_resource_groups",
    "identifier": "policyset-1",
    "infra_params": {
      "annotations": {
        "Perspiciatis ipsam explicabo sit omnis magni omnis.": "At neque dignissimos harum asperiores dolorum.",
        "Voluptatem quia maxime fugit voluptatem repudiandae nulla.": "Rem eum commodi quasi aut sapiente tenetur."
      },
      "connectorRef": "account.k8s_connector",
      "harnessImageConnectorRef": "account.docker_connector",
      "initTimeout": "10m",
      "labels": {
        "Commodi sunt quas suscipit dolores id dolore.": "Facere nobis."
      },
      "namespace": "default",
      "nodeSelector": {
        "Quasi ut doloribus ea.": "Doloribus voluptatem est repudiandae numquam.",
        "Veritatis et saepe non culpa ea.": "Omnis numquam reiciendis cum esse voluptates et."
      },
      "os": "linux",
      "poolName": "vm-pool-1",
      "resources": {
        "limits": {
          "cpu": "100m",
          "memory": "128Mi"
        },
        "requests": {
          "cpu": "100m",
          "memory": "128Mi"
        }
      }
    },
    "infra_type": "KubernetesDirect",
    "name": "Production Policies",
    "org_id": "test-org",
    "policies": [
      {
        "account_id": "eBqAoNchMLKigC_qZ5EdC",
        "created": 1636669297674,
        "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
        "git_connector_ref": ".",
        "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
        "git_file_url": "",
        "git_path": ".harness/policy.rego",
        "git_repo": "github.com/org/repo,omitempty",
        "identifier": "policy-1",
        "imported_policies": [
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          },
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          },
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          }
        ],
        "name": "Pipeline Approval",
        "org_id": "test-org",
        "parent_unique_id": "Odio expedita adipisci.",
        "polciy_size_in_bytes": 7440435055692947000,
        "policy_package_name": "Enim ea.",
        "project_id": "test-project",
        "rego": "",
        "severity": "warning",
        "unique_id": "Exercitationem molestiae consequuntur sint adipisci iusto.",
        "updated": 1636669297674
      },
      {
        "account_id": "eBqAoNchMLKigC_qZ5EdC",
        "created": 1636669297674,
        "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
        "git_connector_ref": ".",
        "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
        "git_file_url": "",
        "git_path": ".harness/policy.rego",
        "git_repo": "github.com/org/repo,omitempty",
        "identifier": "policy-1",
        "imported_policies": [
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          },
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          },
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          }
        ],
        "name": "Pipeline Approval",
        "org_id": "test-org",
        "parent_unique_id": "Odio expedita adipisci.",
        "polciy_size_in_bytes": 7440435055692947000,
        "policy_package_name": "Enim ea.",
        "project_id": "test-project",
        "rego": "",
        "severity": "warning",
        "unique_id": "Exercitationem molestiae consequuntur sint adipisci iusto.",
        "updated": 1636669297674
      },
      {
        "account_id": "eBqAoNchMLKigC_qZ5EdC",
        "created": 1636669297674,
        "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
        "git_connector_ref": ".",
        "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
        "git_file_url": "",
        "git_path": ".harness/policy.rego",
        "git_repo": "github.com/org/repo,omitempty",
        "identifier": "policy-1",
        "imported_policies": [
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          },
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          },
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          }
        ],
        "name": "Pipeline Approval",
        "org_id": "test-org",
        "parent_unique_id": "Odio expedita adipisci.",
        "polciy_size_in_bytes": 7440435055692947000,
        "policy_package_name": "Enim ea.",
        "project_id": "test-project",
        "rego": "",
        "severity": "warning",
        "unique_id": "Exercitationem molestiae consequuntur sint adipisci iusto.",
        "updated": 1636669297674
      },
      {
        "account_id": "eBqAoNchMLKigC_qZ5EdC",
        "created": 1636669297674,
        "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
        "git_connector_ref": ".",
        "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
        "git_file_url": "",
        "git_path": ".harness/policy.rego",
        "git_repo": "github.com/org/repo,omitempty",
        "identifier": "policy-1",
        "imported_policies": [
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          },
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          },
          {
            "account_id": "eBqAoNchMLKigC_qZ5EdC",
            "cache_response": {
              "cache_state": "STALE_CACHE",
              "is_sync_enabled": true,
              "last_updated_at": 1773917288158,
              "ttl_left": 258234442
            },
            "created": 1636669297674,
            "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_connector_ref": ".",
            "git_default_branch": "main",
            "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_default_branch_file_url": "",
            "git_default_branch_update_error": {
              "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
              "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
              "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
            },
            "git_default_branch_updated": 1636669297674,
            "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
            "git_file_url": "",
            "git_path": ".harness/policy.rego",
            "git_repo": "github.com/org/repo,omitempty",
            "identifier": "policy-1",
            "name": "Pipeline Approval",
            "org_id": "test-org",
            "parent_unique_id": "Aliquam est.",
            "polciy_size_in_bytes": 4204212102816286000,
            "policy_package_name": "Aspernatur in molestias recusandae odit quia.",
            "policy_set_count": 3,
            "project_id": "test-project",
            "rego": "",
            "unique_id": "Ex consequuntur saepe.",
            "updated": 1636669297674
          }
        ],
        "name": "Pipeline Approval",
        "org_id": "test-org",
        "parent_unique_id": "Odio expedita adipisci.",
        "polciy_size_in_bytes": 7440435055692947000,
        "policy_package_name": "Enim ea.",
        "project_id": "test-project",
        "rego": "",
        "severity": "warning",
        "unique_id": "Exercitationem molestiae consequuntur sint adipisci iusto.",
        "updated": 1636669297674
      }
    ],
    "project_id": "test-project",
    "resource_groups": [
      {
        "account_id": "Exercitationem harum consequatur dolorum minima molestiae aperiam.",
        "created": 3521594352669719600,
        "identifier": "Voluptates dolor aut corporis qui doloremque possimus.",
        "name": "Doloremque nihil.",
        "org_id": "Maxime pariatur ut architecto quisquam earum suscipit.",
        "project_id": "Iste qui molestias qui."
      },
      {
        "account_id": "Exercitationem harum consequatur dolorum minima molestiae aperiam.",
        "created": 3521594352669719600,
        "identifier": "Voluptates dolor aut corporis qui doloremque possimus.",
        "name": "Doloremque nihil.",
        "org_id": "Maxime pariatur ut architecto quisquam earum suscipit.",
        "project_id": "Iste qui molestias qui."
      },
      {
        "account_id": "Exercitationem harum consequatur dolorum minima molestiae aperiam.",
        "created": 3521594352669719600,
        "identifier": "Voluptates dolor aut corporis qui doloremque possimus.",
        "name": "Doloremque nihil.",
        "org_id": "Maxime pariatur ut architecto quisquam earum suscipit.",
        "project_id": "Iste qui molestias qui."
      },
      {
        "account_id": "Exercitationem harum consequatur dolorum minima molestiae aperiam.",
        "created": 3521594352669719600,
        "identifier": "Voluptates dolor aut corporis qui doloremque possimus.",
        "name": "Doloremque nihil.",
        "org_id": "Maxime pariatur ut architecto quisquam earum suscipit.",
        "project_id": "Iste qui molestias qui."
      }
    ],
    "type": "pipeline",
    "updated": 1636669297674,
    "yaml_version": "0"
  }
]
get

Find a policy set by identifier

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
identifierstring · min: 1Required

Identifier of the policy set to retrieve

Example: policyset-1
Query parameters
accountIdentifierstringOptional

Harness account ID

Default: ""Example: eBqAoNchMLKigC_qZ5EdC
orgIdentifierstringOptional

Harness organization ID

Default: ""Example: test-org
projectIdentifierstringOptional

Harness project ID

Default: ""Example: test-project
Header parameters
x-api-keystringOptional

Harness PAT key used to perform authorization

Example: Corporis autem ullam.
Responses
200

OK response.

application/json
account_idstringRequired

Harness account ID associated with this policy set

Default: ""Example: eBqAoNchMLKigC_qZ5EdC
actionstring · min: 1Required

Action that triggers the policy set

Example: onrun
createdinteger · int64Required

Time the policy set was created

Example: 1636669297674
descriptionstringOptional

Description of the policy set

Example: Captures critical production policies
enabledbooleanRequired

Only enabled policy sets are evaluated when evaluating by type/action

Example: true
entity_selectorstring · enumRequired

A string enum value which determines which entities the policy set applies to during evaluation

Example: all_entities_in_resource_groupsPossible values:
identifierstring · min: 1Required

Identifier of the policy set

Example: policyset-1
infra_typestring · enumOptional

Infrastructure type for executing policies on customer infrastructure

Example: KubernetesDirectPossible values:
namestring · min: 1Required

Name of the policy set

Example: Production Policies
org_idstringRequired

Harness organization ID associated with this policy set

Default: ""Example: test-org
project_idstringRequired

Harness project ID associated with this policy set

Default: ""Example: test-project
typestring · min: 1Required

Type of input suitable for the policy set

Example: pipeline
updatedinteger · int64Required

Time the policy set was last updated

Example: 1636669297674
yaml_versionstring · enumOptional

Harness yaml version associated with this policySet

Default: 0Example: 0Possible values:
get/api/v1/policysets/{identifier}
GET /gateway/pm/api/v1/policysets/{identifier} HTTP/1.1
Host: app.harness.io/
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "account_id": "eBqAoNchMLKigC_qZ5EdC",
  "action": "onrun",
  "created": 1636669297674,
  "description": "Captures critical production policies",
  "enabled": true,
  "entity_selector": "all_entities_in_scope",
  "identifier": "policyset-1",
  "infra_params": {
    "annotations": {
      "Quam ratione molestiae deleniti facere est est.": "Veniam eius veritatis.",
      "Vel et tempora similique reiciendis aut esse.": "Et quos id ut perspiciatis impedit rerum."
    },
    "connectorRef": "account.k8s_connector",
    "harnessImageConnectorRef": "account.docker_connector",
    "initTimeout": "10m",
    "labels": {
      "Dolorum quia earum.": "Vero accusamus illum libero adipisci beatae.",
      "Expedita nobis praesentium.": "In iste voluptatem consequatur ut."
    },
    "namespace": "default",
    "nodeSelector": {
      "Accusantium odit aut et.": "Aperiam earum eligendi quas aspernatur recusandae."
    },
    "os": "linux",
    "poolName": "vm-pool-1",
    "resources": {
      "limits": {
        "cpu": "100m",
        "memory": "128Mi"
      },
      "requests": {
        "cpu": "100m",
        "memory": "128Mi"
      }
    }
  },
  "infra_type": "KubernetesDirect",
  "name": "Production Policies",
  "org_id": "test-org",
  "policies": [
    {
      "account_id": "eBqAoNchMLKigC_qZ5EdC",
      "created": 1636669297674,
      "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
      "git_connector_ref": ".",
      "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
      "git_file_url": "",
      "git_path": ".harness/policy.rego",
      "git_repo": "github.com/org/repo,omitempty",
      "identifier": "policy-1",
      "imported_policies": [
        {
          "account_id": "eBqAoNchMLKigC_qZ5EdC",
          "cache_response": {
            "cache_state": "STALE_CACHE",
            "is_sync_enabled": true,
            "last_updated_at": 1773917288158,
            "ttl_left": 258234442
          },
          "created": 1636669297674,
          "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_connector_ref": ".",
          "git_default_branch": "main",
          "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_default_branch_file_url": "",
          "git_default_branch_update_error": {
            "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
            "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
            "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
          },
          "git_default_branch_updated": 1636669297674,
          "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_file_url": "",
          "git_path": ".harness/policy.rego",
          "git_repo": "github.com/org/repo,omitempty",
          "identifier": "policy-1",
          "name": "Pipeline Approval",
          "org_id": "test-org",
          "parent_unique_id": "Aperiam quod.",
          "polciy_size_in_bytes": 8751929130004460000,
          "policy_package_name": "Eum qui praesentium.",
          "policy_set_count": 3,
          "project_id": "test-project",
          "rego": "",
          "unique_id": "Ullam quo libero illo officiis id quo.",
          "updated": 1636669297674
        },
        {
          "account_id": "eBqAoNchMLKigC_qZ5EdC",
          "cache_response": {
            "cache_state": "STALE_CACHE",
            "is_sync_enabled": true,
            "last_updated_at": 1773917288158,
            "ttl_left": 258234442
          },
          "created": 1636669297674,
          "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_connector_ref": ".",
          "git_default_branch": "main",
          "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_default_branch_file_url": "",
          "git_default_branch_update_error": {
            "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
            "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
            "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
          },
          "git_default_branch_updated": 1636669297674,
          "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_file_url": "",
          "git_path": ".harness/policy.rego",
          "git_repo": "github.com/org/repo,omitempty",
          "identifier": "policy-1",
          "name": "Pipeline Approval",
          "org_id": "test-org",
          "parent_unique_id": "Aperiam quod.",
          "polciy_size_in_bytes": 8751929130004460000,
          "policy_package_name": "Eum qui praesentium.",
          "policy_set_count": 3,
          "project_id": "test-project",
          "rego": "",
          "unique_id": "Ullam quo libero illo officiis id quo.",
          "updated": 1636669297674
        },
        {
          "account_id": "eBqAoNchMLKigC_qZ5EdC",
          "cache_response": {
            "cache_state": "STALE_CACHE",
            "is_sync_enabled": true,
            "last_updated_at": 1773917288158,
            "ttl_left": 258234442
          },
          "created": 1636669297674,
          "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_connector_ref": ".",
          "git_default_branch": "main",
          "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_default_branch_file_url": "",
          "git_default_branch_update_error": {
            "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
            "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
            "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
          },
          "git_default_branch_updated": 1636669297674,
          "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_file_url": "",
          "git_path": ".harness/policy.rego",
          "git_repo": "github.com/org/repo,omitempty",
          "identifier": "policy-1",
          "name": "Pipeline Approval",
          "org_id": "test-org",
          "parent_unique_id": "Aperiam quod.",
          "polciy_size_in_bytes": 8751929130004460000,
          "policy_package_name": "Eum qui praesentium.",
          "policy_set_count": 3,
          "project_id": "test-project",
          "rego": "",
          "unique_id": "Ullam quo libero illo officiis id quo.",
          "updated": 1636669297674
        }
      ],
      "name": "Pipeline Approval",
      "org_id": "test-org",
      "parent_unique_id": "Voluptatem ut repellat asperiores mollitia accusantium.",
      "polciy_size_in_bytes": 6449960843080837000,
      "policy_package_name": "Veniam voluptates et tempore saepe.",
      "project_id": "test-project",
      "rego": "",
      "severity": "warning",
      "unique_id": "Dolor ex facilis nesciunt.",
      "updated": 1636669297674
    },
    {
      "account_id": "eBqAoNchMLKigC_qZ5EdC",
      "created": 1636669297674,
      "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
      "git_connector_ref": ".",
      "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
      "git_file_url": "",
      "git_path": ".harness/policy.rego",
      "git_repo": "github.com/org/repo,omitempty",
      "identifier": "policy-1",
      "imported_policies": [
        {
          "account_id": "eBqAoNchMLKigC_qZ5EdC",
          "cache_response": {
            "cache_state": "STALE_CACHE",
            "is_sync_enabled": true,
            "last_updated_at": 1773917288158,
            "ttl_left": 258234442
          },
          "created": 1636669297674,
          "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_connector_ref": ".",
          "git_default_branch": "main",
          "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_default_branch_file_url": "",
          "git_default_branch_update_error": {
            "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
            "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
            "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
          },
          "git_default_branch_updated": 1636669297674,
          "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_file_url": "",
          "git_path": ".harness/policy.rego",
          "git_repo": "github.com/org/repo,omitempty",
          "identifier": "policy-1",
          "name": "Pipeline Approval",
          "org_id": "test-org",
          "parent_unique_id": "Aperiam quod.",
          "polciy_size_in_bytes": 8751929130004460000,
          "policy_package_name": "Eum qui praesentium.",
          "policy_set_count": 3,
          "project_id": "test-project",
          "rego": "",
          "unique_id": "Ullam quo libero illo officiis id quo.",
          "updated": 1636669297674
        },
        {
          "account_id": "eBqAoNchMLKigC_qZ5EdC",
          "cache_response": {
            "cache_state": "STALE_CACHE",
            "is_sync_enabled": true,
            "last_updated_at": 1773917288158,
            "ttl_left": 258234442
          },
          "created": 1636669297674,
          "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_connector_ref": ".",
          "git_default_branch": "main",
          "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_default_branch_file_url": "",
          "git_default_branch_update_error": {
            "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
            "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
            "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
          },
          "git_default_branch_updated": 1636669297674,
          "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_file_url": "",
          "git_path": ".harness/policy.rego",
          "git_repo": "github.com/org/repo,omitempty",
          "identifier": "policy-1",
          "name": "Pipeline Approval",
          "org_id": "test-org",
          "parent_unique_id": "Aperiam quod.",
          "polciy_size_in_bytes": 8751929130004460000,
          "policy_package_name": "Eum qui praesentium.",
          "policy_set_count": 3,
          "project_id": "test-project",
          "rego": "",
          "unique_id": "Ullam quo libero illo officiis id quo.",
          "updated": 1636669297674
        },
        {
          "account_id": "eBqAoNchMLKigC_qZ5EdC",
          "cache_response": {
            "cache_state": "STALE_CACHE",
            "is_sync_enabled": true,
            "last_updated_at": 1773917288158,
            "ttl_left": 258234442
          },
          "created": 1636669297674,
          "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_connector_ref": ".",
          "git_default_branch": "main",
          "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_default_branch_file_url": "",
          "git_default_branch_update_error": {
            "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
            "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
            "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
          },
          "git_default_branch_updated": 1636669297674,
          "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_file_url": "",
          "git_path": ".harness/policy.rego",
          "git_repo": "github.com/org/repo,omitempty",
          "identifier": "policy-1",
          "name": "Pipeline Approval",
          "org_id": "test-org",
          "parent_unique_id": "Aperiam quod.",
          "polciy_size_in_bytes": 8751929130004460000,
          "policy_package_name": "Eum qui praesentium.",
          "policy_set_count": 3,
          "project_id": "test-project",
          "rego": "",
          "unique_id": "Ullam quo libero illo officiis id quo.",
          "updated": 1636669297674
        }
      ],
      "name": "Pipeline Approval",
      "org_id": "test-org",
      "parent_unique_id": "Voluptatem ut repellat asperiores mollitia accusantium.",
      "polciy_size_in_bytes": 6449960843080837000,
      "policy_package_name": "Veniam voluptates et tempore saepe.",
      "project_id": "test-project",
      "rego": "",
      "severity": "warning",
      "unique_id": "Dolor ex facilis nesciunt.",
      "updated": 1636669297674
    },
    {
      "account_id": "eBqAoNchMLKigC_qZ5EdC",
      "created": 1636669297674,
      "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
      "git_connector_ref": ".",
      "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
      "git_file_url": "",
      "git_path": ".harness/policy.rego",
      "git_repo": "github.com/org/repo,omitempty",
      "identifier": "policy-1",
      "imported_policies": [
        {
          "account_id": "eBqAoNchMLKigC_qZ5EdC",
          "cache_response": {
            "cache_state": "STALE_CACHE",
            "is_sync_enabled": true,
            "last_updated_at": 1773917288158,
            "ttl_left": 258234442
          },
          "created": 1636669297674,
          "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_connector_ref": ".",
          "git_default_branch": "main",
          "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_default_branch_file_url": "",
          "git_default_branch_update_error": {
            "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
            "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
            "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
          },
          "git_default_branch_updated": 1636669297674,
          "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_file_url": "",
          "git_path": ".harness/policy.rego",
          "git_repo": "github.com/org/repo,omitempty",
          "identifier": "policy-1",
          "name": "Pipeline Approval",
          "org_id": "test-org",
          "parent_unique_id": "Aperiam quod.",
          "polciy_size_in_bytes": 8751929130004460000,
          "policy_package_name": "Eum qui praesentium.",
          "policy_set_count": 3,
          "project_id": "test-project",
          "rego": "",
          "unique_id": "Ullam quo libero illo officiis id quo.",
          "updated": 1636669297674
        },
        {
          "account_id": "eBqAoNchMLKigC_qZ5EdC",
          "cache_response": {
            "cache_state": "STALE_CACHE",
            "is_sync_enabled": true,
            "last_updated_at": 1773917288158,
            "ttl_left": 258234442
          },
          "created": 1636669297674,
          "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_connector_ref": ".",
          "git_default_branch": "main",
          "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_default_branch_file_url": "",
          "git_default_branch_update_error": {
            "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
            "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
            "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
          },
          "git_default_branch_updated": 1636669297674,
          "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_file_url": "",
          "git_path": ".harness/policy.rego",
          "git_repo": "github.com/org/repo,omitempty",
          "identifier": "policy-1",
          "name": "Pipeline Approval",
          "org_id": "test-org",
          "parent_unique_id": "Aperiam quod.",
          "polciy_size_in_bytes": 8751929130004460000,
          "policy_package_name": "Eum qui praesentium.",
          "policy_set_count": 3,
          "project_id": "test-project",
          "rego": "",
          "unique_id": "Ullam quo libero illo officiis id quo.",
          "updated": 1636669297674
        },
        {
          "account_id": "eBqAoNchMLKigC_qZ5EdC",
          "cache_response": {
            "cache_state": "STALE_CACHE",
            "is_sync_enabled": true,
            "last_updated_at": 1773917288158,
            "ttl_left": 258234442
          },
          "created": 1636669297674,
          "git_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_connector_ref": ".",
          "git_default_branch": "main",
          "git_default_branch_commit_sha": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_default_branch_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_default_branch_file_url": "",
          "git_default_branch_update_error": {
            "explanation": "File with given filepath [file.rego] already exists in Github, thus couldn't create a new file",
            "hint": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main].",
            "message": "Please check if there's already a file [file.rego] in Github repository [rego-demo] for the given filepath and branch [main]."
          },
          "git_default_branch_updated": 1636669297674,
          "git_file_id": "1369b45c20fc685113adcfd1a08a914180ff3c0d",
          "git_file_url": "",
          "git_path": ".harness/policy.rego",
          "git_repo": "github.com/org/repo,omitempty",
          "identifier": "policy-1",
          "name": "Pipeline Approval",
          "org_id": "test-org",
          "parent_unique_id": "Aperiam quod.",
          "polciy_size_in_bytes": 8751929130004460000,
          "policy_package_name": "Eum qui praesentium.",
          "policy_set_count": 3,
          "project_id": "test-project",
          "rego": "",
          "unique_id": "Ullam quo libero illo officiis id quo.",
          "updated": 1636669297674
        }
      ],
      "name": "Pipeline Approval",
      "org_id": "test-org",
      "parent_unique_id": "Voluptatem ut repellat asperiores mollitia accusantium.",
      "polciy_size_in_bytes": 6449960843080837000,
      "policy_package_name": "Veniam voluptates et tempore saepe.",
      "project_id": "test-project",
      "rego": "",
      "severity": "warning",
      "unique_id": "Dolor ex facilis nesciunt.",
      "updated": 1636669297674
    }
  ],
  "project_id": "test-project",
  "resource_groups": [
    {
      "account_id": "Labore pariatur.",
      "created": 2310597787532854300,
      "identifier": "Doloremque enim quia nihil vero iusto molestiae.",
      "name": "Nam vel ut.",
      "org_id": "Repellendus quia.",
      "project_id": "Aperiam maxime fugit autem provident ut."
    },
    {
      "account_id": "Labore pariatur.",
      "created": 2310597787532854300,
      "identifier": "Doloremque enim quia nihil vero iusto molestiae.",
      "name": "Nam vel ut.",
      "org_id": "Repellendus quia.",
      "project_id": "Aperiam maxime fugit autem provident ut."
    },
    {
      "account_id": "Labore pariatur.",
      "created": 2310597787532854300,
      "identifier": "Doloremque enim quia nihil vero iusto molestiae.",
      "name": "Nam vel ut.",
      "org_id": "Repellendus quia.",
      "project_id": "Aperiam maxime fugit autem provident ut."
    }
  ],
  "type": "pipeline",
  "updated": 1636669297674,
  "yaml_version": "0"
}
delete

Delete a policy set by identifier

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
identifierstring · min: 1Required

Identifier of the policy set

Example: policyset-1
Query parameters
accountIdentifierstringOptional

Harness account ID

Default: ""Example: eBqAoNchMLKigC_qZ5EdC
orgIdentifierstringOptional

Harness organization ID

Default: ""Example: test-org
projectIdentifierstringOptional

Harness project ID

Default: ""Example: test-project
Header parameters
x-api-keystringOptional

Harness PAT key used to perform authorization

Example: Ipsam iure autem et quas.
Responses
204

No Content response.

No content

delete/api/v1/policysets/{identifier}
DELETE /gateway/pm/api/v1/policysets/{identifier} HTTP/1.1
Host: app.harness.io/
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

patch

Update a policy set by identifier

Required scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
identifierstringRequired

Identifier of the policy set

Example: policyset-1
Query parameters
accountIdentifierstringOptional

Harness account ID

Default: ""Example: eBqAoNchMLKigC_qZ5EdC
orgIdentifierstringOptional

Harness organization ID

Default: ""Example: test-org
projectIdentifierstringOptional

Harness project ID

Default: ""Example: test-project
Header parameters
x-api-keystringOptional

Harness PAT key used to perform authorization

Example: Id incidunt nostrum omnis eos est.
Body
actionstring · min: 1Optional

Action that triggers the policy set

Example: onrun
descriptionstringOptional

Description of the policy set

Example: Captures critical production policies
enabledbooleanOptional

Only enabled policy sets are evaluated when evaluating by type/action

Example: true
entity_selectorstring · enumOptional

A string enum value which determines which entities the policy set applies to during evaluation. This feature is not available for all accounts, Contact support if you wish to have it enabled.

Example: all_entities_in_scopePossible values:
infra_typestringOptional

Infrastructure type for executing policies on customer infrastructure. Use empty string or null to clear infrastructure configuration.

Example: KubernetesDirect
namestringOptional

Name of the policy set

Example: Production Policies
typestringOptional

Type of input suitable for the policy set

Example: pipeline
Responses
204

No Content response.

No content

patch/api/v1/policysets/{identifier}
PATCH /gateway/pm/api/v1/policysets/{identifier} HTTP/1.1
Host: app.harness.io/
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 1429

{
  "action": "onrun",
  "description": "Captures critical production policies",
  "enabled": true,
  "entity_selector": "all_entities_in_resource_groups",
  "infra_params": {
    "annotations": {
      "Laborum iusto veniam quidem ut qui.": "Beatae aperiam.",
      "Modi deleniti veniam.": "Qui et non aut.",
      "Sint voluptatem in.": "Neque accusantium minima accusamus laboriosam possimus illo."
    },
    "connectorRef": "account.k8s_connector",
    "harnessImageConnectorRef": "account.docker_connector",
    "initTimeout": "10m",
    "labels": {
      "Deleniti aut nesciunt reiciendis voluptatem.": "Magni et iste.",
      "Ipsum ipsum ducimus et beatae.": "Aut qui."
    },
    "namespace": "default",
    "nodeSelector": {
      "Aperiam sit voluptatem laborum tempore.": "Illum corrupti quas fuga.",
      "Rem veritatis fugit quia.": "Accusamus aut sit."
    },
    "os": "linux",
    "poolName": "vm-pool-1",
    "resources": {
      "limits": {
        "cpu": "100m",
        "memory": "128Mi"
      },
      "requests": {
        "cpu": "100m",
        "memory": "128Mi"
      }
    }
  },
  "infra_type": "KubernetesDirect",
  "name": "Production Policies",
  "policies": [
    {
      "identifier": "policy-1",
      "severity": "warning"
    },
    {
      "identifier": "policy-1",
      "severity": "warning"
    },
    {
      "identifier": "policy-1",
      "severity": "warning"
    },
    {
      "identifier": "policy-1",
      "severity": "warning"
    }
  ],
  "resource_groups": [
    {
      "account_id": "Id consequatur.",
      "identifier": "Ut odio.",
      "org_id": "Sed tenetur.",
      "project_id": "Necessitatibus excepturi et."
    },
    {
      "account_id": "Id consequatur.",
      "identifier": "Ut odio.",
      "org_id": "Sed tenetur.",
      "project_id": "Necessitatibus excepturi et."
    }
  ],
  "type": "pipeline"
}

No content

Last updated

Was this helpful?