{
"count": 1,
"policy_definition": {
"__meta__": {
"user:rd": "op"
},
"category": "string",
"condition": "string",
"created_at": "2019-08-24T14:15:22Z",
"deleted": true,
"deleted_at": "2019-08-24T14:15:22Z",
"description": "test create network",
"dry_run": false,
"external_id": "string",
"generate_name": "test###",
"id": "string",
"imported_at": "2019-08-24T14:15:22Z",
"is_emulated": true,
"name": "test-network",
"parameters": {},
"progress": 0,
"source": "string",
"status": "string",
"update_version": 0,
"updated_at": "2019-08-24T14:15:22Z"
}
}
curl --location --request POST 'https://example.com:30888/policy_definitions' \
--header 'Content-Type: application/json' \
--data-raw '{
"count": 1,
"policy_definition": {
"__meta__": {
"user:rd": "op"
},
"category": "string",
"condition": "string",
"created_at": "2019-08-24T14:15:22Z",
"deleted": true,
"deleted_at": "2019-08-24T14:15:22Z",
"description": "test create network",
"dry_run": false,
"external_id": "string",
"generate_name": "test###",
"id": "string",
"imported_at": "2019-08-24T14:15:22Z",
"is_emulated": true,
"name": "test-network",
"parameters": {},
"progress": 0,
"source": "string",
"status": "string",
"update_version": 0,
"updated_at": "2019-08-24T14:15:22Z"
}
}'
{
"policy_definition": {
"can_delete": true,
"can_update": true,
"category": "string",
"condition": "string",
"created_at": "2019-08-24T14:15:22Z",
"delete_fail_reason": {
"class": "string",
"code": 0,
"details": "string"
},
"deleted": true,
"deleted_at": "2019-08-24T14:15:22Z",
"description": "string",
"external_id": "string",
"id": "string",
"imported_at": "2019-08-24T14:15:22Z",
"is_emulated": true,
"metadata": {
"property1": "string",
"property2": "string"
},
"name": "string",
"parameters": {},
"progress": 0,
"source": "string",
"status": "string",
"update_fail_reason": {
"class": "string",
"code": 0,
"details": "string"
},
"update_version": 0,
"updated_at": "2019-08-24T14:15:22Z"
}
}