Create Datastore
Create a datastore.
What you are doing
Creating the datastore target where a policy will be deployed.
Why it matters
A policy is not active for protectors until it is deployed to a datastore.
CLI Code
pim create datastores datastore --name "ds_protect_ccn" --description "Datastore to demonstrate CCN protection" --default
CLI Actual Output
## Name Description Default Uid
ds_protect_ccn Datastore to demonstrate CCN protection True 1
API Endpoint
POST /pim/datastores
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" \
-d '{
"name": "ds_protect_ccn",
"description": "Datastore to demonstrate CCN protection",
"default": true
}'
API Actual Output
{"description":"Datastore to demonstrate CCN protection","name":"ds_protect_ccn","default":true,"uid":"1"}
Feedback
Was this page helpful?