{ "basePath": "/", "paths": { "/policy_types": {"get": { "summary": "Query policy type names", "deprecated": false, "produces": ["*/*"], "operationId": "getPolicyTypesUsingGET", "responses": { "200": { "schema": { "type": "array", "items": {"type": "string"} }, "description": "Policy type names" }, "401": {"description": "Unauthorized"}, "403": {"description": "Forbidden"}, "404": { "schema": {"type": "string"}, "description": "Near-RT RIC is not found" } }, "parameters": [{ "in": "query", "allowEmptyValue": false, "name": "ric", "description": "The name of the Near-RT RIC to get types for.", "type": "string", "required": false }], "tags": ["A1 Policy Management Version 1.0"] }}, "/v2/policy": { "get": { "summary": "Returns a policy configuration", "deprecated": false, "produces": ["application/json"], "operationId": "getPolicyUsingGET_1", "responses": { "200": { "schema": {"$ref": "#/definitions/json_object"}, "description": "Policy found" }, "401": {"description": "Unauthorized"}, "403": {"description": "Forbidden"}, "404": { "schema": {"$ref": "#/definitions/error_information"}, "description": "Policy is not found" } }, "parameters": [{ "in": "query", "allowEmptyValue": false, "name": "policy_id", "description": "The identity of the policy instance.", "type": "string", "required": true }], "tags": ["A1 Policy Management Version 2.0 (in progress)"] }, "delete": { "summary": "Delete a policy", "deprecated": false, "produces": ["*/*"], "operationId": "deletePolicyUsingDELETE_1", "responses": { "200": {"description": "Not used"}, "401": {"description": "Unauthorized"}, "423": { "schema": {"$ref": "#/definitions/error_information"}, "description": "Near-RT RIC is not operational" }, "204": {"description": "Policy deleted"}, "403": {"description": "Forbidden"}, "404": { "schema": {"$ref": "#/definitions/error_information"}, "description": "Policy is not found" } }, "parameters": [{ "in": "query", "allowEmptyValue": false, "name": "policy_id", "description": "The identity of the policy instance.", "type": "string", "required": true }], "tags": ["A1 Policy Management Version 2.0 (in progress)"] }, "put": { "summary": "Create or update a policy", "deprecated": false, "produces": ["application/json"], "operationId": "putPolicyUsingPUT_1", "responses": { "200": {"description": "Policy updated"}, "201": {"description": "Policy created"}, "401": {"description": "Unauthorized"}, "423": { "schema": {"$ref": "#/definitions/error_information"}, "description": "Near-RT RIC is not operational" }, "403": {"description": "Forbidden"}, "404": { "schema": {"$ref": "#/definitions/error_information"}, "description": "Near-RT RIC or policy type is not found" } }, "parameters": [ { "schema": {"type": "object"}, "in": "body", "name": "jsonBody", "description": "jsonBody", "required": true }, { "in": "query", "allowEmptyValue": false, "name": "policy_id", "description": "The identity of the policy instance.", "type": "string", "required": true }, { "in": "query", "allowEmptyValue": false, "name": "policytype_id", "description": "The identity of the policy type.", "type": "string", "required": false }, { "in": "query", "allowEmptyValue": false, "name": "ric_id", "description": "The identity of the Near-RT RIC where the policy will be created.", "type": "string", "required": true }, { "in": "query", "allowEmptyValue": false, "name": "service_id", "description": "The identity of the service creating the policy.", "type": "string", "required": true }, { "default": false, "in": "query", "allowEmptyValue": false, "name": "transient", "x-example": false, "description": "If the policy is transient or not (boolean defaulted to false). A policy is transient if it will not be recreated in the Near-RT RIC when it has been lost (for instance due to a restart)", "type": "boolean", "required": false } ], "tags": ["A1 Policy Management Version 2.0 (in progress)"], "consumes": ["application/json"] } }, "/v2/status": {"get": { "summary": "Returns status and statistics of this service", "deprecated": false, "produces": ["application/json"], "operationId": "getStatusUsingGET_1", "responses": { "200": { "schema": {"$ref": "#/definitions/status_info_v2"}, "description": "Service is living" }, "401": {"description": "Unauthorized"}, "403": {"description": "Forbidden"}, "404": {"description": "Not Found"} }, "tags": ["A1 Policy Management Version 2.0 (in progress)"] }}, "/policy_ids": {"get": { "summary": "Query policies, only policy identities returned", "deprecated": false, "produces": ["*/*"], "operationId": "getPolicyIdsUsingGET", "responses": { "200": { "schema": { "type": "array", "items": {"type": "string"} }, "description": "Policy identitiess" }, "401": {"description": "Unauthorized"}, "403": {"description": "Forbidden"}, "404": { "schema": {"type": "string"}, "description": "Near-RT RIC or type not found" } }, "parameters": [ { "in": "query", "allowEmptyValue": false, "name": "ric", "description": "The name of the Near-RT RIC to get policies for.", "type": "string", "required": false }, { "in": "query", "allowEmptyValue": false, "name": "service", "description": "The name of the service to get policies for.", "type": "string", "required": false }, { "in": "query", "allowEmptyValue": false, "name": "type", "description": "The name of the policy type to get policies for.", "type": "string", "required": false } ], "tags": ["A1 Policy Management Version 1.0"] }}, "/policy_schemas": {"get": { "summary": "Returns policy type schema definitions", "deprecated": false, "produces": ["*/*"], "operationId": "getPolicySchemasUsingGET", "responses": { "200": { "schema": { "type": "array", "items": {"type": "object"} }, "description": "Policy schemas" }, "401": {"description": "Unauthorized"}, "403": {"description": "Forbidden"}, "404": { "schema": {"type": "string"}, "description": "Near-RT RIC is not found" } }, "parameters": [{ "in": "query", "allowEmptyValue": false, "name": "ric", "description": "The name of the Near-RT RIC to get the definitions for.", "type": "string", "required": false }], "tags": ["A1 Policy Management Version 1.0"] }}, "/v2/policy-types": {"get": { "summary": "Query policy type identities", "deprecated": false, "produces": ["application/json"], "operationId": "getPolicyTypesUsingGET_1", "responses": { "200": { "schema": {"$ref": "#/definitions/policy_type_id_list_v2"}, "description": "Policy type IDs" }, "401": {"description": "Unauthorized"}, "403": {"description": "Forbidden"}, "404": { "schema": {"$ref": "#/definitions/error_information"}, "description": "Near-RT RIC is not found" } }, "parameters": [{ "in": "query", "allowEmptyValue": false, "name": "ric_id", "description": "The identity of the Near-RT RIC to get types for.", "type": "string", "required": false }], "tags": ["A1 Policy Management Version 2.0 (in progress)"] }}, "/v2/services": { "get": { "summary": "Returns service information", "deprecated": false, "produces": ["application/json"], "description": "Either information about a registered service with given identity or all registered services are returned.", "operationId": "getServicesUsingGET_1", "responses": { "200": { "schema": {"$ref": "#/definitions/service_list_v2"}, "description": "OK" }, "401": {"description": "Unauthorized"}, "403": {"description": "Forbidden"}, "404": { "schema": {"$ref": "#/definitions/error_information"}, "description": "Service is not found" } }, "parameters": [{ "in": "query", "allowEmptyValue": false, "name": "service_id", "description": "The identity of the service", "type": "string", "required": false }], "tags": ["A1 Policy Management Version 2.0 (in progress)"] }, "delete": { "summary": "Unregister a service", "deprecated": false, "produces": ["*/*"], "operationId": "deleteServiceUsingDELETE_1", "responses": { "200": {"description": "Not used"}, "401": {"description": "Unauthorized"}, "204": { "schema": {"type": "object"}, "description": "Service unregistered" }, "403": {"description": "Forbidden"}, "404": { "schema": {"$ref": "#/definitions/error_information"}, "description": "Service not found" } }, "parameters": [{ "in": "query", "allowEmptyValue": false, "name": "service_id", "description": "The idenitity of the service", "type": "string", "required": true }], "tags": ["A1 Policy Management Version 2.0 (in progress)"] }, "put": { "summary": "Register a service", "deprecated": false, "produces": ["*/*"], "description": "Registering a service is needed to: