The simulator supports different versions of the A1 interface. Some functions are common for all version, and some are
specific for a certain version.
The simulator supports different versions of the A1 interface. Some functions are common for all version, and some are
specific for a certain version.
- Call: ::
-
- curl -X PUT "http://localhost:8085/policytype?id=Policy%201&ric=ric1&service=Service%201&type=STD_PolicyModelUnconstrained_0.2.0"
- -H "Content-Type: application/json"
- -d "
- {
+ curl -X PUT "http://localhost:8085/policytype?id=Policy%201&ric=ric1&service=Service%201&type=STD_PolicyModelUnconstrained_0.2.0"
+ -H "Content-Type: application/json"
+ -d '{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "STD_PolicyModelUnconstrained_0.2.0",
"description": "Standard model of a policy with unconstrained scope id combinations",
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "STD_PolicyModelUnconstrained_0.2.0",
"description": "Standard model of a policy with unconstrained scope id combinations",
- deleted: (*Optional*)
- True or false for real values, but accepts anything for error testing.
+**Parameters:**
+ policyid: (*Required*)
+ The ID of a policy.
+ status: (*Required*)
+ The status of a policy.
+ deleted: (*Optional*)
+ True or false for real values, but accepts anything for error testing.
+ created_at: (*Optional*)
+ Time stamp for the status.
- Set status and optional reason, delete and time stamp.
-
- **URL path:**
- /status?policyid=<policyid>&status=<status>&reason=<reason>
-
- **Parameters:**
-
- policyid: (*Required*)
- The ID of a policy.
-
- status: (*Required*)
- The status of a policy.
+Set status and optional reason, delete and time stamp.
- Call: ::
-
- curl -X PUT "http://localhost:8085/policytype/Policy%201&ric=ric1&service=Service%201&type=STD_PolicyModelUnconstrained_0.2.0"
- -H "Content-Type: application/json"
- -d "
- {
+ curl -X PUT "http://localhost:8085/policytype/Policy%201&ric=ric1&service=Service%201&type=STD_PolicyModelUnconstrained_0.2.0"
+ -H "Content-Type: application/json"
+ -d '{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "STD_PolicyModelUnconstrained_0.2.0",
"description": "Standard model of a policy with unconstrained scope id combinations",
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "STD_PolicyModelUnconstrained_0.2.0",
"description": "Standard model of a policy with unconstrained scope id combinations",