Configuring a default policy project

You can configure a default policy project for an integration server by setting the policy project name in the integration server's server.conf.yaml configuration file.

Before you begin

About this task

You can configure a default policy project to be used by an integration server, by setting the policyProjects property in the Defaults section of integration server's server.conf.yaml configuration file, as shown in the following example. The policy project that you specify is then used when a policy is required but no policy name has been specified. The default value for the policyProject property is DefaultPolicies.
Defaults:
  #defaultApplication: ''            # Name a default application under which independent resources will be placed
  #policyProject: 'DefaultPolicies'  # Name of the Policy project that will be used for unqualified Policy references, default is 'DefaultPolicies'
  Policies:
    # Set default policy names, optionally qualified with a policy project as {policy project}:name
    #HTTPConnector: ''           # Default HTTP connector policy
    #HTTPSConnector: ''          # Default HTTPS connector policy
    #monitoringProfile: ''       # Default Monitoring profile
  Credentials:
    # Set default credential name
    #jdbc: ''
    #kafka: ''
    #odbc: ''

Procedure

To configure a default policy project for an integration server, complete the following steps:

  1. Use a YAML editor to open the server.conf.yaml file.

    If you do not have access to a YAML editor, you can edit the file by using a plain text editor. However, you must ensure that you do not include any tab characters, which are not accepted in YAML and would cause your integration server configuration to fail. If you choose to use a plain text editor, ensure that you use a YAML validation tool to validate the content of your file.

    For more information about working with YAML, see http://www.yaml.org/start.html.

  2. Set the policyProject property in the Defaults section of the server.conf.yaml file, by removing the comment (#) from the start of the policyProject line and either specifying the name of an existing policy project or keeping the default value of 'DefaultPolicies', as shown in the following example:
    policyProject: 'DefaultPolicies'   # Name of the Policy project that will be used for unqualified Policy references  
    
  3. Restart the integration server. The properties that you set in the server.conf.yaml file take effect when the integration server is started. If you modify these properties again, you must also start the integration server again for the subsequent changes to take effect. For more information, see Starting an integration server.