declare function getPolicy(policyName: PolicyName): IPolicySchema;
Retrieves a policy schema by its name from the swarm's policy schema service. Logs the operation if logging is enabled in the global configuration.
Parameter | Description |
---|---|
policyName |
The name of the policy to retrieve. |