Deploy Policy to a Datastore
Deploy a policy to a datastore.
What you are doing
Deploying the policy to the datastore so protectors that target that datastore can load the policy.
Why it matters
Until the policy is deployed, the policy is not available to runtime protectors.
Tips
- You may want to deploy the multiple policies to a single datastores. If so, include them by repeating the
–-policiesparameter. - You can also add a single policy to multiple datastores by creating a loop.
CLI Code
pim invoke datastores deploy 1 --policies 1
CLI Actual Output
Successfully deployed to datastore '1':
Policies: 1
API Endpoint
POST /pim/datastores/{DATASTORE_UID}/deploy
API Code
curl -k \
-H "Authorization: Bearer ${TOKEN}" \
-H "accept: application/json" \
-H "Content-Type: application/json" \
-X POST "https://${GW_HOST}/pty/v2/pim/datastores/1/deploy" \
-d '{
"policies": ["1"],
"applications": []
}'
API Actual Output
API does not return any output as response
Feedback
Was this page helpful?