Software Secure Workload
Activity Configure

Set the Default Policy Generation Config

This API endpoint sets the default policy generation config.

PUT /openapi/v1/app_scopes/default_adm_run_config

The parameter, in addition to the values of the policy generation config object is given below.

Parameter Name

Type

Description

root_app_scope_id

string

The unique identifier of the root scope to which this default config is applicable.

The response object returns the default policy generation config object.

Sample Python code

req_payload = {
        "policy_discovery_config": {
            "carry_over_policies": False,
            "deep_policy_generation": False,
            "skip_clustering": False, 
            "auto_accept_policy_connectors": False,
            "policy_compression": 2, # numbers 0-4, 2 is MODERATE
            "enable_service_discovery": True,
            "skip_clustering": False, 
            "port_generalization": 2, # numbers 0-4, 2 is MODERATE
            "clustering_granularity": 2, # numbers 0-4, 2 is MEDIUM
            "root_app_scope_id": root_scope_id # Include the root_scope_id here
            # Additional configuration can be added here as needed
            }
        }
        resp = restclient.put('/openapi/v1/app_scopes/default_adm_run_config?root_app_scope_id={root_app_scope_id}', json_body=json.dumps(req_payload))