Policysets
Create, edit and delete Governance policy sets
List all policy sets
Harness account ID
""Example: eBqAoNchMLKigC_qZ5EdCHarness organization ID
""Example: test-orgHarness project ID
""Example: test-projectNumber of results per page
50Example: 20Page number (starting from 0)
0Example: 4Comma separated List of Identifiers to filter on
""Example: test-projectId1, test-projectId2Filter results by partial name match
""Example: poliSort order for results
name,ASCExample: name,ASCPossible values: Filter results by type
pipelineFilter results by multiple types (comma-separated), e.g. pipeline,environment
pipeline,environmentFilter results by action
onrunHarness yaml version associated with this policySet
0Example: 0Possible values: Harness PAT key used to perform authorization
Qui maxime molestiae.OK response.
BadRequest: Bad Request response.
Unauthorized: Unauthorized response.
Forbidden: Forbidden response.
NotFound: Not Found response.
ScopeInfoError: Internal Server Error response.
BadGateway: Bad Gateway response.
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"
}
]Create a policy set
Harness account ID
""Example: eBqAoNchMLKigC_qZ5EdCHarness organization ID
""Example: test-orgHarness project ID
""Example: test-projectHarness PAT key used to perform authorization
Nobis porro possimus pariatur praesentium et sit.Action that triggers the policy set
onrunDescription of the policy set
Captures critical production policiesOnly enabled policy sets are evaluated when evaluating by type/action
trueIdentifier for the policy set
policyset-1Name of the policy set
Production PoliciesType of input suitable for the policy set
pipelineHarness yaml version associated with this policySet
0Example: 0Possible values: Created response.
Harness account ID associated with this policy set
""Example: eBqAoNchMLKigC_qZ5EdCAction that triggers the policy set
onrunTime the policy set was created
1636669297674Description of the policy set
Captures critical production policiesOnly enabled policy sets are evaluated when evaluating by type/action
trueA string enum value which determines which entities the policy set applies to during evaluation
all_entities_in_resource_groupsPossible values: Identifier of the policy set
policyset-1Infrastructure type for executing policies on customer infrastructure
KubernetesDirectPossible values: Name of the policy set
Production PoliciesHarness organization ID associated with this policy set
""Example: test-orgHarness project ID associated with this policy set
""Example: test-projectType of input suitable for the policy set
pipelineTime the policy set was last updated
1636669297674Harness yaml version associated with this policySet
0Example: 0Possible values: BadRequest: Bad Request response.
Unauthorized: Unauthorized response.
Forbidden: Forbidden response.
NotFound: Not Found response.
ScopeInfoError: Internal Server Error response.
BadGateway: Bad Gateway response.
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 (includes policy sets from account, org, and project levels)
Harness account ID
""Example: eBqAoNchMLKigC_qZ5EdCHarness organization ID
""Example: test-orgHarness project ID
""Example: test-projectNumber of results per page
50Example: 20Page number (starting from 0)
0Example: 4Comma separated List of Identifiers to filter on
""Example: test-projectId1, test-projectId2Filter results by type
pipelineFilter results by action
onrunHarness PAT key used to perform authorization
Rem exercitationem molestias et quia dolorem.OK response.
BadRequest: Bad Request response.
Unauthorized: Unauthorized response.
Forbidden: Forbidden response.
NotFound: Not Found response.
ScopeInfoError: Internal Server Error response.
BadGateway: Bad Gateway response.
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"
}
]Find a policy set by identifier
Identifier of the policy set to retrieve
policyset-1Harness account ID
""Example: eBqAoNchMLKigC_qZ5EdCHarness organization ID
""Example: test-orgHarness project ID
""Example: test-projectHarness PAT key used to perform authorization
Corporis autem ullam.OK response.
Harness account ID associated with this policy set
""Example: eBqAoNchMLKigC_qZ5EdCAction that triggers the policy set
onrunTime the policy set was created
1636669297674Description of the policy set
Captures critical production policiesOnly enabled policy sets are evaluated when evaluating by type/action
trueA string enum value which determines which entities the policy set applies to during evaluation
all_entities_in_resource_groupsPossible values: Identifier of the policy set
policyset-1Infrastructure type for executing policies on customer infrastructure
KubernetesDirectPossible values: Name of the policy set
Production PoliciesHarness organization ID associated with this policy set
""Example: test-orgHarness project ID associated with this policy set
""Example: test-projectType of input suitable for the policy set
pipelineTime the policy set was last updated
1636669297674Harness yaml version associated with this policySet
0Example: 0Possible values: BadRequest: Bad Request response.
Unauthorized: Unauthorized response.
Forbidden: Forbidden response.
NotFound: Not Found response.
ScopeInfoError: Internal Server Error response.
BadGateway: Bad Gateway response.
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 a policy set by identifier
Identifier of the policy set
policyset-1Harness account ID
""Example: eBqAoNchMLKigC_qZ5EdCHarness organization ID
""Example: test-orgHarness project ID
""Example: test-projectHarness PAT key used to perform authorization
Ipsam iure autem et quas.No Content response.
No content
BadRequest: Bad Request response.
Unauthorized: Unauthorized response.
Forbidden: Forbidden response.
NotFound: Not Found response.
ScopeInfoError: Internal Server Error response.
BadGateway: Bad Gateway response.
DELETE /gateway/pm/api/v1/policysets/{identifier} HTTP/1.1
Host: app.harness.io/
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Update a policy set by identifier
Identifier of the policy set
policyset-1Harness account ID
""Example: eBqAoNchMLKigC_qZ5EdCHarness organization ID
""Example: test-orgHarness project ID
""Example: test-projectHarness PAT key used to perform authorization
Id incidunt nostrum omnis eos est.Action that triggers the policy set
onrunDescription of the policy set
Captures critical production policiesOnly enabled policy sets are evaluated when evaluating by type/action
trueA 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.
all_entities_in_scopePossible values: Infrastructure type for executing policies on customer infrastructure. Use empty string or null to clear infrastructure configuration.
KubernetesDirectName of the policy set
Production PoliciesType of input suitable for the policy set
pipelineNo Content response.
No content
BadRequest: Bad Request response.
Unauthorized: Unauthorized response.
Forbidden: Forbidden response.
NotFound: Not Found response.
ScopeInfoError: Internal Server Error response.
BadGateway: Bad Gateway response.
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?