Previous Topic: ExampleNext Topic: Example


addPolicyToConfig—Add Policies to Configuration

This action adds policies to the specified configuration.

This action has the following format:

comconf action=addPolicyToConfig
confId=configuration_identifier
{{policies=(policy_name, policy_type)}
confId

Specifies the identifier of a configuration to which the existing specified policies are to be added.

Identifier of the configuration the existing specified policies to be added.

policies

Specifies the name and types of the policies to be assigned to the specified configuration.

The action reports success and failure of this action for the addressed configuration in the following way on stdout:

Configuration «configuration name», «configuration identifier»
Policy added: «policy name», «policy type», «policy identifier»
Policy failed: «policy name», «policy type», «policy identifier», «error code», «error message»