_build/
.swagger*
docs/offeredapis/**/README.md
-a1-policy-management/api/**/README.md
+a1-policy-management/api/offeredapis/openapigentool/**/README.md
a1-policy-management/api/**/.openapi-generator**
a1-policy-management/custom/
# ============LICENSE_START===============================================
# Copyright (C) 2020-2023 Nordix Foundation. All rights reserved.
-# Copyright (C) 2024 OpenInfra Foundation Europe. All rights reserved.
+# Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved.
# ========================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# ONAP : ccsdk oran
# ================================================================================
# Copyright (C) 2019-2020 Nordix Foundation. All rights reserved.
+# Modifications Copyright (C) 2025 OpenInfra Foundation Europe. All rights reserved.
# ================================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# SPDX-License-Identifier: Apache-2.0
# ============LICENSE_END=========================================================
#
-FROM openjdk:17-jdk-slim
+FROM amazoncorretto:17-alpine3.17-jdk
#install vim editor
-RUN apt-get update
-RUN apt-get install -y vim
+RUN apk update
+RUN apk add vim
#install curl
-RUN apt-get install -y curl
+RUN apk add curl
EXPOSE 8081 8433
-RUN groupadd -r onap && useradd -ms /bin/bash a1pms -g onap
+RUN addgroup -S onap && adduser --shell /bin/bash --gecos "" --ingroup onap --disabled-password a1pms
RUN chown -R a1pms:onap /var/log/policy-agent
ADD /config/application.yaml /opt/app/policy-agent/config/application.yaml
--- /dev/null
+{
+ "$schema": "http://json-schema.org/draft-04/schema#",
+ "type": "object",
+ "properties": {
+ "config": {
+ "type": "object",
+ "properties": {
+ "//description": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "controller": {
+ "type": "array",
+ "items": [
+ {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "baseUrl": {
+ "type": "string"
+ },
+ "userName": {
+ "type": "string"
+ },
+ "password": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "baseUrl",
+ "userName",
+ "password"
+ ],
+ "additionalProperties": false
+ }
+ ]
+ },
+ "ric": {
+ "type": "array",
+ "items": [
+ {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "baseUrl": {
+ "type": "string"
+ },
+ "controller": {
+ "type": "string"
+ },
+ "customAdapterClass": {
+ "type": "string"
+ },
+ "managedElementIds": {
+ "type": "array",
+ "items": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "string"
+ }
+ ]
+ }
+ },
+ "required": [
+ "name",
+ "baseUrl"
+ ],
+ "additionalProperties": false
+ }
+ ]
+ }
+ },
+ "required": [
+ "ric"
+ ],
+ "additionalProperties": true
+ }
+ },
+ "required": [
+ "config"
+ ]
+}
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
- <title>ONAP CCSDK A1 Policy Management Service</title>
+ <title>ONAP CCSDK - Pre-Spec A1 Policy Management API</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="UTF-8" />
"detail" : {
"type" : "string",
"description" : " A human-readable explanation specific to this occurrence of the problem.",
- "example" : "Policy type not found"
+ "example" : "A1 Policy Type not found"
},
"title" : {
"type" : "string",
},
"policy_type_id" : {
"type" : "string",
- "description" : "Policy type identifier"
+ "description" : "A1 Policy Type identifier"
}
},
"description" : "input"
},
"transient" : {
"type" : "boolean",
- "description" : "if true, the policy is deleted at RIC restart. If false, its value is maintained by this service until explicitly deleted. Default false.",
+ "description" : "If true, the policy is automatically deleted if the targeted Near-RT RIC restarts or recovers. If false, the A1 Policy Instance remains, and is re-pushed to the targeted Near-RT RIC after a restart or recovery. If false, the A1 Policy Instance is maintained and must be deleted separately in the event of Near-RT RIC restart or recovery. Default is false.\n",
"nullable" : false,
"example" : false,
"default" : false
},
"service_id" : {
"type" : "string",
- "description" : "the identity of the service owning the policy. This can be used to group the policies (it is possible to get all policies associated to a service). Note that the service does not need to be registered.",
+ "description" : "The identity of the service owning the policy. This can be used to group the policies (it is possible to get all policies associated to a service). Note that the service does not need to be registered. If the service is registered, the A1 Policy Instance will be subject to the same supervision rules as the the service's other policies.\n",
"default" : ""
},
"policy_data" : {
},
"policytype_id" : {
"type" : "string",
- "description" : "identity of the policy type"
+ "description" : "identity of the A1 Policy Type"
}
},
"description" : "Information for one A1-P Policy"
"properties" : {
"policy_schema" : {
"type" : "object",
- "description" : "Policy type json schema. The schema is a json object following http://json-schema.org/draft-07/schema"
+ "description" : "A1 Policy Type json schema. The schema is a json object following http://json-schema.org/draft-07/schema"
}
},
- "description" : "Contains policy type schema definition"
+ "description" : "Contains A1 Policy Type schema definition"
};
defs["policy_type_id_list"] = {
"type" : "object",
"properties" : {
"policytype_ids" : {
"type" : "array",
- "description" : "Policy type identities",
+ "description" : "A1 Policy Type identities",
"items" : {
"type" : "string",
- "description" : "Policy type identities"
+ "description" : "A1 Policy Type identities"
}
}
},
- "description" : "Information about policy types"
+ "description" : "Information about A1 Policy Types"
};
defs["ric_info"] = {
"type" : "object",
},
"policytype_ids" : {
"type" : "array",
- "description" : "supported policy types",
+ "description" : "supported A1 Policy Types",
"items" : {
"type" : "string",
- "description" : "supported policy types"
+ "description" : "supported A1 Policy Types"
}
}
},
},
"event_type" : {
"type" : "string",
- "description" : "values:\nAVAILABLE: the Near-RT RIC has become available for A1 Policy management",
+ "description" : "values: \n AVAILABLE: the Near-RT RIC has become available for A1 Policy management\n",
"enum" : [ "AVAILABLE" ]
}
},
- "description" : "Information transferred as in Service callbacks (callback_url)"
+ "description" : "Information transferred in Service callbacks, \nif a callback URL was provided for a registered service\n"
};
defs["service_registration_info"] = {
"required" : [ "service_id" ],
"properties" : {
"callback_url" : {
"type" : "string",
- "description" : "callback for notifying of Near-RT RIC state changes"
+ "description" : "Callback for notifying of Near-RT RIC state changes"
},
"service_id" : {
"type" : "string",
},
"keep_alive_interval_seconds" : {
"type" : "integer",
- "description" : "keep alive interval for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.",
+ "description" : "Keep alive interval for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.\n",
"format" : "int64"
}
},
<div id="content">
<div id="project">
<div class="pull-left">
- <h1>ONAP CCSDK A1 Policy Management Service</h1>
+ <h1>ONAP CCSDK - Pre-Spec A1 Policy Management API</h1>
</div>
<div class="clearfix"></div>
</div>
<div class="app-desc">Version: 1.3.0</div>
<hr>
<div id="app-description" class="app-desc">
- <h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides a REST API for managemecnt of A1 policies. <br/>The main tasks of the service are:</p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring and maintaining consistency of the SMO view of A1 policies and the Near-RT RICs</li><li>Maintaining a view of supported Near-RT RIC policy types</li><li>Supervision of using services (R-APPs). When a service is unavailable, its policies are removed.</li></ul><h2>APIs provided or defined by the service</h2><h3>A1 Policy Management</h3><p>This is an API for management of A1 Policies.</p><ul><li>A1 Policy retrieval, creation, modification and deletion.</li><li>Retrieval of supported A1 Policy types for a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management of configuration</h3><p>API for updating and retrieval of the component configuration. Note that there other ways to maintain the configuration.</p><h3>Service callbacks</h3><p>These are endpoints that are invoked by this service. The callbacks are registered in this service at service registration.</p><h3>NearRT-RIC Repository</h3><p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy is targeted for one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision of the PMS component.</p><h3>Service Registry and Supervision</h3><p>API used for registering services that uses PMS. Each A1 policy is optionally owned by a service. PMS can supervise each registered service by a heart-beat supervision and will automatically remove policies for unavailable services. Note that a service does not need to be registered in order to create A1 Policies. This is a feature that is optional to use.</p><h3>Authorization API</h3><p>API used for access control of A1 Policy access. If configured, an external authorization provider is requested to grant access to the A1 Policy type.</p><h3>Spring Boot Actuator</h3><p>Provides generic functions used to monitor and manage the Spring web application.</p>
+ <h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides a REST API for managing A1 policies. <br/>This document describes an older pre-spec API set to perform tasks for: </p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring and maintaining consistency of the SMO view of A1 Policies and the Near-RT RICs</li><li>Maintaining a view of each Near-RT RIC's supported A1 Policy Types</li><li>Supervision of registered services (rApps). When a registered service is unavailable, its policies are removed.</li></ul><h2>APIs provided or defined by the service</h2><h3>A1 Policy Management (Older pre-spec version) </h3> <p>This is an older API for managing A1 Policies:</p><ul><li>A1 Policy retrieval, creation, modification and deletion.</li><li>Retrieval of supported A1 Policy Types for a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management of configuration</h3><p>API for updating and retrieval of the component configuration. Note that there other ways to maintain the configuration.</p><h3>Service Callbacks</h3><p>These are endpoints that are invoked by this service. The callbacks are registered in this service at service registration.</p><h3>NearRT-RIC Repository (Older version)</h3> <p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy is targeted towards one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision of the A1 Policy Management Service .</p><h3>Service Registry and Supervision</h3> <p>API used for registering services/clients/rApps. Each A1 Policy can be tagged with an owner. If the owner service is registered, then the service can be monitored by a heart-beat supervision mechanism, and if the registered service becomes unavailable, then its A1 Policies are removed. Note that services do not need to be registered to create A1 Policies, but unregistered services are not supervised. This is a feature that is optional to use.</p><h3>Authorization API</h3><p>API used for access control of A1 Policy access. If configured, an external authorization provider is requested to grant access to the A1 Policy Type.</p><h3>Spring Boot Actuator</h3><p>Provides built-in functions used to monitor and configure the Spring web application hosting the service.</p>
</div>
</div>
<article id="api-A1PolicyManagement-deletePolicy-0" data-group="User" data-name="deletePolicy" data-version="0">
<div class="pull-left">
<h1>deletePolicy</h1>
- <p>Delete a policy</p>
+ <p>Delete an A1 Policy instance (deletePolicy)</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
- <p class="marked">Deleting the policy using the Policy's Policy ID.</p>
+ <p class="marked">Delete an A1 Policy instance using its policy ID.</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="delete"><code><span class="pln">/a1-policy/v2/policies/{policy_id}</span></code></pre>
A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init];
String *policyId = policyId_example; // (default to null)
-// Delete a policy
+// Delete an A1 Policy instance (deletePolicy)
[apiInstance deletePolicyWith:policyId
completionHandler: ^(Object output, NSError* error) {
if (output) {
</div>
<div class="tab-pane" id="examples-A1PolicyManagement-deletePolicy-0-javascript">
- <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service');
+ <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api');
// Create an instance of the API class
-var api = new OnapCcsdkA1PolicyManagementService.A1PolicyManagementApi()
+var api = new OnapCcsdkPreSpecA1PolicyManagementApi.A1PolicyManagementApi()
var policyId = policyId_example; // {String}
var callback = function(error, data, response) {
var policyId = policyId_example; // String | (default to null)
try {
- // Delete a policy
+ // Delete an A1 Policy instance (deletePolicy)
Object result = apiInstance.deletePolicy(policyId);
Debug.WriteLine(result);
} catch (Exception e) {
policyId = policyId_example # String | (default to null)
try:
- # Delete a policy
+ # Delete an A1 Policy instance (deletePolicy)
api_response = api_instance.delete_policy(policyId)
pprint(api_response)
except ApiException as e:
<article id="api-A1PolicyManagement-getPolicy-0" data-group="User" data-name="getPolicy" data-version="0">
<div class="pull-left">
<h1>getPolicy</h1>
- <p></p>
+ <p>Get an A1 Policy instance (getPolicy)</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
- <p class="marked">Returns a policy</p>
+ <p class="marked">Get an A1 Policy instance using its policy ID</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/a1-policy/v2/policies/{policy_id}</span></code></pre>
A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init];
String *policyId = policyId_example; // (default to null)
+// Get an A1 Policy instance (getPolicy)
[apiInstance getPolicyWith:policyId
completionHandler: ^(policy_info output, NSError* error) {
if (output) {
</div>
<div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-javascript">
- <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service');
+ <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api');
// Create an instance of the API class
-var api = new OnapCcsdkA1PolicyManagementService.A1PolicyManagementApi()
+var api = new OnapCcsdkPreSpecA1PolicyManagementApi.A1PolicyManagementApi()
var policyId = policyId_example; // {String}
var callback = function(error, data, response) {
var policyId = policyId_example; // String | (default to null)
try {
+ // Get an A1 Policy instance (getPolicy)
policy_info result = apiInstance.getPolicy(policyId);
Debug.WriteLine(result);
} catch (Exception e) {
policyId = policyId_example # String | (default to null)
try:
+ # Get an A1 Policy instance (getPolicy)
api_response = api_instance.get_policy(policyId)
pprint(api_response)
except ApiException as e:
<article id="api-A1PolicyManagement-getPolicyIds-0" data-group="User" data-name="getPolicyIds" data-version="0">
<div class="pull-left">
<h1>getPolicyIds</h1>
- <p>Query policy identities</p>
+ <p>Query A1 Policy Instances (getPolicyIds)</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
- <p class="marked">Returns a list of A1 policies matching given search criteria. <br>If several query parameters are defined, the policies matching all conditions are returned.</p>
+ <p class="marked">Retrieve a list of A1 Policy Instance IDs for policies that match given search criteria. If multiple query parameters are given, the policies matching all conditions are returned.
+</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/a1-policy/v2/policies</span></code></pre>
// Create an instance of the API class
A1PolicyManagementApi apiInstance = new A1PolicyManagementApi();
- String policytypeId = policytypeId_example; // String | Select policies of a given policy type identity.
+ String policytypeId = policytypeId_example; // String | Select policies of a given A1 Policy Type ID.
String ricId = ricId_example; // String | Select policies of a given Near-RT RIC identity.
- String serviceId = serviceId_example; // String | Select policies owned by a given service.
- String typeName = typeName_example; // String | Select policies of types with the given type name (type identity has the format <typename_version>)
+ String serviceId = serviceId_example; // String | Select policies owned by a given service. (Both registered and unregistered services)
+ String typeName = typeName_example; // String | Select policies of types with the given A1 Policy Type name (type names have the format 'typename_version')
+
try {
policy_id_list result = apiInstance.getPolicyIds(policytypeId, ricId, serviceId, typeName);
final api_instance = DefaultApi();
-final String policytypeId = new String(); // String | Select policies of a given policy type identity.
+final String policytypeId = new String(); // String | Select policies of a given A1 Policy Type ID.
final String ricId = new String(); // String | Select policies of a given Near-RT RIC identity.
-final String serviceId = new String(); // String | Select policies owned by a given service.
-final String typeName = new String(); // String | Select policies of types with the given type name (type identity has the format <typename_version>)
+final String serviceId = new String(); // String | Select policies owned by a given service. (Both registered and unregistered services)
+final String typeName = new String(); // String | Select policies of types with the given A1 Policy Type name (type names have the format 'typename_version')
+
try {
final result = await api_instance.getPolicyIds(policytypeId, ricId, serviceId, typeName);
public class A1PolicyManagementApiExample {
public static void main(String[] args) {
A1PolicyManagementApi apiInstance = new A1PolicyManagementApi();
- String policytypeId = policytypeId_example; // String | Select policies of a given policy type identity.
+ String policytypeId = policytypeId_example; // String | Select policies of a given A1 Policy Type ID.
String ricId = ricId_example; // String | Select policies of a given Near-RT RIC identity.
- String serviceId = serviceId_example; // String | Select policies owned by a given service.
- String typeName = typeName_example; // String | Select policies of types with the given type name (type identity has the format <typename_version>)
+ String serviceId = serviceId_example; // String | Select policies owned by a given service. (Both registered and unregistered services)
+ String typeName = typeName_example; // String | Select policies of types with the given A1 Policy Type name (type names have the format 'typename_version')
+
try {
policy_id_list result = apiInstance.getPolicyIds(policytypeId, ricId, serviceId, typeName);
// Create an instance of the API class
A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init];
-String *policytypeId = policytypeId_example; // Select policies of a given policy type identity. (optional) (default to null)
+String *policytypeId = policytypeId_example; // Select policies of a given A1 Policy Type ID. (optional) (default to null)
String *ricId = ricId_example; // Select policies of a given Near-RT RIC identity. (optional) (default to null)
-String *serviceId = serviceId_example; // Select policies owned by a given service. (optional) (default to null)
-String *typeName = typeName_example; // Select policies of types with the given type name (type identity has the format <typename_version>) (optional) (default to null)
+String *serviceId = serviceId_example; // Select policies owned by a given service. (Both registered and unregistered services) (optional) (default to null)
+String *typeName = typeName_example; // Select policies of types with the given A1 Policy Type name (type names have the format 'typename_version')
+ (optional) (default to null)
-// Query policy identities
+// Query A1 Policy Instances (getPolicyIds)
[apiInstance getPolicyIdsWith:policytypeId
ricId:ricId
serviceId:serviceId
</div>
<div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-javascript">
- <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service');
+ <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api');
// Create an instance of the API class
-var api = new OnapCcsdkA1PolicyManagementService.A1PolicyManagementApi()
+var api = new OnapCcsdkPreSpecA1PolicyManagementApi.A1PolicyManagementApi()
var opts = {
- 'policytypeId': policytypeId_example, // {String} Select policies of a given policy type identity.
+ 'policytypeId': policytypeId_example, // {String} Select policies of a given A1 Policy Type ID.
'ricId': ricId_example, // {String} Select policies of a given Near-RT RIC identity.
- 'serviceId': serviceId_example, // {String} Select policies owned by a given service.
- 'typeName': typeName_example // {String} Select policies of types with the given type name (type identity has the format <typename_version>)
+ 'serviceId': serviceId_example, // {String} Select policies owned by a given service. (Both registered and unregistered services)
+ 'typeName': typeName_example // {String} Select policies of types with the given A1 Policy Type name (type names have the format 'typename_version')
+
};
var callback = function(error, data, response) {
// Create an instance of the API class
var apiInstance = new A1PolicyManagementApi();
- var policytypeId = policytypeId_example; // String | Select policies of a given policy type identity. (optional) (default to null)
+ var policytypeId = policytypeId_example; // String | Select policies of a given A1 Policy Type ID. (optional) (default to null)
var ricId = ricId_example; // String | Select policies of a given Near-RT RIC identity. (optional) (default to null)
- var serviceId = serviceId_example; // String | Select policies owned by a given service. (optional) (default to null)
- var typeName = typeName_example; // String | Select policies of types with the given type name (type identity has the format <typename_version>) (optional) (default to null)
+ var serviceId = serviceId_example; // String | Select policies owned by a given service. (Both registered and unregistered services) (optional) (default to null)
+ var typeName = typeName_example; // String | Select policies of types with the given A1 Policy Type name (type names have the format 'typename_version')
+ (optional) (default to null)
try {
- // Query policy identities
+ // Query A1 Policy Instances (getPolicyIds)
policy_id_list result = apiInstance.getPolicyIds(policytypeId, ricId, serviceId, typeName);
Debug.WriteLine(result);
} catch (Exception e) {
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\A1PolicyManagementApi();
-$policytypeId = policytypeId_example; // String | Select policies of a given policy type identity.
+$policytypeId = policytypeId_example; // String | Select policies of a given A1 Policy Type ID.
$ricId = ricId_example; // String | Select policies of a given Near-RT RIC identity.
-$serviceId = serviceId_example; // String | Select policies owned by a given service.
-$typeName = typeName_example; // String | Select policies of types with the given type name (type identity has the format <typename_version>)
+$serviceId = serviceId_example; // String | Select policies owned by a given service. (Both registered and unregistered services)
+$typeName = typeName_example; // String | Select policies of types with the given A1 Policy Type name (type names have the format 'typename_version')
+
try {
$result = $api_instance->getPolicyIds($policytypeId, $ricId, $serviceId, $typeName);
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::A1PolicyManagementApi->new();
-my $policytypeId = policytypeId_example; # String | Select policies of a given policy type identity.
+my $policytypeId = policytypeId_example; # String | Select policies of a given A1 Policy Type ID.
my $ricId = ricId_example; # String | Select policies of a given Near-RT RIC identity.
-my $serviceId = serviceId_example; # String | Select policies owned by a given service.
-my $typeName = typeName_example; # String | Select policies of types with the given type name (type identity has the format <typename_version>)
+my $serviceId = serviceId_example; # String | Select policies owned by a given service. (Both registered and unregistered services)
+my $typeName = typeName_example; # String | Select policies of types with the given A1 Policy Type name (type names have the format 'typename_version')
+
eval {
my $result = $api_instance->getPolicyIds(policytypeId => $policytypeId, ricId => $ricId, serviceId => $serviceId, typeName => $typeName);
# Create an instance of the API class
api_instance = openapi_client.A1PolicyManagementApi()
-policytypeId = policytypeId_example # String | Select policies of a given policy type identity. (optional) (default to null)
+policytypeId = policytypeId_example # String | Select policies of a given A1 Policy Type ID. (optional) (default to null)
ricId = ricId_example # String | Select policies of a given Near-RT RIC identity. (optional) (default to null)
-serviceId = serviceId_example # String | Select policies owned by a given service. (optional) (default to null)
-typeName = typeName_example # String | Select policies of types with the given type name (type identity has the format <typename_version>) (optional) (default to null)
+serviceId = serviceId_example # String | Select policies owned by a given service. (Both registered and unregistered services) (optional) (default to null)
+typeName = typeName_example # String | Select policies of types with the given A1 Policy Type name (type names have the format 'typename_version')
+ (optional) (default to null)
try:
- # Query policy identities
+ # Query A1 Policy Instances (getPolicyIds)
api_response = api_instance.get_policy_ids(policytypeId=policytypeId, ricId=ricId, serviceId=serviceId, typeName=typeName)
pprint(api_response)
except ApiException as e:
</span>
<div class="inner description marked">
-Select policies of a given policy type identity.
+Select policies of a given A1 Policy Type ID.
</div>
</div>
</div>
</span>
<div class="inner description marked">
-Select policies owned by a given service.
+Select policies owned by a given service. (Both registered and unregistered services)
</div>
</div>
</div>
</span>
<div class="inner description marked">
-Select policies of types with the given type name (type identity has the format <typename_version>)
+Select policies of types with the given A1 Policy Type name (type names have the format 'typename_version')
+
</div>
</div>
</div>
<article id="api-A1PolicyManagement-getPolicyInstances-0" data-group="User" data-name="getPolicyInstances" data-version="0">
<div class="pull-left">
<h1>getPolicyInstances</h1>
- <p>Query for A1 policy instances</p>
+ <p>Query for A1 Policy instances (getPolicyInstances)</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
- <p class="marked">Returns a list of A1 policies matching given search criteria. <br>If several query parameters are defined, the policies matching all conditions are returned.</p>
+ <p class="marked">Returns a collection of A1 Policy Instance information for policies that match given search criteria. If several query parameters are defined, the policies matching all conditions are returned.
+</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/a1-policy/v2/policy-instances</span></code></pre>
// Create an instance of the API class
A1PolicyManagementApi apiInstance = new A1PolicyManagementApi();
- String policytypeId = policytypeId_example; // String | Select policies with a given type identity.
+ String policytypeId = policytypeId_example; // String | Select policies with a given A1 Policy Type ID.
String ricId = ricId_example; // String | Select policies for a given Near-RT RIC identity.
- String serviceId = serviceId_example; // String | Select policies owned by a given service.
- String typeName = typeName_example; // String | Select policies of a given type name (type identity has the format <typename_version>)
+ String serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered).
+ String typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
try {
policy_info_list result = apiInstance.getPolicyInstances(policytypeId, ricId, serviceId, typeName);
final api_instance = DefaultApi();
-final String policytypeId = new String(); // String | Select policies with a given type identity.
+final String policytypeId = new String(); // String | Select policies with a given A1 Policy Type ID.
final String ricId = new String(); // String | Select policies for a given Near-RT RIC identity.
-final String serviceId = new String(); // String | Select policies owned by a given service.
-final String typeName = new String(); // String | Select policies of a given type name (type identity has the format <typename_version>)
+final String serviceId = new String(); // String | Select policies owned by a given service (registered or unregistered).
+final String typeName = new String(); // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
try {
final result = await api_instance.getPolicyInstances(policytypeId, ricId, serviceId, typeName);
public class A1PolicyManagementApiExample {
public static void main(String[] args) {
A1PolicyManagementApi apiInstance = new A1PolicyManagementApi();
- String policytypeId = policytypeId_example; // String | Select policies with a given type identity.
+ String policytypeId = policytypeId_example; // String | Select policies with a given A1 Policy Type ID.
String ricId = ricId_example; // String | Select policies for a given Near-RT RIC identity.
- String serviceId = serviceId_example; // String | Select policies owned by a given service.
- String typeName = typeName_example; // String | Select policies of a given type name (type identity has the format <typename_version>)
+ String serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered).
+ String typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
try {
policy_info_list result = apiInstance.getPolicyInstances(policytypeId, ricId, serviceId, typeName);
// Create an instance of the API class
A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init];
-String *policytypeId = policytypeId_example; // Select policies with a given type identity. (optional) (default to null)
+String *policytypeId = policytypeId_example; // Select policies with a given A1 Policy Type ID. (optional) (default to null)
String *ricId = ricId_example; // Select policies for a given Near-RT RIC identity. (optional) (default to null)
-String *serviceId = serviceId_example; // Select policies owned by a given service. (optional) (default to null)
-String *typeName = typeName_example; // Select policies of a given type name (type identity has the format <typename_version>) (optional) (default to null)
+String *serviceId = serviceId_example; // Select policies owned by a given service (registered or unregistered). (optional) (default to null)
+String *typeName = typeName_example; // Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). (optional) (default to null)
-// Query for A1 policy instances
+// Query for A1 Policy instances (getPolicyInstances)
[apiInstance getPolicyInstancesWith:policytypeId
ricId:ricId
serviceId:serviceId
</div>
<div class="tab-pane" id="examples-A1PolicyManagement-getPolicyInstances-0-javascript">
- <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service');
+ <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api');
// Create an instance of the API class
-var api = new OnapCcsdkA1PolicyManagementService.A1PolicyManagementApi()
+var api = new OnapCcsdkPreSpecA1PolicyManagementApi.A1PolicyManagementApi()
var opts = {
- 'policytypeId': policytypeId_example, // {String} Select policies with a given type identity.
+ 'policytypeId': policytypeId_example, // {String} Select policies with a given A1 Policy Type ID.
'ricId': ricId_example, // {String} Select policies for a given Near-RT RIC identity.
- 'serviceId': serviceId_example, // {String} Select policies owned by a given service.
- 'typeName': typeName_example // {String} Select policies of a given type name (type identity has the format <typename_version>)
+ 'serviceId': serviceId_example, // {String} Select policies owned by a given service (registered or unregistered).
+ 'typeName': typeName_example // {String} Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
};
var callback = function(error, data, response) {
// Create an instance of the API class
var apiInstance = new A1PolicyManagementApi();
- var policytypeId = policytypeId_example; // String | Select policies with a given type identity. (optional) (default to null)
+ var policytypeId = policytypeId_example; // String | Select policies with a given A1 Policy Type ID. (optional) (default to null)
var ricId = ricId_example; // String | Select policies for a given Near-RT RIC identity. (optional) (default to null)
- var serviceId = serviceId_example; // String | Select policies owned by a given service. (optional) (default to null)
- var typeName = typeName_example; // String | Select policies of a given type name (type identity has the format <typename_version>) (optional) (default to null)
+ var serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered). (optional) (default to null)
+ var typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). (optional) (default to null)
try {
- // Query for A1 policy instances
+ // Query for A1 Policy instances (getPolicyInstances)
policy_info_list result = apiInstance.getPolicyInstances(policytypeId, ricId, serviceId, typeName);
Debug.WriteLine(result);
} catch (Exception e) {
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\A1PolicyManagementApi();
-$policytypeId = policytypeId_example; // String | Select policies with a given type identity.
+$policytypeId = policytypeId_example; // String | Select policies with a given A1 Policy Type ID.
$ricId = ricId_example; // String | Select policies for a given Near-RT RIC identity.
-$serviceId = serviceId_example; // String | Select policies owned by a given service.
-$typeName = typeName_example; // String | Select policies of a given type name (type identity has the format <typename_version>)
+$serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered).
+$typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
try {
$result = $api_instance->getPolicyInstances($policytypeId, $ricId, $serviceId, $typeName);
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::A1PolicyManagementApi->new();
-my $policytypeId = policytypeId_example; # String | Select policies with a given type identity.
+my $policytypeId = policytypeId_example; # String | Select policies with a given A1 Policy Type ID.
my $ricId = ricId_example; # String | Select policies for a given Near-RT RIC identity.
-my $serviceId = serviceId_example; # String | Select policies owned by a given service.
-my $typeName = typeName_example; # String | Select policies of a given type name (type identity has the format <typename_version>)
+my $serviceId = serviceId_example; # String | Select policies owned by a given service (registered or unregistered).
+my $typeName = typeName_example; # String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
eval {
my $result = $api_instance->getPolicyInstances(policytypeId => $policytypeId, ricId => $ricId, serviceId => $serviceId, typeName => $typeName);
# Create an instance of the API class
api_instance = openapi_client.A1PolicyManagementApi()
-policytypeId = policytypeId_example # String | Select policies with a given type identity. (optional) (default to null)
+policytypeId = policytypeId_example # String | Select policies with a given A1 Policy Type ID. (optional) (default to null)
ricId = ricId_example # String | Select policies for a given Near-RT RIC identity. (optional) (default to null)
-serviceId = serviceId_example # String | Select policies owned by a given service. (optional) (default to null)
-typeName = typeName_example # String | Select policies of a given type name (type identity has the format <typename_version>) (optional) (default to null)
+serviceId = serviceId_example # String | Select policies owned by a given service (registered or unregistered). (optional) (default to null)
+typeName = typeName_example # String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). (optional) (default to null)
try:
- # Query for A1 policy instances
+ # Query for A1 Policy instances (getPolicyInstances)
api_response = api_instance.get_policy_instances(policytypeId=policytypeId, ricId=ricId, serviceId=serviceId, typeName=typeName)
pprint(api_response)
except ApiException as e:
</span>
<div class="inner description marked">
-Select policies with a given type identity.
+Select policies with a given A1 Policy Type ID.
</div>
</div>
</div>
</span>
<div class="inner description marked">
-Select policies owned by a given service.
+Select policies owned by a given service (registered or unregistered).
</div>
</div>
</div>
</span>
<div class="inner description marked">
-Select policies of a given type name (type identity has the format <typename_version>)
+Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
</div>
</div>
</div>
<h3 id="examples-A1PolicyManagement-getPolicyInstances-title-200"></h3>
<p id="examples-A1PolicyManagement-getPolicyInstances-description-200" class="marked"></p>
<script>
- var responseA1PolicyManagement200_description = `OK - Returns A1 Policies which matches the criteria`;
+ var responseA1PolicyManagement200_description = `OK - Returns A1 Policy Instances which match the criteria`;
var responseA1PolicyManagement200_description_break = responseA1PolicyManagement200_description.indexOf('\n');
if (responseA1PolicyManagement200_description_break == -1) {
$("#examples-A1PolicyManagement-getPolicyInstances-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description);
<script>
$(document).ready(function() {
var schemaWrapper = {
- "description" : "OK - Returns A1 Policies which matches the criteria",
+ "description" : "OK - Returns A1 Policy Instances which match the criteria",
"content" : {
"application/json" : {
"schema" : {
<h3 id="examples-A1PolicyManagement-getPolicyInstances-title-404"></h3>
<p id="examples-A1PolicyManagement-getPolicyInstances-description-404" class="marked"></p>
<script>
- var responseA1PolicyManagement404_description = `Not Found - Near-RT RIC, policy type or service not found`;
+ var responseA1PolicyManagement404_description = `Not Found - Near-RT RIC, A1 Policy Type or service was not found`;
var responseA1PolicyManagement404_description_break = responseA1PolicyManagement404_description.indexOf('\n');
if (responseA1PolicyManagement404_description_break == -1) {
$("#examples-A1PolicyManagement-getPolicyInstances-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description);
<script>
$(document).ready(function() {
var schemaWrapper = {
- "description" : "Not Found - Near-RT RIC, policy type or service not found",
+ "description" : "Not Found - Near-RT RIC, A1 Policy Type or service was not found",
"content" : {
"application/json" : {
"schema" : {
<article id="api-A1PolicyManagement-getPolicyStatus-0" data-group="User" data-name="getPolicyStatus" data-version="0">
<div class="pull-left">
<h1>getPolicyStatus</h1>
- <p></p>
+ <p>Get an A1 Policy Instance's status (getPolicyStatus)</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
- <p class="marked">Returns a policy status</p>
+ <p class="marked">Retrieve the status information for an A1 Policy Instance.</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/a1-policy/v2/policies/{policy_id}/status</span></code></pre>
A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init];
String *policyId = policyId_example; // (default to null)
+// Get an A1 Policy Instance's status (getPolicyStatus)
[apiInstance getPolicyStatusWith:policyId
completionHandler: ^(policy_status_info output, NSError* error) {
if (output) {
</div>
<div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-0-javascript">
- <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service');
+ <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api');
// Create an instance of the API class
-var api = new OnapCcsdkA1PolicyManagementService.A1PolicyManagementApi()
+var api = new OnapCcsdkPreSpecA1PolicyManagementApi.A1PolicyManagementApi()
var policyId = policyId_example; // {String}
var callback = function(error, data, response) {
var policyId = policyId_example; // String | (default to null)
try {
+ // Get an A1 Policy Instance's status (getPolicyStatus)
policy_status_info result = apiInstance.getPolicyStatus(policyId);
Debug.WriteLine(result);
} catch (Exception e) {
policyId = policyId_example # String | (default to null)
try:
+ # Get an A1 Policy Instance's status (getPolicyStatus)
api_response = api_instance.get_policy_status(policyId)
pprint(api_response)
except ApiException as e:
<article id="api-A1PolicyManagement-getPolicyTypeDefinition-0" data-group="User" data-name="getPolicyTypeDefinition" data-version="0">
<div class="pull-left">
<h1>getPolicyTypeDefinition</h1>
- <p></p>
+ <p>Get an A1 Policy Type definition (getPolicyTypeDefinition)</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
- <p class="marked">Returns a policy type definition</p>
+ <p class="marked">Get an A1 Policy Type definition using its policy type ID</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/a1-policy/v2/policy-types/{policytype_id}</span></code></pre>
A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init];
String *policytypeId = policytypeId_example; // (default to null)
+// Get an A1 Policy Type definition (getPolicyTypeDefinition)
[apiInstance getPolicyTypeDefinitionWith:policytypeId
completionHandler: ^(policy_type_definition output, NSError* error) {
if (output) {
</div>
<div class="tab-pane" id="examples-A1PolicyManagement-getPolicyTypeDefinition-0-javascript">
- <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service');
+ <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api');
// Create an instance of the API class
-var api = new OnapCcsdkA1PolicyManagementService.A1PolicyManagementApi()
+var api = new OnapCcsdkPreSpecA1PolicyManagementApi.A1PolicyManagementApi()
var policytypeId = policytypeId_example; // {String}
var callback = function(error, data, response) {
var policytypeId = policytypeId_example; // String | (default to null)
try {
+ // Get an A1 Policy Type definition (getPolicyTypeDefinition)
policy_type_definition result = apiInstance.getPolicyTypeDefinition(policytypeId);
Debug.WriteLine(result);
} catch (Exception e) {
policytypeId = policytypeId_example # String | (default to null)
try:
+ # Get an A1 Policy Type definition (getPolicyTypeDefinition)
api_response = api_instance.get_policy_type_definition(policytypeId)
pprint(api_response)
except ApiException as e:
<h3 id="examples-A1PolicyManagement-getPolicyTypeDefinition-title-200"></h3>
<p id="examples-A1PolicyManagement-getPolicyTypeDefinition-description-200" class="marked"></p>
<script>
- var responseA1PolicyManagement200_description = `OK - schema of the given policy type`;
+ var responseA1PolicyManagement200_description = `OK - schema of the requested A1 Policy Type`;
var responseA1PolicyManagement200_description_break = responseA1PolicyManagement200_description.indexOf('\n');
if (responseA1PolicyManagement200_description_break == -1) {
$("#examples-A1PolicyManagement-getPolicyTypeDefinition-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description);
<script>
$(document).ready(function() {
var schemaWrapper = {
- "description" : "OK - schema of the given policy type",
+ "description" : "OK - schema of the requested A1 Policy Type",
"content" : {
"application/json" : {
"schema" : {
<article id="api-A1PolicyManagement-getPolicyTypes-0" data-group="User" data-name="getPolicyTypes" data-version="0">
<div class="pull-left">
<h1>getPolicyTypes</h1>
- <p></p>
+ <p>Get A1 Policy Types (getPolicyTypes)</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
- <p class="marked">Query policy type identities</p>
+ <p class="marked">Query A1 Policy Type identities using query parameters</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/a1-policy/v2/policy-types</span></code></pre>
// Create an instance of the API class
A1PolicyManagementApi apiInstance = new A1PolicyManagementApi();
String ricId = ricId_example; // String | Select types for the given Near-RT RIC identity.
- String typeName = typeName_example; // String | Select types with the given type name (type identity has the format <typename_version>)
+ String typeName = typeName_example; // String | Select types compatible with the given type name (type identity has the format 'typename_version')
String compatibleWithVersion = compatibleWithVersion_example; // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order.
try {
final api_instance = DefaultApi();
final String ricId = new String(); // String | Select types for the given Near-RT RIC identity.
-final String typeName = new String(); // String | Select types with the given type name (type identity has the format <typename_version>)
+final String typeName = new String(); // String | Select types compatible with the given type name (type identity has the format 'typename_version')
final String compatibleWithVersion = new String(); // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order.
try {
public static void main(String[] args) {
A1PolicyManagementApi apiInstance = new A1PolicyManagementApi();
String ricId = ricId_example; // String | Select types for the given Near-RT RIC identity.
- String typeName = typeName_example; // String | Select types with the given type name (type identity has the format <typename_version>)
+ String typeName = typeName_example; // String | Select types compatible with the given type name (type identity has the format 'typename_version')
String compatibleWithVersion = compatibleWithVersion_example; // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order.
try {
// Create an instance of the API class
A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init];
String *ricId = ricId_example; // Select types for the given Near-RT RIC identity. (optional) (default to null)
-String *typeName = typeName_example; // Select types with the given type name (type identity has the format <typename_version>) (optional) (default to null)
+String *typeName = typeName_example; // Select types compatible with the given type name (type identity has the format 'typename_version') (optional) (default to null)
String *compatibleWithVersion = compatibleWithVersion_example; // Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. (optional) (default to null)
+// Get A1 Policy Types (getPolicyTypes)
[apiInstance getPolicyTypesWith:ricId
typeName:typeName
compatibleWithVersion:compatibleWithVersion
</div>
<div class="tab-pane" id="examples-A1PolicyManagement-getPolicyTypes-0-javascript">
- <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service');
+ <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api');
// Create an instance of the API class
-var api = new OnapCcsdkA1PolicyManagementService.A1PolicyManagementApi()
+var api = new OnapCcsdkPreSpecA1PolicyManagementApi.A1PolicyManagementApi()
var opts = {
'ricId': ricId_example, // {String} Select types for the given Near-RT RIC identity.
- 'typeName': typeName_example, // {String} Select types with the given type name (type identity has the format <typename_version>)
+ 'typeName': typeName_example, // {String} Select types compatible with the given type name (type identity has the format 'typename_version')
'compatibleWithVersion': compatibleWithVersion_example // {String} Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order.
};
// Create an instance of the API class
var apiInstance = new A1PolicyManagementApi();
var ricId = ricId_example; // String | Select types for the given Near-RT RIC identity. (optional) (default to null)
- var typeName = typeName_example; // String | Select types with the given type name (type identity has the format <typename_version>) (optional) (default to null)
+ var typeName = typeName_example; // String | Select types compatible with the given type name (type identity has the format 'typename_version') (optional) (default to null)
var compatibleWithVersion = compatibleWithVersion_example; // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. (optional) (default to null)
try {
+ // Get A1 Policy Types (getPolicyTypes)
policy_type_id_list result = apiInstance.getPolicyTypes(ricId, typeName, compatibleWithVersion);
Debug.WriteLine(result);
} catch (Exception e) {
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\A1PolicyManagementApi();
$ricId = ricId_example; // String | Select types for the given Near-RT RIC identity.
-$typeName = typeName_example; // String | Select types with the given type name (type identity has the format <typename_version>)
+$typeName = typeName_example; // String | Select types compatible with the given type name (type identity has the format 'typename_version')
$compatibleWithVersion = compatibleWithVersion_example; // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order.
try {
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::A1PolicyManagementApi->new();
my $ricId = ricId_example; # String | Select types for the given Near-RT RIC identity.
-my $typeName = typeName_example; # String | Select types with the given type name (type identity has the format <typename_version>)
+my $typeName = typeName_example; # String | Select types compatible with the given type name (type identity has the format 'typename_version')
my $compatibleWithVersion = compatibleWithVersion_example; # String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order.
eval {
# Create an instance of the API class
api_instance = openapi_client.A1PolicyManagementApi()
ricId = ricId_example # String | Select types for the given Near-RT RIC identity. (optional) (default to null)
-typeName = typeName_example # String | Select types with the given type name (type identity has the format <typename_version>) (optional) (default to null)
+typeName = typeName_example # String | Select types compatible with the given type name (type identity has the format 'typename_version') (optional) (default to null)
compatibleWithVersion = compatibleWithVersion_example # String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. (optional) (default to null)
try:
+ # Get A1 Policy Types (getPolicyTypes)
api_response = api_instance.get_policy_types(ricId=ricId, typeName=typeName, compatibleWithVersion=compatibleWithVersion)
pprint(api_response)
except ApiException as e:
</span>
<div class="inner description marked">
-Select types with the given type name (type identity has the format <typename_version>)
+Select types compatible with the given type name (type identity has the format 'typename_version')
</div>
</div>
</div>
<article id="api-A1PolicyManagement-putPolicy-0" data-group="User" data-name="putPolicy" data-version="0">
<div class="pull-left">
<h1>putPolicy</h1>
- <p></p>
+ <p>Create or Update an A1 Policy Instance (putPolicy)</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
- <p class="marked">Create or update a policy</p>
+ <p class="marked">Create or Update an A1 Policy Instance</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="put"><code><span class="pln">/a1-policy/v2/policies</span></code></pre>
A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init];
PolicyInfo *policyInfo = ; //
+// Create or Update an A1 Policy Instance (putPolicy)
[apiInstance putPolicyWith:policyInfo
completionHandler: ^(Object output, NSError* error) {
if (output) {
</div>
<div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-javascript">
- <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service');
+ <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api');
// Create an instance of the API class
-var api = new OnapCcsdkA1PolicyManagementService.A1PolicyManagementApi()
+var api = new OnapCcsdkPreSpecA1PolicyManagementApi.A1PolicyManagementApi()
var policyInfo = ; // {PolicyInfo}
var callback = function(error, data, response) {
var policyInfo = new PolicyInfo(); // PolicyInfo |
try {
+ // Create or Update an A1 Policy Instance (putPolicy)
Object result = apiInstance.putPolicy(policyInfo);
Debug.WriteLine(result);
} catch (Exception e) {
policyInfo = # PolicyInfo |
try:
+ # Create or Update an A1 Policy Instance (putPolicy)
api_response = api_instance.put_policy(policyInfo)
pprint(api_response)
except ApiException as e:
<article id="api-AuthorizationAPI-performAccessControl-0" data-group="User" data-name="performAccessControl" data-version="0">
<div class="pull-left">
<h1>performAccessControl</h1>
- <p>Request for access authorization.</p>
+ <p>Callout request for access authorization (performAccessControl)</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
- <p class="marked">The authorization function decides if access is granted.</p>
+ <p class="marked">A template endpoint for callout requests to an external authorization function. The authorization function, if enabled, decides if individual operations are permitted.
+</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="post"><code><span class="pln">/example-authz-check</span></code></pre>
AuthorizationAPIApi *apiInstance = [[AuthorizationAPIApi alloc] init];
PolicyAuthorization *policyAuthorization = ; //
-// Request for access authorization.
+// Callout request for access authorization (performAccessControl)
[apiInstance performAccessControlWith:policyAuthorization
completionHandler: ^(authorization_result output, NSError* error) {
if (output) {
</div>
<div class="tab-pane" id="examples-AuthorizationAPI-performAccessControl-0-javascript">
- <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service');
+ <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api');
// Create an instance of the API class
-var api = new OnapCcsdkA1PolicyManagementService.AuthorizationAPIApi()
+var api = new OnapCcsdkPreSpecA1PolicyManagementApi.AuthorizationAPIApi()
var policyAuthorization = ; // {PolicyAuthorization}
var callback = function(error, data, response) {
var policyAuthorization = new PolicyAuthorization(); // PolicyAuthorization |
try {
- // Request for access authorization.
+ // Callout request for access authorization (performAccessControl)
authorization_result result = apiInstance.performAccessControl(policyAuthorization);
Debug.WriteLine(result);
} catch (Exception e) {
policyAuthorization = # PolicyAuthorization |
try:
- # Request for access authorization.
+ # Callout request for access authorization (performAccessControl)
api_response = api_instance.perform_access_control(policyAuthorization)
pprint(api_response)
except ApiException as e:
<article id="api-Configuration-getConfiguration-0" data-group="User" data-name="getConfiguration" data-version="0">
<div class="pull-left">
<h1>getConfiguration</h1>
- <p></p>
+ <p>Get the Application Configuration (getConfiguration)</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
- <p class="marked">Returns the contents of the application configuration file</p>
+ <p class="marked">Returns the entire contents of the Application Configuration.</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/a1-policy/v2/configuration</span></code></pre>
// Create an instance of the API class
ConfigurationApi *apiInstance = [[ConfigurationApi alloc] init];
+// Get the Application Configuration (getConfiguration)
[apiInstance getConfigurationWithCompletionHandler:
^('String' output, NSError* error) {
if (output) {
</div>
<div class="tab-pane" id="examples-Configuration-getConfiguration-0-javascript">
- <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service');
+ <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api');
// Create an instance of the API class
-var api = new OnapCcsdkA1PolicyManagementService.ConfigurationApi()
+var api = new OnapCcsdkPreSpecA1PolicyManagementApi.ConfigurationApi()
var callback = function(error, data, response) {
if (error) {
console.error(error);
var apiInstance = new ConfigurationApi();
try {
+ // Get the Application Configuration (getConfiguration)
'String' result = apiInstance.getConfiguration();
Debug.WriteLine(result);
} catch (Exception e) {
api_instance = openapi_client.ConfigurationApi()
try:
+ # Get the Application Configuration (getConfiguration)
api_response = api_instance.get_configuration()
pprint(api_response)
except ApiException as e:
<article id="api-Configuration-putConfiguration-0" data-group="User" data-name="putConfiguration" data-version="0">
<div class="pull-left">
<h1>putConfiguration</h1>
- <p></p>
+ <p>Set/Replace the Application Configuration (putConfiguration)</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
- <p class="marked">Replace the current configuration with the given configuration</p>
+ <p class="marked">Replace the current Application Configuration with a new configuration. The new configuration, if accepted, will take effect after a short delay. The new configuration must comply with the Application Configuration schema, which can be found from the the Application Documentation (Developer Guide)
+</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="put"><code><span class="pln">/a1-policy/v2/configuration</span></code></pre>
ConfigurationApi *apiInstance = [[ConfigurationApi alloc] init];
Object *body = Object; //
+// Set/Replace the Application Configuration (putConfiguration)
[apiInstance putConfigurationWith:body
completionHandler: ^(Object output, NSError* error) {
if (output) {
</div>
<div class="tab-pane" id="examples-Configuration-putConfiguration-0-javascript">
- <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service');
+ <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api');
// Create an instance of the API class
-var api = new OnapCcsdkA1PolicyManagementService.ConfigurationApi()
+var api = new OnapCcsdkPreSpecA1PolicyManagementApi.ConfigurationApi()
var body = Object; // {Object}
var callback = function(error, data, response) {
var body = Object; // Object |
try {
+ // Set/Replace the Application Configuration (putConfiguration)
Object result = apiInstance.putConfiguration(body);
Debug.WriteLine(result);
} catch (Exception e) {
body = Object # Object |
try:
+ # Set/Replace the Application Configuration (putConfiguration)
api_response = api_instance.put_configuration(body)
pprint(api_response)
except ApiException as e:
<article id="api-HealthCheck-getStatus-0" data-group="User" data-name="getStatus" data-version="0">
<div class="pull-left">
<h1>getStatus</h1>
- <p></p>
+ <p>Get Status (getStatus)</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
// Create an instance of the API class
HealthCheckApi *apiInstance = [[HealthCheckApi alloc] init];
+// Get Status (getStatus)
[apiInstance getStatusWithCompletionHandler:
^(status_info output, NSError* error) {
if (output) {
</div>
<div class="tab-pane" id="examples-HealthCheck-getStatus-0-javascript">
- <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service');
+ <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api');
// Create an instance of the API class
-var api = new OnapCcsdkA1PolicyManagementService.HealthCheckApi()
+var api = new OnapCcsdkPreSpecA1PolicyManagementApi.HealthCheckApi()
var callback = function(error, data, response) {
if (error) {
console.error(error);
var apiInstance = new HealthCheckApi();
try {
+ // Get Status (getStatus)
status_info result = apiInstance.getStatus();
Debug.WriteLine(result);
} catch (Exception e) {
api_instance = openapi_client.HealthCheckApi()
try:
+ # Get Status (getStatus)
api_response = api_instance.get_status()
pprint(api_response)
except ApiException as e:
<article id="api-HealthCheck-getStatusV1-0" data-group="User" data-name="getStatusV1" data-version="0">
<div class="pull-left">
<h1>getStatusV1</h1>
- <p></p>
+ <p>Get Status (getStatusV1)</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
// Create an instance of the API class
HealthCheckApi *apiInstance = [[HealthCheckApi alloc] init];
+// Get Status (getStatusV1)
[apiInstance getStatusV1WithCompletionHandler:
^('String' output, NSError* error) {
if (output) {
</div>
<div class="tab-pane" id="examples-HealthCheck-getStatusV1-0-javascript">
- <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service');
+ <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api');
// Create an instance of the API class
-var api = new OnapCcsdkA1PolicyManagementService.HealthCheckApi()
+var api = new OnapCcsdkPreSpecA1PolicyManagementApi.HealthCheckApi()
var callback = function(error, data, response) {
if (error) {
console.error(error);
var apiInstance = new HealthCheckApi();
try {
+ // Get Status (getStatusV1)
'String' result = apiInstance.getStatusV1();
Debug.WriteLine(result);
} catch (Exception e) {
api_instance = openapi_client.HealthCheckApi()
try:
+ # Get Status (getStatusV1)
api_response = api_instance.get_status_v1()
pprint(api_response)
except ApiException as e:
<article id="api-NearRTRICRepository-getRic-0" data-group="User" data-name="getRic" data-version="0">
<div class="pull-left">
<h1>getRic</h1>
- <p>Returns info of Near-RT RIC queried by the ric-id and managed-element-id</p>
+ <p>Get a Near-RT RIC (getRic)</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
- <p class="marked">Either a Near-RT RIC identity or a Managed Element identity can be specified.<br>The intention with Managed Element identity is the ID used in O1 for accessing the traffical element (such as the ID of CU).</p>
+ <p class="marked">Query information about a Near-RT RIC. Either a Near-RT RIC identity or a Managed Element identity can be specified. The intention with Managed Element identity is the ID used in O1 for accessing the traffical element (such as the ID of CU).
+</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/a1-policy/v2/rics/ric</span></code></pre>
// Create an instance of the API class
NearRTRICRepositoryApi apiInstance = new NearRTRICRepositoryApi();
String managedElementId = managedElementId_example; // String | The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned.
+
String ricId = ricId_example; // String | The identity of a Near-RT RIC to get information for.
try {
final api_instance = DefaultApi();
final String managedElementId = new String(); // String | The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned.
+
final String ricId = new String(); // String | The identity of a Near-RT RIC to get information for.
try {
public static void main(String[] args) {
NearRTRICRepositoryApi apiInstance = new NearRTRICRepositoryApi();
String managedElementId = managedElementId_example; // String | The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned.
+
String ricId = ricId_example; // String | The identity of a Near-RT RIC to get information for.
try {
// Create an instance of the API class
NearRTRICRepositoryApi *apiInstance = [[NearRTRICRepositoryApi alloc] init];
-String *managedElementId = managedElementId_example; // The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned. (optional) (default to null)
+String *managedElementId = managedElementId_example; // The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned.
+ (optional) (default to null)
String *ricId = ricId_example; // The identity of a Near-RT RIC to get information for. (optional) (default to null)
-// Returns info of Near-RT RIC queried by the ric-id and managed-element-id
+// Get a Near-RT RIC (getRic)
[apiInstance getRicWith:managedElementId
ricId:ricId
completionHandler: ^(ric_info output, NSError* error) {
</div>
<div class="tab-pane" id="examples-NearRTRICRepository-getRic-0-javascript">
- <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service');
+ <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api');
// Create an instance of the API class
-var api = new OnapCcsdkA1PolicyManagementService.NearRTRICRepositoryApi()
+var api = new OnapCcsdkPreSpecA1PolicyManagementApi.NearRTRICRepositoryApi()
var opts = {
'managedElementId': managedElementId_example, // {String} The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned.
+
'ricId': ricId_example // {String} The identity of a Near-RT RIC to get information for.
};
// Create an instance of the API class
var apiInstance = new NearRTRICRepositoryApi();
- var managedElementId = managedElementId_example; // String | The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned. (optional) (default to null)
+ var managedElementId = managedElementId_example; // String | The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned.
+ (optional) (default to null)
var ricId = ricId_example; // String | The identity of a Near-RT RIC to get information for. (optional) (default to null)
try {
- // Returns info of Near-RT RIC queried by the ric-id and managed-element-id
+ // Get a Near-RT RIC (getRic)
ric_info result = apiInstance.getRic(managedElementId, ricId);
Debug.WriteLine(result);
} catch (Exception e) {
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\NearRTRICRepositoryApi();
$managedElementId = managedElementId_example; // String | The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned.
+
$ricId = ricId_example; // String | The identity of a Near-RT RIC to get information for.
try {
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::NearRTRICRepositoryApi->new();
my $managedElementId = managedElementId_example; # String | The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned.
+
my $ricId = ricId_example; # String | The identity of a Near-RT RIC to get information for.
eval {
# Create an instance of the API class
api_instance = openapi_client.NearRTRICRepositoryApi()
-managedElementId = managedElementId_example # String | The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned. (optional) (default to null)
+managedElementId = managedElementId_example # String | The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned.
+ (optional) (default to null)
ricId = ricId_example # String | The identity of a Near-RT RIC to get information for. (optional) (default to null)
try:
- # Returns info of Near-RT RIC queried by the ric-id and managed-element-id
+ # Get a Near-RT RIC (getRic)
api_response = api_instance.get_ric(managedElementId=managedElementId, ricId=ricId)
pprint(api_response)
except ApiException as e:
<div class="inner description marked">
The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned.
+
</div>
</div>
</div>
<article id="api-NearRTRICRepository-getRics-0" data-group="User" data-name="getRics" data-version="0">
<div class="pull-left">
<h1>getRics</h1>
- <p>Query Near-RT RIC information</p>
+ <p>Get Near-RT RICs for A1 Policy Type (getRics)</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
- <p class="marked">The call returns all Near-RT RICs that supports a given policy type identity</p>
+ <p class="marked">Get all Near-RT RICs that supports a given A1 Policy Type ID</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/a1-policy/v2/rics</span></code></pre>
// Create an instance of the API class
NearRTRICRepositoryApi apiInstance = new NearRTRICRepositoryApi();
- String policytypeId = policytypeId_example; // String | The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned
+ String policytypeId = policytypeId_example; // String | The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned.
+
try {
ric_info_list result = apiInstance.getRics(policytypeId);
final api_instance = DefaultApi();
-final String policytypeId = new String(); // String | The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned
+final String policytypeId = new String(); // String | The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned.
+
try {
final result = await api_instance.getRics(policytypeId);
public class NearRTRICRepositoryApiExample {
public static void main(String[] args) {
NearRTRICRepositoryApi apiInstance = new NearRTRICRepositoryApi();
- String policytypeId = policytypeId_example; // String | The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned
+ String policytypeId = policytypeId_example; // String | The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned.
+
try {
ric_info_list result = apiInstance.getRics(policytypeId);
// Create an instance of the API class
NearRTRICRepositoryApi *apiInstance = [[NearRTRICRepositoryApi alloc] init];
-String *policytypeId = policytypeId_example; // The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned (optional) (default to null)
+String *policytypeId = policytypeId_example; // The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned.
+ (optional) (default to null)
-// Query Near-RT RIC information
+// Get Near-RT RICs for A1 Policy Type (getRics)
[apiInstance getRicsWith:policytypeId
completionHandler: ^(ric_info_list output, NSError* error) {
if (output) {
</div>
<div class="tab-pane" id="examples-NearRTRICRepository-getRics-0-javascript">
- <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service');
+ <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api');
// Create an instance of the API class
-var api = new OnapCcsdkA1PolicyManagementService.NearRTRICRepositoryApi()
+var api = new OnapCcsdkPreSpecA1PolicyManagementApi.NearRTRICRepositoryApi()
var opts = {
- 'policytypeId': policytypeId_example // {String} The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned
+ 'policytypeId': policytypeId_example // {String} The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned.
+
};
var callback = function(error, data, response) {
// Create an instance of the API class
var apiInstance = new NearRTRICRepositoryApi();
- var policytypeId = policytypeId_example; // String | The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned (optional) (default to null)
+ var policytypeId = policytypeId_example; // String | The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned.
+ (optional) (default to null)
try {
- // Query Near-RT RIC information
+ // Get Near-RT RICs for A1 Policy Type (getRics)
ric_info_list result = apiInstance.getRics(policytypeId);
Debug.WriteLine(result);
} catch (Exception e) {
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\NearRTRICRepositoryApi();
-$policytypeId = policytypeId_example; // String | The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned
+$policytypeId = policytypeId_example; // String | The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned.
+
try {
$result = $api_instance->getRics($policytypeId);
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::NearRTRICRepositoryApi->new();
-my $policytypeId = policytypeId_example; # String | The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned
+my $policytypeId = policytypeId_example; # String | The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned.
+
eval {
my $result = $api_instance->getRics(policytypeId => $policytypeId);
# Create an instance of the API class
api_instance = openapi_client.NearRTRICRepositoryApi()
-policytypeId = policytypeId_example # String | The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned (optional) (default to null)
+policytypeId = policytypeId_example # String | The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned.
+ (optional) (default to null)
try:
- # Query Near-RT RIC information
+ # Get Near-RT RICs for A1 Policy Type (getRics)
api_response = api_instance.get_rics(policytypeId=policytypeId)
pprint(api_response)
except ApiException as e:
</span>
<div class="inner description marked">
-The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned
+The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned.
+
</div>
</div>
</div>
<article id="api-ServiceRegistryAndSupervision-deleteService-0" data-group="User" data-name="deleteService" data-version="0">
<div class="pull-left">
<h1>deleteService</h1>
- <p></p>
+ <p>Unregister a Service (deleteService)</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
- <p class="marked">Unregister a service</p>
+ <p class="marked">Unregister a registered Service using its service ID. Only registered services can be unregistered. All A1 Policy Instances for the previously registered service will be removed.
+</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="delete"><code><span class="pln">/a1-policy/v2/services/{service_id}</span></code></pre>
ServiceRegistryAndSupervisionApi *apiInstance = [[ServiceRegistryAndSupervisionApi alloc] init];
String *serviceId = serviceId_example; // (default to null)
+// Unregister a Service (deleteService)
[apiInstance deleteServiceWith:serviceId
completionHandler: ^(Object output, NSError* error) {
if (output) {
</div>
<div class="tab-pane" id="examples-ServiceRegistryAndSupervision-deleteService-0-javascript">
- <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service');
+ <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api');
// Create an instance of the API class
-var api = new OnapCcsdkA1PolicyManagementService.ServiceRegistryAndSupervisionApi()
+var api = new OnapCcsdkPreSpecA1PolicyManagementApi.ServiceRegistryAndSupervisionApi()
var serviceId = serviceId_example; // {String}
var callback = function(error, data, response) {
var serviceId = serviceId_example; // String | (default to null)
try {
+ // Unregister a Service (deleteService)
Object result = apiInstance.deleteService(serviceId);
Debug.WriteLine(result);
} catch (Exception e) {
serviceId = serviceId_example # String | (default to null)
try:
+ # Unregister a Service (deleteService)
api_response = api_instance.delete_service(serviceId)
pprint(api_response)
except ApiException as e:
<article id="api-ServiceRegistryAndSupervision-getServices-0" data-group="User" data-name="getServices" data-version="0">
<div class="pull-left">
<h1>getServices</h1>
- <p>Returns service information</p>
+ <p>Get Services (getServices)</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
- <p class="marked">Either information about a registered service with given identity or all registered services are returned.</p>
+ <p class="marked">Get information about all registered services, or a single registered service. If the service ID of a registered service is included in the query, information about that service is returned. Otherwise Information about all registered is returned. This operation does not retrieve information about unregistered services.
+</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/a1-policy/v2/services</span></code></pre>
// Create an instance of the API class
ServiceRegistryAndSupervisionApi apiInstance = new ServiceRegistryAndSupervisionApi();
- String serviceId = serviceId_example; // String | The identity of the service
+ String serviceId = serviceId_example; // String | The identity of the registered service
try {
service_status_list result = apiInstance.getServices(serviceId);
final api_instance = DefaultApi();
-final String serviceId = new String(); // String | The identity of the service
+final String serviceId = new String(); // String | The identity of the registered service
try {
final result = await api_instance.getServices(serviceId);
public class ServiceRegistryAndSupervisionApiExample {
public static void main(String[] args) {
ServiceRegistryAndSupervisionApi apiInstance = new ServiceRegistryAndSupervisionApi();
- String serviceId = serviceId_example; // String | The identity of the service
+ String serviceId = serviceId_example; // String | The identity of the registered service
try {
service_status_list result = apiInstance.getServices(serviceId);
// Create an instance of the API class
ServiceRegistryAndSupervisionApi *apiInstance = [[ServiceRegistryAndSupervisionApi alloc] init];
-String *serviceId = serviceId_example; // The identity of the service (optional) (default to null)
+String *serviceId = serviceId_example; // The identity of the registered service (optional) (default to null)
-// Returns service information
+// Get Services (getServices)
[apiInstance getServicesWith:serviceId
completionHandler: ^(service_status_list output, NSError* error) {
if (output) {
</div>
<div class="tab-pane" id="examples-ServiceRegistryAndSupervision-getServices-0-javascript">
- <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service');
+ <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api');
// Create an instance of the API class
-var api = new OnapCcsdkA1PolicyManagementService.ServiceRegistryAndSupervisionApi()
+var api = new OnapCcsdkPreSpecA1PolicyManagementApi.ServiceRegistryAndSupervisionApi()
var opts = {
- 'serviceId': serviceId_example // {String} The identity of the service
+ 'serviceId': serviceId_example // {String} The identity of the registered service
};
var callback = function(error, data, response) {
// Create an instance of the API class
var apiInstance = new ServiceRegistryAndSupervisionApi();
- var serviceId = serviceId_example; // String | The identity of the service (optional) (default to null)
+ var serviceId = serviceId_example; // String | The identity of the registered service (optional) (default to null)
try {
- // Returns service information
+ // Get Services (getServices)
service_status_list result = apiInstance.getServices(serviceId);
Debug.WriteLine(result);
} catch (Exception e) {
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServiceRegistryAndSupervisionApi();
-$serviceId = serviceId_example; // String | The identity of the service
+$serviceId = serviceId_example; // String | The identity of the registered service
try {
$result = $api_instance->getServices($serviceId);
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServiceRegistryAndSupervisionApi->new();
-my $serviceId = serviceId_example; # String | The identity of the service
+my $serviceId = serviceId_example; # String | The identity of the registered service
eval {
my $result = $api_instance->getServices(serviceId => $serviceId);
# Create an instance of the API class
api_instance = openapi_client.ServiceRegistryAndSupervisionApi()
-serviceId = serviceId_example # String | The identity of the service (optional) (default to null)
+serviceId = serviceId_example # String | The identity of the registered service (optional) (default to null)
try:
- # Returns service information
+ # Get Services (getServices)
api_response = api_instance.get_services(serviceId=serviceId)
pprint(api_response)
except ApiException as e:
</span>
<div class="inner description marked">
-The identity of the service
+The identity of the registered service
</div>
</div>
</div>
<article id="api-ServiceRegistryAndSupervision-keepAliveService-0" data-group="User" data-name="keepAliveService" data-version="0">
<div class="pull-left">
<h1>keepAliveService</h1>
- <p>Heartbeat indicates that the service is running</p>
+ <p>Heartbeat message from a service (keepAliveService)</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
- <p class="marked">A registered service should invoke this operation regularly to indicate that it is still alive. If a registered service fails to invoke this operation before the end of a timeout period the service will be deregistered and all its A1 policies wil be removed. (This timeout can be set or disabled when each service is initially registered)</p>
+ <p class="marked">A registered service should invoke this operation regularly to indicate that it is still alive. If a registered service fails to invoke some operation, or this operation, before the end of a timeout period the service will be deregistered and all its A1 policies wil be removed. This operation is only intended for registered services. (This timeout can be set or disabled when each service is initially registered)</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="put"><code><span class="pln">/a1-policy/v2/services/{service_id}/keepalive</span></code></pre>
ServiceRegistryAndSupervisionApi *apiInstance = [[ServiceRegistryAndSupervisionApi alloc] init];
String *serviceId = serviceId_example; // (default to null)
-// Heartbeat indicates that the service is running
+// Heartbeat message from a service (keepAliveService)
[apiInstance keepAliveServiceWith:serviceId
completionHandler: ^(Object output, NSError* error) {
if (output) {
</div>
<div class="tab-pane" id="examples-ServiceRegistryAndSupervision-keepAliveService-0-javascript">
- <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service');
+ <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api');
// Create an instance of the API class
-var api = new OnapCcsdkA1PolicyManagementService.ServiceRegistryAndSupervisionApi()
+var api = new OnapCcsdkPreSpecA1PolicyManagementApi.ServiceRegistryAndSupervisionApi()
var serviceId = serviceId_example; // {String}
var callback = function(error, data, response) {
var serviceId = serviceId_example; // String | (default to null)
try {
- // Heartbeat indicates that the service is running
+ // Heartbeat message from a service (keepAliveService)
Object result = apiInstance.keepAliveService(serviceId);
Debug.WriteLine(result);
} catch (Exception e) {
serviceId = serviceId_example # String | (default to null)
try:
- # Heartbeat indicates that the service is running
+ # Heartbeat message from a service (keepAliveService)
api_response = api_instance.keep_alive_service(serviceId)
pprint(api_response)
except ApiException as e:
<article id="api-ServiceRegistryAndSupervision-putService-0" data-group="User" data-name="putService" data-version="0">
<div class="pull-left">
<h1>putService</h1>
- <p>Register a service</p>
+ <p>Register or update a Service (putService)</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
- <p class="marked">Registering a service is needed to:<ul><li>Get callbacks about available NearRT RICs.</li><li>Activate supervision of the service. If a service is inactive, its policies will automatically be deleted.</li></ul>Policies can be created even if the service is not registerred. This is a feature which it is optional to use.</p>
+ <p class="marked">Register a single service, or update a previous registtration. Service registration is required to get callbacks about available NearRT RICs and to enable supervision of the service's active status. If a registered service becomes inactive, its policies can be automatically deleted. A1 Policy instances can also be created for unregistered services. If an unregistered service is later registered, the service's policies are retained when the service becomes registered. This feature is optional to use.
+</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="put"><code><span class="pln">/a1-policy/v2/services</span></code></pre>
ServiceRegistryAndSupervisionApi *apiInstance = [[ServiceRegistryAndSupervisionApi alloc] init];
ServiceRegistrationInfo *serviceRegistrationInfo = ; //
-// Register a service
+// Register or update a Service (putService)
[apiInstance putServiceWith:serviceRegistrationInfo
completionHandler: ^(Object output, NSError* error) {
if (output) {
</div>
<div class="tab-pane" id="examples-ServiceRegistryAndSupervision-putService-0-javascript">
- <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service');
+ <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api');
// Create an instance of the API class
-var api = new OnapCcsdkA1PolicyManagementService.ServiceRegistryAndSupervisionApi()
+var api = new OnapCcsdkPreSpecA1PolicyManagementApi.ServiceRegistryAndSupervisionApi()
var serviceRegistrationInfo = ; // {ServiceRegistrationInfo}
var callback = function(error, data, response) {
var serviceRegistrationInfo = new ServiceRegistrationInfo(); // ServiceRegistrationInfo |
try {
- // Register a service
+ // Register or update a Service (putService)
Object result = apiInstance.putService(serviceRegistrationInfo);
Debug.WriteLine(result);
} catch (Exception e) {
serviceRegistrationInfo = # ServiceRegistrationInfo |
try:
- # Register a service
+ # Register or update a Service (putService)
api_response = api_instance.put_service(serviceRegistrationInfo)
pprint(api_response)
except ApiException as e:
<div class="app-desc">Information URL: <a href="https://www.onap.org/">https://www.onap.org/</a></div>
<div class="app-desc">Contact Info: <a href="discuss-list@onap.com">discuss-list@onap.com</a></div>
</p>
- <div class="license-info">Copyright (C) 2020-2023 Nordix Foundation, and Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved. Licensed under the Apache 2 License.</div>
+ <div class="license-info">Copyright (C) 2020-2023 Nordix Foundation, and Copyright (C) 2024-2025 OpenInfra Foundation Europe.
+All rights reserved. Licensed under the Apache 2 License.
+</div>
<div class="license-url">http://www.apache.org/licenses/LICENSE-2.0</div>
</div>
</div>
<li data-group="A1PolicyManagement" data-name="deletePolicy" class="">
<a href="#api-A1PolicyManagement-deletePolicy">deletePolicy</a>
</li>
- <li data-group="A1PolicyManagement" data-name="getAllPolicies" class="">
- <a href="#api-A1PolicyManagement-getAllPolicies">getAllPolicies</a>
- </li>
<li data-group="A1PolicyManagement" data-name="getPolicy" class="">
<a href="#api-A1PolicyManagement-getPolicy">getPolicy</a>
</li>
+ <li data-group="A1PolicyManagement" data-name="getPolicyIds" class="">
+ <a href="#api-A1PolicyManagement-getPolicyIds">getPolicyIds</a>
+ </li>
<li data-group="A1PolicyManagement" data-name="getPolicyStatus" class="">
<a href="#api-A1PolicyManagement-getPolicyStatus">getPolicyStatus</a>
</li>
<li data-group="A1PolicyManagement" data-name="getPolicyTypes" class="">
<a href="#api-A1PolicyManagement-getPolicyTypes">getPolicyTypes</a>
</li>
- <li data-group="A1PolicyManagement" data-name="putPolicy" class="">
- <a href="#api-A1PolicyManagement-putPolicy">putPolicy</a>
+ <li data-group="A1PolicyManagement" data-name="updatePolicy" class="">
+ <a href="#api-A1PolicyManagement-updatePolicy">updatePolicy</a>
</li>
</ul>
</nav>
<div class="app-desc">Version: 1.0.0</div>
<hr>
<div id="app-description" class="app-desc">
- <h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides a REST API for managing A1 policies. <br/>This document describes the latest API set to perform tasks for: </p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring and maintaining consistency of the SMO view of A1 Policies and the Near-RT RICs</li><li>Maintaining a view of each Near-RT RIC's supported A1 Policy Types</li><li>Supervision of registered services (rApps). When a registered service is unavailable, its policies are removed.</li></ul><h2>APIs provided or defined by the service</h2> <p>Note: parts of this API are strongly based on extracts of the O-RAN Alliance R1 Interface specification for A1 Policy Management, and those parts should be considered '� O-RAN ALLIANCE - All rights reserved.'</p> <h3>A1 Policy Management</h3> <p>This is the latest API for managing A1 Policies. This API is partially compliant with O-RAN Alliance R1 Interface specifications for A1 Policy Management:</p><ul><li>A1 Policy retrieval, creation, modification and deletion.</li><li>Retrieval of supported A1 Policy Types for a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management of configuration</h3><p>API for updating and retrieval of the component configuration. Note that there other ways to maintain the configuration.</p><h3>Service Callbacks</h3><p>These are endpoints that are invoked by this service. The callbacks are registered in this service at service registration.</p><h3>NearRT-RIC Repository (Older version)</h3> <p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy is targeted towards one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision of the A1 Policy Management Service.</p><h3>Service Registry and Supervision</h3> <p>API used for registering services/clients/rApps. Each A1 Policy can be tagged with an owner. If the owner service is registered, then the service can be optionally monitored by a heart-beat supervision mechanism, and if the registered service becomes unavailable, then it is removed and all its A1 Policies are deleted. Note that services do not need to be registered to create A1 Policies, but unregistered services are not supervised. This is a feature that is optional to use.</p>
+ <h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides a REST API for managing A1 policies. <br/>This document describes the latest API set to perform tasks for: </p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring and maintaining consistency of the SMO view of A1 Policies and the Near-RT RICs</li><li>Maintaining a view of each Near-RT RIC's supported A1 Policy Types</li><li>Supervision of registered services (rApps). When a registered service is unavailable, its policies are removed.</li></ul><h2>APIs provided or defined by the service</h2> <p>Note: parts of this API are strongly based on extracts of the O-RAN Alliance R1 Interface specification for A1 Policy Management, and those parts should be considered '© O-RAN ALLIANCE - All rights reserved.'</p> <h3>A1 Policy Management</h3> <p>This is the latest API for managing A1 Policies. This API is partially compliant with O-RAN Alliance R1 Interface specifications for A1 Policy Management:</p><ul><li>A1 Policy retrieval, creation, modification and deletion.</li><li>Retrieval of supported A1 Policy Types for a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management of configuration</h3><p>API for updating and retrieval of the component configuration. Note that there other ways to maintain the configuration.</p><h3>Service Callbacks</h3><p>These are endpoints that are invoked by this service. The callbacks are registered in this service at service registration.</p><h3>NearRT-RIC Repository (Older version)</h3> <p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy is targeted towards one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision of the A1 Policy Management Service.</p><h3>Service Registry and Supervision</h3> <p>API used for registering services/clients/rApps. Each A1 Policy can be tagged with an owner. If the owner service is registered, then the service can be optionally monitored by a heart-beat supervision mechanism, and if the registered service becomes unavailable, then it is removed and all its A1 Policies are deleted. Note that services do not need to be registered to create A1 Policies, but unregistered services are not supervised. This is a feature that is optional to use.</p>
</div>
</div>
</article>
</div>
<hr>
- <div id="api-A1PolicyManagement-getAllPolicies">
- <article id="api-A1PolicyManagement-getAllPolicies-0" data-group="User" data-name="getAllPolicies" data-version="0">
+ <div id="api-A1PolicyManagement-getPolicy">
+ <article id="api-A1PolicyManagement-getPolicy-0" data-group="User" data-name="getPolicy" data-version="0">
<div class="pull-left">
- <h1>getAllPolicies</h1>
- <p>Query for A1 Policy instances (getAllPolicies)</p>
+ <h1>getPolicy</h1>
+ <p>Get an A1 Policy's policy data (getPolicy)</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
- <p class="marked">Returns a collection of A1 Policy Instance IDs for policies that match given search criteria. If several query parameters are defined, the policies matching all conditions are returned.
-</p>
+ <p class="marked">Get an A1 Policy instance's policy data using its policy ID</p>
<p></p>
<br />
- <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/policies</span></code></pre>
+ <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/policies/{policyId}</span></code></pre>
<p>
<h3>Usage and SDK Samples</h3>
</p>
<ul class="nav nav-tabs nav-tabs-examples">
- <li class="active"><a href="#examples-A1PolicyManagement-getAllPolicies-0-curl">Curl</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-java">Java</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-dart">Dart</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-android">Android</a></li>
- <!--<li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-groovy">Groovy</a></li>-->
- <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-objc">Obj-C</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-javascript">JavaScript</a></li>
- <!--<li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-angular">Angular</a></li>-->
- <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-csharp">C#</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-php">PHP</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-perl">Perl</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-python">Python</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-rust">Rust</a></li>
+ <li class="active"><a href="#examples-A1PolicyManagement-getPolicy-0-curl">Curl</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-java">Java</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-dart">Dart</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-android">Android</a></li>
+ <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-groovy">Groovy</a></li>-->
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-objc">Obj-C</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-javascript">JavaScript</a></li>
+ <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-angular">Angular</a></li>-->
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-csharp">C#</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-php">PHP</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-perl">Perl</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-python">Python</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
- <div class="tab-pane active" id="examples-A1PolicyManagement-getAllPolicies-0-curl">
+ <div class="tab-pane active" id="examples-A1PolicyManagement-getPolicy-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X GET \
-H "Accept: application/json,application/problem+json" \
- "https://example.com/a1-policy-management/v1/policies?policyTypeId=policyTypeId_example&nearRtRicId=nearRtRicId_example&serviceId=serviceId_example&typeName=typeName_example"
+ "https://example.com/a1-policy-management/v1/policies/{policyId}"
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-java">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
// Create an instance of the API class
A1PolicyManagementApi apiInstance = new A1PolicyManagementApi();
- String policyTypeId = policyTypeId_example; // String | Select policies with a given A1 Policy Type ID.
- String nearRtRicId = nearRtRicId_example; // String | Select policies for a given Near-RT RIC identity.
- String serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered).
- String typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
+ String policyId = policyId_example; // String |
String accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
try {
- array[PolicyInformation] result = apiInstance.getAllPolicies(policyTypeId, nearRtRicId, serviceId, typeName, accept);
+ Object result = apiInstance.getPolicy(policyId, accept);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling A1PolicyManagementApi#getAllPolicies");
+ System.err.println("Exception when calling A1PolicyManagementApi#getPolicy");
e.printStackTrace();
}
}
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-dart">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-dart">
<pre class="prettyprint"><code class="language-dart">import 'package:openapi/api.dart';
final api_instance = DefaultApi();
-final String policyTypeId = new String(); // String | Select policies with a given A1 Policy Type ID.
-final String nearRtRicId = new String(); // String | Select policies for a given Near-RT RIC identity.
-final String serviceId = new String(); // String | Select policies owned by a given service (registered or unregistered).
-final String typeName = new String(); // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
+final String policyId = new String(); // String |
final String accept = new String(); // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
try {
- final result = await api_instance.getAllPolicies(policyTypeId, nearRtRicId, serviceId, typeName, accept);
+ final result = await api_instance.getPolicy(policyId, accept);
print(result);
} catch (e) {
- print('Exception when calling DefaultApi->getAllPolicies: $e\n');
+ print('Exception when calling DefaultApi->getPolicy: $e\n');
}
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-android">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.A1PolicyManagementApi;
public class A1PolicyManagementApiExample {
public static void main(String[] args) {
A1PolicyManagementApi apiInstance = new A1PolicyManagementApi();
- String policyTypeId = policyTypeId_example; // String | Select policies with a given A1 Policy Type ID.
- String nearRtRicId = nearRtRicId_example; // String | Select policies for a given Near-RT RIC identity.
- String serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered).
- String typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
+ String policyId = policyId_example; // String |
String accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
try {
- array[PolicyInformation] result = apiInstance.getAllPolicies(policyTypeId, nearRtRicId, serviceId, typeName, accept);
+ Object result = apiInstance.getPolicy(policyId, accept);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling A1PolicyManagementApi#getAllPolicies");
+ System.err.println("Exception when calling A1PolicyManagementApi#getPolicy");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
- <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-groovy">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
- <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-objc">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-objc">
<pre class="prettyprint"><code class="language-cpp">
// Create an instance of the API class
A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init];
-String *policyTypeId = policyTypeId_example; // Select policies with a given A1 Policy Type ID. (optional) (default to null)
-String *nearRtRicId = nearRtRicId_example; // Select policies for a given Near-RT RIC identity. (optional) (default to null)
-String *serviceId = serviceId_example; // Select policies owned by a given service (registered or unregistered). (optional) (default to null)
-String *typeName = typeName_example; // Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). (optional) (default to null)
+String *policyId = policyId_example; // (default to null)
String *accept = application/json; // Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. (optional) (default to null)
-// Query for A1 Policy instances (getAllPolicies)
-[apiInstance getAllPoliciesWith:policyTypeId
- nearRtRicId:nearRtRicId
- serviceId:serviceId
- typeName:typeName
+// Get an A1 Policy's policy data (getPolicy)
+[apiInstance getPolicyWith:policyId
accept:accept
- completionHandler: ^(array[PolicyInformation] output, NSError* error) {
+ completionHandler: ^(Object output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-javascript">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-javascript">
<pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api');
// Create an instance of the API class
var api = new OnapCcsdkA1PolicyManagementApi.A1PolicyManagementApi()
+var policyId = policyId_example; // {String}
var opts = {
- 'policyTypeId': policyTypeId_example, // {String} Select policies with a given A1 Policy Type ID.
- 'nearRtRicId': nearRtRicId_example, // {String} Select policies for a given Near-RT RIC identity.
- 'serviceId': serviceId_example, // {String} Select policies owned by a given service (registered or unregistered).
- 'typeName': typeName_example, // {String} Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
'accept': application/json // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
};
console.log('API called successfully. Returned data: ' + data);
}
};
-api.getAllPolicies(opts, callback);
+api.getPolicy(policyId, opts, callback);
</code></pre>
</div>
- <!--<div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-angular">
+ <!--<div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
- <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-csharp">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
namespace Example
{
- public class getAllPoliciesExample
+ public class getPolicyExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new A1PolicyManagementApi();
- var policyTypeId = policyTypeId_example; // String | Select policies with a given A1 Policy Type ID. (optional) (default to null)
- var nearRtRicId = nearRtRicId_example; // String | Select policies for a given Near-RT RIC identity. (optional) (default to null)
- var serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered). (optional) (default to null)
- var typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). (optional) (default to null)
+ var policyId = policyId_example; // String | (default to null)
var accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. (optional) (default to null)
try {
- // Query for A1 Policy instances (getAllPolicies)
- array[PolicyInformation] result = apiInstance.getAllPolicies(policyTypeId, nearRtRicId, serviceId, typeName, accept);
+ // Get an A1 Policy's policy data (getPolicy)
+ Object result = apiInstance.getPolicy(policyId, accept);
Debug.WriteLine(result);
} catch (Exception e) {
- Debug.Print("Exception when calling A1PolicyManagementApi.getAllPolicies: " + e.Message );
+ Debug.Print("Exception when calling A1PolicyManagementApi.getPolicy: " + e.Message );
}
}
}
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-php">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-php">
<pre class="prettyprint"><code class="language-php"><?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\A1PolicyManagementApi();
-$policyTypeId = policyTypeId_example; // String | Select policies with a given A1 Policy Type ID.
-$nearRtRicId = nearRtRicId_example; // String | Select policies for a given Near-RT RIC identity.
-$serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered).
-$typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
+$policyId = policyId_example; // String |
$accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
try {
- $result = $api_instance->getAllPolicies($policyTypeId, $nearRtRicId, $serviceId, $typeName, $accept);
+ $result = $api_instance->getPolicy($policyId, $accept);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling A1PolicyManagementApi->getAllPolicies: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling A1PolicyManagementApi->getPolicy: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-perl">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::A1PolicyManagementApi;
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::A1PolicyManagementApi->new();
-my $policyTypeId = policyTypeId_example; # String | Select policies with a given A1 Policy Type ID.
-my $nearRtRicId = nearRtRicId_example; # String | Select policies for a given Near-RT RIC identity.
-my $serviceId = serviceId_example; # String | Select policies owned by a given service (registered or unregistered).
-my $typeName = typeName_example; # String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
+my $policyId = policyId_example; # String |
my $accept = application/json; # String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
eval {
- my $result = $api_instance->getAllPolicies(policyTypeId => $policyTypeId, nearRtRicId => $nearRtRicId, serviceId => $serviceId, typeName => $typeName, accept => $accept);
+ my $result = $api_instance->getPolicy(policyId => $policyId, accept => $accept);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling A1PolicyManagementApi->getAllPolicies: $@\n";
+ warn "Exception when calling A1PolicyManagementApi->getPolicy: $@\n";
}</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-python">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
# Create an instance of the API class
api_instance = openapi_client.A1PolicyManagementApi()
-policyTypeId = policyTypeId_example # String | Select policies with a given A1 Policy Type ID. (optional) (default to null)
-nearRtRicId = nearRtRicId_example # String | Select policies for a given Near-RT RIC identity. (optional) (default to null)
-serviceId = serviceId_example # String | Select policies owned by a given service (registered or unregistered). (optional) (default to null)
-typeName = typeName_example # String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). (optional) (default to null)
+policyId = policyId_example # String | (default to null)
accept = application/json # String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. (optional) (default to null)
try:
- # Query for A1 Policy instances (getAllPolicies)
- api_response = api_instance.get_all_policies(policyTypeId=policyTypeId, nearRtRicId=nearRtRicId, serviceId=serviceId, typeName=typeName, accept=accept)
+ # Get an A1 Policy's policy data (getPolicy)
+ api_response = api_instance.get_policy(policyId, accept=accept)
pprint(api_response)
except ApiException as e:
- print("Exception when calling A1PolicyManagementApi->getAllPolicies: %s\n" % e)</code></pre>
+ print("Exception when calling A1PolicyManagementApi->getPolicy: %s\n" % e)</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-rust">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate A1PolicyManagementApi;
pub fn main() {
- let policyTypeId = policyTypeId_example; // String
- let nearRtRicId = nearRtRicId_example; // String
- let serviceId = serviceId_example; // String
- let typeName = typeName_example; // String
+ let policyId = policyId_example; // String
let accept = application/json; // String
let mut context = A1PolicyManagementApi::Context::default();
- let result = client.getAllPolicies(policyTypeId, nearRtRicId, serviceId, typeName, accept, &context).wait();
+ let result = client.getPolicy(policyId, accept, &context).wait();
println!("{:?}", result);
}
<h2>Parameters</h2>
-
- <div class="methodsubtabletitle">Header parameters</div>
+ <div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
- <tr>
- <th width="150px">Name</th>
- <th>Description</th>
- </tr>
- <tr><td style="width:150px;">Accept</td>
+ <tr>
+ <th width="150px">Name</th>
+ <th>Description</th>
+ </tr>
+ <tr><td style="width:150px;">policyId*</td>
<td>
- <div id="d2e199_getAllPolicies_accept">
+ <div id="d2e199_getPolicy_policyId">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
- <div class="inner description marked">
-Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
- </div>
</div>
+ <div class="inner required">
+ Required
+ </div>
</div>
</div>
</td>
</table>
-
-
- <div class="methodsubtabletitle">Query parameters</div>
+ <div class="methodsubtabletitle">Header parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
- <tr><td style="width:150px;">policyTypeId</td>
-<td>
-
-
- <div id="d2e199_getAllPolicies_policyTypeId">
- <div class="json-schema-view">
- <div class="primitive">
- <span class="type">
- String
- </span>
-
- <div class="inner description marked">
-Select policies with a given A1 Policy Type ID.
- </div>
- </div>
- </div>
- </div>
-</td>
-</tr>
-
- <tr><td style="width:150px;">nearRtRicId</td>
-<td>
-
-
- <div id="d2e199_getAllPolicies_nearRtRicId">
- <div class="json-schema-view">
- <div class="primitive">
- <span class="type">
- String
- </span>
-
- <div class="inner description marked">
-Select policies for a given Near-RT RIC identity.
- </div>
- </div>
- </div>
- </div>
-</td>
-</tr>
-
- <tr><td style="width:150px;">serviceId</td>
+ <tr><td style="width:150px;">Accept</td>
<td>
- <div id="d2e199_getAllPolicies_serviceId">
+ <div id="d2e199_getPolicy_accept">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
</span>
<div class="inner description marked">
-Select policies owned by a given service (registered or unregistered).
+Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
</div>
</div>
</div>
</td>
</tr>
- <tr><td style="width:150px;">typeName</td>
-<td>
-
+ </table>
- <div id="d2e199_getAllPolicies_typeName">
- <div class="json-schema-view">
- <div class="primitive">
- <span class="type">
- String
- </span>
- <div class="inner description marked">
-Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
- </div>
- </div>
- </div>
- </div>
-</td>
-</tr>
- </table>
<h2>Responses</h2>
- <h3 id="examples-A1PolicyManagement-getAllPolicies-title-200"></h3>
- <p id="examples-A1PolicyManagement-getAllPolicies-description-200" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicy-title-200"></h3>
+ <p id="examples-A1PolicyManagement-getPolicy-description-200" class="marked"></p>
<script>
- var responseA1PolicyManagement200_description = `OK - Policy identities`;
+ var responseA1PolicyManagement200_description = `OK - Policy found`;
var responseA1PolicyManagement200_description_break = responseA1PolicyManagement200_description.indexOf('\n');
if (responseA1PolicyManagement200_description_break == -1) {
- $("#examples-A1PolicyManagement-getAllPolicies-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description);
+ $("#examples-A1PolicyManagement-getPolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description);
} else {
- $("#examples-A1PolicyManagement-getAllPolicies-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break));
- $("#examples-A1PolicyManagement-getAllPolicies-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getAllPolicies-200" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicy-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-200-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-200-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-200-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-200-schema">
- <div id="responses-A1PolicyManagement-getAllPolicies-schema-200" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-200-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-200-schema">
+ <div id="responses-A1PolicyManagement-getPolicy-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
- "description" : "OK - Policy identities",
+ "description" : "OK - Policy found",
"content" : {
"application/json" : {
"schema" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/components/schemas/PolicyInformation"
+ "$ref" : "#/components/schemas/PolicyObject"
+ },
+ "examples" : {
+ "policyObject" : {
+ "$ref" : "#/components/examples/PolicyObject"
}
}
}
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getAllPolicies-200-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-200');
+ $('#responses-A1PolicyManagement-getPolicy-200-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicy-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getAllPolicies-200-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicy-200-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getAllPolicies-title-400"></h3>
- <p id="examples-A1PolicyManagement-getAllPolicies-description-400" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicy-title-400"></h3>
+ <p id="examples-A1PolicyManagement-getPolicy-description-400" class="marked"></p>
<script>
var responseA1PolicyManagement400_description = `Bad Request`;
var responseA1PolicyManagement400_description_break = responseA1PolicyManagement400_description.indexOf('\n');
if (responseA1PolicyManagement400_description_break == -1) {
- $("#examples-A1PolicyManagement-getAllPolicies-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description);
+ $("#examples-A1PolicyManagement-getPolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description);
} else {
- $("#examples-A1PolicyManagement-getAllPolicies-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break));
- $("#examples-A1PolicyManagement-getAllPolicies-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getAllPolicies-400" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicy-400" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-400-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-400-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-400-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-400-schema">
- <div id="responses-A1PolicyManagement-getAllPolicies-schema-400" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-400-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-400-schema">
+ <div id="responses-A1PolicyManagement-getPolicy-schema-400" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getAllPolicies-400-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-400');
+ $('#responses-A1PolicyManagement-getPolicy-400-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicy-schema-400');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getAllPolicies-400-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicy-400-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getAllPolicies-title-401"></h3>
- <p id="examples-A1PolicyManagement-getAllPolicies-description-401" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicy-title-401"></h3>
+ <p id="examples-A1PolicyManagement-getPolicy-description-401" class="marked"></p>
<script>
var responseA1PolicyManagement401_description = `Unauthorized`;
var responseA1PolicyManagement401_description_break = responseA1PolicyManagement401_description.indexOf('\n');
if (responseA1PolicyManagement401_description_break == -1) {
- $("#examples-A1PolicyManagement-getAllPolicies-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description);
+ $("#examples-A1PolicyManagement-getPolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description);
} else {
- $("#examples-A1PolicyManagement-getAllPolicies-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break));
- $("#examples-A1PolicyManagement-getAllPolicies-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getAllPolicies-401" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicy-401" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-401-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-401-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-401-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-401-schema">
- <div id="responses-A1PolicyManagement-getAllPolicies-schema-401" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-401-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-401-schema">
+ <div id="responses-A1PolicyManagement-getPolicy-schema-401" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getAllPolicies-401-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-401');
+ $('#responses-A1PolicyManagement-getPolicy-401-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicy-schema-401');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getAllPolicies-401-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicy-401-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getAllPolicies-title-403"></h3>
- <p id="examples-A1PolicyManagement-getAllPolicies-description-403" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicy-title-403"></h3>
+ <p id="examples-A1PolicyManagement-getPolicy-description-403" class="marked"></p>
<script>
var responseA1PolicyManagement403_description = `Forbidden`;
var responseA1PolicyManagement403_description_break = responseA1PolicyManagement403_description.indexOf('\n');
if (responseA1PolicyManagement403_description_break == -1) {
- $("#examples-A1PolicyManagement-getAllPolicies-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description);
+ $("#examples-A1PolicyManagement-getPolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description);
} else {
- $("#examples-A1PolicyManagement-getAllPolicies-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break));
- $("#examples-A1PolicyManagement-getAllPolicies-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getAllPolicies-403" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicy-403" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-403-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-403-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-403-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-403-schema">
- <div id="responses-A1PolicyManagement-getAllPolicies-schema-403" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-403-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-403-schema">
+ <div id="responses-A1PolicyManagement-getPolicy-schema-403" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getAllPolicies-403-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-403');
+ $('#responses-A1PolicyManagement-getPolicy-403-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicy-schema-403');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getAllPolicies-403-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicy-403-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getAllPolicies-title-404"></h3>
- <p id="examples-A1PolicyManagement-getAllPolicies-description-404" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicy-title-404"></h3>
+ <p id="examples-A1PolicyManagement-getPolicy-description-404" class="marked"></p>
<script>
var responseA1PolicyManagement404_description = `Not Found`;
var responseA1PolicyManagement404_description_break = responseA1PolicyManagement404_description.indexOf('\n');
if (responseA1PolicyManagement404_description_break == -1) {
- $("#examples-A1PolicyManagement-getAllPolicies-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description);
+ $("#examples-A1PolicyManagement-getPolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description);
} else {
- $("#examples-A1PolicyManagement-getAllPolicies-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break));
- $("#examples-A1PolicyManagement-getAllPolicies-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getAllPolicies-404" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicy-404" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-404-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-404-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-404-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-404-schema">
- <div id="responses-A1PolicyManagement-getAllPolicies-schema-404" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-404-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-404-schema">
+ <div id="responses-A1PolicyManagement-getPolicy-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getAllPolicies-404-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-404');
+ $('#responses-A1PolicyManagement-getPolicy-404-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicy-schema-404');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getAllPolicies-404-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicy-404-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getAllPolicies-title-406"></h3>
- <p id="examples-A1PolicyManagement-getAllPolicies-description-406" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicy-title-406"></h3>
+ <p id="examples-A1PolicyManagement-getPolicy-description-406" class="marked"></p>
<script>
var responseA1PolicyManagement406_description = `Not Acceptable`;
var responseA1PolicyManagement406_description_break = responseA1PolicyManagement406_description.indexOf('\n');
if (responseA1PolicyManagement406_description_break == -1) {
- $("#examples-A1PolicyManagement-getAllPolicies-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description);
+ $("#examples-A1PolicyManagement-getPolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description);
} else {
- $("#examples-A1PolicyManagement-getAllPolicies-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break));
- $("#examples-A1PolicyManagement-getAllPolicies-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getAllPolicies-406" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicy-406" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-406-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-406-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-406-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-406-schema">
- <div id="responses-A1PolicyManagement-getAllPolicies-schema-406" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-406-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-406-schema">
+ <div id="responses-A1PolicyManagement-getPolicy-schema-406" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getAllPolicies-406-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-406');
+ $('#responses-A1PolicyManagement-getPolicy-406-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicy-schema-406');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getAllPolicies-406-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicy-406-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getAllPolicies-title-429"></h3>
- <p id="examples-A1PolicyManagement-getAllPolicies-description-429" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicy-title-429"></h3>
+ <p id="examples-A1PolicyManagement-getPolicy-description-429" class="marked"></p>
<script>
var responseA1PolicyManagement429_description = `Too Many Requests`;
var responseA1PolicyManagement429_description_break = responseA1PolicyManagement429_description.indexOf('\n');
if (responseA1PolicyManagement429_description_break == -1) {
- $("#examples-A1PolicyManagement-getAllPolicies-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description);
+ $("#examples-A1PolicyManagement-getPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description);
} else {
- $("#examples-A1PolicyManagement-getAllPolicies-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break));
- $("#examples-A1PolicyManagement-getAllPolicies-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getAllPolicies-429" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicy-429" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-429-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-429-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-429-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-429-schema">
- <div id="responses-A1PolicyManagement-getAllPolicies-schema-429" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-429-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-429-schema">
+ <div id="responses-A1PolicyManagement-getPolicy-schema-429" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getAllPolicies-429-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-429');
+ $('#responses-A1PolicyManagement-getPolicy-429-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicy-schema-429');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getAllPolicies-429-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicy-429-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getAllPolicies-title-500"></h3>
- <p id="examples-A1PolicyManagement-getAllPolicies-description-500" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicy-title-500"></h3>
+ <p id="examples-A1PolicyManagement-getPolicy-description-500" class="marked"></p>
<script>
var responseA1PolicyManagement500_description = `Internal Server Error`;
var responseA1PolicyManagement500_description_break = responseA1PolicyManagement500_description.indexOf('\n');
if (responseA1PolicyManagement500_description_break == -1) {
- $("#examples-A1PolicyManagement-getAllPolicies-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description);
+ $("#examples-A1PolicyManagement-getPolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description);
} else {
- $("#examples-A1PolicyManagement-getAllPolicies-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break));
- $("#examples-A1PolicyManagement-getAllPolicies-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getAllPolicies-500" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicy-500" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-500-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-500-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-500-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-500-schema">
- <div id="responses-A1PolicyManagement-getAllPolicies-schema-500" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-500-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-500-schema">
+ <div id="responses-A1PolicyManagement-getPolicy-schema-500" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getAllPolicies-500-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-500');
+ $('#responses-A1PolicyManagement-getPolicy-500-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicy-schema-500');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getAllPolicies-500-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicy-500-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getAllPolicies-title-502"></h3>
- <p id="examples-A1PolicyManagement-getAllPolicies-description-502" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicy-title-502"></h3>
+ <p id="examples-A1PolicyManagement-getPolicy-description-502" class="marked"></p>
<script>
var responseA1PolicyManagement502_description = `Bad Gateway`;
var responseA1PolicyManagement502_description_break = responseA1PolicyManagement502_description.indexOf('\n');
if (responseA1PolicyManagement502_description_break == -1) {
- $("#examples-A1PolicyManagement-getAllPolicies-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description);
+ $("#examples-A1PolicyManagement-getPolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description);
} else {
- $("#examples-A1PolicyManagement-getAllPolicies-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break));
- $("#examples-A1PolicyManagement-getAllPolicies-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getAllPolicies-502" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicy-502" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-502-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-502-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-502-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-502-schema">
- <div id="responses-A1PolicyManagement-getAllPolicies-schema-502" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-502-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-502-schema">
+ <div id="responses-A1PolicyManagement-getPolicy-schema-502" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getAllPolicies-502-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-502');
+ $('#responses-A1PolicyManagement-getPolicy-502-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicy-schema-502');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getAllPolicies-502-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicy-502-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getAllPolicies-title-503"></h3>
- <p id="examples-A1PolicyManagement-getAllPolicies-description-503" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicy-title-503"></h3>
+ <p id="examples-A1PolicyManagement-getPolicy-description-503" class="marked"></p>
<script>
var responseA1PolicyManagement503_description = `Service Unavailable`;
var responseA1PolicyManagement503_description_break = responseA1PolicyManagement503_description.indexOf('\n');
if (responseA1PolicyManagement503_description_break == -1) {
- $("#examples-A1PolicyManagement-getAllPolicies-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description);
+ $("#examples-A1PolicyManagement-getPolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description);
} else {
- $("#examples-A1PolicyManagement-getAllPolicies-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break));
- $("#examples-A1PolicyManagement-getAllPolicies-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getAllPolicies-503" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicy-503" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-503-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-503-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-503-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-503-schema">
- <div id="responses-A1PolicyManagement-getAllPolicies-schema-503" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-503-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-503-schema">
+ <div id="responses-A1PolicyManagement-getPolicy-schema-503" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getAllPolicies-503-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-503');
+ $('#responses-A1PolicyManagement-getPolicy-503-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicy-schema-503');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getAllPolicies-503-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicy-503-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
- <div id="api-A1PolicyManagement-getPolicy">
- <article id="api-A1PolicyManagement-getPolicy-0" data-group="User" data-name="getPolicy" data-version="0">
+ <div id="api-A1PolicyManagement-getPolicyIds">
+ <article id="api-A1PolicyManagement-getPolicyIds-0" data-group="User" data-name="getPolicyIds" data-version="0">
<div class="pull-left">
- <h1>getPolicy</h1>
- <p>Get an A1 Policy's policy data (getPolicy)</p>
+ <h1>getPolicyIds</h1>
+ <p>Query for A1 Policy instances (getPolicyIds)</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
- <p class="marked">Get an A1 Policy instance's policy data using its policy ID</p>
+ <p class="marked">Returns a collection of A1 Policy Instance IDs for policies that match given search criteria. If several query parameters are defined, the policies matching all conditions are returned.
+</p>
<p></p>
<br />
- <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/policies/{policyId}</span></code></pre>
+ <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/policies</span></code></pre>
<p>
<h3>Usage and SDK Samples</h3>
</p>
<ul class="nav nav-tabs nav-tabs-examples">
- <li class="active"><a href="#examples-A1PolicyManagement-getPolicy-0-curl">Curl</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-java">Java</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-dart">Dart</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-android">Android</a></li>
- <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-groovy">Groovy</a></li>-->
- <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-objc">Obj-C</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-javascript">JavaScript</a></li>
- <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-angular">Angular</a></li>-->
- <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-csharp">C#</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-php">PHP</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-perl">Perl</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-python">Python</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-rust">Rust</a></li>
+ <li class="active"><a href="#examples-A1PolicyManagement-getPolicyIds-0-curl">Curl</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-java">Java</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-dart">Dart</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-android">Android</a></li>
+ <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-groovy">Groovy</a></li>-->
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-objc">Obj-C</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-javascript">JavaScript</a></li>
+ <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-angular">Angular</a></li>-->
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-csharp">C#</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-php">PHP</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-perl">Perl</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-python">Python</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
- <div class="tab-pane active" id="examples-A1PolicyManagement-getPolicy-0-curl">
+ <div class="tab-pane active" id="examples-A1PolicyManagement-getPolicyIds-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X GET \
-H "Accept: application/json,application/problem+json" \
- "https://example.com/a1-policy-management/v1/policies/{policyId}"
+ "https://example.com/a1-policy-management/v1/policies?policyTypeId=policyTypeId_example&nearRtRicId=nearRtRicId_example&serviceId=serviceId_example&typeName=typeName_example"
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-java">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
// Create an instance of the API class
A1PolicyManagementApi apiInstance = new A1PolicyManagementApi();
- String policyId = policyId_example; // String |
+ String policyTypeId = policyTypeId_example; // String | Select policies with a given A1 Policy Type ID.
+ String nearRtRicId = nearRtRicId_example; // String | Select policies for a given Near-RT RIC identity.
+ String serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered).
+ String typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
String accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
try {
- Object result = apiInstance.getPolicy(policyId, accept);
+ array[PolicyInformation] result = apiInstance.getPolicyIds(policyTypeId, nearRtRicId, serviceId, typeName, accept);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling A1PolicyManagementApi#getPolicy");
+ System.err.println("Exception when calling A1PolicyManagementApi#getPolicyIds");
e.printStackTrace();
}
}
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-dart">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-dart">
<pre class="prettyprint"><code class="language-dart">import 'package:openapi/api.dart';
final api_instance = DefaultApi();
-final String policyId = new String(); // String |
+final String policyTypeId = new String(); // String | Select policies with a given A1 Policy Type ID.
+final String nearRtRicId = new String(); // String | Select policies for a given Near-RT RIC identity.
+final String serviceId = new String(); // String | Select policies owned by a given service (registered or unregistered).
+final String typeName = new String(); // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
final String accept = new String(); // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
try {
- final result = await api_instance.getPolicy(policyId, accept);
+ final result = await api_instance.getPolicyIds(policyTypeId, nearRtRicId, serviceId, typeName, accept);
print(result);
} catch (e) {
- print('Exception when calling DefaultApi->getPolicy: $e\n');
+ print('Exception when calling DefaultApi->getPolicyIds: $e\n');
}
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-android">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.A1PolicyManagementApi;
public class A1PolicyManagementApiExample {
public static void main(String[] args) {
A1PolicyManagementApi apiInstance = new A1PolicyManagementApi();
- String policyId = policyId_example; // String |
+ String policyTypeId = policyTypeId_example; // String | Select policies with a given A1 Policy Type ID.
+ String nearRtRicId = nearRtRicId_example; // String | Select policies for a given Near-RT RIC identity.
+ String serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered).
+ String typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
String accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
try {
- Object result = apiInstance.getPolicy(policyId, accept);
+ array[PolicyInformation] result = apiInstance.getPolicyIds(policyTypeId, nearRtRicId, serviceId, typeName, accept);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling A1PolicyManagementApi#getPolicy");
+ System.err.println("Exception when calling A1PolicyManagementApi#getPolicyIds");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
- <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-groovy">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
- <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-objc">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-objc">
<pre class="prettyprint"><code class="language-cpp">
// Create an instance of the API class
A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init];
-String *policyId = policyId_example; // (default to null)
+String *policyTypeId = policyTypeId_example; // Select policies with a given A1 Policy Type ID. (optional) (default to null)
+String *nearRtRicId = nearRtRicId_example; // Select policies for a given Near-RT RIC identity. (optional) (default to null)
+String *serviceId = serviceId_example; // Select policies owned by a given service (registered or unregistered). (optional) (default to null)
+String *typeName = typeName_example; // Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). (optional) (default to null)
String *accept = application/json; // Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. (optional) (default to null)
-// Get an A1 Policy's policy data (getPolicy)
-[apiInstance getPolicyWith:policyId
+// Query for A1 Policy instances (getPolicyIds)
+[apiInstance getPolicyIdsWith:policyTypeId
+ nearRtRicId:nearRtRicId
+ serviceId:serviceId
+ typeName:typeName
accept:accept
- completionHandler: ^(Object output, NSError* error) {
+ completionHandler: ^(array[PolicyInformation] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-javascript">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-javascript">
<pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api');
// Create an instance of the API class
var api = new OnapCcsdkA1PolicyManagementApi.A1PolicyManagementApi()
-var policyId = policyId_example; // {String}
var opts = {
+ 'policyTypeId': policyTypeId_example, // {String} Select policies with a given A1 Policy Type ID.
+ 'nearRtRicId': nearRtRicId_example, // {String} Select policies for a given Near-RT RIC identity.
+ 'serviceId': serviceId_example, // {String} Select policies owned by a given service (registered or unregistered).
+ 'typeName': typeName_example, // {String} Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
'accept': application/json // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
};
console.log('API called successfully. Returned data: ' + data);
}
};
-api.getPolicy(policyId, opts, callback);
+api.getPolicyIds(opts, callback);
</code></pre>
</div>
- <!--<div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-angular">
+ <!--<div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
- <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-csharp">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
namespace Example
{
- public class getPolicyExample
+ public class getPolicyIdsExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new A1PolicyManagementApi();
- var policyId = policyId_example; // String | (default to null)
+ var policyTypeId = policyTypeId_example; // String | Select policies with a given A1 Policy Type ID. (optional) (default to null)
+ var nearRtRicId = nearRtRicId_example; // String | Select policies for a given Near-RT RIC identity. (optional) (default to null)
+ var serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered). (optional) (default to null)
+ var typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). (optional) (default to null)
var accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. (optional) (default to null)
try {
- // Get an A1 Policy's policy data (getPolicy)
- Object result = apiInstance.getPolicy(policyId, accept);
+ // Query for A1 Policy instances (getPolicyIds)
+ array[PolicyInformation] result = apiInstance.getPolicyIds(policyTypeId, nearRtRicId, serviceId, typeName, accept);
Debug.WriteLine(result);
} catch (Exception e) {
- Debug.Print("Exception when calling A1PolicyManagementApi.getPolicy: " + e.Message );
+ Debug.Print("Exception when calling A1PolicyManagementApi.getPolicyIds: " + e.Message );
}
}
}
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-php">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-php">
<pre class="prettyprint"><code class="language-php"><?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\A1PolicyManagementApi();
-$policyId = policyId_example; // String |
+$policyTypeId = policyTypeId_example; // String | Select policies with a given A1 Policy Type ID.
+$nearRtRicId = nearRtRicId_example; // String | Select policies for a given Near-RT RIC identity.
+$serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered).
+$typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
$accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
try {
- $result = $api_instance->getPolicy($policyId, $accept);
+ $result = $api_instance->getPolicyIds($policyTypeId, $nearRtRicId, $serviceId, $typeName, $accept);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling A1PolicyManagementApi->getPolicy: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling A1PolicyManagementApi->getPolicyIds: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-perl">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::A1PolicyManagementApi;
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::A1PolicyManagementApi->new();
-my $policyId = policyId_example; # String |
+my $policyTypeId = policyTypeId_example; # String | Select policies with a given A1 Policy Type ID.
+my $nearRtRicId = nearRtRicId_example; # String | Select policies for a given Near-RT RIC identity.
+my $serviceId = serviceId_example; # String | Select policies owned by a given service (registered or unregistered).
+my $typeName = typeName_example; # String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
my $accept = application/json; # String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
eval {
- my $result = $api_instance->getPolicy(policyId => $policyId, accept => $accept);
+ my $result = $api_instance->getPolicyIds(policyTypeId => $policyTypeId, nearRtRicId => $nearRtRicId, serviceId => $serviceId, typeName => $typeName, accept => $accept);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling A1PolicyManagementApi->getPolicy: $@\n";
+ warn "Exception when calling A1PolicyManagementApi->getPolicyIds: $@\n";
}</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-python">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
# Create an instance of the API class
api_instance = openapi_client.A1PolicyManagementApi()
-policyId = policyId_example # String | (default to null)
+policyTypeId = policyTypeId_example # String | Select policies with a given A1 Policy Type ID. (optional) (default to null)
+nearRtRicId = nearRtRicId_example # String | Select policies for a given Near-RT RIC identity. (optional) (default to null)
+serviceId = serviceId_example # String | Select policies owned by a given service (registered or unregistered). (optional) (default to null)
+typeName = typeName_example # String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). (optional) (default to null)
accept = application/json # String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. (optional) (default to null)
try:
- # Get an A1 Policy's policy data (getPolicy)
- api_response = api_instance.get_policy(policyId, accept=accept)
+ # Query for A1 Policy instances (getPolicyIds)
+ api_response = api_instance.get_policy_ids(policyTypeId=policyTypeId, nearRtRicId=nearRtRicId, serviceId=serviceId, typeName=typeName, accept=accept)
pprint(api_response)
except ApiException as e:
- print("Exception when calling A1PolicyManagementApi->getPolicy: %s\n" % e)</code></pre>
+ print("Exception when calling A1PolicyManagementApi->getPolicyIds: %s\n" % e)</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-rust">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate A1PolicyManagementApi;
pub fn main() {
- let policyId = policyId_example; // String
+ let policyTypeId = policyTypeId_example; // String
+ let nearRtRicId = nearRtRicId_example; // String
+ let serviceId = serviceId_example; // String
+ let typeName = typeName_example; // String
let accept = application/json; // String
let mut context = A1PolicyManagementApi::Context::default();
- let result = client.getPolicy(policyId, accept, &context).wait();
+ let result = client.getPolicyIds(policyTypeId, nearRtRicId, serviceId, typeName, accept, &context).wait();
println!("{:?}", result);
}
<h2>Parameters</h2>
- <div class="methodsubtabletitle">Path parameters</div>
+
+ <div class="methodsubtabletitle">Header parameters</div>
<table id="methodsubtable">
- <tr>
- <th width="150px">Name</th>
- <th>Description</th>
- </tr>
- <tr><td style="width:150px;">policyId*</td>
+ <tr>
+ <th width="150px">Name</th>
+ <th>Description</th>
+ </tr>
+ <tr><td style="width:150px;">Accept</td>
<td>
- <div id="d2e199_getPolicy_policyId">
+ <div id="d2e199_getPolicyIds_accept">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
+ <div class="inner description marked">
+Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
+ </div>
</div>
- <div class="inner required">
- Required
- </div>
</div>
</div>
</td>
</table>
- <div class="methodsubtabletitle">Header parameters</div>
+
+
+ <div class="methodsubtabletitle">Query parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
- <tr><td style="width:150px;">Accept</td>
+ <tr><td style="width:150px;">policyTypeId</td>
<td>
- <div id="d2e199_getPolicy_accept">
+ <div id="d2e199_getPolicyIds_policyTypeId">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
</span>
<div class="inner description marked">
-Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
+Select policies with a given A1 Policy Type ID.
</div>
</div>
</div>
</td>
</tr>
- </table>
+ <tr><td style="width:150px;">nearRtRicId</td>
+<td>
+
+
+ <div id="d2e199_getPolicyIds_nearRtRicId">
+ <div class="json-schema-view">
+ <div class="primitive">
+ <span class="type">
+ String
+ </span>
+
+ <div class="inner description marked">
+Select policies for a given Near-RT RIC identity.
+ </div>
+ </div>
+ </div>
+ </div>
+</td>
+</tr>
+ <tr><td style="width:150px;">serviceId</td>
+<td>
+ <div id="d2e199_getPolicyIds_serviceId">
+ <div class="json-schema-view">
+ <div class="primitive">
+ <span class="type">
+ String
+ </span>
+
+ <div class="inner description marked">
+Select policies owned by a given service (registered or unregistered).
+ </div>
+ </div>
+ </div>
+ </div>
+</td>
+</tr>
+
+ <tr><td style="width:150px;">typeName</td>
+<td>
+
+
+ <div id="d2e199_getPolicyIds_typeName">
+ <div class="json-schema-view">
+ <div class="primitive">
+ <span class="type">
+ String
+ </span>
+
+ <div class="inner description marked">
+Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
+ </div>
+ </div>
+ </div>
+ </div>
+</td>
+</tr>
+
+ </table>
<h2>Responses</h2>
- <h3 id="examples-A1PolicyManagement-getPolicy-title-200"></h3>
- <p id="examples-A1PolicyManagement-getPolicy-description-200" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicyIds-title-200"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyIds-description-200" class="marked"></p>
<script>
- var responseA1PolicyManagement200_description = `OK - Policy found`;
+ var responseA1PolicyManagement200_description = `OK - Policy identities`;
var responseA1PolicyManagement200_description_break = responseA1PolicyManagement200_description.indexOf('\n');
if (responseA1PolicyManagement200_description_break == -1) {
- $("#examples-A1PolicyManagement-getPolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description);
+ $("#examples-A1PolicyManagement-getPolicyIds-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description);
} else {
- $("#examples-A1PolicyManagement-getPolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break));
- $("#examples-A1PolicyManagement-getPolicy-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getPolicy-200" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicyIds-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-200-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-200-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-200-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-200-schema">
- <div id="responses-A1PolicyManagement-getPolicy-schema-200" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-200-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-200-schema">
+ <div id="responses-A1PolicyManagement-getPolicyIds-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
- "description" : "OK - Policy found",
+ "description" : "OK - Policy identities",
"content" : {
"application/json" : {
"schema" : {
- "$ref" : "#/components/schemas/PolicyObject"
- },
- "examples" : {
- "policyObject" : {
- "$ref" : "#/components/examples/PolicyObject"
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/PolicyInformation"
}
}
}
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getPolicy-200-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getPolicy-schema-200');
+ $('#responses-A1PolicyManagement-getPolicyIds-200-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getPolicy-200-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicyIds-200-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getPolicy-title-400"></h3>
- <p id="examples-A1PolicyManagement-getPolicy-description-400" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicyIds-title-400"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyIds-description-400" class="marked"></p>
<script>
var responseA1PolicyManagement400_description = `Bad Request`;
var responseA1PolicyManagement400_description_break = responseA1PolicyManagement400_description.indexOf('\n');
if (responseA1PolicyManagement400_description_break == -1) {
- $("#examples-A1PolicyManagement-getPolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description);
+ $("#examples-A1PolicyManagement-getPolicyIds-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description);
} else {
- $("#examples-A1PolicyManagement-getPolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break));
- $("#examples-A1PolicyManagement-getPolicy-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getPolicy-400" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicyIds-400" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-400-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-400-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-400-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-400-schema">
- <div id="responses-A1PolicyManagement-getPolicy-schema-400" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-400-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-400-schema">
+ <div id="responses-A1PolicyManagement-getPolicyIds-schema-400" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getPolicy-400-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getPolicy-schema-400');
+ $('#responses-A1PolicyManagement-getPolicyIds-400-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-400');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getPolicy-400-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicyIds-400-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getPolicy-title-401"></h3>
- <p id="examples-A1PolicyManagement-getPolicy-description-401" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicyIds-title-401"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyIds-description-401" class="marked"></p>
<script>
var responseA1PolicyManagement401_description = `Unauthorized`;
var responseA1PolicyManagement401_description_break = responseA1PolicyManagement401_description.indexOf('\n');
if (responseA1PolicyManagement401_description_break == -1) {
- $("#examples-A1PolicyManagement-getPolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description);
+ $("#examples-A1PolicyManagement-getPolicyIds-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description);
} else {
- $("#examples-A1PolicyManagement-getPolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break));
- $("#examples-A1PolicyManagement-getPolicy-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getPolicy-401" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicyIds-401" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-401-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-401-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-401-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-401-schema">
- <div id="responses-A1PolicyManagement-getPolicy-schema-401" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-401-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-401-schema">
+ <div id="responses-A1PolicyManagement-getPolicyIds-schema-401" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getPolicy-401-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getPolicy-schema-401');
+ $('#responses-A1PolicyManagement-getPolicyIds-401-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-401');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getPolicy-401-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicyIds-401-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getPolicy-title-403"></h3>
- <p id="examples-A1PolicyManagement-getPolicy-description-403" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicyIds-title-403"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyIds-description-403" class="marked"></p>
<script>
var responseA1PolicyManagement403_description = `Forbidden`;
var responseA1PolicyManagement403_description_break = responseA1PolicyManagement403_description.indexOf('\n');
if (responseA1PolicyManagement403_description_break == -1) {
- $("#examples-A1PolicyManagement-getPolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description);
+ $("#examples-A1PolicyManagement-getPolicyIds-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description);
} else {
- $("#examples-A1PolicyManagement-getPolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break));
- $("#examples-A1PolicyManagement-getPolicy-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getPolicy-403" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicyIds-403" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-403-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-403-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-403-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-403-schema">
- <div id="responses-A1PolicyManagement-getPolicy-schema-403" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-403-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-403-schema">
+ <div id="responses-A1PolicyManagement-getPolicyIds-schema-403" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getPolicy-403-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getPolicy-schema-403');
+ $('#responses-A1PolicyManagement-getPolicyIds-403-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-403');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getPolicy-403-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicyIds-403-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getPolicy-title-404"></h3>
- <p id="examples-A1PolicyManagement-getPolicy-description-404" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicyIds-title-404"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyIds-description-404" class="marked"></p>
<script>
var responseA1PolicyManagement404_description = `Not Found`;
var responseA1PolicyManagement404_description_break = responseA1PolicyManagement404_description.indexOf('\n');
if (responseA1PolicyManagement404_description_break == -1) {
- $("#examples-A1PolicyManagement-getPolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description);
+ $("#examples-A1PolicyManagement-getPolicyIds-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description);
} else {
- $("#examples-A1PolicyManagement-getPolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break));
- $("#examples-A1PolicyManagement-getPolicy-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getPolicy-404" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicyIds-404" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-404-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-404-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-404-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-404-schema">
- <div id="responses-A1PolicyManagement-getPolicy-schema-404" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-404-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-404-schema">
+ <div id="responses-A1PolicyManagement-getPolicyIds-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getPolicy-404-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getPolicy-schema-404');
+ $('#responses-A1PolicyManagement-getPolicyIds-404-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-404');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getPolicy-404-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicyIds-404-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getPolicy-title-406"></h3>
- <p id="examples-A1PolicyManagement-getPolicy-description-406" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicyIds-title-406"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyIds-description-406" class="marked"></p>
<script>
var responseA1PolicyManagement406_description = `Not Acceptable`;
var responseA1PolicyManagement406_description_break = responseA1PolicyManagement406_description.indexOf('\n');
if (responseA1PolicyManagement406_description_break == -1) {
- $("#examples-A1PolicyManagement-getPolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description);
+ $("#examples-A1PolicyManagement-getPolicyIds-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description);
} else {
- $("#examples-A1PolicyManagement-getPolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break));
- $("#examples-A1PolicyManagement-getPolicy-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getPolicy-406" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicyIds-406" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-406-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-406-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-406-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-406-schema">
- <div id="responses-A1PolicyManagement-getPolicy-schema-406" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-406-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-406-schema">
+ <div id="responses-A1PolicyManagement-getPolicyIds-schema-406" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getPolicy-406-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getPolicy-schema-406');
+ $('#responses-A1PolicyManagement-getPolicyIds-406-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-406');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getPolicy-406-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicyIds-406-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getPolicy-title-429"></h3>
- <p id="examples-A1PolicyManagement-getPolicy-description-429" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicyIds-title-429"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyIds-description-429" class="marked"></p>
<script>
var responseA1PolicyManagement429_description = `Too Many Requests`;
var responseA1PolicyManagement429_description_break = responseA1PolicyManagement429_description.indexOf('\n');
if (responseA1PolicyManagement429_description_break == -1) {
- $("#examples-A1PolicyManagement-getPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description);
+ $("#examples-A1PolicyManagement-getPolicyIds-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description);
} else {
- $("#examples-A1PolicyManagement-getPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break));
- $("#examples-A1PolicyManagement-getPolicy-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getPolicy-429" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicyIds-429" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-429-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-429-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-429-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-429-schema">
- <div id="responses-A1PolicyManagement-getPolicy-schema-429" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-429-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-429-schema">
+ <div id="responses-A1PolicyManagement-getPolicyIds-schema-429" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getPolicy-429-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getPolicy-schema-429');
+ $('#responses-A1PolicyManagement-getPolicyIds-429-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-429');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getPolicy-429-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicyIds-429-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getPolicy-title-500"></h3>
- <p id="examples-A1PolicyManagement-getPolicy-description-500" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicyIds-title-500"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyIds-description-500" class="marked"></p>
<script>
var responseA1PolicyManagement500_description = `Internal Server Error`;
var responseA1PolicyManagement500_description_break = responseA1PolicyManagement500_description.indexOf('\n');
if (responseA1PolicyManagement500_description_break == -1) {
- $("#examples-A1PolicyManagement-getPolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description);
+ $("#examples-A1PolicyManagement-getPolicyIds-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description);
} else {
- $("#examples-A1PolicyManagement-getPolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break));
- $("#examples-A1PolicyManagement-getPolicy-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getPolicy-500" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicyIds-500" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-500-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-500-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-500-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-500-schema">
- <div id="responses-A1PolicyManagement-getPolicy-schema-500" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-500-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-500-schema">
+ <div id="responses-A1PolicyManagement-getPolicyIds-schema-500" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getPolicy-500-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getPolicy-schema-500');
+ $('#responses-A1PolicyManagement-getPolicyIds-500-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-500');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getPolicy-500-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicyIds-500-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getPolicy-title-502"></h3>
- <p id="examples-A1PolicyManagement-getPolicy-description-502" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicyIds-title-502"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyIds-description-502" class="marked"></p>
<script>
var responseA1PolicyManagement502_description = `Bad Gateway`;
var responseA1PolicyManagement502_description_break = responseA1PolicyManagement502_description.indexOf('\n');
if (responseA1PolicyManagement502_description_break == -1) {
- $("#examples-A1PolicyManagement-getPolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description);
+ $("#examples-A1PolicyManagement-getPolicyIds-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description);
} else {
- $("#examples-A1PolicyManagement-getPolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break));
- $("#examples-A1PolicyManagement-getPolicy-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getPolicy-502" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicyIds-502" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-502-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-502-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-502-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-502-schema">
- <div id="responses-A1PolicyManagement-getPolicy-schema-502" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-502-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-502-schema">
+ <div id="responses-A1PolicyManagement-getPolicyIds-schema-502" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getPolicy-502-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getPolicy-schema-502');
+ $('#responses-A1PolicyManagement-getPolicyIds-502-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-502');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getPolicy-502-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicyIds-502-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getPolicy-title-503"></h3>
- <p id="examples-A1PolicyManagement-getPolicy-description-503" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicyIds-title-503"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyIds-description-503" class="marked"></p>
<script>
var responseA1PolicyManagement503_description = `Service Unavailable`;
var responseA1PolicyManagement503_description_break = responseA1PolicyManagement503_description.indexOf('\n');
if (responseA1PolicyManagement503_description_break == -1) {
- $("#examples-A1PolicyManagement-getPolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description);
+ $("#examples-A1PolicyManagement-getPolicyIds-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description);
} else {
- $("#examples-A1PolicyManagement-getPolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break));
- $("#examples-A1PolicyManagement-getPolicy-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getPolicy-503" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicyIds-503" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-503-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-503-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-503-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-503-schema">
- <div id="responses-A1PolicyManagement-getPolicy-schema-503" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-503-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-503-schema">
+ <div id="responses-A1PolicyManagement-getPolicyIds-schema-503" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getPolicy-503-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getPolicy-schema-503');
+ $('#responses-A1PolicyManagement-getPolicyIds-503-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-503');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getPolicy-503-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicyIds-503-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</article>
</div>
<hr>
- <div id="api-A1PolicyManagement-putPolicy">
- <article id="api-A1PolicyManagement-putPolicy-0" data-group="User" data-name="putPolicy" data-version="0">
+ <div id="api-A1PolicyManagement-updatePolicy">
+ <article id="api-A1PolicyManagement-updatePolicy-0" data-group="User" data-name="updatePolicy" data-version="0">
<div class="pull-left">
- <h1>putPolicy</h1>
- <p>Update an A1 Policy's policy data (putPolicy)</p>
+ <h1>updatePolicy</h1>
+ <p>Update an A1 Policy's policy data (updatePolicy)</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<h3>Usage and SDK Samples</h3>
</p>
<ul class="nav nav-tabs nav-tabs-examples">
- <li class="active"><a href="#examples-A1PolicyManagement-putPolicy-0-curl">Curl</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-java">Java</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-dart">Dart</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-android">Android</a></li>
- <!--<li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-groovy">Groovy</a></li>-->
- <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-objc">Obj-C</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-javascript">JavaScript</a></li>
- <!--<li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-angular">Angular</a></li>-->
- <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-csharp">C#</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-php">PHP</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-perl">Perl</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-python">Python</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-rust">Rust</a></li>
+ <li class="active"><a href="#examples-A1PolicyManagement-updatePolicy-0-curl">Curl</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-java">Java</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-dart">Dart</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-android">Android</a></li>
+ <!--<li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-groovy">Groovy</a></li>-->
+ <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-objc">Obj-C</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-javascript">JavaScript</a></li>
+ <!--<li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-angular">Angular</a></li>-->
+ <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-csharp">C#</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-php">PHP</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-perl">Perl</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-python">Python</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
- <div class="tab-pane active" id="examples-A1PolicyManagement-putPolicy-0-curl">
+ <div class="tab-pane active" id="examples-A1PolicyManagement-updatePolicy-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X PUT \
-H "Accept: application/json,application/problem+json" \
-H "Content-Type: application/json" \
-d ''
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-java">
+ <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
Object body = Object; // Object |
try {
- Object result = apiInstance.putPolicy(policyId, body);
+ Object result = apiInstance.updatePolicy(policyId, body);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling A1PolicyManagementApi#putPolicy");
+ System.err.println("Exception when calling A1PolicyManagementApi#updatePolicy");
e.printStackTrace();
}
}
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-dart">
+ <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-dart">
<pre class="prettyprint"><code class="language-dart">import 'package:openapi/api.dart';
final api_instance = DefaultApi();
final Object body = new Object(); // Object |
try {
- final result = await api_instance.putPolicy(policyId, body);
+ final result = await api_instance.updatePolicy(policyId, body);
print(result);
} catch (e) {
- print('Exception when calling DefaultApi->putPolicy: $e\n');
+ print('Exception when calling DefaultApi->updatePolicy: $e\n');
}
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-android">
+ <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.A1PolicyManagementApi;
public class A1PolicyManagementApiExample {
Object body = Object; // Object |
try {
- Object result = apiInstance.putPolicy(policyId, body);
+ Object result = apiInstance.updatePolicy(policyId, body);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling A1PolicyManagementApi#putPolicy");
+ System.err.println("Exception when calling A1PolicyManagementApi#updatePolicy");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
- <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-groovy">
+ <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
- <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-objc">
+ <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-objc">
<pre class="prettyprint"><code class="language-cpp">
// Create an instance of the API class
String *policyId = policyId_example; // (default to null)
Object *body = Object; //
-// Update an A1 Policy's policy data (putPolicy)
-[apiInstance putPolicyWith:policyId
+// Update an A1 Policy's policy data (updatePolicy)
+[apiInstance updatePolicyWith:policyId
body:body
completionHandler: ^(Object output, NSError* error) {
if (output) {
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-javascript">
+ <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-javascript">
<pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api');
// Create an instance of the API class
console.log('API called successfully. Returned data: ' + data);
}
};
-api.putPolicy(policyId, body, callback);
+api.updatePolicy(policyId, body, callback);
</code></pre>
</div>
- <!--<div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-angular">
+ <!--<div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
- <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-csharp">
+ <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
namespace Example
{
- public class putPolicyExample
+ public class updatePolicyExample
{
public void main()
{
var body = Object; // Object |
try {
- // Update an A1 Policy's policy data (putPolicy)
- Object result = apiInstance.putPolicy(policyId, body);
+ // Update an A1 Policy's policy data (updatePolicy)
+ Object result = apiInstance.updatePolicy(policyId, body);
Debug.WriteLine(result);
} catch (Exception e) {
- Debug.Print("Exception when calling A1PolicyManagementApi.putPolicy: " + e.Message );
+ Debug.Print("Exception when calling A1PolicyManagementApi.updatePolicy: " + e.Message );
}
}
}
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-php">
+ <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-php">
<pre class="prettyprint"><code class="language-php"><?php
require_once(__DIR__ . '/vendor/autoload.php');
$body = Object; // Object |
try {
- $result = $api_instance->putPolicy($policyId, $body);
+ $result = $api_instance->updatePolicy($policyId, $body);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling A1PolicyManagementApi->putPolicy: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling A1PolicyManagementApi->updatePolicy: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-perl">
+ <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::A1PolicyManagementApi;
my $body = WWW::OPenAPIClient::Object::Object->new(); # Object |
eval {
- my $result = $api_instance->putPolicy(policyId => $policyId, body => $body);
+ my $result = $api_instance->updatePolicy(policyId => $policyId, body => $body);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling A1PolicyManagementApi->putPolicy: $@\n";
+ warn "Exception when calling A1PolicyManagementApi->updatePolicy: $@\n";
}</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-python">
+ <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
body = Object # Object |
try:
- # Update an A1 Policy's policy data (putPolicy)
- api_response = api_instance.put_policy(policyId, body)
+ # Update an A1 Policy's policy data (updatePolicy)
+ api_response = api_instance.update_policy(policyId, body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling A1PolicyManagementApi->putPolicy: %s\n" % e)</code></pre>
+ print("Exception when calling A1PolicyManagementApi->updatePolicy: %s\n" % e)</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-rust">
+ <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate A1PolicyManagementApi;
pub fn main() {
let body = Object; // Object
let mut context = A1PolicyManagementApi::Context::default();
- let result = client.putPolicy(policyId, body, &context).wait();
+ let result = client.updatePolicy(policyId, body, &context).wait();
println!("{:?}", result);
}
<td>
- <div id="d2e199_putPolicy_policyId">
+ <div id="d2e199_updatePolicy_policyId">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
}
var view = new JSONSchemaView(schema,2,{isBodyParam: true});
- var result = $('#d2e199_putPolicy_body');
+ var result = $('#d2e199_updatePolicy_body');
result.empty();
result.append(view.render());
});
</script>
-<div id="d2e199_putPolicy_body"></div>
+<div id="d2e199_updatePolicy_body"></div>
</td>
</tr>
<h2>Responses</h2>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-200"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-200" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-200"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-200" class="marked"></p>
<script>
var responseA1PolicyManagement200_description = `OK - Policy updated`;
var responseA1PolicyManagement200_description_break = responseA1PolicyManagement200_description.indexOf('\n');
if (responseA1PolicyManagement200_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-200" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-200-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-200-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-200-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-200-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-200" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-200-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-200-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-200-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-200');
+ $('#responses-A1PolicyManagement-updatePolicy-200-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-200-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-200-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-400"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-400" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-400"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-400" class="marked"></p>
<script>
var responseA1PolicyManagement400_description = `Bad Request`;
var responseA1PolicyManagement400_description_break = responseA1PolicyManagement400_description.indexOf('\n');
if (responseA1PolicyManagement400_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-400" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-400" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-400-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-400-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-400-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-400-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-400" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-400-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-400-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-400" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-400-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-400');
+ $('#responses-A1PolicyManagement-updatePolicy-400-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-400');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-400-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-400-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-401"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-401" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-401"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-401" class="marked"></p>
<script>
var responseA1PolicyManagement401_description = `Unauthorized`;
var responseA1PolicyManagement401_description_break = responseA1PolicyManagement401_description.indexOf('\n');
if (responseA1PolicyManagement401_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-401" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-401" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-401-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-401-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-401-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-401-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-401" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-401-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-401-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-401" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-401-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-401');
+ $('#responses-A1PolicyManagement-updatePolicy-401-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-401');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-401-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-401-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-403"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-403" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-403"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-403" class="marked"></p>
<script>
var responseA1PolicyManagement403_description = `Forbidden`;
var responseA1PolicyManagement403_description_break = responseA1PolicyManagement403_description.indexOf('\n');
if (responseA1PolicyManagement403_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-403" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-403" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-403-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-403-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-403-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-403-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-403" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-403-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-403-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-403" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-403-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-403');
+ $('#responses-A1PolicyManagement-updatePolicy-403-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-403');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-403-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-403-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-404"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-404" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-404"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-404" class="marked"></p>
<script>
var responseA1PolicyManagement404_description = `Not Found`;
var responseA1PolicyManagement404_description_break = responseA1PolicyManagement404_description.indexOf('\n');
if (responseA1PolicyManagement404_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-404" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-404" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-404-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-404-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-404-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-404-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-404" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-404-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-404-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-404-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-404');
+ $('#responses-A1PolicyManagement-updatePolicy-404-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-404');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-404-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-404-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-406"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-406" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-406"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-406" class="marked"></p>
<script>
var responseA1PolicyManagement406_description = `Not Acceptable`;
var responseA1PolicyManagement406_description_break = responseA1PolicyManagement406_description.indexOf('\n');
if (responseA1PolicyManagement406_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-406" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-406" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-406-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-406-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-406-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-406-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-406" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-406-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-406-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-406" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-406-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-406');
+ $('#responses-A1PolicyManagement-updatePolicy-406-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-406');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-406-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-406-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-411"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-411" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-411"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-411" class="marked"></p>
<script>
var responseA1PolicyManagement411_description = `Length Required`;
var responseA1PolicyManagement411_description_break = responseA1PolicyManagement411_description.indexOf('\n');
if (responseA1PolicyManagement411_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-411").text("Status: 411 - " + responseA1PolicyManagement411_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-411").text("Status: 411 - " + responseA1PolicyManagement411_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-411").text("Status: 411 - " + responseA1PolicyManagement411_description.substring(0, responseA1PolicyManagement411_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-411").html(responseA1PolicyManagement411_description.substring(responseA1PolicyManagement411_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-411").text("Status: 411 - " + responseA1PolicyManagement411_description.substring(0, responseA1PolicyManagement411_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-411").html(responseA1PolicyManagement411_description.substring(responseA1PolicyManagement411_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-411" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-411" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-411-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-411-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-411-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-411-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-411" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-411-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-411-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-411" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-411-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-411');
+ $('#responses-A1PolicyManagement-updatePolicy-411-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-411');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-411-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-411-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-413"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-413" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-413"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-413" class="marked"></p>
<script>
var responseA1PolicyManagement413_description = `Payload Too Large`;
var responseA1PolicyManagement413_description_break = responseA1PolicyManagement413_description.indexOf('\n');
if (responseA1PolicyManagement413_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-413").text("Status: 413 - " + responseA1PolicyManagement413_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-413").text("Status: 413 - " + responseA1PolicyManagement413_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-413").text("Status: 413 - " + responseA1PolicyManagement413_description.substring(0, responseA1PolicyManagement413_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-413").html(responseA1PolicyManagement413_description.substring(responseA1PolicyManagement413_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-413").text("Status: 413 - " + responseA1PolicyManagement413_description.substring(0, responseA1PolicyManagement413_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-413").html(responseA1PolicyManagement413_description.substring(responseA1PolicyManagement413_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-413" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-413" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-413-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-413-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-413-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-413-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-413" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-413-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-413-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-413" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-413-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-413');
+ $('#responses-A1PolicyManagement-updatePolicy-413-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-413');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-413-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-413-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-415"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-415" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-415"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-415" class="marked"></p>
<script>
var responseA1PolicyManagement415_description = `Unsupported Media Type`;
var responseA1PolicyManagement415_description_break = responseA1PolicyManagement415_description.indexOf('\n');
if (responseA1PolicyManagement415_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-415").text("Status: 415 - " + responseA1PolicyManagement415_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-415").text("Status: 415 - " + responseA1PolicyManagement415_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-415").text("Status: 415 - " + responseA1PolicyManagement415_description.substring(0, responseA1PolicyManagement415_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-415").html(responseA1PolicyManagement415_description.substring(responseA1PolicyManagement415_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-415").text("Status: 415 - " + responseA1PolicyManagement415_description.substring(0, responseA1PolicyManagement415_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-415").html(responseA1PolicyManagement415_description.substring(responseA1PolicyManagement415_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-415" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-415" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-415-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-415-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-415-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-415-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-415" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-415-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-415-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-415" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-415-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-415');
+ $('#responses-A1PolicyManagement-updatePolicy-415-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-415');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-415-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-415-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-423"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-423" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-423"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-423" class="marked"></p>
<script>
var responseA1PolicyManagement423_description = `Locked - HTTP Status code which can be used when the state is Locked`;
var responseA1PolicyManagement423_description_break = responseA1PolicyManagement423_description.indexOf('\n');
if (responseA1PolicyManagement423_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-423").text("Status: 423 - " + responseA1PolicyManagement423_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-423").text("Status: 423 - " + responseA1PolicyManagement423_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-423").text("Status: 423 - " + responseA1PolicyManagement423_description.substring(0, responseA1PolicyManagement423_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-423").html(responseA1PolicyManagement423_description.substring(responseA1PolicyManagement423_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-423").text("Status: 423 - " + responseA1PolicyManagement423_description.substring(0, responseA1PolicyManagement423_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-423").html(responseA1PolicyManagement423_description.substring(responseA1PolicyManagement423_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-423" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-423" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-423-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-423-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-423-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-423-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-423" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-423-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-423-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-423" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-423-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-423');
+ $('#responses-A1PolicyManagement-updatePolicy-423-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-423');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-423-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-423-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-429"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-429" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-429"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-429" class="marked"></p>
<script>
var responseA1PolicyManagement429_description = `Too Many Requests`;
var responseA1PolicyManagement429_description_break = responseA1PolicyManagement429_description.indexOf('\n');
if (responseA1PolicyManagement429_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-429" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-429" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-429-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-429-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-429-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-429-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-429" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-429-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-429-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-429" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-429-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-429');
+ $('#responses-A1PolicyManagement-updatePolicy-429-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-429');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-429-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-429-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-500"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-500" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-500"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-500" class="marked"></p>
<script>
var responseA1PolicyManagement500_description = `Internal Server Error`;
var responseA1PolicyManagement500_description_break = responseA1PolicyManagement500_description.indexOf('\n');
if (responseA1PolicyManagement500_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-500" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-500" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-500-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-500-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-500-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-500-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-500" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-500-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-500-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-500" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-500-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-500');
+ $('#responses-A1PolicyManagement-updatePolicy-500-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-500');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-500-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-500-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-502"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-502" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-502"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-502" class="marked"></p>
<script>
var responseA1PolicyManagement502_description = `Bad Gateway`;
var responseA1PolicyManagement502_description_break = responseA1PolicyManagement502_description.indexOf('\n');
if (responseA1PolicyManagement502_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-502" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-502" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-502-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-502-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-502-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-502-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-502" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-502-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-502-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-502" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-502-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-502');
+ $('#responses-A1PolicyManagement-updatePolicy-502-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-502');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-502-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-502-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-503"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-503" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-503"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-503" class="marked"></p>
<script>
var responseA1PolicyManagement503_description = `Service Unavailable`;
var responseA1PolicyManagement503_description_break = responseA1PolicyManagement503_description.indexOf('\n');
if (responseA1PolicyManagement503_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-503" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-503" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-503-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-503-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-503-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-503-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-503" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-503-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-503-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-503" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-503-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-503');
+ $('#responses-A1PolicyManagement-updatePolicy-503-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-503');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-503-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-503-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
<li data-group="A1PolicyManagement" data-name="deletePolicy" class="">
<a href="#api-A1PolicyManagement-deletePolicy">deletePolicy</a>
</li>
- <li data-group="A1PolicyManagement" data-name="getAllPolicies" class="">
- <a href="#api-A1PolicyManagement-getAllPolicies">getAllPolicies</a>
- </li>
<li data-group="A1PolicyManagement" data-name="getPolicy" class="">
<a href="#api-A1PolicyManagement-getPolicy">getPolicy</a>
</li>
+ <li data-group="A1PolicyManagement" data-name="getPolicyIds" class="">
+ <a href="#api-A1PolicyManagement-getPolicyIds">getPolicyIds</a>
+ </li>
<li data-group="A1PolicyManagement" data-name="getPolicyStatus" class="">
<a href="#api-A1PolicyManagement-getPolicyStatus">getPolicyStatus</a>
</li>
<li data-group="A1PolicyManagement" data-name="getPolicyTypes" class="">
<a href="#api-A1PolicyManagement-getPolicyTypes">getPolicyTypes</a>
</li>
- <li data-group="A1PolicyManagement" data-name="putPolicy" class="">
- <a href="#api-A1PolicyManagement-putPolicy">putPolicy</a>
+ <li data-group="A1PolicyManagement" data-name="updatePolicy" class="">
+ <a href="#api-A1PolicyManagement-updatePolicy">updatePolicy</a>
</li>
<li class="nav-header" data-group="Configuration"><a href="#api-Configuration">API Methods - Configuration</a></li>
<li data-group="Configuration" data-name="getConfiguration" class="">
<div class="app-desc">Version: 1.0.0</div>
<hr>
<div id="app-description" class="app-desc">
- <h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides a REST API for managing A1 policies. <br/>This document describes the latest API set to perform tasks for: </p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring and maintaining consistency of the SMO view of A1 Policies and the Near-RT RICs</li><li>Maintaining a view of each Near-RT RIC's supported A1 Policy Types</li><li>Supervision of registered services (rApps). When a registered service is unavailable, its policies are removed.</li></ul><h2>APIs provided or defined by the service</h2> <p>Note: parts of this API are strongly based on extracts of the O-RAN Alliance R1 Interface specification for A1 Policy Management, and those parts should be considered '� O-RAN ALLIANCE - All rights reserved.'</p> <h3>A1 Policy Management</h3> <p>This is the latest API for managing A1 Policies. This API is partially compliant with O-RAN Alliance R1 Interface specifications for A1 Policy Management:</p><ul><li>A1 Policy retrieval, creation, modification and deletion.</li><li>Retrieval of supported A1 Policy Types for a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management of configuration</h3><p>API for updating and retrieval of the component configuration. Note that there other ways to maintain the configuration.</p><h3>Service Callbacks</h3><p>These are endpoints that are invoked by this service. The callbacks are registered in this service at service registration.</p><h3>NearRT-RIC Repository (Older version)</h3> <p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy is targeted towards one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision of the A1 Policy Management Service.</p><h3>Service Registry and Supervision</h3> <p>API used for registering services/clients/rApps. Each A1 Policy can be tagged with an owner. If the owner service is registered, then the service can be optionally monitored by a heart-beat supervision mechanism, and if the registered service becomes unavailable, then it is removed and all its A1 Policies are deleted. Note that services do not need to be registered to create A1 Policies, but unregistered services are not supervised. This is a feature that is optional to use.</p>
+ <h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides a REST API for managing A1 policies. <br/>This document describes the latest API set to perform tasks for: </p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring and maintaining consistency of the SMO view of A1 Policies and the Near-RT RICs</li><li>Maintaining a view of each Near-RT RIC's supported A1 Policy Types</li><li>Supervision of registered services (rApps). When a registered service is unavailable, its policies are removed.</li></ul><h2>APIs provided or defined by the service</h2> <p>Note: parts of this API are strongly based on extracts of the O-RAN Alliance R1 Interface specification for A1 Policy Management, and those parts should be considered '© O-RAN ALLIANCE - All rights reserved.'</p> <h3>A1 Policy Management</h3> <p>This is the latest API for managing A1 Policies. This API is partially compliant with O-RAN Alliance R1 Interface specifications for A1 Policy Management:</p><ul><li>A1 Policy retrieval, creation, modification and deletion.</li><li>Retrieval of supported A1 Policy Types for a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management of configuration</h3><p>API for updating and retrieval of the component configuration. Note that there other ways to maintain the configuration.</p><h3>Service Callbacks</h3><p>These are endpoints that are invoked by this service. The callbacks are registered in this service at service registration.</p><h3>NearRT-RIC Repository (Older version)</h3> <p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy is targeted towards one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision of the A1 Policy Management Service.</p><h3>Service Registry and Supervision</h3> <p>API used for registering services/clients/rApps. Each A1 Policy can be tagged with an owner. If the owner service is registered, then the service can be optionally monitored by a heart-beat supervision mechanism, and if the registered service becomes unavailable, then it is removed and all its A1 Policies are deleted. Note that services do not need to be registered to create A1 Policies, but unregistered services are not supervised. This is a feature that is optional to use.</p>
</div>
</div>
</article>
</div>
<hr>
- <div id="api-A1PolicyManagement-getAllPolicies">
- <article id="api-A1PolicyManagement-getAllPolicies-0" data-group="User" data-name="getAllPolicies" data-version="0">
+ <div id="api-A1PolicyManagement-getPolicy">
+ <article id="api-A1PolicyManagement-getPolicy-0" data-group="User" data-name="getPolicy" data-version="0">
<div class="pull-left">
- <h1>getAllPolicies</h1>
- <p>Query for A1 Policy instances (getAllPolicies)</p>
+ <h1>getPolicy</h1>
+ <p>Get an A1 Policy's policy data (getPolicy)</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
- <p class="marked">Returns a collection of A1 Policy Instance IDs for policies that match given search criteria. If several query parameters are defined, the policies matching all conditions are returned.
-</p>
+ <p class="marked">Get an A1 Policy instance's policy data using its policy ID</p>
<p></p>
<br />
- <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/policies</span></code></pre>
+ <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/policies/{policyId}</span></code></pre>
<p>
<h3>Usage and SDK Samples</h3>
</p>
<ul class="nav nav-tabs nav-tabs-examples">
- <li class="active"><a href="#examples-A1PolicyManagement-getAllPolicies-0-curl">Curl</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-java">Java</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-dart">Dart</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-android">Android</a></li>
- <!--<li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-groovy">Groovy</a></li>-->
- <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-objc">Obj-C</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-javascript">JavaScript</a></li>
- <!--<li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-angular">Angular</a></li>-->
- <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-csharp">C#</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-php">PHP</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-perl">Perl</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-python">Python</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-rust">Rust</a></li>
+ <li class="active"><a href="#examples-A1PolicyManagement-getPolicy-0-curl">Curl</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-java">Java</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-dart">Dart</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-android">Android</a></li>
+ <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-groovy">Groovy</a></li>-->
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-objc">Obj-C</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-javascript">JavaScript</a></li>
+ <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-angular">Angular</a></li>-->
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-csharp">C#</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-php">PHP</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-perl">Perl</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-python">Python</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
- <div class="tab-pane active" id="examples-A1PolicyManagement-getAllPolicies-0-curl">
+ <div class="tab-pane active" id="examples-A1PolicyManagement-getPolicy-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X GET \
-H "Accept: application/json,application/problem+json" \
- "https://example.com/a1-policy-management/v1/policies?policyTypeId=policyTypeId_example&nearRtRicId=nearRtRicId_example&serviceId=serviceId_example&typeName=typeName_example"
+ "https://example.com/a1-policy-management/v1/policies/{policyId}"
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-java">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
// Create an instance of the API class
A1PolicyManagementApi apiInstance = new A1PolicyManagementApi();
- String policyTypeId = policyTypeId_example; // String | Select policies with a given A1 Policy Type ID.
- String nearRtRicId = nearRtRicId_example; // String | Select policies for a given Near-RT RIC identity.
- String serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered).
- String typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
+ String policyId = policyId_example; // String |
String accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
try {
- array[PolicyInformation] result = apiInstance.getAllPolicies(policyTypeId, nearRtRicId, serviceId, typeName, accept);
+ Object result = apiInstance.getPolicy(policyId, accept);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling A1PolicyManagementApi#getAllPolicies");
+ System.err.println("Exception when calling A1PolicyManagementApi#getPolicy");
e.printStackTrace();
}
}
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-dart">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-dart">
<pre class="prettyprint"><code class="language-dart">import 'package:openapi/api.dart';
final api_instance = DefaultApi();
-final String policyTypeId = new String(); // String | Select policies with a given A1 Policy Type ID.
-final String nearRtRicId = new String(); // String | Select policies for a given Near-RT RIC identity.
-final String serviceId = new String(); // String | Select policies owned by a given service (registered or unregistered).
-final String typeName = new String(); // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
+final String policyId = new String(); // String |
final String accept = new String(); // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
try {
- final result = await api_instance.getAllPolicies(policyTypeId, nearRtRicId, serviceId, typeName, accept);
+ final result = await api_instance.getPolicy(policyId, accept);
print(result);
} catch (e) {
- print('Exception when calling DefaultApi->getAllPolicies: $e\n');
+ print('Exception when calling DefaultApi->getPolicy: $e\n');
}
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-android">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.A1PolicyManagementApi;
public class A1PolicyManagementApiExample {
public static void main(String[] args) {
A1PolicyManagementApi apiInstance = new A1PolicyManagementApi();
- String policyTypeId = policyTypeId_example; // String | Select policies with a given A1 Policy Type ID.
- String nearRtRicId = nearRtRicId_example; // String | Select policies for a given Near-RT RIC identity.
- String serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered).
- String typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
+ String policyId = policyId_example; // String |
String accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
try {
- array[PolicyInformation] result = apiInstance.getAllPolicies(policyTypeId, nearRtRicId, serviceId, typeName, accept);
+ Object result = apiInstance.getPolicy(policyId, accept);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling A1PolicyManagementApi#getAllPolicies");
+ System.err.println("Exception when calling A1PolicyManagementApi#getPolicy");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
- <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-groovy">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
- <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-objc">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-objc">
<pre class="prettyprint"><code class="language-cpp">
// Create an instance of the API class
A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init];
-String *policyTypeId = policyTypeId_example; // Select policies with a given A1 Policy Type ID. (optional) (default to null)
-String *nearRtRicId = nearRtRicId_example; // Select policies for a given Near-RT RIC identity. (optional) (default to null)
-String *serviceId = serviceId_example; // Select policies owned by a given service (registered or unregistered). (optional) (default to null)
-String *typeName = typeName_example; // Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). (optional) (default to null)
+String *policyId = policyId_example; // (default to null)
String *accept = application/json; // Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. (optional) (default to null)
-// Query for A1 Policy instances (getAllPolicies)
-[apiInstance getAllPoliciesWith:policyTypeId
- nearRtRicId:nearRtRicId
- serviceId:serviceId
- typeName:typeName
+// Get an A1 Policy's policy data (getPolicy)
+[apiInstance getPolicyWith:policyId
accept:accept
- completionHandler: ^(array[PolicyInformation] output, NSError* error) {
+ completionHandler: ^(Object output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-javascript">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-javascript">
<pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api');
// Create an instance of the API class
var api = new OnapCcsdkA1PolicyManagementApi.A1PolicyManagementApi()
+var policyId = policyId_example; // {String}
var opts = {
- 'policyTypeId': policyTypeId_example, // {String} Select policies with a given A1 Policy Type ID.
- 'nearRtRicId': nearRtRicId_example, // {String} Select policies for a given Near-RT RIC identity.
- 'serviceId': serviceId_example, // {String} Select policies owned by a given service (registered or unregistered).
- 'typeName': typeName_example, // {String} Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
'accept': application/json // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
};
console.log('API called successfully. Returned data: ' + data);
}
};
-api.getAllPolicies(opts, callback);
+api.getPolicy(policyId, opts, callback);
</code></pre>
</div>
- <!--<div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-angular">
+ <!--<div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
- <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-csharp">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
namespace Example
{
- public class getAllPoliciesExample
+ public class getPolicyExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new A1PolicyManagementApi();
- var policyTypeId = policyTypeId_example; // String | Select policies with a given A1 Policy Type ID. (optional) (default to null)
- var nearRtRicId = nearRtRicId_example; // String | Select policies for a given Near-RT RIC identity. (optional) (default to null)
- var serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered). (optional) (default to null)
- var typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). (optional) (default to null)
+ var policyId = policyId_example; // String | (default to null)
var accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. (optional) (default to null)
try {
- // Query for A1 Policy instances (getAllPolicies)
- array[PolicyInformation] result = apiInstance.getAllPolicies(policyTypeId, nearRtRicId, serviceId, typeName, accept);
+ // Get an A1 Policy's policy data (getPolicy)
+ Object result = apiInstance.getPolicy(policyId, accept);
Debug.WriteLine(result);
} catch (Exception e) {
- Debug.Print("Exception when calling A1PolicyManagementApi.getAllPolicies: " + e.Message );
+ Debug.Print("Exception when calling A1PolicyManagementApi.getPolicy: " + e.Message );
}
}
}
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-php">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-php">
<pre class="prettyprint"><code class="language-php"><?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\A1PolicyManagementApi();
-$policyTypeId = policyTypeId_example; // String | Select policies with a given A1 Policy Type ID.
-$nearRtRicId = nearRtRicId_example; // String | Select policies for a given Near-RT RIC identity.
-$serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered).
-$typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
+$policyId = policyId_example; // String |
$accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
try {
- $result = $api_instance->getAllPolicies($policyTypeId, $nearRtRicId, $serviceId, $typeName, $accept);
+ $result = $api_instance->getPolicy($policyId, $accept);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling A1PolicyManagementApi->getAllPolicies: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling A1PolicyManagementApi->getPolicy: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-perl">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::A1PolicyManagementApi;
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::A1PolicyManagementApi->new();
-my $policyTypeId = policyTypeId_example; # String | Select policies with a given A1 Policy Type ID.
-my $nearRtRicId = nearRtRicId_example; # String | Select policies for a given Near-RT RIC identity.
-my $serviceId = serviceId_example; # String | Select policies owned by a given service (registered or unregistered).
-my $typeName = typeName_example; # String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
+my $policyId = policyId_example; # String |
my $accept = application/json; # String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
eval {
- my $result = $api_instance->getAllPolicies(policyTypeId => $policyTypeId, nearRtRicId => $nearRtRicId, serviceId => $serviceId, typeName => $typeName, accept => $accept);
+ my $result = $api_instance->getPolicy(policyId => $policyId, accept => $accept);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling A1PolicyManagementApi->getAllPolicies: $@\n";
+ warn "Exception when calling A1PolicyManagementApi->getPolicy: $@\n";
}</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-python">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
# Create an instance of the API class
api_instance = openapi_client.A1PolicyManagementApi()
-policyTypeId = policyTypeId_example # String | Select policies with a given A1 Policy Type ID. (optional) (default to null)
-nearRtRicId = nearRtRicId_example # String | Select policies for a given Near-RT RIC identity. (optional) (default to null)
-serviceId = serviceId_example # String | Select policies owned by a given service (registered or unregistered). (optional) (default to null)
-typeName = typeName_example # String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). (optional) (default to null)
+policyId = policyId_example # String | (default to null)
accept = application/json # String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. (optional) (default to null)
try:
- # Query for A1 Policy instances (getAllPolicies)
- api_response = api_instance.get_all_policies(policyTypeId=policyTypeId, nearRtRicId=nearRtRicId, serviceId=serviceId, typeName=typeName, accept=accept)
+ # Get an A1 Policy's policy data (getPolicy)
+ api_response = api_instance.get_policy(policyId, accept=accept)
pprint(api_response)
except ApiException as e:
- print("Exception when calling A1PolicyManagementApi->getAllPolicies: %s\n" % e)</code></pre>
+ print("Exception when calling A1PolicyManagementApi->getPolicy: %s\n" % e)</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-rust">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate A1PolicyManagementApi;
pub fn main() {
- let policyTypeId = policyTypeId_example; // String
- let nearRtRicId = nearRtRicId_example; // String
- let serviceId = serviceId_example; // String
- let typeName = typeName_example; // String
+ let policyId = policyId_example; // String
let accept = application/json; // String
let mut context = A1PolicyManagementApi::Context::default();
- let result = client.getAllPolicies(policyTypeId, nearRtRicId, serviceId, typeName, accept, &context).wait();
+ let result = client.getPolicy(policyId, accept, &context).wait();
println!("{:?}", result);
}
<h2>Parameters</h2>
-
- <div class="methodsubtabletitle">Header parameters</div>
+ <div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
- <tr>
- <th width="150px">Name</th>
- <th>Description</th>
- </tr>
- <tr><td style="width:150px;">Accept</td>
+ <tr>
+ <th width="150px">Name</th>
+ <th>Description</th>
+ </tr>
+ <tr><td style="width:150px;">policyId*</td>
<td>
- <div id="d2e199_getAllPolicies_accept">
+ <div id="d2e199_getPolicy_policyId">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
- <div class="inner description marked">
-Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
- </div>
</div>
+ <div class="inner required">
+ Required
+ </div>
</div>
</div>
</td>
</table>
-
-
- <div class="methodsubtabletitle">Query parameters</div>
+ <div class="methodsubtabletitle">Header parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
- <tr><td style="width:150px;">policyTypeId</td>
-<td>
-
-
- <div id="d2e199_getAllPolicies_policyTypeId">
- <div class="json-schema-view">
- <div class="primitive">
- <span class="type">
- String
- </span>
-
- <div class="inner description marked">
-Select policies with a given A1 Policy Type ID.
- </div>
- </div>
- </div>
- </div>
-</td>
-</tr>
-
- <tr><td style="width:150px;">nearRtRicId</td>
+ <tr><td style="width:150px;">Accept</td>
<td>
- <div id="d2e199_getAllPolicies_nearRtRicId">
+ <div id="d2e199_getPolicy_accept">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
</span>
<div class="inner description marked">
-Select policies for a given Near-RT RIC identity.
+Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
</div>
</div>
</div>
</td>
</tr>
- <tr><td style="width:150px;">serviceId</td>
-<td>
+ </table>
- <div id="d2e199_getAllPolicies_serviceId">
- <div class="json-schema-view">
- <div class="primitive">
- <span class="type">
- String
- </span>
- <div class="inner description marked">
-Select policies owned by a given service (registered or unregistered).
- </div>
- </div>
- </div>
- </div>
-</td>
-</tr>
-
- <tr><td style="width:150px;">typeName</td>
-<td>
-
-
- <div id="d2e199_getAllPolicies_typeName">
- <div class="json-schema-view">
- <div class="primitive">
- <span class="type">
- String
- </span>
-
- <div class="inner description marked">
-Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
- </div>
- </div>
- </div>
- </div>
-</td>
-</tr>
-
- </table>
<h2>Responses</h2>
- <h3 id="examples-A1PolicyManagement-getAllPolicies-title-200"></h3>
- <p id="examples-A1PolicyManagement-getAllPolicies-description-200" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicy-title-200"></h3>
+ <p id="examples-A1PolicyManagement-getPolicy-description-200" class="marked"></p>
<script>
- var responseA1PolicyManagement200_description = `OK - Policy identities`;
+ var responseA1PolicyManagement200_description = `OK - Policy found`;
var responseA1PolicyManagement200_description_break = responseA1PolicyManagement200_description.indexOf('\n');
if (responseA1PolicyManagement200_description_break == -1) {
- $("#examples-A1PolicyManagement-getAllPolicies-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description);
+ $("#examples-A1PolicyManagement-getPolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description);
} else {
- $("#examples-A1PolicyManagement-getAllPolicies-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break));
- $("#examples-A1PolicyManagement-getAllPolicies-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getAllPolicies-200" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicy-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-200-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-200-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-200-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-200-schema">
- <div id="responses-A1PolicyManagement-getAllPolicies-schema-200" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-200-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-200-schema">
+ <div id="responses-A1PolicyManagement-getPolicy-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
- "description" : "OK - Policy identities",
+ "description" : "OK - Policy found",
"content" : {
"application/json" : {
"schema" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/components/schemas/PolicyInformation"
+ "$ref" : "#/components/schemas/PolicyObject"
+ },
+ "examples" : {
+ "policyObject" : {
+ "$ref" : "#/components/examples/PolicyObject"
}
}
}
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getAllPolicies-200-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-200');
+ $('#responses-A1PolicyManagement-getPolicy-200-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicy-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getAllPolicies-200-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicy-200-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getAllPolicies-title-400"></h3>
- <p id="examples-A1PolicyManagement-getAllPolicies-description-400" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicy-title-400"></h3>
+ <p id="examples-A1PolicyManagement-getPolicy-description-400" class="marked"></p>
<script>
var responseA1PolicyManagement400_description = `Bad Request`;
var responseA1PolicyManagement400_description_break = responseA1PolicyManagement400_description.indexOf('\n');
if (responseA1PolicyManagement400_description_break == -1) {
- $("#examples-A1PolicyManagement-getAllPolicies-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description);
+ $("#examples-A1PolicyManagement-getPolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description);
} else {
- $("#examples-A1PolicyManagement-getAllPolicies-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break));
- $("#examples-A1PolicyManagement-getAllPolicies-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getAllPolicies-400" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicy-400" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-400-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-400-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-400-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-400-schema">
- <div id="responses-A1PolicyManagement-getAllPolicies-schema-400" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-400-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-400-schema">
+ <div id="responses-A1PolicyManagement-getPolicy-schema-400" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getAllPolicies-400-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-400');
+ $('#responses-A1PolicyManagement-getPolicy-400-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicy-schema-400');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getAllPolicies-400-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicy-400-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getAllPolicies-title-401"></h3>
- <p id="examples-A1PolicyManagement-getAllPolicies-description-401" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicy-title-401"></h3>
+ <p id="examples-A1PolicyManagement-getPolicy-description-401" class="marked"></p>
<script>
var responseA1PolicyManagement401_description = `Unauthorized`;
var responseA1PolicyManagement401_description_break = responseA1PolicyManagement401_description.indexOf('\n');
if (responseA1PolicyManagement401_description_break == -1) {
- $("#examples-A1PolicyManagement-getAllPolicies-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description);
+ $("#examples-A1PolicyManagement-getPolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description);
} else {
- $("#examples-A1PolicyManagement-getAllPolicies-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break));
- $("#examples-A1PolicyManagement-getAllPolicies-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getAllPolicies-401" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicy-401" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-401-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-401-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-401-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-401-schema">
- <div id="responses-A1PolicyManagement-getAllPolicies-schema-401" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-401-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-401-schema">
+ <div id="responses-A1PolicyManagement-getPolicy-schema-401" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getAllPolicies-401-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-401');
+ $('#responses-A1PolicyManagement-getPolicy-401-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicy-schema-401');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getAllPolicies-401-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicy-401-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getAllPolicies-title-403"></h3>
- <p id="examples-A1PolicyManagement-getAllPolicies-description-403" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicy-title-403"></h3>
+ <p id="examples-A1PolicyManagement-getPolicy-description-403" class="marked"></p>
<script>
var responseA1PolicyManagement403_description = `Forbidden`;
var responseA1PolicyManagement403_description_break = responseA1PolicyManagement403_description.indexOf('\n');
if (responseA1PolicyManagement403_description_break == -1) {
- $("#examples-A1PolicyManagement-getAllPolicies-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description);
+ $("#examples-A1PolicyManagement-getPolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description);
} else {
- $("#examples-A1PolicyManagement-getAllPolicies-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break));
- $("#examples-A1PolicyManagement-getAllPolicies-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getAllPolicies-403" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicy-403" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-403-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-403-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-403-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-403-schema">
- <div id="responses-A1PolicyManagement-getAllPolicies-schema-403" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-403-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-403-schema">
+ <div id="responses-A1PolicyManagement-getPolicy-schema-403" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getAllPolicies-403-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-403');
+ $('#responses-A1PolicyManagement-getPolicy-403-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicy-schema-403');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getAllPolicies-403-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicy-403-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getAllPolicies-title-404"></h3>
- <p id="examples-A1PolicyManagement-getAllPolicies-description-404" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicy-title-404"></h3>
+ <p id="examples-A1PolicyManagement-getPolicy-description-404" class="marked"></p>
<script>
var responseA1PolicyManagement404_description = `Not Found`;
var responseA1PolicyManagement404_description_break = responseA1PolicyManagement404_description.indexOf('\n');
if (responseA1PolicyManagement404_description_break == -1) {
- $("#examples-A1PolicyManagement-getAllPolicies-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description);
+ $("#examples-A1PolicyManagement-getPolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description);
} else {
- $("#examples-A1PolicyManagement-getAllPolicies-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break));
- $("#examples-A1PolicyManagement-getAllPolicies-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getAllPolicies-404" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicy-404" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-404-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-404-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-404-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-404-schema">
- <div id="responses-A1PolicyManagement-getAllPolicies-schema-404" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-404-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-404-schema">
+ <div id="responses-A1PolicyManagement-getPolicy-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getAllPolicies-404-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-404');
+ $('#responses-A1PolicyManagement-getPolicy-404-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicy-schema-404');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getAllPolicies-404-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicy-404-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getAllPolicies-title-406"></h3>
- <p id="examples-A1PolicyManagement-getAllPolicies-description-406" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicy-title-406"></h3>
+ <p id="examples-A1PolicyManagement-getPolicy-description-406" class="marked"></p>
<script>
var responseA1PolicyManagement406_description = `Not Acceptable`;
var responseA1PolicyManagement406_description_break = responseA1PolicyManagement406_description.indexOf('\n');
if (responseA1PolicyManagement406_description_break == -1) {
- $("#examples-A1PolicyManagement-getAllPolicies-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description);
+ $("#examples-A1PolicyManagement-getPolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description);
} else {
- $("#examples-A1PolicyManagement-getAllPolicies-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break));
- $("#examples-A1PolicyManagement-getAllPolicies-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getAllPolicies-406" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicy-406" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-406-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-406-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-406-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-406-schema">
- <div id="responses-A1PolicyManagement-getAllPolicies-schema-406" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-406-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-406-schema">
+ <div id="responses-A1PolicyManagement-getPolicy-schema-406" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getAllPolicies-406-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-406');
+ $('#responses-A1PolicyManagement-getPolicy-406-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicy-schema-406');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getAllPolicies-406-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicy-406-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getAllPolicies-title-429"></h3>
- <p id="examples-A1PolicyManagement-getAllPolicies-description-429" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicy-title-429"></h3>
+ <p id="examples-A1PolicyManagement-getPolicy-description-429" class="marked"></p>
<script>
var responseA1PolicyManagement429_description = `Too Many Requests`;
var responseA1PolicyManagement429_description_break = responseA1PolicyManagement429_description.indexOf('\n');
if (responseA1PolicyManagement429_description_break == -1) {
- $("#examples-A1PolicyManagement-getAllPolicies-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description);
+ $("#examples-A1PolicyManagement-getPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description);
} else {
- $("#examples-A1PolicyManagement-getAllPolicies-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break));
- $("#examples-A1PolicyManagement-getAllPolicies-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getAllPolicies-429" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicy-429" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-429-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-429-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-429-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-429-schema">
- <div id="responses-A1PolicyManagement-getAllPolicies-schema-429" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-429-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-429-schema">
+ <div id="responses-A1PolicyManagement-getPolicy-schema-429" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getAllPolicies-429-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-429');
+ $('#responses-A1PolicyManagement-getPolicy-429-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicy-schema-429');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getAllPolicies-429-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicy-429-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getAllPolicies-title-500"></h3>
- <p id="examples-A1PolicyManagement-getAllPolicies-description-500" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicy-title-500"></h3>
+ <p id="examples-A1PolicyManagement-getPolicy-description-500" class="marked"></p>
<script>
var responseA1PolicyManagement500_description = `Internal Server Error`;
var responseA1PolicyManagement500_description_break = responseA1PolicyManagement500_description.indexOf('\n');
if (responseA1PolicyManagement500_description_break == -1) {
- $("#examples-A1PolicyManagement-getAllPolicies-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description);
+ $("#examples-A1PolicyManagement-getPolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description);
} else {
- $("#examples-A1PolicyManagement-getAllPolicies-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break));
- $("#examples-A1PolicyManagement-getAllPolicies-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getAllPolicies-500" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicy-500" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-500-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-500-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-500-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-500-schema">
- <div id="responses-A1PolicyManagement-getAllPolicies-schema-500" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-500-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-500-schema">
+ <div id="responses-A1PolicyManagement-getPolicy-schema-500" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getAllPolicies-500-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-500');
+ $('#responses-A1PolicyManagement-getPolicy-500-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicy-schema-500');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getAllPolicies-500-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicy-500-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getAllPolicies-title-502"></h3>
- <p id="examples-A1PolicyManagement-getAllPolicies-description-502" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicy-title-502"></h3>
+ <p id="examples-A1PolicyManagement-getPolicy-description-502" class="marked"></p>
<script>
var responseA1PolicyManagement502_description = `Bad Gateway`;
var responseA1PolicyManagement502_description_break = responseA1PolicyManagement502_description.indexOf('\n');
if (responseA1PolicyManagement502_description_break == -1) {
- $("#examples-A1PolicyManagement-getAllPolicies-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description);
+ $("#examples-A1PolicyManagement-getPolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description);
} else {
- $("#examples-A1PolicyManagement-getAllPolicies-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break));
- $("#examples-A1PolicyManagement-getAllPolicies-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getAllPolicies-502" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicy-502" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-502-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-502-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-502-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-502-schema">
- <div id="responses-A1PolicyManagement-getAllPolicies-schema-502" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-502-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-502-schema">
+ <div id="responses-A1PolicyManagement-getPolicy-schema-502" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getAllPolicies-502-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-502');
+ $('#responses-A1PolicyManagement-getPolicy-502-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicy-schema-502');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getAllPolicies-502-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicy-502-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getAllPolicies-title-503"></h3>
- <p id="examples-A1PolicyManagement-getAllPolicies-description-503" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicy-title-503"></h3>
+ <p id="examples-A1PolicyManagement-getPolicy-description-503" class="marked"></p>
<script>
var responseA1PolicyManagement503_description = `Service Unavailable`;
var responseA1PolicyManagement503_description_break = responseA1PolicyManagement503_description.indexOf('\n');
if (responseA1PolicyManagement503_description_break == -1) {
- $("#examples-A1PolicyManagement-getAllPolicies-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description);
+ $("#examples-A1PolicyManagement-getPolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description);
} else {
- $("#examples-A1PolicyManagement-getAllPolicies-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break));
- $("#examples-A1PolicyManagement-getAllPolicies-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getAllPolicies-503" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicy-503" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-503-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-503-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-503-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-503-schema">
- <div id="responses-A1PolicyManagement-getAllPolicies-schema-503" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-503-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-503-schema">
+ <div id="responses-A1PolicyManagement-getPolicy-schema-503" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getAllPolicies-503-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-503');
+ $('#responses-A1PolicyManagement-getPolicy-503-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicy-schema-503');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getAllPolicies-503-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicy-503-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
- <div id="api-A1PolicyManagement-getPolicy">
- <article id="api-A1PolicyManagement-getPolicy-0" data-group="User" data-name="getPolicy" data-version="0">
+ <div id="api-A1PolicyManagement-getPolicyIds">
+ <article id="api-A1PolicyManagement-getPolicyIds-0" data-group="User" data-name="getPolicyIds" data-version="0">
<div class="pull-left">
- <h1>getPolicy</h1>
- <p>Get an A1 Policy's policy data (getPolicy)</p>
+ <h1>getPolicyIds</h1>
+ <p>Query for A1 Policy instances (getPolicyIds)</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
- <p class="marked">Get an A1 Policy instance's policy data using its policy ID</p>
+ <p class="marked">Returns a collection of A1 Policy Instance IDs for policies that match given search criteria. If several query parameters are defined, the policies matching all conditions are returned.
+</p>
<p></p>
<br />
- <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/policies/{policyId}</span></code></pre>
+ <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/policies</span></code></pre>
<p>
<h3>Usage and SDK Samples</h3>
</p>
<ul class="nav nav-tabs nav-tabs-examples">
- <li class="active"><a href="#examples-A1PolicyManagement-getPolicy-0-curl">Curl</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-java">Java</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-dart">Dart</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-android">Android</a></li>
- <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-groovy">Groovy</a></li>-->
- <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-objc">Obj-C</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-javascript">JavaScript</a></li>
- <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-angular">Angular</a></li>-->
- <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-csharp">C#</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-php">PHP</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-perl">Perl</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-python">Python</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-rust">Rust</a></li>
+ <li class="active"><a href="#examples-A1PolicyManagement-getPolicyIds-0-curl">Curl</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-java">Java</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-dart">Dart</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-android">Android</a></li>
+ <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-groovy">Groovy</a></li>-->
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-objc">Obj-C</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-javascript">JavaScript</a></li>
+ <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-angular">Angular</a></li>-->
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-csharp">C#</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-php">PHP</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-perl">Perl</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-python">Python</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
- <div class="tab-pane active" id="examples-A1PolicyManagement-getPolicy-0-curl">
+ <div class="tab-pane active" id="examples-A1PolicyManagement-getPolicyIds-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X GET \
-H "Accept: application/json,application/problem+json" \
- "https://example.com/a1-policy-management/v1/policies/{policyId}"
+ "https://example.com/a1-policy-management/v1/policies?policyTypeId=policyTypeId_example&nearRtRicId=nearRtRicId_example&serviceId=serviceId_example&typeName=typeName_example"
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-java">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
// Create an instance of the API class
A1PolicyManagementApi apiInstance = new A1PolicyManagementApi();
- String policyId = policyId_example; // String |
+ String policyTypeId = policyTypeId_example; // String | Select policies with a given A1 Policy Type ID.
+ String nearRtRicId = nearRtRicId_example; // String | Select policies for a given Near-RT RIC identity.
+ String serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered).
+ String typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
String accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
try {
- Object result = apiInstance.getPolicy(policyId, accept);
+ array[PolicyInformation] result = apiInstance.getPolicyIds(policyTypeId, nearRtRicId, serviceId, typeName, accept);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling A1PolicyManagementApi#getPolicy");
+ System.err.println("Exception when calling A1PolicyManagementApi#getPolicyIds");
e.printStackTrace();
}
}
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-dart">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-dart">
<pre class="prettyprint"><code class="language-dart">import 'package:openapi/api.dart';
final api_instance = DefaultApi();
-final String policyId = new String(); // String |
+final String policyTypeId = new String(); // String | Select policies with a given A1 Policy Type ID.
+final String nearRtRicId = new String(); // String | Select policies for a given Near-RT RIC identity.
+final String serviceId = new String(); // String | Select policies owned by a given service (registered or unregistered).
+final String typeName = new String(); // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
final String accept = new String(); // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
try {
- final result = await api_instance.getPolicy(policyId, accept);
+ final result = await api_instance.getPolicyIds(policyTypeId, nearRtRicId, serviceId, typeName, accept);
print(result);
} catch (e) {
- print('Exception when calling DefaultApi->getPolicy: $e\n');
+ print('Exception when calling DefaultApi->getPolicyIds: $e\n');
}
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-android">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.A1PolicyManagementApi;
public class A1PolicyManagementApiExample {
public static void main(String[] args) {
A1PolicyManagementApi apiInstance = new A1PolicyManagementApi();
- String policyId = policyId_example; // String |
+ String policyTypeId = policyTypeId_example; // String | Select policies with a given A1 Policy Type ID.
+ String nearRtRicId = nearRtRicId_example; // String | Select policies for a given Near-RT RIC identity.
+ String serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered).
+ String typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
String accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
try {
- Object result = apiInstance.getPolicy(policyId, accept);
+ array[PolicyInformation] result = apiInstance.getPolicyIds(policyTypeId, nearRtRicId, serviceId, typeName, accept);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling A1PolicyManagementApi#getPolicy");
+ System.err.println("Exception when calling A1PolicyManagementApi#getPolicyIds");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
- <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-groovy">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
- <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-objc">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-objc">
<pre class="prettyprint"><code class="language-cpp">
// Create an instance of the API class
A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init];
-String *policyId = policyId_example; // (default to null)
+String *policyTypeId = policyTypeId_example; // Select policies with a given A1 Policy Type ID. (optional) (default to null)
+String *nearRtRicId = nearRtRicId_example; // Select policies for a given Near-RT RIC identity. (optional) (default to null)
+String *serviceId = serviceId_example; // Select policies owned by a given service (registered or unregistered). (optional) (default to null)
+String *typeName = typeName_example; // Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). (optional) (default to null)
String *accept = application/json; // Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. (optional) (default to null)
-// Get an A1 Policy's policy data (getPolicy)
-[apiInstance getPolicyWith:policyId
+// Query for A1 Policy instances (getPolicyIds)
+[apiInstance getPolicyIdsWith:policyTypeId
+ nearRtRicId:nearRtRicId
+ serviceId:serviceId
+ typeName:typeName
accept:accept
- completionHandler: ^(Object output, NSError* error) {
+ completionHandler: ^(array[PolicyInformation] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-javascript">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-javascript">
<pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api');
// Create an instance of the API class
var api = new OnapCcsdkA1PolicyManagementApi.A1PolicyManagementApi()
-var policyId = policyId_example; // {String}
var opts = {
+ 'policyTypeId': policyTypeId_example, // {String} Select policies with a given A1 Policy Type ID.
+ 'nearRtRicId': nearRtRicId_example, // {String} Select policies for a given Near-RT RIC identity.
+ 'serviceId': serviceId_example, // {String} Select policies owned by a given service (registered or unregistered).
+ 'typeName': typeName_example, // {String} Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
'accept': application/json // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
};
console.log('API called successfully. Returned data: ' + data);
}
};
-api.getPolicy(policyId, opts, callback);
+api.getPolicyIds(opts, callback);
</code></pre>
</div>
- <!--<div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-angular">
+ <!--<div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
- <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-csharp">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
namespace Example
{
- public class getPolicyExample
+ public class getPolicyIdsExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new A1PolicyManagementApi();
- var policyId = policyId_example; // String | (default to null)
+ var policyTypeId = policyTypeId_example; // String | Select policies with a given A1 Policy Type ID. (optional) (default to null)
+ var nearRtRicId = nearRtRicId_example; // String | Select policies for a given Near-RT RIC identity. (optional) (default to null)
+ var serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered). (optional) (default to null)
+ var typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). (optional) (default to null)
var accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. (optional) (default to null)
try {
- // Get an A1 Policy's policy data (getPolicy)
- Object result = apiInstance.getPolicy(policyId, accept);
+ // Query for A1 Policy instances (getPolicyIds)
+ array[PolicyInformation] result = apiInstance.getPolicyIds(policyTypeId, nearRtRicId, serviceId, typeName, accept);
Debug.WriteLine(result);
} catch (Exception e) {
- Debug.Print("Exception when calling A1PolicyManagementApi.getPolicy: " + e.Message );
+ Debug.Print("Exception when calling A1PolicyManagementApi.getPolicyIds: " + e.Message );
}
}
}
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-php">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-php">
<pre class="prettyprint"><code class="language-php"><?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\A1PolicyManagementApi();
-$policyId = policyId_example; // String |
+$policyTypeId = policyTypeId_example; // String | Select policies with a given A1 Policy Type ID.
+$nearRtRicId = nearRtRicId_example; // String | Select policies for a given Near-RT RIC identity.
+$serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered).
+$typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
$accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
try {
- $result = $api_instance->getPolicy($policyId, $accept);
+ $result = $api_instance->getPolicyIds($policyTypeId, $nearRtRicId, $serviceId, $typeName, $accept);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling A1PolicyManagementApi->getPolicy: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling A1PolicyManagementApi->getPolicyIds: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-perl">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::A1PolicyManagementApi;
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::A1PolicyManagementApi->new();
-my $policyId = policyId_example; # String |
+my $policyTypeId = policyTypeId_example; # String | Select policies with a given A1 Policy Type ID.
+my $nearRtRicId = nearRtRicId_example; # String | Select policies for a given Near-RT RIC identity.
+my $serviceId = serviceId_example; # String | Select policies owned by a given service (registered or unregistered).
+my $typeName = typeName_example; # String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
my $accept = application/json; # String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
eval {
- my $result = $api_instance->getPolicy(policyId => $policyId, accept => $accept);
+ my $result = $api_instance->getPolicyIds(policyTypeId => $policyTypeId, nearRtRicId => $nearRtRicId, serviceId => $serviceId, typeName => $typeName, accept => $accept);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling A1PolicyManagementApi->getPolicy: $@\n";
+ warn "Exception when calling A1PolicyManagementApi->getPolicyIds: $@\n";
}</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-python">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
# Create an instance of the API class
api_instance = openapi_client.A1PolicyManagementApi()
-policyId = policyId_example # String | (default to null)
+policyTypeId = policyTypeId_example # String | Select policies with a given A1 Policy Type ID. (optional) (default to null)
+nearRtRicId = nearRtRicId_example # String | Select policies for a given Near-RT RIC identity. (optional) (default to null)
+serviceId = serviceId_example # String | Select policies owned by a given service (registered or unregistered). (optional) (default to null)
+typeName = typeName_example # String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). (optional) (default to null)
accept = application/json # String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. (optional) (default to null)
try:
- # Get an A1 Policy's policy data (getPolicy)
- api_response = api_instance.get_policy(policyId, accept=accept)
+ # Query for A1 Policy instances (getPolicyIds)
+ api_response = api_instance.get_policy_ids(policyTypeId=policyTypeId, nearRtRicId=nearRtRicId, serviceId=serviceId, typeName=typeName, accept=accept)
pprint(api_response)
except ApiException as e:
- print("Exception when calling A1PolicyManagementApi->getPolicy: %s\n" % e)</code></pre>
+ print("Exception when calling A1PolicyManagementApi->getPolicyIds: %s\n" % e)</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-rust">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate A1PolicyManagementApi;
pub fn main() {
- let policyId = policyId_example; // String
+ let policyTypeId = policyTypeId_example; // String
+ let nearRtRicId = nearRtRicId_example; // String
+ let serviceId = serviceId_example; // String
+ let typeName = typeName_example; // String
let accept = application/json; // String
let mut context = A1PolicyManagementApi::Context::default();
- let result = client.getPolicy(policyId, accept, &context).wait();
+ let result = client.getPolicyIds(policyTypeId, nearRtRicId, serviceId, typeName, accept, &context).wait();
println!("{:?}", result);
}
</div>
</div>
- <h2>Scopes</h2>
- <table>
-
- </table>
+ <h2>Scopes</h2>
+ <table>
+
+ </table>
+
+ <h2>Parameters</h2>
+
+
+ <div class="methodsubtabletitle">Header parameters</div>
+ <table id="methodsubtable">
+ <tr>
+ <th width="150px">Name</th>
+ <th>Description</th>
+ </tr>
+ <tr><td style="width:150px;">Accept</td>
+<td>
+
+
+ <div id="d2e199_getPolicyIds_accept">
+ <div class="json-schema-view">
+ <div class="primitive">
+ <span class="type">
+ String
+ </span>
+
+ <div class="inner description marked">
+Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
+ </div>
+ </div>
+ </div>
+ </div>
+</td>
+</tr>
+
+ </table>
+
+
+
+ <div class="methodsubtabletitle">Query parameters</div>
+ <table id="methodsubtable">
+ <tr>
+ <th width="150px">Name</th>
+ <th>Description</th>
+ </tr>
+ <tr><td style="width:150px;">policyTypeId</td>
+<td>
+
- <h2>Parameters</h2>
+ <div id="d2e199_getPolicyIds_policyTypeId">
+ <div class="json-schema-view">
+ <div class="primitive">
+ <span class="type">
+ String
+ </span>
- <div class="methodsubtabletitle">Path parameters</div>
- <table id="methodsubtable">
- <tr>
- <th width="150px">Name</th>
- <th>Description</th>
- </tr>
- <tr><td style="width:150px;">policyId*</td>
+ <div class="inner description marked">
+Select policies with a given A1 Policy Type ID.
+ </div>
+ </div>
+ </div>
+ </div>
+</td>
+</tr>
+
+ <tr><td style="width:150px;">nearRtRicId</td>
<td>
- <div id="d2e199_getPolicy_policyId">
+ <div id="d2e199_getPolicyIds_nearRtRicId">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
+ <div class="inner description marked">
+Select policies for a given Near-RT RIC identity.
+ </div>
</div>
- <div class="inner required">
- Required
- </div>
</div>
</div>
</td>
</tr>
- </table>
-
- <div class="methodsubtabletitle">Header parameters</div>
- <table id="methodsubtable">
- <tr>
- <th width="150px">Name</th>
- <th>Description</th>
- </tr>
- <tr><td style="width:150px;">Accept</td>
+ <tr><td style="width:150px;">serviceId</td>
<td>
- <div id="d2e199_getPolicy_accept">
+ <div id="d2e199_getPolicyIds_serviceId">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
</span>
<div class="inner description marked">
-Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
+Select policies owned by a given service (registered or unregistered).
</div>
</div>
</div>
</td>
</tr>
- </table>
+ <tr><td style="width:150px;">typeName</td>
+<td>
+
+ <div id="d2e199_getPolicyIds_typeName">
+ <div class="json-schema-view">
+ <div class="primitive">
+ <span class="type">
+ String
+ </span>
+ <div class="inner description marked">
+Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
+ </div>
+ </div>
+ </div>
+ </div>
+</td>
+</tr>
+ </table>
<h2>Responses</h2>
- <h3 id="examples-A1PolicyManagement-getPolicy-title-200"></h3>
- <p id="examples-A1PolicyManagement-getPolicy-description-200" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicyIds-title-200"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyIds-description-200" class="marked"></p>
<script>
- var responseA1PolicyManagement200_description = `OK - Policy found`;
+ var responseA1PolicyManagement200_description = `OK - Policy identities`;
var responseA1PolicyManagement200_description_break = responseA1PolicyManagement200_description.indexOf('\n');
if (responseA1PolicyManagement200_description_break == -1) {
- $("#examples-A1PolicyManagement-getPolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description);
+ $("#examples-A1PolicyManagement-getPolicyIds-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description);
} else {
- $("#examples-A1PolicyManagement-getPolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break));
- $("#examples-A1PolicyManagement-getPolicy-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getPolicy-200" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicyIds-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-200-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-200-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-200-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-200-schema">
- <div id="responses-A1PolicyManagement-getPolicy-schema-200" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-200-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-200-schema">
+ <div id="responses-A1PolicyManagement-getPolicyIds-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
- "description" : "OK - Policy found",
+ "description" : "OK - Policy identities",
"content" : {
"application/json" : {
"schema" : {
- "$ref" : "#/components/schemas/PolicyObject"
- },
- "examples" : {
- "policyObject" : {
- "$ref" : "#/components/examples/PolicyObject"
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/PolicyInformation"
}
}
}
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getPolicy-200-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getPolicy-schema-200');
+ $('#responses-A1PolicyManagement-getPolicyIds-200-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getPolicy-200-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicyIds-200-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getPolicy-title-400"></h3>
- <p id="examples-A1PolicyManagement-getPolicy-description-400" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicyIds-title-400"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyIds-description-400" class="marked"></p>
<script>
var responseA1PolicyManagement400_description = `Bad Request`;
var responseA1PolicyManagement400_description_break = responseA1PolicyManagement400_description.indexOf('\n');
if (responseA1PolicyManagement400_description_break == -1) {
- $("#examples-A1PolicyManagement-getPolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description);
+ $("#examples-A1PolicyManagement-getPolicyIds-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description);
} else {
- $("#examples-A1PolicyManagement-getPolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break));
- $("#examples-A1PolicyManagement-getPolicy-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getPolicy-400" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicyIds-400" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-400-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-400-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-400-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-400-schema">
- <div id="responses-A1PolicyManagement-getPolicy-schema-400" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-400-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-400-schema">
+ <div id="responses-A1PolicyManagement-getPolicyIds-schema-400" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getPolicy-400-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getPolicy-schema-400');
+ $('#responses-A1PolicyManagement-getPolicyIds-400-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-400');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getPolicy-400-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicyIds-400-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getPolicy-title-401"></h3>
- <p id="examples-A1PolicyManagement-getPolicy-description-401" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicyIds-title-401"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyIds-description-401" class="marked"></p>
<script>
var responseA1PolicyManagement401_description = `Unauthorized`;
var responseA1PolicyManagement401_description_break = responseA1PolicyManagement401_description.indexOf('\n');
if (responseA1PolicyManagement401_description_break == -1) {
- $("#examples-A1PolicyManagement-getPolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description);
+ $("#examples-A1PolicyManagement-getPolicyIds-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description);
} else {
- $("#examples-A1PolicyManagement-getPolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break));
- $("#examples-A1PolicyManagement-getPolicy-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getPolicy-401" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicyIds-401" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-401-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-401-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-401-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-401-schema">
- <div id="responses-A1PolicyManagement-getPolicy-schema-401" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-401-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-401-schema">
+ <div id="responses-A1PolicyManagement-getPolicyIds-schema-401" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getPolicy-401-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getPolicy-schema-401');
+ $('#responses-A1PolicyManagement-getPolicyIds-401-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-401');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getPolicy-401-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicyIds-401-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getPolicy-title-403"></h3>
- <p id="examples-A1PolicyManagement-getPolicy-description-403" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicyIds-title-403"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyIds-description-403" class="marked"></p>
<script>
var responseA1PolicyManagement403_description = `Forbidden`;
var responseA1PolicyManagement403_description_break = responseA1PolicyManagement403_description.indexOf('\n');
if (responseA1PolicyManagement403_description_break == -1) {
- $("#examples-A1PolicyManagement-getPolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description);
+ $("#examples-A1PolicyManagement-getPolicyIds-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description);
} else {
- $("#examples-A1PolicyManagement-getPolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break));
- $("#examples-A1PolicyManagement-getPolicy-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getPolicy-403" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicyIds-403" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-403-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-403-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-403-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-403-schema">
- <div id="responses-A1PolicyManagement-getPolicy-schema-403" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-403-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-403-schema">
+ <div id="responses-A1PolicyManagement-getPolicyIds-schema-403" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getPolicy-403-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getPolicy-schema-403');
+ $('#responses-A1PolicyManagement-getPolicyIds-403-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-403');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getPolicy-403-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicyIds-403-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getPolicy-title-404"></h3>
- <p id="examples-A1PolicyManagement-getPolicy-description-404" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicyIds-title-404"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyIds-description-404" class="marked"></p>
<script>
var responseA1PolicyManagement404_description = `Not Found`;
var responseA1PolicyManagement404_description_break = responseA1PolicyManagement404_description.indexOf('\n');
if (responseA1PolicyManagement404_description_break == -1) {
- $("#examples-A1PolicyManagement-getPolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description);
+ $("#examples-A1PolicyManagement-getPolicyIds-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description);
} else {
- $("#examples-A1PolicyManagement-getPolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break));
- $("#examples-A1PolicyManagement-getPolicy-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getPolicy-404" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicyIds-404" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-404-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-404-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-404-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-404-schema">
- <div id="responses-A1PolicyManagement-getPolicy-schema-404" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-404-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-404-schema">
+ <div id="responses-A1PolicyManagement-getPolicyIds-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getPolicy-404-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getPolicy-schema-404');
+ $('#responses-A1PolicyManagement-getPolicyIds-404-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-404');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getPolicy-404-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicyIds-404-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getPolicy-title-406"></h3>
- <p id="examples-A1PolicyManagement-getPolicy-description-406" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicyIds-title-406"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyIds-description-406" class="marked"></p>
<script>
var responseA1PolicyManagement406_description = `Not Acceptable`;
var responseA1PolicyManagement406_description_break = responseA1PolicyManagement406_description.indexOf('\n');
if (responseA1PolicyManagement406_description_break == -1) {
- $("#examples-A1PolicyManagement-getPolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description);
+ $("#examples-A1PolicyManagement-getPolicyIds-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description);
} else {
- $("#examples-A1PolicyManagement-getPolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break));
- $("#examples-A1PolicyManagement-getPolicy-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getPolicy-406" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicyIds-406" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-406-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-406-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-406-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-406-schema">
- <div id="responses-A1PolicyManagement-getPolicy-schema-406" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-406-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-406-schema">
+ <div id="responses-A1PolicyManagement-getPolicyIds-schema-406" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getPolicy-406-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getPolicy-schema-406');
+ $('#responses-A1PolicyManagement-getPolicyIds-406-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-406');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getPolicy-406-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicyIds-406-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getPolicy-title-429"></h3>
- <p id="examples-A1PolicyManagement-getPolicy-description-429" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicyIds-title-429"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyIds-description-429" class="marked"></p>
<script>
var responseA1PolicyManagement429_description = `Too Many Requests`;
var responseA1PolicyManagement429_description_break = responseA1PolicyManagement429_description.indexOf('\n');
if (responseA1PolicyManagement429_description_break == -1) {
- $("#examples-A1PolicyManagement-getPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description);
+ $("#examples-A1PolicyManagement-getPolicyIds-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description);
} else {
- $("#examples-A1PolicyManagement-getPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break));
- $("#examples-A1PolicyManagement-getPolicy-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getPolicy-429" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicyIds-429" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-429-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-429-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-429-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-429-schema">
- <div id="responses-A1PolicyManagement-getPolicy-schema-429" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-429-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-429-schema">
+ <div id="responses-A1PolicyManagement-getPolicyIds-schema-429" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getPolicy-429-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getPolicy-schema-429');
+ $('#responses-A1PolicyManagement-getPolicyIds-429-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-429');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getPolicy-429-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicyIds-429-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getPolicy-title-500"></h3>
- <p id="examples-A1PolicyManagement-getPolicy-description-500" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicyIds-title-500"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyIds-description-500" class="marked"></p>
<script>
var responseA1PolicyManagement500_description = `Internal Server Error`;
var responseA1PolicyManagement500_description_break = responseA1PolicyManagement500_description.indexOf('\n');
if (responseA1PolicyManagement500_description_break == -1) {
- $("#examples-A1PolicyManagement-getPolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description);
+ $("#examples-A1PolicyManagement-getPolicyIds-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description);
} else {
- $("#examples-A1PolicyManagement-getPolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break));
- $("#examples-A1PolicyManagement-getPolicy-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getPolicy-500" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicyIds-500" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-500-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-500-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-500-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-500-schema">
- <div id="responses-A1PolicyManagement-getPolicy-schema-500" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-500-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-500-schema">
+ <div id="responses-A1PolicyManagement-getPolicyIds-schema-500" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getPolicy-500-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getPolicy-schema-500');
+ $('#responses-A1PolicyManagement-getPolicyIds-500-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-500');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getPolicy-500-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicyIds-500-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getPolicy-title-502"></h3>
- <p id="examples-A1PolicyManagement-getPolicy-description-502" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicyIds-title-502"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyIds-description-502" class="marked"></p>
<script>
var responseA1PolicyManagement502_description = `Bad Gateway`;
var responseA1PolicyManagement502_description_break = responseA1PolicyManagement502_description.indexOf('\n');
if (responseA1PolicyManagement502_description_break == -1) {
- $("#examples-A1PolicyManagement-getPolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description);
+ $("#examples-A1PolicyManagement-getPolicyIds-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description);
} else {
- $("#examples-A1PolicyManagement-getPolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break));
- $("#examples-A1PolicyManagement-getPolicy-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getPolicy-502" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicyIds-502" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-502-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-502-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-502-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-502-schema">
- <div id="responses-A1PolicyManagement-getPolicy-schema-502" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-502-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-502-schema">
+ <div id="responses-A1PolicyManagement-getPolicyIds-schema-502" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getPolicy-502-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getPolicy-schema-502');
+ $('#responses-A1PolicyManagement-getPolicyIds-502-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-502');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getPolicy-502-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicyIds-502-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getPolicy-title-503"></h3>
- <p id="examples-A1PolicyManagement-getPolicy-description-503" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicyIds-title-503"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyIds-description-503" class="marked"></p>
<script>
var responseA1PolicyManagement503_description = `Service Unavailable`;
var responseA1PolicyManagement503_description_break = responseA1PolicyManagement503_description.indexOf('\n');
if (responseA1PolicyManagement503_description_break == -1) {
- $("#examples-A1PolicyManagement-getPolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description);
+ $("#examples-A1PolicyManagement-getPolicyIds-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description);
} else {
- $("#examples-A1PolicyManagement-getPolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break));
- $("#examples-A1PolicyManagement-getPolicy-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getPolicy-503" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicyIds-503" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-503-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-503-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-503-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-503-schema">
- <div id="responses-A1PolicyManagement-getPolicy-schema-503" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-503-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-503-schema">
+ <div id="responses-A1PolicyManagement-getPolicyIds-schema-503" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getPolicy-503-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getPolicy-schema-503');
+ $('#responses-A1PolicyManagement-getPolicyIds-503-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-503');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getPolicy-503-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicyIds-503-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</article>
</div>
<hr>
- <div id="api-A1PolicyManagement-putPolicy">
- <article id="api-A1PolicyManagement-putPolicy-0" data-group="User" data-name="putPolicy" data-version="0">
+ <div id="api-A1PolicyManagement-updatePolicy">
+ <article id="api-A1PolicyManagement-updatePolicy-0" data-group="User" data-name="updatePolicy" data-version="0">
<div class="pull-left">
- <h1>putPolicy</h1>
- <p>Update an A1 Policy's policy data (putPolicy)</p>
+ <h1>updatePolicy</h1>
+ <p>Update an A1 Policy's policy data (updatePolicy)</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<h3>Usage and SDK Samples</h3>
</p>
<ul class="nav nav-tabs nav-tabs-examples">
- <li class="active"><a href="#examples-A1PolicyManagement-putPolicy-0-curl">Curl</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-java">Java</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-dart">Dart</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-android">Android</a></li>
- <!--<li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-groovy">Groovy</a></li>-->
- <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-objc">Obj-C</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-javascript">JavaScript</a></li>
- <!--<li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-angular">Angular</a></li>-->
- <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-csharp">C#</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-php">PHP</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-perl">Perl</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-python">Python</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-rust">Rust</a></li>
+ <li class="active"><a href="#examples-A1PolicyManagement-updatePolicy-0-curl">Curl</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-java">Java</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-dart">Dart</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-android">Android</a></li>
+ <!--<li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-groovy">Groovy</a></li>-->
+ <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-objc">Obj-C</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-javascript">JavaScript</a></li>
+ <!--<li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-angular">Angular</a></li>-->
+ <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-csharp">C#</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-php">PHP</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-perl">Perl</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-python">Python</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
- <div class="tab-pane active" id="examples-A1PolicyManagement-putPolicy-0-curl">
+ <div class="tab-pane active" id="examples-A1PolicyManagement-updatePolicy-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X PUT \
-H "Accept: application/json,application/problem+json" \
-H "Content-Type: application/json" \
-d ''
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-java">
+ <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
Object body = Object; // Object |
try {
- Object result = apiInstance.putPolicy(policyId, body);
+ Object result = apiInstance.updatePolicy(policyId, body);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling A1PolicyManagementApi#putPolicy");
+ System.err.println("Exception when calling A1PolicyManagementApi#updatePolicy");
e.printStackTrace();
}
}
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-dart">
+ <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-dart">
<pre class="prettyprint"><code class="language-dart">import 'package:openapi/api.dart';
final api_instance = DefaultApi();
final Object body = new Object(); // Object |
try {
- final result = await api_instance.putPolicy(policyId, body);
+ final result = await api_instance.updatePolicy(policyId, body);
print(result);
} catch (e) {
- print('Exception when calling DefaultApi->putPolicy: $e\n');
+ print('Exception when calling DefaultApi->updatePolicy: $e\n');
}
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-android">
+ <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.A1PolicyManagementApi;
public class A1PolicyManagementApiExample {
Object body = Object; // Object |
try {
- Object result = apiInstance.putPolicy(policyId, body);
+ Object result = apiInstance.updatePolicy(policyId, body);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling A1PolicyManagementApi#putPolicy");
+ System.err.println("Exception when calling A1PolicyManagementApi#updatePolicy");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
- <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-groovy">
+ <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
- <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-objc">
+ <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-objc">
<pre class="prettyprint"><code class="language-cpp">
// Create an instance of the API class
String *policyId = policyId_example; // (default to null)
Object *body = Object; //
-// Update an A1 Policy's policy data (putPolicy)
-[apiInstance putPolicyWith:policyId
+// Update an A1 Policy's policy data (updatePolicy)
+[apiInstance updatePolicyWith:policyId
body:body
completionHandler: ^(Object output, NSError* error) {
if (output) {
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-javascript">
+ <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-javascript">
<pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api');
// Create an instance of the API class
console.log('API called successfully. Returned data: ' + data);
}
};
-api.putPolicy(policyId, body, callback);
+api.updatePolicy(policyId, body, callback);
</code></pre>
</div>
- <!--<div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-angular">
+ <!--<div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
- <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-csharp">
+ <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
namespace Example
{
- public class putPolicyExample
+ public class updatePolicyExample
{
public void main()
{
var body = Object; // Object |
try {
- // Update an A1 Policy's policy data (putPolicy)
- Object result = apiInstance.putPolicy(policyId, body);
+ // Update an A1 Policy's policy data (updatePolicy)
+ Object result = apiInstance.updatePolicy(policyId, body);
Debug.WriteLine(result);
} catch (Exception e) {
- Debug.Print("Exception when calling A1PolicyManagementApi.putPolicy: " + e.Message );
+ Debug.Print("Exception when calling A1PolicyManagementApi.updatePolicy: " + e.Message );
}
}
}
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-php">
+ <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-php">
<pre class="prettyprint"><code class="language-php"><?php
require_once(__DIR__ . '/vendor/autoload.php');
$body = Object; // Object |
try {
- $result = $api_instance->putPolicy($policyId, $body);
+ $result = $api_instance->updatePolicy($policyId, $body);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling A1PolicyManagementApi->putPolicy: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling A1PolicyManagementApi->updatePolicy: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-perl">
+ <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::A1PolicyManagementApi;
my $body = WWW::OPenAPIClient::Object::Object->new(); # Object |
eval {
- my $result = $api_instance->putPolicy(policyId => $policyId, body => $body);
+ my $result = $api_instance->updatePolicy(policyId => $policyId, body => $body);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling A1PolicyManagementApi->putPolicy: $@\n";
+ warn "Exception when calling A1PolicyManagementApi->updatePolicy: $@\n";
}</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-python">
+ <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
body = Object # Object |
try:
- # Update an A1 Policy's policy data (putPolicy)
- api_response = api_instance.put_policy(policyId, body)
+ # Update an A1 Policy's policy data (updatePolicy)
+ api_response = api_instance.update_policy(policyId, body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling A1PolicyManagementApi->putPolicy: %s\n" % e)</code></pre>
+ print("Exception when calling A1PolicyManagementApi->updatePolicy: %s\n" % e)</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-rust">
+ <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate A1PolicyManagementApi;
pub fn main() {
let body = Object; // Object
let mut context = A1PolicyManagementApi::Context::default();
- let result = client.putPolicy(policyId, body, &context).wait();
+ let result = client.updatePolicy(policyId, body, &context).wait();
println!("{:?}", result);
}
<td>
- <div id="d2e199_putPolicy_policyId">
+ <div id="d2e199_updatePolicy_policyId">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
}
var view = new JSONSchemaView(schema,2,{isBodyParam: true});
- var result = $('#d2e199_putPolicy_body');
+ var result = $('#d2e199_updatePolicy_body');
result.empty();
result.append(view.render());
});
</script>
-<div id="d2e199_putPolicy_body"></div>
+<div id="d2e199_updatePolicy_body"></div>
</td>
</tr>
<h2>Responses</h2>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-200"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-200" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-200"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-200" class="marked"></p>
<script>
var responseA1PolicyManagement200_description = `OK - Policy updated`;
var responseA1PolicyManagement200_description_break = responseA1PolicyManagement200_description.indexOf('\n');
if (responseA1PolicyManagement200_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-200" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-200-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-200-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-200-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-200-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-200" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-200-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-200-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-200-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-200');
+ $('#responses-A1PolicyManagement-updatePolicy-200-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-200-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-200-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-400"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-400" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-400"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-400" class="marked"></p>
<script>
var responseA1PolicyManagement400_description = `Bad Request`;
var responseA1PolicyManagement400_description_break = responseA1PolicyManagement400_description.indexOf('\n');
if (responseA1PolicyManagement400_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-400" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-400" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-400-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-400-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-400-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-400-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-400" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-400-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-400-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-400" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-400-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-400');
+ $('#responses-A1PolicyManagement-updatePolicy-400-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-400');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-400-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-400-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-401"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-401" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-401"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-401" class="marked"></p>
<script>
var responseA1PolicyManagement401_description = `Unauthorized`;
var responseA1PolicyManagement401_description_break = responseA1PolicyManagement401_description.indexOf('\n');
if (responseA1PolicyManagement401_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-401" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-401" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-401-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-401-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-401-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-401-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-401" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-401-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-401-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-401" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-401-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-401');
+ $('#responses-A1PolicyManagement-updatePolicy-401-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-401');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-401-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-401-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-403"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-403" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-403"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-403" class="marked"></p>
<script>
var responseA1PolicyManagement403_description = `Forbidden`;
var responseA1PolicyManagement403_description_break = responseA1PolicyManagement403_description.indexOf('\n');
if (responseA1PolicyManagement403_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-403" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-403" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-403-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-403-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-403-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-403-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-403" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-403-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-403-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-403" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-403-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-403');
+ $('#responses-A1PolicyManagement-updatePolicy-403-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-403');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-403-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-403-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-404"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-404" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-404"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-404" class="marked"></p>
<script>
var responseA1PolicyManagement404_description = `Not Found`;
var responseA1PolicyManagement404_description_break = responseA1PolicyManagement404_description.indexOf('\n');
if (responseA1PolicyManagement404_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-404" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-404" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-404-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-404-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-404-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-404-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-404" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-404-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-404-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-404-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-404');
+ $('#responses-A1PolicyManagement-updatePolicy-404-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-404');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-404-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-404-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-406"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-406" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-406"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-406" class="marked"></p>
<script>
var responseA1PolicyManagement406_description = `Not Acceptable`;
var responseA1PolicyManagement406_description_break = responseA1PolicyManagement406_description.indexOf('\n');
if (responseA1PolicyManagement406_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-406" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-406" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-406-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-406-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-406-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-406-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-406" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-406-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-406-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-406" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-406-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-406');
+ $('#responses-A1PolicyManagement-updatePolicy-406-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-406');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-406-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-406-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-411"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-411" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-411"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-411" class="marked"></p>
<script>
var responseA1PolicyManagement411_description = `Length Required`;
var responseA1PolicyManagement411_description_break = responseA1PolicyManagement411_description.indexOf('\n');
if (responseA1PolicyManagement411_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-411").text("Status: 411 - " + responseA1PolicyManagement411_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-411").text("Status: 411 - " + responseA1PolicyManagement411_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-411").text("Status: 411 - " + responseA1PolicyManagement411_description.substring(0, responseA1PolicyManagement411_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-411").html(responseA1PolicyManagement411_description.substring(responseA1PolicyManagement411_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-411").text("Status: 411 - " + responseA1PolicyManagement411_description.substring(0, responseA1PolicyManagement411_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-411").html(responseA1PolicyManagement411_description.substring(responseA1PolicyManagement411_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-411" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-411" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-411-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-411-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-411-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-411-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-411" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-411-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-411-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-411" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-411-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-411');
+ $('#responses-A1PolicyManagement-updatePolicy-411-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-411');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-411-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-411-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-413"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-413" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-413"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-413" class="marked"></p>
<script>
var responseA1PolicyManagement413_description = `Payload Too Large`;
var responseA1PolicyManagement413_description_break = responseA1PolicyManagement413_description.indexOf('\n');
if (responseA1PolicyManagement413_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-413").text("Status: 413 - " + responseA1PolicyManagement413_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-413").text("Status: 413 - " + responseA1PolicyManagement413_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-413").text("Status: 413 - " + responseA1PolicyManagement413_description.substring(0, responseA1PolicyManagement413_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-413").html(responseA1PolicyManagement413_description.substring(responseA1PolicyManagement413_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-413").text("Status: 413 - " + responseA1PolicyManagement413_description.substring(0, responseA1PolicyManagement413_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-413").html(responseA1PolicyManagement413_description.substring(responseA1PolicyManagement413_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-413" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-413" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-413-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-413-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-413-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-413-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-413" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-413-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-413-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-413" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-413-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-413');
+ $('#responses-A1PolicyManagement-updatePolicy-413-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-413');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-413-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-413-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-415"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-415" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-415"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-415" class="marked"></p>
<script>
var responseA1PolicyManagement415_description = `Unsupported Media Type`;
var responseA1PolicyManagement415_description_break = responseA1PolicyManagement415_description.indexOf('\n');
if (responseA1PolicyManagement415_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-415").text("Status: 415 - " + responseA1PolicyManagement415_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-415").text("Status: 415 - " + responseA1PolicyManagement415_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-415").text("Status: 415 - " + responseA1PolicyManagement415_description.substring(0, responseA1PolicyManagement415_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-415").html(responseA1PolicyManagement415_description.substring(responseA1PolicyManagement415_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-415").text("Status: 415 - " + responseA1PolicyManagement415_description.substring(0, responseA1PolicyManagement415_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-415").html(responseA1PolicyManagement415_description.substring(responseA1PolicyManagement415_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-415" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-415" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-415-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-415-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-415-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-415-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-415" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-415-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-415-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-415" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-415-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-415');
+ $('#responses-A1PolicyManagement-updatePolicy-415-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-415');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-415-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-415-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-423"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-423" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-423"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-423" class="marked"></p>
<script>
var responseA1PolicyManagement423_description = `Locked - HTTP Status code which can be used when the state is Locked`;
var responseA1PolicyManagement423_description_break = responseA1PolicyManagement423_description.indexOf('\n');
if (responseA1PolicyManagement423_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-423").text("Status: 423 - " + responseA1PolicyManagement423_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-423").text("Status: 423 - " + responseA1PolicyManagement423_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-423").text("Status: 423 - " + responseA1PolicyManagement423_description.substring(0, responseA1PolicyManagement423_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-423").html(responseA1PolicyManagement423_description.substring(responseA1PolicyManagement423_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-423").text("Status: 423 - " + responseA1PolicyManagement423_description.substring(0, responseA1PolicyManagement423_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-423").html(responseA1PolicyManagement423_description.substring(responseA1PolicyManagement423_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-423" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-423" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-423-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-423-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-423-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-423-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-423" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-423-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-423-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-423" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-423-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-423');
+ $('#responses-A1PolicyManagement-updatePolicy-423-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-423');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-423-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-423-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-429"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-429" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-429"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-429" class="marked"></p>
<script>
var responseA1PolicyManagement429_description = `Too Many Requests`;
var responseA1PolicyManagement429_description_break = responseA1PolicyManagement429_description.indexOf('\n');
if (responseA1PolicyManagement429_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-429" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-429" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-429-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-429-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-429-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-429-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-429" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-429-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-429-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-429" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-429-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-429');
+ $('#responses-A1PolicyManagement-updatePolicy-429-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-429');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-429-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-429-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-500"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-500" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-500"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-500" class="marked"></p>
<script>
var responseA1PolicyManagement500_description = `Internal Server Error`;
var responseA1PolicyManagement500_description_break = responseA1PolicyManagement500_description.indexOf('\n');
if (responseA1PolicyManagement500_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-500" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-500" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-500-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-500-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-500-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-500-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-500" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-500-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-500-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-500" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-500-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-500');
+ $('#responses-A1PolicyManagement-updatePolicy-500-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-500');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-500-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-500-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-502"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-502" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-502"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-502" class="marked"></p>
<script>
var responseA1PolicyManagement502_description = `Bad Gateway`;
var responseA1PolicyManagement502_description_break = responseA1PolicyManagement502_description.indexOf('\n');
if (responseA1PolicyManagement502_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-502" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-502" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-502-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-502-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-502-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-502-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-502" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-502-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-502-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-502" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-502-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-502');
+ $('#responses-A1PolicyManagement-updatePolicy-502-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-502');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-502-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-502-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-503"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-503" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-503"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-503" class="marked"></p>
<script>
var responseA1PolicyManagement503_description = `Service Unavailable`;
var responseA1PolicyManagement503_description_break = responseA1PolicyManagement503_description.indexOf('\n');
if (responseA1PolicyManagement503_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-503" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-503" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-503-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-503-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-503-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-503-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-503" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-503-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-503-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-503" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-503-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-503');
+ $('#responses-A1PolicyManagement-updatePolicy-503-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-503');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-503-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-503-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
- <p class="marked">Replace the current Application Configuration with a new configuration. The new configuration, if accepted, will take effect after a short delay. The new configuration must comply with the Application Configuration schema, which can be found from the the Application Documentation (Developer Guide)
+ <p class="marked">Replace the current Application Configuration with a new configuration. The new configuration, if accepted, will take effect after a short delay. The new configuration must comply with the Application Configuration schema, which can be found from the the Application Documentation (Developer Guide)
</p>
<p></p>
<br />
<div class="tab-pane active" id="examples-ServiceRegistryAndSupervision-keepAliveService-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X PUT \
-H "Accept: application/json,application/problem+json" \
- -H "Content-Type: application/json" \
- "https://example.com/a1-policy-management/v1/services/{serviceId}/keepalive" \
- -d ''
+ "https://example.com/a1-policy-management/v1/services/{serviceId}/keepalive"
</code></pre>
</div>
<div class="tab-pane" id="examples-ServiceRegistryAndSupervision-keepAliveService-0-java">
ServiceRegistryAndSupervisionApi apiInstance = new ServiceRegistryAndSupervisionApi();
String serviceId = serviceId_example; // String |
String accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
- String body = body_example; // String |
try {
- Object result = apiInstance.keepAliveService(serviceId, accept, body);
+ Object result = apiInstance.keepAliveService(serviceId, accept);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ServiceRegistryAndSupervisionApi#keepAliveService");
final String serviceId = new String(); // String |
final String accept = new String(); // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
-final String body = new String(); // String |
try {
- final result = await api_instance.keepAliveService(serviceId, accept, body);
+ final result = await api_instance.keepAliveService(serviceId, accept);
print(result);
} catch (e) {
print('Exception when calling DefaultApi->keepAliveService: $e\n');
ServiceRegistryAndSupervisionApi apiInstance = new ServiceRegistryAndSupervisionApi();
String serviceId = serviceId_example; // String |
String accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
- String body = body_example; // String |
try {
- Object result = apiInstance.keepAliveService(serviceId, accept, body);
+ Object result = apiInstance.keepAliveService(serviceId, accept);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ServiceRegistryAndSupervisionApi#keepAliveService");
ServiceRegistryAndSupervisionApi *apiInstance = [[ServiceRegistryAndSupervisionApi alloc] init];
String *serviceId = serviceId_example; // (default to null)
String *accept = application/json; // Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. (optional) (default to null)
-String *body = body_example; // (optional)
// Heartbeat message from a service (keepAliveService)
[apiInstance keepAliveServiceWith:serviceId
accept:accept
- body:body
completionHandler: ^(Object output, NSError* error) {
if (output) {
NSLog(@"%@", output);
var api = new OnapCcsdkA1PolicyManagementApi.ServiceRegistryAndSupervisionApi()
var serviceId = serviceId_example; // {String}
var opts = {
- 'accept': application/json, // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
- 'body': body_example // {String}
+ 'accept': application/json // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
};
var callback = function(error, data, response) {
var apiInstance = new ServiceRegistryAndSupervisionApi();
var serviceId = serviceId_example; // String | (default to null)
var accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. (optional) (default to null)
- var body = body_example; // String | (optional)
try {
// Heartbeat message from a service (keepAliveService)
- Object result = apiInstance.keepAliveService(serviceId, accept, body);
+ Object result = apiInstance.keepAliveService(serviceId, accept);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling ServiceRegistryAndSupervisionApi.keepAliveService: " + e.Message );
$api_instance = new OpenAPITools\Client\Api\ServiceRegistryAndSupervisionApi();
$serviceId = serviceId_example; // String |
$accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
-$body = body_example; // String |
try {
- $result = $api_instance->keepAliveService($serviceId, $accept, $body);
+ $result = $api_instance->keepAliveService($serviceId, $accept);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ServiceRegistryAndSupervisionApi->keepAliveService: ', $e->getMessage(), PHP_EOL;
my $api_instance = WWW::OPenAPIClient::ServiceRegistryAndSupervisionApi->new();
my $serviceId = serviceId_example; # String |
my $accept = application/json; # String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
-my $body = WWW::OPenAPIClient::Object::String->new(); # String |
eval {
- my $result = $api_instance->keepAliveService(serviceId => $serviceId, accept => $accept, body => $body);
+ my $result = $api_instance->keepAliveService(serviceId => $serviceId, accept => $accept);
print Dumper($result);
};
if ($@) {
api_instance = openapi_client.ServiceRegistryAndSupervisionApi()
serviceId = serviceId_example # String | (default to null)
accept = application/json # String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. (optional) (default to null)
-body = body_example # String | (optional)
try:
# Heartbeat message from a service (keepAliveService)
- api_response = api_instance.keep_alive_service(serviceId, accept=accept, body=body)
+ api_response = api_instance.keep_alive_service(serviceId, accept=accept)
pprint(api_response)
except ApiException as e:
print("Exception when calling ServiceRegistryAndSupervisionApi->keepAliveService: %s\n" % e)</code></pre>
pub fn main() {
let serviceId = serviceId_example; // String
let accept = application/json; // String
- let body = body_example; // String
let mut context = ServiceRegistryAndSupervisionApi::Context::default();
- let result = client.keepAliveService(serviceId, accept, body, &context).wait();
+ let result = client.keepAliveService(serviceId, accept, &context).wait();
println!("{:?}", result);
}
</table>
- <div class="methodsubtabletitle">Body parameters</div>
- <table id="methodsubtable">
- <tr>
- <th width="150px">Name</th>
- <th>Description</th>
- </tr>
- <tr><td style="width:150px;">body </td>
-<td>
-<p class="marked"></p>
-<script>
-$(document).ready(function() {
- var schemaWrapper = {
- "content" : {
- "application/json" : {
- "schema" : {
- "type" : "string"
- }
- }
- },
- "required" : false
-};
-
- var schema = findNode('schema',schemaWrapper).schema;
- if (!schema) {
- schema = schemaWrapper.schema;
- }
- if (schema.$ref != null) {
- schema = defsParser.$refs.get(schema.$ref);
- } else if (schema.items != null && schema.items.$ref != null) {
- schema.items = defsParser.$refs.get(schema.items.$ref);
- } else {
- schemaWrapper.definitions = Object.assign({}, defs);
- $RefParser.dereference(schemaWrapper).catch(function(err) {
- console.log(err);
- });
- }
-
- var view = new JSONSchemaView(schema,2,{isBodyParam: true});
- var result = $('#d2e199_keepAliveService_body');
- result.empty();
- result.append(view.render());
-});
-</script>
-<div id="d2e199_keepAliveService_body"></div>
-</td>
-</tr>
-
- </table>
--- /dev/null
+# OpenAPI JSON
+This is a OpenAPI JSON built by the [openapi-generator](https://github.com/openapitools/openapi-generator) project.
\ No newline at end of file
--- /dev/null
+# OpenAPI JSON
+This is a OpenAPI JSON built by the [openapi-generator](https://github.com/openapitools/openapi-generator) project.
\ No newline at end of file
"email" : "discuss-list@onap.com",
"url" : "https://www.onap.org/"
},
- "description" : "<h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides a REST API for managing A1 policies. <br/>This document describes the latest API set to perform tasks for: </p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring and maintaining consistency of the SMO view of A1 Policies and the Near-RT RICs</li><li>Maintaining a view of each Near-RT RIC's supported A1 Policy Types</li><li>Supervision of registered services (rApps). When a registered service is unavailable, its policies are removed.</li></ul><h2>APIs provided or defined by the service</h2> <p>Note: parts of this API are strongly based on extracts of the O-RAN Alliance R1 Interface specification for A1 Policy Management, and those parts should be considered '� O-RAN ALLIANCE - All rights reserved.'</p> <h3>A1 Policy Management</h3> <p>This is the latest API for managing A1 Policies. This API is partially compliant with O-RAN Alliance R1 Interface specifications for A1 Policy Management:</p><ul><li>A1 Policy retrieval, creation, modification and deletion.</li><li>Retrieval of supported A1 Policy Types for a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management of configuration</h3><p>API for updating and retrieval of the component configuration. Note that there other ways to maintain the configuration.</p><h3>Service Callbacks</h3><p>These are endpoints that are invoked by this service. The callbacks are registered in this service at service registration.</p><h3>NearRT-RIC Repository (Older version)</h3> <p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy is targeted towards one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision of the A1 Policy Management Service.</p><h3>Service Registry and Supervision</h3> <p>API used for registering services/clients/rApps. Each A1 Policy can be tagged with an owner. If the owner service is registered, then the service can be optionally monitored by a heart-beat supervision mechanism, and if the registered service becomes unavailable, then it is removed and all its A1 Policies are deleted. Note that services do not need to be registered to create A1 Policies, but unregistered services are not supervised. This is a feature that is optional to use.</p>",
+ "description" : "<h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides a REST API for managing A1 policies. <br/>This document describes the latest API set to perform tasks for: </p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring and maintaining consistency of the SMO view of A1 Policies and the Near-RT RICs</li><li>Maintaining a view of each Near-RT RIC's supported A1 Policy Types</li><li>Supervision of registered services (rApps). When a registered service is unavailable, its policies are removed.</li></ul><h2>APIs provided or defined by the service</h2> <p>Note: parts of this API are strongly based on extracts of the O-RAN Alliance R1 Interface specification for A1 Policy Management, and those parts should be considered '© O-RAN ALLIANCE - All rights reserved.'</p> <h3>A1 Policy Management</h3> <p>This is the latest API for managing A1 Policies. This API is partially compliant with O-RAN Alliance R1 Interface specifications for A1 Policy Management:</p><ul><li>A1 Policy retrieval, creation, modification and deletion.</li><li>Retrieval of supported A1 Policy Types for a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management of configuration</h3><p>API for updating and retrieval of the component configuration. Note that there other ways to maintain the configuration.</p><h3>Service Callbacks</h3><p>These are endpoints that are invoked by this service. The callbacks are registered in this service at service registration.</p><h3>NearRT-RIC Repository (Older version)</h3> <p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy is targeted towards one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision of the A1 Policy Management Service.</p><h3>Service Registry and Supervision</h3> <p>API used for registering services/clients/rApps. Each A1 Policy can be tagged with an owner. If the owner service is registered, then the service can be optionally monitored by a heart-beat supervision mechanism, and if the registered service becomes unavailable, then it is removed and all its A1 Policies are deleted. Note that services do not need to be registered to create A1 Policies, but unregistered services are not supervised. This is a feature that is optional to use.</p>",
"license" : {
"name" : "Copyright (C) 2024 - 2025 OpenInfra Foundation Europe. Licensed under the Apache 2 License.",
"url" : "http://www.apache.org/licenses/LICENSE-2.0"
"schema" : {
"nullable" : false,
"type" : "string"
- },
- "style" : "simple"
+ }
}, {
"description" : "Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.",
- "explode" : false,
"in" : "header",
"name" : "Accept",
- "required" : false,
"schema" : {
"example" : "application/json",
"type" : "string"
- },
- "style" : "simple"
+ }
} ],
"responses" : {
"200" : {
"style" : "form"
}, {
"description" : "Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.",
- "explode" : false,
"in" : "header",
"name" : "Accept",
- "required" : false,
"schema" : {
"example" : "application/json",
"type" : "string"
- },
- "style" : "simple"
+ }
} ],
"responses" : {
"200" : {
"style" : "form"
}, {
"description" : "Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.",
- "explode" : false,
"in" : "header",
"name" : "Accept",
- "required" : false,
"schema" : {
"example" : "application/json",
"type" : "string"
- },
- "style" : "simple"
+ }
} ],
"responses" : {
"200" : {
"style" : "simple"
}, {
"description" : "Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.",
- "explode" : false,
"in" : "header",
"name" : "Accept",
- "required" : false,
"schema" : {
"example" : "application/json",
"type" : "string"
- },
- "style" : "simple"
+ }
} ],
"responses" : {
"200" : {
"style" : "simple"
}, {
"description" : "Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.",
- "explode" : false,
"in" : "header",
"name" : "Accept",
- "required" : false,
"schema" : {
"example" : "application/json",
"type" : "string"
- },
- "style" : "simple"
+ }
} ],
"responses" : {
"204" : {
"style" : "simple"
}, {
"description" : "Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.",
- "explode" : false,
"in" : "header",
"name" : "Accept",
- "required" : false,
"schema" : {
"example" : "application/json",
"type" : "string"
- },
- "style" : "simple"
+ }
} ],
"responses" : {
"200" : {
},
"put" : {
"description" : "Update an existing A1 Policy instance's policy data using its policy ID.",
- "operationId" : "putPolicy",
+ "operationId" : "updatePolicy",
"parameters" : [ {
- "explode" : false,
"in" : "path",
"name" : "policyId",
"required" : true,
"schema" : {
"type" : "string"
- },
- "style" : "simple"
+ }
} ],
"requestBody" : {
"content" : {
"description" : "Service Unavailable"
}
},
- "summary" : "Update an A1 Policy's policy data (putPolicy)",
+ "summary" : "Update an A1 Policy's policy data (updatePolicy)",
"tags" : [ "A1 Policy Management" ]
}
},
"style" : "simple"
}, {
"description" : "Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.",
- "explode" : false,
"in" : "header",
"name" : "Accept",
- "required" : false,
"schema" : {
"example" : "application/json",
"type" : "string"
- },
- "style" : "simple"
+ }
} ],
"responses" : {
"200" : {
"/policies" : {
"get" : {
"description" : "Returns a collection of A1 Policy Instance IDs for policies that match given search criteria. If several query parameters are defined, the policies matching all conditions are returned.\n",
- "operationId" : "getAllPolicies",
+ "operationId" : "getPolicyIds",
"parameters" : [ {
"description" : "Select policies with a given A1 Policy Type ID.",
"explode" : true,
"style" : "form"
}, {
"description" : "Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.",
- "explode" : false,
"in" : "header",
"name" : "Accept",
- "required" : false,
"schema" : {
"example" : "application/json",
"type" : "string"
- },
- "style" : "simple"
+ }
} ],
"responses" : {
"200" : {
"description" : "Service Unavailable"
}
},
- "summary" : "Query for A1 Policy instances (getAllPolicies)",
+ "summary" : "Query for A1 Policy instances (getPolicyIds)",
"tags" : [ "A1 Policy Management" ]
},
"post" : {
"headers" : {
"Location" : {
"description" : "Contains the URI of the newly created A1 Policy Instances. This URI includes the A1 Policy Instance ID for the newly created policy instance.\n",
- "explode" : false,
"required" : true,
"schema" : {
"type" : "string"
- },
- "style" : "simple"
+ }
},
"Content-Type" : {
"description" : "Media Type of the response",
- "explode" : false,
"schema" : {
"example" : "application/json",
"type" : "string"
- },
- "style" : "simple"
+ }
}
}
},
"tags" : [ "Configuration" ]
},
"put" : {
- "description" : "Replace the current Application Configuration with a new configuration. The new configuration, if accepted, will take effect after a short delay. The new configuration must comply with the Application Configuration schema, which can be found from the the Application Documentation (Developer Guide) \n",
+ "description" : "Replace the current Application Configuration with a new configuration. The new configuration, if accepted, will take effect after a short delay. The new configuration must comply with the Application Configuration schema, which can be found from the the Application Documentation (Developer Guide)\n",
"operationId" : "putConfiguration",
"requestBody" : {
"content" : {
"style" : "simple"
}, {
"description" : "Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.",
- "explode" : false,
"in" : "header",
"name" : "Accept",
- "required" : false,
"schema" : {
"example" : "application/json",
"type" : "string"
- },
- "style" : "simple"
+ }
} ],
- "requestBody" : {
- "content" : {
- "application/json" : {
- "schema" : {
- "type" : "string"
- }
- }
- },
- "required" : false
- },
"responses" : {
"200" : {
"content" : {
"style" : "form"
}, {
"description" : "Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.",
- "explode" : false,
"in" : "header",
"name" : "Accept",
- "required" : false,
"schema" : {
"example" : "application/json",
"type" : "string"
- },
- "style" : "simple"
+ }
} ],
"responses" : {
"200" : {
"style" : "simple"
}, {
"description" : "Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.",
- "explode" : false,
"in" : "header",
"name" : "Accept",
- "required" : false,
"schema" : {
"example" : "application/json",
"type" : "string"
- },
- "style" : "simple"
+ }
} ],
"responses" : {
"204" : {
},
"components" : {
"examples" : {
- "ServiceStatusList" : {
- "description" : "List of service information",
- "value" : {
- "serviceList" : [ {
- "callbackUrl" : "http://callback.url",
- "serviceId" : "serviceId1",
- "keepAliveIntervalSeconds" : 0,
- "timeSinceLastActivitySeconds" : 6
- }, {
- "callbackUrl" : "http://callback.url",
- "serviceId" : "serviceId2",
- "keepAliveIntervalSeconds" : 500,
- "timeSinceLastActivitySeconds" : 401
- } ]
- }
- },
"StatusInfo" : {
"value" : {
"status" : "success"
} ]
}
},
- "PolicyObject" : {
- "value" : {
- "scope" : {
- "ueId" : {
- "guRanUeId" : {
- "globalGnbId" : {
- "plmnId" : {
- "mcc" : "123",
- "mnc" : "45"
- },
- "gnbId" : {
- "gnbIdLength" : 24,
- "gnbIdValue" : 12345678
- }
- },
- "RanUeId" : "a31c510b20e64a74"
- }
- },
- "groupId" : {
- "spId" : 123
- },
- "qosId" : {
- "5qI" : 1
- },
- "cellId" : {
- "plmnId" : {
- "mcc" : "123",
- "mnc" : "45"
- },
- "cId" : {
- "ncI" : 123
- }
- }
- },
- "qosObjectives" : {
- "gfbr" : 100,
- "mfbr" : 200,
- "priorityLevel" : 3,
- "pdb" : 50
- }
- }
- },
"PolicyTypeInformation" : {
"value" : [ {
"policyTypeId" : "STD_QOS2_0.1.0",
}
}
}
+ },
+ "PolicyObject" : {
+ "value" : {
+ "scope" : {
+ "ueId" : {
+ "guRanUeId" : {
+ "globalGnbId" : {
+ "plmnId" : {
+ "mcc" : "123",
+ "mnc" : "45"
+ },
+ "gnbId" : {
+ "gnbIdLength" : 24,
+ "gnbIdValue" : 12345678
+ }
+ },
+ "RanUeId" : "a31c510b20e64a74"
+ }
+ },
+ "groupId" : {
+ "spId" : 123
+ },
+ "qosId" : {
+ "5qI" : 1
+ },
+ "cellId" : {
+ "plmnId" : {
+ "mcc" : "123",
+ "mnc" : "45"
+ },
+ "cId" : {
+ "ncI" : 123
+ }
+ }
+ },
+ "qosObjectives" : {
+ "gfbr" : 100,
+ "mfbr" : 200,
+ "priorityLevel" : 3,
+ "pdb" : 50
+ }
+ }
+ },
+ "ServiceStatusList" : {
+ "description" : "List of service information",
+ "value" : {
+ "serviceList" : [ {
+ "callbackUrl" : "http://callback.url",
+ "serviceId" : "serviceId1",
+ "keepAliveIntervalSeconds" : 0,
+ "timeSinceLastActivitySeconds" : 6
+ }, {
+ "callbackUrl" : "http://callback.url",
+ "serviceId" : "serviceId2",
+ "keepAliveIntervalSeconds" : 500,
+ "timeSinceLastActivitySeconds" : 401
+ } ]
+ }
}
},
"responses" : {
+ "404" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Not Found"
+ },
"400" : {
"content" : {
"application/problem+json" : {
},
"description" : "Forbidden"
},
- "404" : {
+ "406" : {
"content" : {
"application/problem+json" : {
"schema" : {
}
}
},
- "description" : "Not Found"
+ "description" : "Not Acceptable"
},
- "405" : {
+ "429" : {
"content" : {
"application/problem+json" : {
"schema" : {
}
}
},
- "description" : "Method Not Allowed"
+ "description" : "Too Many Requests"
},
- "406" : {
+ "500" : {
"content" : {
"application/problem+json" : {
"schema" : {
}
}
},
- "description" : "Not Acceptable"
+ "description" : "Internal Server Error"
},
- "409" : {
+ "502" : {
"content" : {
"application/problem+json" : {
"schema" : {
}
}
},
- "description" : "Conflict"
+ "description" : "Bad Gateway"
},
- "411" : {
+ "503" : {
"content" : {
"application/problem+json" : {
"schema" : {
}
}
},
- "description" : "Length Required"
+ "description" : "Service Unavailable"
},
- "413" : {
+ "411" : {
"content" : {
"application/problem+json" : {
"schema" : {
}
}
},
- "description" : "Payload Too Large"
+ "description" : "Length Required"
},
- "415" : {
+ "413" : {
"content" : {
"application/problem+json" : {
"schema" : {
}
}
},
- "description" : "Unsupported Media Type"
+ "description" : "Payload Too Large"
},
- "429" : {
+ "415" : {
"content" : {
"application/problem+json" : {
"schema" : {
}
}
},
- "description" : "Too Many Requests"
+ "description" : "Unsupported Media Type"
},
- "500" : {
+ "Locked" : {
"content" : {
"application/problem+json" : {
+ "example" : {
+ "status" : 423,
+ "title" : "Locked",
+ "detail" : "State is Locked in the provided request."
+ },
"schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
+ "$ref" : "#/components/schemas/ErrorInformation"
}
}
},
- "description" : "Internal Server Error"
+ "description" : "Locked - HTTP Status code which can be used when the state is Locked"
},
- "502" : {
+ "405" : {
"content" : {
"application/problem+json" : {
"schema" : {
}
}
},
- "description" : "Bad Gateway"
+ "description" : "Method Not Allowed"
},
- "503" : {
+ "409" : {
"content" : {
"application/problem+json" : {
"schema" : {
}
}
},
- "description" : "Service Unavailable"
- },
- "Locked" : {
- "content" : {
- "application/problem+json" : {
- "example" : {
- "status" : 423,
- "title" : "Locked",
- "detail" : "State is Locked in the provided request."
- },
- "schema" : {
- "$ref" : "#/components/schemas/ErrorInformation"
- }
- }
- },
- "description" : "Locked - HTTP Status code which can be used when the state is Locked"
+ "description" : "Conflict"
}
},
"schemas" : {
- "PolicyTypeInformation" : {
- "description" : "A data tuple to indicate that an identified A1 Policy Type is supported at an identified Near-RT RIC.",
- "example" : {
- "policyTypeId" : "STD_QOS2_0.1.0",
- "nearRtRicId" : "ric_g3_2"
- },
+ "StatusInfo" : {
"properties" : {
- "policyTypeId" : {
- "description" : "A1 Policy Type identifier",
+ "status" : {
+ "description" : "Status text",
"type" : "string"
- },
- "nearRtRicId" : {
- "$ref" : "#/components/schemas/NearRtRicId"
}
},
- "required" : [ "nearRtRicId", "policyTypeId" ],
"type" : "object"
},
- "PolicyObjectInformation" : {
- "description" : "Information to create an A1 Policy Instance",
+ "ProblemDetails" : {
+ "description" : "Object to carry details about a problem in an HTTP response according to IETF RFC 7807",
"properties" : {
- "nearRtRicId" : {
- "description" : "Identity of the target Near-RT RIC",
- "example" : "Near-RT-Ric-ID1",
+ "type" : {
+ "description" : "URI reference according to IETF RFC 3986 that identifies the problem type",
"type" : "string"
},
- "transient" : {
- "default" : false,
- "description" : "If true, the policy is automatically deleted if the targeted Near-RT RIC restarts or recovers. If false, the A1 Policy Instance remains, and is re-pushed to the targeted Near-RT RIC after a restart or recovery. If false, the A1 Policy Instance is maintained and must be deleted separately in the event of Near-RT RIC restart or recovery. Default is false.\n",
- "nullable" : false,
- "type" : "boolean"
- },
- "policyId" : {
- "description" : "An optional identity to be used for the new A1 Policy Instance. If this value is present, it must be unique. If not present the new A1 Policy Instance will be assigned a newly generated unique ID, and the new ID can be extracted from the 'Location' header in the response.\n",
- "example" : "POLICY-ID1",
+ "title" : {
+ "description" : "Human-readable summary of the problem type",
"type" : "string"
},
- "serviceId" : {
- "default" : "",
- "description" : "the identity of the service owning the policy. This can be used to group the policies (it is possible to get all policies associated to a service). Note that the service does not need to be registered. If the service is registered, the newly created A1 Policy Instance will be subject to the same supervision rules as the the service's other policies.",
- "example" : "rApp 1",
- "type" : "string"
+ "status" : {
+ "description" : "HTTP status code",
+ "type" : "number"
},
- "policyObject" : {
- "$ref" : "#/components/schemas/PolicyObject"
+ "detail" : {
+ "description" : "Human-readable explanation",
+ "type" : "string"
},
- "policyTypeId" : {
- "description" : "A1 Policy Type identity",
- "example" : "ORAN_QOS_1.0.0 '(typeName_SemVersion)'",
+ "instance" : {
+ "description" : "URI reference that identifies the specific occurrence of the problem",
"type" : "string"
}
},
- "required" : [ "nearRtRicId", "policyObject", "policyTypeId" ],
"type" : "object"
},
- "ErrorInformation" : {
- "description" : "Problem as defined in https://tools.ietf.org/html/rfc7807",
+ "RicInfo" : {
+ "description" : "Information for a Near-RT RIC",
"properties" : {
- "detail" : {
- "description" : "A human-readable explanation specific to this occurrence of the problem.",
- "example" : "Policy type not found",
+ "ricId" : {
+ "description" : "Identity of the Near-RT RIC",
"type" : "string"
},
- "title" : {
- "description" : "A specific error name",
- "example" : "Not Found",
+ "managedElementIds" : {
+ "description" : "Identities for managed entities",
+ "items" : {
+ "description" : "Identity for a managed entity",
+ "type" : "string"
+ },
+ "type" : "array"
+ },
+ "state" : {
+ "description" : "Represents the state of a Near-RT RIC",
+ "enum" : [ "UNAVAILABLE", "AVAILABLE", "SYNCHRONIZING", "CONSISTENCY_CHECK" ],
"type" : "string"
},
- "status" : {
- "description" : "The HTTP status code generated by the origin server for this occurrence of the problem.\n",
- "example" : 404,
- "format" : "int32",
- "type" : "integer"
+ "policyTypeIds" : {
+ "description" : "Supported A1 Policy Types",
+ "items" : {
+ "description" : "Supported A1 Policy Type ID",
+ "type" : "string"
+ },
+ "type" : "array"
}
},
"type" : "object"
},
- "PolicyObject" : {
- "description" : "Policy Object is a JSON representation policy data for an A1 Policy Instance. The schema for this policy data is defined in the corresponding A1 Policy Type. \n",
+ "RicInfoList" : {
+ "description" : "Collection of Near-RT RIC information objects",
+ "properties" : {
+ "rics" : {
+ "description" : "List of Near-RT RIC information objects",
+ "items" : {
+ "$ref" : "#/components/schemas/RicInfo"
+ },
+ "type" : "array"
+ }
+ },
"type" : "object"
},
+ "PolicyTypeInformation" : {
+ "description" : "A data tuple to indicate that an identified A1 Policy Type is supported at an identified Near-RT RIC.",
+ "example" : {
+ "policyTypeId" : "STD_QOS2_0.1.0",
+ "nearRtRicId" : "ric_g3_2"
+ },
+ "properties" : {
+ "policyTypeId" : {
+ "description" : "A1 Policy Type identifier",
+ "type" : "string"
+ },
+ "nearRtRicId" : {
+ "$ref" : "#/components/schemas/NearRtRicId"
+ }
+ },
+ "required" : [ "nearRtRicId", "policyTypeId" ],
+ "type" : "object"
+ },
+ "NearRtRicId" : {
+ "description" : "Identity of the Near-RT RIC",
+ "type" : "string"
+ },
"PolicyTypeObject" : {
"description" : "An A1 Policy Type, as defined in O-RAN Alliance A1TD",
"example" : {
"description" : "A schema to define the contents of the status information for A1 Policy Instances. Status schemas are Policy Type specific. All status information for all A1 Policy Instances of an A1 Policy Type should comply with the type's status schema.\n",
"type" : "object"
},
- "PolicyStatusObject" : {
- "description" : "A generic policy status object that can be used to transport any policy status. Additionally, a schema for policy status can be defined in the corresponding A1 Policy Type.\n",
- "type" : "object"
- },
- "void" : {
- "description" : "Void/empty",
+ "PolicyObject" : {
+ "description" : "Policy Object is a JSON representation policy data for an A1 Policy Instance. The schema for this policy data is defined in the corresponding A1 Policy Type.\n",
"type" : "object"
},
- "StatusInfo" : {
+ "ErrorInformation" : {
+ "description" : "Problem as defined in https://tools.ietf.org/html/rfc7807",
"properties" : {
- "status" : {
- "description" : "Status text",
+ "detail" : {
+ "description" : "A human-readable explanation specific to this occurrence of the problem.",
+ "example" : "Policy type not found",
+ "type" : "string"
+ },
+ "title" : {
+ "description" : "A specific error name",
+ "example" : "Not Found",
"type" : "string"
+ },
+ "status" : {
+ "description" : "The HTTP status code generated by the origin server for this occurrence of the problem.\n",
+ "example" : 404,
+ "format" : "int32",
+ "type" : "integer"
}
},
"type" : "object"
},
- "RicInfo" : {
- "description" : "Information for a Near-RT RIC",
+ "PolicyStatusObject" : {
+ "description" : "A generic policy status object that can be used to transport any policy status. Additionally, a schema for policy status can be defined in the corresponding A1 Policy Type.\n",
+ "type" : "object"
+ },
+ "PolicyInformation" : {
+ "description" : "Information tuple for a single A1 Policy Instance. Contains the A1 Policy Instance ID, and the ID of the Near-RT RIC where the policy is created.\n",
"properties" : {
- "ricId" : {
- "description" : "Identity of the Near-RT RIC",
- "type" : "string"
- },
- "managedElementIds" : {
- "description" : "Identities for managed entities",
- "items" : {
- "description" : "Identity for a managed entity",
- "type" : "string"
- },
- "type" : "array"
- },
- "state" : {
- "description" : "Represents the state of a Near-RT RIC",
- "enum" : [ "UNAVAILABLE", "AVAILABLE", "SYNCHRONIZING", "CONSISTENCY_CHECK" ],
+ "policyId" : {
+ "description" : "Identity of the A1 Policy Instance",
"type" : "string"
},
- "policyTypeIds" : {
- "description" : "Supported A1 Policy Types",
- "items" : {
- "description" : "Supported A1 Policy Type ID",
- "type" : "string"
- },
- "type" : "array"
+ "nearRtRicId" : {
+ "$ref" : "#/components/schemas/NearRtRicId"
}
},
+ "required" : [ "nearRtRicId", "policyId" ],
"type" : "object"
},
- "ServiceRegistrationInfo" : {
- "description" : "Information for a service to be registered",
+ "PolicyObjectInformation" : {
+ "description" : "Information to create an A1 Policy Instance",
"properties" : {
- "callbackUrl" : {
- "description" : "Callback URL for notifying of Near-RT RIC state changes",
+ "nearRtRicId" : {
+ "description" : "Identity of the target Near-RT RIC",
+ "example" : "Near-RT-Ric-ID1",
+ "type" : "string"
+ },
+ "transient" : {
+ "default" : false,
+ "description" : "If true, the policy is automatically deleted if the targeted Near-RT RIC restarts or recovers. If false, the A1 Policy Instance remains, and is re-pushed to the targeted Near-RT RIC after a restart or recovery. If false, the A1 Policy Instance is maintained and must be deleted separately in the event of Near-RT RIC restart or recovery. Default is false.\n",
+ "nullable" : false,
+ "type" : "boolean"
+ },
+ "policyId" : {
+ "description" : "An optional identity to be used for the new A1 Policy Instance. If this value is present, it must be unique. If not present the new A1 Policy Instance will be assigned a newly generated unique ID, and the new ID can be extracted from the 'Location' header in the response.\n",
+ "example" : "POLICY-ID1",
"type" : "string"
},
"serviceId" : {
- "description" : "Identity of the service",
+ "default" : "",
+ "description" : "the identity of the service owning the policy. This can be used to group the policies (it is possible to get all policies associated to a service). Note that the service does not need to be registered. If the service is registered, the newly created A1 Policy Instance will be subject to the same supervision rules as the the service's other policies.",
+ "example" : "rApp 1",
"type" : "string"
},
- "keepAliveIntervalSeconds" : {
- "description" : "Keep alive interval for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.\n",
- "format" : "int64",
- "type" : "integer"
+ "policyObject" : {
+ "$ref" : "#/components/schemas/PolicyObject"
+ },
+ "policyTypeId" : {
+ "description" : "A1 Policy Type identity",
+ "example" : "ORAN_QOS_1.0.0 '(typeName_SemVersion)'",
+ "type" : "string"
+ }
+ },
+ "required" : [ "nearRtRicId", "policyObject", "policyTypeId" ],
+ "type" : "object"
+ },
+ "void" : {
+ "description" : "Void/empty",
+ "type" : "object"
+ },
+ "ServiceStatusList" : {
+ "properties" : {
+ "serviceList" : {
+ "description" : "List of Service Status objects, describing a collection of registered services.",
+ "items" : {
+ "$ref" : "#/components/schemas/ServiceStatus"
+ },
+ "type" : "array"
}
},
- "required" : [ "serviceId" ],
"type" : "object"
},
"ServiceStatus" : {
},
"type" : "object"
},
- "RicInfoList" : {
- "description" : "Collection of Near-RT RIC information objects",
- "properties" : {
- "rics" : {
- "description" : "List of Near-RT RIC information objects",
- "items" : {
- "$ref" : "#/components/schemas/RicInfo"
- },
- "type" : "array"
- }
- },
- "type" : "object"
- },
- "NearRtRicId" : {
- "description" : "Identity of the Near-RT RIC",
- "type" : "string"
- },
- "PolicyInformation" : {
- "description" : "Information tuple for a single A1 Policy Instance. Contains the A1 Policy Instance ID, and the ID of the Near-RT RIC where the policy is created.\n",
+ "ServiceRegistrationInfo" : {
+ "description" : "Information for a service to be registered",
"properties" : {
- "policyId" : {
- "description" : "Identity of the A1 Policy Instance",
+ "callbackUrl" : {
+ "description" : "Callback URL for notifying of Near-RT RIC state changes",
"type" : "string"
},
- "nearRtRicId" : {
- "$ref" : "#/components/schemas/NearRtRicId"
- }
- },
- "required" : [ "nearRtRicId", "policyId" ],
- "type" : "object"
- },
- "ServiceStatusList" : {
- "properties" : {
- "serviceList" : {
- "description" : "List of Service Status objects, describing a collection of registered services.",
- "items" : {
- "$ref" : "#/components/schemas/ServiceStatus"
- },
- "type" : "array"
+ "serviceId" : {
+ "description" : "Identity of the service",
+ "type" : "string"
+ },
+ "keepAliveIntervalSeconds" : {
+ "description" : "Keep alive interval for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.\n",
+ "format" : "int64",
+ "type" : "integer"
}
},
+ "required" : [ "serviceId" ],
"type" : "object"
},
"ServiceCallbackInfo" : {
},
"required" : [ "eventType", "ricId" ],
"type" : "object"
- },
- "ProblemDetails" : {
- "description" : "Object to carry details about a problem in an HTTP response according to IETF RFC 7807",
- "properties" : {
- "type" : {
- "description" : "URI reference according to IETF RFC 3986 that identifies the problem type",
- "type" : "string"
- },
- "title" : {
- "description" : "Human-readable summary of the problem type",
- "type" : "string"
- },
- "status" : {
- "description" : "HTTP status code",
- "type" : "number"
- },
- "detail" : {
- "description" : "Human-readable explanation",
- "type" : "string"
- },
- "instance" : {
- "description" : "URI reference that identifies the specific occurrence of the problem",
- "type" : "string"
- }
- },
- "type" : "object"
}
}
}
"email" : "discuss-list@onap.com",
"url" : "https://www.onap.org/"
},
- "description" : "<h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides a REST API for managing A1 policies. <br/>This document describes the latest API set to perform tasks for: </p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring and maintaining consistency of the SMO view of A1 Policies and the Near-RT RICs</li><li>Maintaining a view of each Near-RT RIC's supported A1 Policy Types</li><li>Supervision of registered services (rApps). When a registered service is unavailable, its policies are removed.</li></ul><h2>APIs provided or defined by the service</h2> <p>Note: parts of this API are strongly based on extracts of the O-RAN Alliance R1 Interface specification for A1 Policy Management, and those parts should be considered '� O-RAN ALLIANCE - All rights reserved.'</p> <h3>A1 Policy Management</h3> <p>This is the latest API for managing A1 Policies. This API is partially compliant with O-RAN Alliance R1 Interface specifications for A1 Policy Management:</p><ul><li>A1 Policy retrieval, creation, modification and deletion.</li><li>Retrieval of supported A1 Policy Types for a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management of configuration</h3><p>API for updating and retrieval of the component configuration. Note that there other ways to maintain the configuration.</p><h3>Service Callbacks</h3><p>These are endpoints that are invoked by this service. The callbacks are registered in this service at service registration.</p><h3>NearRT-RIC Repository (Older version)</h3> <p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy is targeted towards one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision of the A1 Policy Management Service.</p><h3>Service Registry and Supervision</h3> <p>API used for registering services/clients/rApps. Each A1 Policy can be tagged with an owner. If the owner service is registered, then the service can be optionally monitored by a heart-beat supervision mechanism, and if the registered service becomes unavailable, then it is removed and all its A1 Policies are deleted. Note that services do not need to be registered to create A1 Policies, but unregistered services are not supervised. This is a feature that is optional to use.</p>",
+ "description" : "<h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides a REST API for managing A1 policies. <br/>This document describes the latest API set to perform tasks for: </p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring and maintaining consistency of the SMO view of A1 Policies and the Near-RT RICs</li><li>Maintaining a view of each Near-RT RIC's supported A1 Policy Types</li><li>Supervision of registered services (rApps). When a registered service is unavailable, its policies are removed.</li></ul><h2>APIs provided or defined by the service</h2> <p>Note: parts of this API are strongly based on extracts of the O-RAN Alliance R1 Interface specification for A1 Policy Management, and those parts should be considered '© O-RAN ALLIANCE - All rights reserved.'</p> <h3>A1 Policy Management</h3> <p>This is the latest API for managing A1 Policies. This API is partially compliant with O-RAN Alliance R1 Interface specifications for A1 Policy Management:</p><ul><li>A1 Policy retrieval, creation, modification and deletion.</li><li>Retrieval of supported A1 Policy Types for a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management of configuration</h3><p>API for updating and retrieval of the component configuration. Note that there other ways to maintain the configuration.</p><h3>Service Callbacks</h3><p>These are endpoints that are invoked by this service. The callbacks are registered in this service at service registration.</p><h3>NearRT-RIC Repository (Older version)</h3> <p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy is targeted towards one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision of the A1 Policy Management Service.</p><h3>Service Registry and Supervision</h3> <p>API used for registering services/clients/rApps. Each A1 Policy can be tagged with an owner. If the owner service is registered, then the service can be optionally monitored by a heart-beat supervision mechanism, and if the registered service becomes unavailable, then it is removed and all its A1 Policies are deleted. Note that services do not need to be registered to create A1 Policies, but unregistered services are not supervised. This is a feature that is optional to use.</p>",
"license" : {
"name" : "Copyright (C) 2024 - 2025 OpenInfra Foundation Europe. Licensed under the Apache 2 License.",
"url" : "http://www.apache.org/licenses/LICENSE-2.0"
"schema" : {
"nullable" : false,
"type" : "string"
- },
- "style" : "simple"
+ }
}, {
"description" : "Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.",
- "explode" : false,
"in" : "header",
"name" : "Accept",
- "required" : false,
"schema" : {
"example" : "application/json",
"type" : "string"
- },
- "style" : "simple"
+ }
} ],
"responses" : {
"200" : {
"style" : "form"
}, {
"description" : "Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.",
- "explode" : false,
"in" : "header",
"name" : "Accept",
- "required" : false,
"schema" : {
"example" : "application/json",
"type" : "string"
- },
- "style" : "simple"
+ }
} ],
"responses" : {
"200" : {
"style" : "form"
}, {
"description" : "Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.",
- "explode" : false,
"in" : "header",
"name" : "Accept",
- "required" : false,
"schema" : {
"example" : "application/json",
"type" : "string"
- },
- "style" : "simple"
+ }
} ],
"responses" : {
"200" : {
"style" : "simple"
}, {
"description" : "Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.",
- "explode" : false,
"in" : "header",
"name" : "Accept",
- "required" : false,
"schema" : {
"example" : "application/json",
"type" : "string"
- },
- "style" : "simple"
+ }
} ],
"responses" : {
"200" : {
"style" : "simple"
}, {
"description" : "Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.",
- "explode" : false,
"in" : "header",
"name" : "Accept",
- "required" : false,
"schema" : {
"example" : "application/json",
"type" : "string"
- },
- "style" : "simple"
+ }
} ],
"responses" : {
"204" : {
"style" : "simple"
}, {
"description" : "Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.",
- "explode" : false,
"in" : "header",
"name" : "Accept",
- "required" : false,
"schema" : {
"example" : "application/json",
"type" : "string"
- },
- "style" : "simple"
+ }
} ],
"responses" : {
"200" : {
},
"put" : {
"description" : "Update an existing A1 Policy instance's policy data using its policy ID.",
- "operationId" : "putPolicy",
+ "operationId" : "updatePolicy",
"parameters" : [ {
- "explode" : false,
"in" : "path",
"name" : "policyId",
"required" : true,
"schema" : {
"type" : "string"
- },
- "style" : "simple"
+ }
} ],
"requestBody" : {
"content" : {
"description" : "Service Unavailable"
}
},
- "summary" : "Update an A1 Policy's policy data (putPolicy)",
+ "summary" : "Update an A1 Policy's policy data (updatePolicy)",
"tags" : [ "A1 Policy Management" ]
}
},
"style" : "simple"
}, {
"description" : "Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.",
- "explode" : false,
"in" : "header",
"name" : "Accept",
- "required" : false,
"schema" : {
"example" : "application/json",
"type" : "string"
- },
- "style" : "simple"
+ }
} ],
"responses" : {
"200" : {
"/policies" : {
"get" : {
"description" : "Returns a collection of A1 Policy Instance IDs for policies that match given search criteria. If several query parameters are defined, the policies matching all conditions are returned.\n",
- "operationId" : "getAllPolicies",
+ "operationId" : "getPolicyIds",
"parameters" : [ {
"description" : "Select policies with a given A1 Policy Type ID.",
"explode" : true,
"style" : "form"
}, {
"description" : "Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.",
- "explode" : false,
"in" : "header",
"name" : "Accept",
- "required" : false,
"schema" : {
"example" : "application/json",
"type" : "string"
- },
- "style" : "simple"
+ }
} ],
"responses" : {
"200" : {
"description" : "Service Unavailable"
}
},
- "summary" : "Query for A1 Policy instances (getAllPolicies)",
+ "summary" : "Query for A1 Policy instances (getPolicyIds)",
"tags" : [ "A1 Policy Management" ]
},
"post" : {
"headers" : {
"Location" : {
"description" : "Contains the URI of the newly created A1 Policy Instances. This URI includes the A1 Policy Instance ID for the newly created policy instance.\n",
- "explode" : false,
"required" : true,
"schema" : {
"type" : "string"
- },
- "style" : "simple"
+ }
},
"Content-Type" : {
"description" : "Media Type of the response",
- "explode" : false,
"schema" : {
"example" : "application/json",
"type" : "string"
- },
- "style" : "simple"
+ }
}
}
},
"tags" : [ "Configuration" ]
},
"put" : {
- "description" : "Replace the current Application Configuration with a new configuration. The new configuration, if accepted, will take effect after a short delay. The new configuration must comply with the Application Configuration schema, which can be found from the the Application Documentation (Developer Guide) \n",
+ "description" : "Replace the current Application Configuration with a new configuration. The new configuration, if accepted, will take effect after a short delay. The new configuration must comply with the Application Configuration schema, which can be found from the the Application Documentation (Developer Guide)\n",
"operationId" : "putConfiguration",
"requestBody" : {
"content" : {
"style" : "simple"
}, {
"description" : "Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.",
- "explode" : false,
"in" : "header",
"name" : "Accept",
- "required" : false,
"schema" : {
"example" : "application/json",
"type" : "string"
- },
- "style" : "simple"
+ }
} ],
- "requestBody" : {
- "content" : {
- "application/json" : {
- "schema" : {
- "type" : "string"
- }
- }
- },
- "required" : false
- },
"responses" : {
"200" : {
"content" : {
"style" : "form"
}, {
"description" : "Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.",
- "explode" : false,
"in" : "header",
"name" : "Accept",
- "required" : false,
"schema" : {
"example" : "application/json",
"type" : "string"
- },
- "style" : "simple"
+ }
} ],
"responses" : {
"200" : {
"style" : "simple"
}, {
"description" : "Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.",
- "explode" : false,
"in" : "header",
"name" : "Accept",
- "required" : false,
"schema" : {
"example" : "application/json",
"type" : "string"
- },
- "style" : "simple"
+ }
} ],
"responses" : {
"204" : {
},
"components" : {
"examples" : {
- "ServiceStatusList" : {
- "description" : "List of service information",
- "value" : {
- "serviceList" : [ {
- "callbackUrl" : "http://callback.url",
- "serviceId" : "serviceId1",
- "keepAliveIntervalSeconds" : 0,
- "timeSinceLastActivitySeconds" : 6
- }, {
- "callbackUrl" : "http://callback.url",
- "serviceId" : "serviceId2",
- "keepAliveIntervalSeconds" : 500,
- "timeSinceLastActivitySeconds" : 401
- } ]
- }
- },
"StatusInfo" : {
"value" : {
"status" : "success"
} ]
}
},
- "PolicyObject" : {
- "value" : {
- "scope" : {
- "ueId" : {
- "guRanUeId" : {
- "globalGnbId" : {
- "plmnId" : {
- "mcc" : "123",
- "mnc" : "45"
- },
- "gnbId" : {
- "gnbIdLength" : 24,
- "gnbIdValue" : 12345678
- }
- },
- "RanUeId" : "a31c510b20e64a74"
- }
- },
- "groupId" : {
- "spId" : 123
- },
- "qosId" : {
- "5qI" : 1
- },
- "cellId" : {
- "plmnId" : {
- "mcc" : "123",
- "mnc" : "45"
- },
- "cId" : {
- "ncI" : 123
- }
- }
- },
- "qosObjectives" : {
- "gfbr" : 100,
- "mfbr" : 200,
- "priorityLevel" : 3,
- "pdb" : 50
- }
- }
- },
"PolicyTypeInformation" : {
"value" : [ {
"policyTypeId" : "STD_QOS2_0.1.0",
}
}
}
+ },
+ "PolicyObject" : {
+ "value" : {
+ "scope" : {
+ "ueId" : {
+ "guRanUeId" : {
+ "globalGnbId" : {
+ "plmnId" : {
+ "mcc" : "123",
+ "mnc" : "45"
+ },
+ "gnbId" : {
+ "gnbIdLength" : 24,
+ "gnbIdValue" : 12345678
+ }
+ },
+ "RanUeId" : "a31c510b20e64a74"
+ }
+ },
+ "groupId" : {
+ "spId" : 123
+ },
+ "qosId" : {
+ "5qI" : 1
+ },
+ "cellId" : {
+ "plmnId" : {
+ "mcc" : "123",
+ "mnc" : "45"
+ },
+ "cId" : {
+ "ncI" : 123
+ }
+ }
+ },
+ "qosObjectives" : {
+ "gfbr" : 100,
+ "mfbr" : 200,
+ "priorityLevel" : 3,
+ "pdb" : 50
+ }
+ }
+ },
+ "ServiceStatusList" : {
+ "description" : "List of service information",
+ "value" : {
+ "serviceList" : [ {
+ "callbackUrl" : "http://callback.url",
+ "serviceId" : "serviceId1",
+ "keepAliveIntervalSeconds" : 0,
+ "timeSinceLastActivitySeconds" : 6
+ }, {
+ "callbackUrl" : "http://callback.url",
+ "serviceId" : "serviceId2",
+ "keepAliveIntervalSeconds" : 500,
+ "timeSinceLastActivitySeconds" : 401
+ } ]
+ }
}
},
"responses" : {
+ "404" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Not Found"
+ },
"400" : {
"content" : {
"application/problem+json" : {
},
"description" : "Forbidden"
},
- "404" : {
+ "406" : {
"content" : {
"application/problem+json" : {
"schema" : {
}
}
},
- "description" : "Not Found"
+ "description" : "Not Acceptable"
},
- "405" : {
+ "429" : {
"content" : {
"application/problem+json" : {
"schema" : {
}
}
},
- "description" : "Method Not Allowed"
+ "description" : "Too Many Requests"
},
- "406" : {
+ "500" : {
"content" : {
"application/problem+json" : {
"schema" : {
}
}
},
- "description" : "Not Acceptable"
+ "description" : "Internal Server Error"
},
- "409" : {
+ "502" : {
"content" : {
"application/problem+json" : {
"schema" : {
}
}
},
- "description" : "Conflict"
+ "description" : "Bad Gateway"
},
- "411" : {
+ "503" : {
"content" : {
"application/problem+json" : {
"schema" : {
}
}
},
- "description" : "Length Required"
+ "description" : "Service Unavailable"
},
- "413" : {
+ "411" : {
"content" : {
"application/problem+json" : {
"schema" : {
}
}
},
- "description" : "Payload Too Large"
+ "description" : "Length Required"
},
- "415" : {
+ "413" : {
"content" : {
"application/problem+json" : {
"schema" : {
}
}
},
- "description" : "Unsupported Media Type"
+ "description" : "Payload Too Large"
},
- "429" : {
+ "415" : {
"content" : {
"application/problem+json" : {
"schema" : {
}
}
},
- "description" : "Too Many Requests"
+ "description" : "Unsupported Media Type"
},
- "500" : {
+ "Locked" : {
"content" : {
"application/problem+json" : {
+ "example" : {
+ "status" : 423,
+ "title" : "Locked",
+ "detail" : "State is Locked in the provided request."
+ },
"schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
+ "$ref" : "#/components/schemas/ErrorInformation"
}
}
},
- "description" : "Internal Server Error"
+ "description" : "Locked - HTTP Status code which can be used when the state is Locked"
},
- "502" : {
+ "405" : {
"content" : {
"application/problem+json" : {
"schema" : {
}
}
},
- "description" : "Bad Gateway"
+ "description" : "Method Not Allowed"
},
- "503" : {
+ "409" : {
"content" : {
"application/problem+json" : {
"schema" : {
}
}
},
- "description" : "Service Unavailable"
- },
- "Locked" : {
- "content" : {
- "application/problem+json" : {
- "example" : {
- "status" : 423,
- "title" : "Locked",
- "detail" : "State is Locked in the provided request."
- },
- "schema" : {
- "$ref" : "#/components/schemas/ErrorInformation"
- }
- }
- },
- "description" : "Locked - HTTP Status code which can be used when the state is Locked"
+ "description" : "Conflict"
}
},
"schemas" : {
- "PolicyTypeInformation" : {
- "description" : "A data tuple to indicate that an identified A1 Policy Type is supported at an identified Near-RT RIC.",
- "example" : {
- "policyTypeId" : "STD_QOS2_0.1.0",
- "nearRtRicId" : "ric_g3_2"
- },
+ "StatusInfo" : {
"properties" : {
- "policyTypeId" : {
- "description" : "A1 Policy Type identifier",
+ "status" : {
+ "description" : "Status text",
"type" : "string"
- },
- "nearRtRicId" : {
- "$ref" : "#/components/schemas/NearRtRicId"
}
},
- "required" : [ "nearRtRicId", "policyTypeId" ],
"type" : "object"
},
- "PolicyObjectInformation" : {
- "description" : "Information to create an A1 Policy Instance",
+ "ProblemDetails" : {
+ "description" : "Object to carry details about a problem in an HTTP response according to IETF RFC 7807",
"properties" : {
- "nearRtRicId" : {
- "description" : "Identity of the target Near-RT RIC",
- "example" : "Near-RT-Ric-ID1",
+ "type" : {
+ "description" : "URI reference according to IETF RFC 3986 that identifies the problem type",
"type" : "string"
},
- "transient" : {
- "default" : false,
- "description" : "If true, the policy is automatically deleted if the targeted Near-RT RIC restarts or recovers. If false, the A1 Policy Instance remains, and is re-pushed to the targeted Near-RT RIC after a restart or recovery. If false, the A1 Policy Instance is maintained and must be deleted separately in the event of Near-RT RIC restart or recovery. Default is false.\n",
- "nullable" : false,
- "type" : "boolean"
- },
- "policyId" : {
- "description" : "An optional identity to be used for the new A1 Policy Instance. If this value is present, it must be unique. If not present the new A1 Policy Instance will be assigned a newly generated unique ID, and the new ID can be extracted from the 'Location' header in the response.\n",
- "example" : "POLICY-ID1",
+ "title" : {
+ "description" : "Human-readable summary of the problem type",
"type" : "string"
},
- "serviceId" : {
- "default" : "",
- "description" : "the identity of the service owning the policy. This can be used to group the policies (it is possible to get all policies associated to a service). Note that the service does not need to be registered. If the service is registered, the newly created A1 Policy Instance will be subject to the same supervision rules as the the service's other policies.",
- "example" : "rApp 1",
- "type" : "string"
+ "status" : {
+ "description" : "HTTP status code",
+ "type" : "number"
},
- "policyObject" : {
- "$ref" : "#/components/schemas/PolicyObject"
+ "detail" : {
+ "description" : "Human-readable explanation",
+ "type" : "string"
},
- "policyTypeId" : {
- "description" : "A1 Policy Type identity",
- "example" : "ORAN_QOS_1.0.0 '(typeName_SemVersion)'",
+ "instance" : {
+ "description" : "URI reference that identifies the specific occurrence of the problem",
"type" : "string"
}
},
- "required" : [ "nearRtRicId", "policyObject", "policyTypeId" ],
"type" : "object"
},
- "ErrorInformation" : {
- "description" : "Problem as defined in https://tools.ietf.org/html/rfc7807",
+ "RicInfo" : {
+ "description" : "Information for a Near-RT RIC",
"properties" : {
- "detail" : {
- "description" : "A human-readable explanation specific to this occurrence of the problem.",
- "example" : "Policy type not found",
+ "ricId" : {
+ "description" : "Identity of the Near-RT RIC",
"type" : "string"
},
- "title" : {
- "description" : "A specific error name",
- "example" : "Not Found",
+ "managedElementIds" : {
+ "description" : "Identities for managed entities",
+ "items" : {
+ "description" : "Identity for a managed entity",
+ "type" : "string"
+ },
+ "type" : "array"
+ },
+ "state" : {
+ "description" : "Represents the state of a Near-RT RIC",
+ "enum" : [ "UNAVAILABLE", "AVAILABLE", "SYNCHRONIZING", "CONSISTENCY_CHECK" ],
"type" : "string"
},
- "status" : {
- "description" : "The HTTP status code generated by the origin server for this occurrence of the problem.\n",
- "example" : 404,
- "format" : "int32",
- "type" : "integer"
+ "policyTypeIds" : {
+ "description" : "Supported A1 Policy Types",
+ "items" : {
+ "description" : "Supported A1 Policy Type ID",
+ "type" : "string"
+ },
+ "type" : "array"
}
},
"type" : "object"
},
- "PolicyObject" : {
- "description" : "Policy Object is a JSON representation policy data for an A1 Policy Instance. The schema for this policy data is defined in the corresponding A1 Policy Type. \n",
+ "RicInfoList" : {
+ "description" : "Collection of Near-RT RIC information objects",
+ "properties" : {
+ "rics" : {
+ "description" : "List of Near-RT RIC information objects",
+ "items" : {
+ "$ref" : "#/components/schemas/RicInfo"
+ },
+ "type" : "array"
+ }
+ },
"type" : "object"
},
+ "PolicyTypeInformation" : {
+ "description" : "A data tuple to indicate that an identified A1 Policy Type is supported at an identified Near-RT RIC.",
+ "example" : {
+ "policyTypeId" : "STD_QOS2_0.1.0",
+ "nearRtRicId" : "ric_g3_2"
+ },
+ "properties" : {
+ "policyTypeId" : {
+ "description" : "A1 Policy Type identifier",
+ "type" : "string"
+ },
+ "nearRtRicId" : {
+ "$ref" : "#/components/schemas/NearRtRicId"
+ }
+ },
+ "required" : [ "nearRtRicId", "policyTypeId" ],
+ "type" : "object"
+ },
+ "NearRtRicId" : {
+ "description" : "Identity of the Near-RT RIC",
+ "type" : "string"
+ },
"PolicyTypeObject" : {
"description" : "An A1 Policy Type, as defined in O-RAN Alliance A1TD",
"example" : {
"description" : "A schema to define the contents of the status information for A1 Policy Instances. Status schemas are Policy Type specific. All status information for all A1 Policy Instances of an A1 Policy Type should comply with the type's status schema.\n",
"type" : "object"
},
- "PolicyStatusObject" : {
- "description" : "A generic policy status object that can be used to transport any policy status. Additionally, a schema for policy status can be defined in the corresponding A1 Policy Type.\n",
- "type" : "object"
- },
- "void" : {
- "description" : "Void/empty",
+ "PolicyObject" : {
+ "description" : "Policy Object is a JSON representation policy data for an A1 Policy Instance. The schema for this policy data is defined in the corresponding A1 Policy Type.\n",
"type" : "object"
},
- "StatusInfo" : {
+ "ErrorInformation" : {
+ "description" : "Problem as defined in https://tools.ietf.org/html/rfc7807",
"properties" : {
- "status" : {
- "description" : "Status text",
+ "detail" : {
+ "description" : "A human-readable explanation specific to this occurrence of the problem.",
+ "example" : "Policy type not found",
+ "type" : "string"
+ },
+ "title" : {
+ "description" : "A specific error name",
+ "example" : "Not Found",
"type" : "string"
+ },
+ "status" : {
+ "description" : "The HTTP status code generated by the origin server for this occurrence of the problem.\n",
+ "example" : 404,
+ "format" : "int32",
+ "type" : "integer"
}
},
"type" : "object"
},
- "RicInfo" : {
- "description" : "Information for a Near-RT RIC",
+ "PolicyStatusObject" : {
+ "description" : "A generic policy status object that can be used to transport any policy status. Additionally, a schema for policy status can be defined in the corresponding A1 Policy Type.\n",
+ "type" : "object"
+ },
+ "PolicyInformation" : {
+ "description" : "Information tuple for a single A1 Policy Instance. Contains the A1 Policy Instance ID, and the ID of the Near-RT RIC where the policy is created.\n",
"properties" : {
- "ricId" : {
- "description" : "Identity of the Near-RT RIC",
- "type" : "string"
- },
- "managedElementIds" : {
- "description" : "Identities for managed entities",
- "items" : {
- "description" : "Identity for a managed entity",
- "type" : "string"
- },
- "type" : "array"
- },
- "state" : {
- "description" : "Represents the state of a Near-RT RIC",
- "enum" : [ "UNAVAILABLE", "AVAILABLE", "SYNCHRONIZING", "CONSISTENCY_CHECK" ],
+ "policyId" : {
+ "description" : "Identity of the A1 Policy Instance",
"type" : "string"
},
- "policyTypeIds" : {
- "description" : "Supported A1 Policy Types",
- "items" : {
- "description" : "Supported A1 Policy Type ID",
- "type" : "string"
- },
- "type" : "array"
+ "nearRtRicId" : {
+ "$ref" : "#/components/schemas/NearRtRicId"
}
},
+ "required" : [ "nearRtRicId", "policyId" ],
"type" : "object"
},
- "ServiceRegistrationInfo" : {
- "description" : "Information for a service to be registered",
+ "PolicyObjectInformation" : {
+ "description" : "Information to create an A1 Policy Instance",
"properties" : {
- "callbackUrl" : {
- "description" : "Callback URL for notifying of Near-RT RIC state changes",
+ "nearRtRicId" : {
+ "description" : "Identity of the target Near-RT RIC",
+ "example" : "Near-RT-Ric-ID1",
+ "type" : "string"
+ },
+ "transient" : {
+ "default" : false,
+ "description" : "If true, the policy is automatically deleted if the targeted Near-RT RIC restarts or recovers. If false, the A1 Policy Instance remains, and is re-pushed to the targeted Near-RT RIC after a restart or recovery. If false, the A1 Policy Instance is maintained and must be deleted separately in the event of Near-RT RIC restart or recovery. Default is false.\n",
+ "nullable" : false,
+ "type" : "boolean"
+ },
+ "policyId" : {
+ "description" : "An optional identity to be used for the new A1 Policy Instance. If this value is present, it must be unique. If not present the new A1 Policy Instance will be assigned a newly generated unique ID, and the new ID can be extracted from the 'Location' header in the response.\n",
+ "example" : "POLICY-ID1",
"type" : "string"
},
"serviceId" : {
- "description" : "Identity of the service",
+ "default" : "",
+ "description" : "the identity of the service owning the policy. This can be used to group the policies (it is possible to get all policies associated to a service). Note that the service does not need to be registered. If the service is registered, the newly created A1 Policy Instance will be subject to the same supervision rules as the the service's other policies.",
+ "example" : "rApp 1",
"type" : "string"
},
- "keepAliveIntervalSeconds" : {
- "description" : "Keep alive interval for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.\n",
- "format" : "int64",
- "type" : "integer"
+ "policyObject" : {
+ "$ref" : "#/components/schemas/PolicyObject"
+ },
+ "policyTypeId" : {
+ "description" : "A1 Policy Type identity",
+ "example" : "ORAN_QOS_1.0.0 '(typeName_SemVersion)'",
+ "type" : "string"
+ }
+ },
+ "required" : [ "nearRtRicId", "policyObject", "policyTypeId" ],
+ "type" : "object"
+ },
+ "void" : {
+ "description" : "Void/empty",
+ "type" : "object"
+ },
+ "ServiceStatusList" : {
+ "properties" : {
+ "serviceList" : {
+ "description" : "List of Service Status objects, describing a collection of registered services.",
+ "items" : {
+ "$ref" : "#/components/schemas/ServiceStatus"
+ },
+ "type" : "array"
}
},
- "required" : [ "serviceId" ],
"type" : "object"
},
"ServiceStatus" : {
},
"type" : "object"
},
- "RicInfoList" : {
- "description" : "Collection of Near-RT RIC information objects",
- "properties" : {
- "rics" : {
- "description" : "List of Near-RT RIC information objects",
- "items" : {
- "$ref" : "#/components/schemas/RicInfo"
- },
- "type" : "array"
- }
- },
- "type" : "object"
- },
- "NearRtRicId" : {
- "description" : "Identity of the Near-RT RIC",
- "type" : "string"
- },
- "PolicyInformation" : {
- "description" : "Information tuple for a single A1 Policy Instance. Contains the A1 Policy Instance ID, and the ID of the Near-RT RIC where the policy is created.\n",
+ "ServiceRegistrationInfo" : {
+ "description" : "Information for a service to be registered",
"properties" : {
- "policyId" : {
- "description" : "Identity of the A1 Policy Instance",
+ "callbackUrl" : {
+ "description" : "Callback URL for notifying of Near-RT RIC state changes",
"type" : "string"
},
- "nearRtRicId" : {
- "$ref" : "#/components/schemas/NearRtRicId"
- }
- },
- "required" : [ "nearRtRicId", "policyId" ],
- "type" : "object"
- },
- "ServiceStatusList" : {
- "properties" : {
- "serviceList" : {
- "description" : "List of Service Status objects, describing a collection of registered services.",
- "items" : {
- "$ref" : "#/components/schemas/ServiceStatus"
- },
- "type" : "array"
+ "serviceId" : {
+ "description" : "Identity of the service",
+ "type" : "string"
+ },
+ "keepAliveIntervalSeconds" : {
+ "description" : "Keep alive interval for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.\n",
+ "format" : "int64",
+ "type" : "integer"
}
},
+ "required" : [ "serviceId" ],
"type" : "object"
},
"ServiceCallbackInfo" : {
},
"required" : [ "eventType", "ricId" ],
"type" : "object"
- },
- "ProblemDetails" : {
- "description" : "Object to carry details about a problem in an HTTP response according to IETF RFC 7807",
- "properties" : {
- "type" : {
- "description" : "URI reference according to IETF RFC 3986 that identifies the problem type",
- "type" : "string"
- },
- "title" : {
- "description" : "Human-readable summary of the problem type",
- "type" : "string"
- },
- "status" : {
- "description" : "HTTP status code",
- "type" : "number"
- },
- "detail" : {
- "description" : "Human-readable explanation",
- "type" : "string"
- },
- "instance" : {
- "description" : "URI reference that identifies the specific occurrence of the problem",
- "type" : "string"
- }
- },
- "type" : "object"
}
}
}
openapi: 3.0.3
info:
- title: ONAP CCSDK - A1 Policy Management API
- version: 1.0.0
- x-api-id: e9776a07-0813-4fca-9801-6f892f0a7c13
- x-audience: external-public
- description: "<h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service\
- \ provides a REST API for managing A1 policies. <br/>This document describes the latest API set
- \ to perform tasks for: </p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring\
- \ and maintaining consistency of the SMO view of A1 Policies and the Near-RT RICs</li><li>Maintaining\
- \ a view of each Near-RT RIC's supported A1 Policy Types</li><li>Supervision of registered services\
- \ (rApps). When a registered service is unavailable, its policies are removed.</li></ul><h2>APIs\
- \ provided or defined by the service</h2>\
- \ <p>Note: parts of this API are strongly based on extracts of the O-RAN Alliance R1 Interface specification\
- \ for A1 Policy Management, and those parts should be considered '© O-RAN ALLIANCE - All rights reserved.'</p>\
- \ <h3>A1 Policy Management</h3>\
- \ <p>This is the latest API for managing A1 Policies. This API is partially compliant with O-RAN\
- \ Alliance R1 Interface specifications for A1 Policy Management:</p><ul><li>A1 Policy retrieval, creation,\
+ contact:
+ email: discuss-list@onap.com
+ url: https://www.onap.org/
+ description: "<h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides\
+ \ a REST API for managing A1 policies. <br/>This document describes the latest\
+ \ API set to perform tasks for: </p><ul><li>A1 Policy creation, modification\
+ \ and deletion.</li><li>Monitoring and maintaining consistency of the SMO view\
+ \ of A1 Policies and the Near-RT RICs</li><li>Maintaining a view of each Near-RT\
+ \ RIC's supported A1 Policy Types</li><li>Supervision of registered services (rApps).\
+ \ When a registered service is unavailable, its policies are removed.</li></ul><h2>APIs\
+ \ provided or defined by the service</h2> <p>Note: parts of this API are strongly\
+ \ based on extracts of the O-RAN Alliance R1 Interface specification for A1 Policy\
+ \ Management, and those parts should be considered '© O-RAN ALLIANCE - All rights\
+ \ reserved.'</p> <h3>A1 Policy Management</h3> <p>This is the latest API for managing\
+ \ A1 Policies. This API is partially compliant with O-RAN Alliance R1 Interface\
+ \ specifications for A1 Policy Management:</p><ul><li>A1 Policy retrieval, creation,\
\ modification and deletion.</li><li>Retrieval of supported A1 Policy Types for\
\ a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management\
\ of configuration</h3><p>API for updating and retrieval of the component configuration.\
\ Note that there other ways to maintain the configuration.</p><h3>Service Callbacks</h3><p>These\
\ are endpoints that are invoked by this service. The callbacks are registered\
- \ in this service at service registration.</p><h3>NearRT-RIC Repository (Older version)</h3>\
- \ <p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy\
- \ is targeted towards one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision\
- \ of the A1 Policy Management Service.</p><h3>Service Registry and Supervision</h3>\
- \ <p>API used for registering services/clients/rApps. Each A1 Policy can be tagged with an owner.\
- \ If the owner service is registered, then the service can be optionally monitored by a heart-beat supervision\
- \ mechanism, and if the registered service becomes unavailable, then it is removed and all its A1 Policies are \
- \ deleted. Note that services do not need to be registered to create A1 Policies, but unregistered \
- \ services are not supervised. This is a feature that is optional to use.</p>"
+ \ in this service at service registration.</p><h3>NearRT-RIC Repository (Older\
+ \ version)</h3> <p>This is an API that provides support for looking up a NearRT-RIC.\
+ \ Each A1 policy is targeted towards one Near-RT RIC.</p><h3>Health Check</h3><p>API\
+ \ used for supervision of the A1 Policy Management Service.</p><h3>Service Registry\
+ \ and Supervision</h3> <p>API used for registering services/clients/rApps. Each\
+ \ A1 Policy can be tagged with an owner. If the owner service is registered, then\
+ \ the service can be optionally monitored by a heart-beat supervision mechanism,\
+ \ and if the registered service becomes unavailable, then it is removed and all\
+ \ its A1 Policies are deleted. Note that services do not need to be registered\
+ \ to create A1 Policies, but unregistered services are not supervised. This\
+ \ is a feature that is optional to use.</p>"
license:
- name: Copyright (C) 2024 - 2025 OpenInfra Foundation Europe. Licensed under the Apache 2 License.
+ name: Copyright (C) 2024 - 2025 OpenInfra Foundation Europe. Licensed under the
+ Apache 2 License.
url: http://www.apache.org/licenses/LICENSE-2.0
- contact:
- url: https://www.onap.org/
- email: discuss-list@onap.com
+ title: ONAP CCSDK - A1 Policy Management API
+ version: 1.0.0
+ x-api-id: e9776a07-0813-4fca-9801-6f892f0a7c13
+ x-audience: external-public
externalDocs:
- description: 'Based on parts of O-RAN ALLIANCE specification: O-RAN.WG2.R1AP-v07.00'
- url: 'https://www.o-ran.org/specifications'
+ description: "Based on parts of O-RAN ALLIANCE specification: O-RAN.WG2.R1AP-v07.00"
+ url: https://www.o-ran.org/specifications
servers:
- - url: '{apiRoot}/a1-policy-management/v1'
- variables:
- apiRoot:
- default: 'https://example.com'
- description: 'This is the Host:Port or Address where the A1-Policy Management Service can be accessed.
- Note: This URL path format aligns with the O-RAN Alliance R1-AP specifications for A1 Policy Management'
+- url: "{apiRoot}/a1-policy-management/v1"
+ variables:
+ apiRoot:
+ default: https://example.com
+ description: "This is the Host:Port or Address where the A1-Policy Management\
+ \ Service can be accessed. Note: This URL path format aligns with the O-RAN\
+ \ Alliance R1-AP specifications for A1 Policy Management"
tags:
- - name: A1 Policy Management
- description: >
- API used to get, create, update and delete A1 Policy Instances. Also used to query A1 Policy Types.
- - name: NearRT-RIC Repository
- description: >
- API used to get information about registered Near-RT RICs.
- - name: Service Registry and Supervision
- description: >
- API used to manage registered services, and control their keep-alive status via heart-beat messages.
- - name: Health Check
- description: >
- API used to get the health status and statistics of this service.
- - name: Configuration
- description: >
- API used to create or fetch the application configuration.
+- description: |
+ API used to get, create, update and delete A1 Policy Instances. Also used to query A1 Policy Types.
+ name: A1 Policy Management
+- description: |
+ API used to get information about registered Near-RT RICs.
+ name: NearRT-RIC Repository
+- description: |
+ API used to manage registered services, and control their keep-alive status via heart-beat messages.
+ name: Service Registry and Supervision
+- description: |
+ API used to get the health status and statistics of this service.
+ name: Health Check
+- description: |
+ API used to create or fetch the application configuration.
+ name: Configuration
paths:
/status:
get:
- operationId: getStatus
description: Returns status and statistics of this service
- summary: Get Status (getStatus)
- tags:
- - Health Check
+ operationId: getStatus
responses:
"200":
content:
application/json:
- schema:
- $ref: '#/components/schemas/StatusInfo'
examples:
status_info:
$ref: '#/components/examples/StatusInfo'
+ schema:
+ $ref: '#/components/schemas/StatusInfo'
description: OK- Service is living Ok
"404":
- $ref: '#/components/responses/404'
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Found
+ summary: Get Status (getStatus)
+ tags:
+ - Health Check
/rics/{ricId}:
get:
- operationId: getRic
description: Get information about a Near-RT RIC
- summary: Get a Near-RT RIC (getRic)
- tags:
- - NearRT-RIC Repository
+ operationId: getRic
parameters:
- - description: The identity of a Near-RT RIC to get information for.
- explode: true
- in: path
- name: ricId
- required: true
- schema:
- type: string
- nullable: false
- - description: Specifies the content type that the client expects to receive in response to the request.
- Only application/json is allowed.
- in: header
- name: Accept
- schema:
- type: string
- example: application/json
+ - description: The identity of a Near-RT RIC to get information for.
+ explode: true
+ in: path
+ name: ricId
+ required: true
+ schema:
+ nullable: false
+ type: string
+ - description: Specifies the content type that the client expects to receive
+ in response to the request. Only application/json is allowed.
+ in: header
+ name: Accept
+ schema:
+ example: application/json
+ type: string
responses:
"200":
content:
application/json:
- schema:
- $ref: '#/components/schemas/RicInfo'
examples:
ric_info:
$ref: '#/components/examples/RicInfo'
+ schema:
+ $ref: '#/components/schemas/RicInfo'
description: OK - Near-RT RIC is found OK
"404":
- $ref: '#/components/responses/404'
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Found
+ summary: Get a Near-RT RIC (getRic)
+ tags:
+ - NearRT-RIC Repository
/rics:
get:
- operationId: getRics
description: Get all Near-RT RICs that supports a given A1 Policy Type ID
- summary: Get Near-RT RICs for A1 Policy Type (getRics)
- tags:
- - NearRT-RIC Repository
+ operationId: getRics
parameters:
- - description: >
- The identity of an A1 Policy Type. If given, all Near-RT RICs supporting
- the A1 Policy Type are returned.
- explode: true
- in: query
- name: policyTypeId
- required: false
- schema:
- type: string
- style: form
- - description: Specifies the content type that the client expects to receive in response to the request.
- Only application/json is allowed.
- in: header
- name: Accept
- schema:
- type: string
- example: application/json
+ - description: |
+ The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned.
+ explode: true
+ in: query
+ name: policyTypeId
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: Specifies the content type that the client expects to receive
+ in response to the request. Only application/json is allowed.
+ in: header
+ name: Accept
+ schema:
+ example: application/json
+ type: string
responses:
"200":
content:
application/json:
- schema:
- $ref: '#/components/schemas/RicInfoList'
examples:
ric_info_list:
$ref: '#/components/examples/RicInfoList'
+ schema:
+ $ref: '#/components/schemas/RicInfoList'
description: OK
"404":
- $ref: '#/components/responses/404'
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Found
+ summary: Get Near-RT RICs for A1 Policy Type (getRics)
+ tags:
+ - NearRT-RIC Repository
/policy-types:
get:
description: Query A1 Policy Type identities using query parameters
operationId: getPolicyTypes
- summary: Get A1 Policy Types (getPolicyTypes)
- tags:
- - A1 Policy Management
parameters:
- - description: Select types for the given Near-RT RIC identity.
- explode: true
- in: query
- name: nearRtRicId
- required: false
- schema:
- type: string
- style: form
- - description: Select types compatible with the given type name (type identity has the format 'typename_version')
- explode: true
- in: query
- name: typeName
- required: false
- schema:
- type: string
- style: form
- - description: >
- Select types that are compatible with the given version. This
- parameter is only applicable in conjunction with typeName. As an example
- version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching
- types will be returned sorted in ascending order.
- explode: true
- in: query
- name: compatibleWithVersion
- required: false
- schema:
- type: string
- style: form
- - description: Specifies the content type that the client expects to receive in response to the request.
- Only application/json is allowed.
- in: header
- name: Accept
- schema:
- type: string
- example: application/json
+ - description: Select types for the given Near-RT RIC identity.
+ explode: true
+ in: query
+ name: nearRtRicId
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: Select types compatible with the given type name (type identity
+ has the format 'typename_version')
+ explode: true
+ in: query
+ name: typeName
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: |
+ Select types that are compatible with the given version. This parameter is only applicable in conjunction with typeName. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order.
+ explode: true
+ in: query
+ name: compatibleWithVersion
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: Specifies the content type that the client expects to receive
+ in response to the request. Only application/json is allowed.
+ in: header
+ name: Accept
+ schema:
+ example: application/json
+ type: string
responses:
- '200':
+ "200":
content:
application/json:
+ examples:
+ PolicyTypeInformation:
+ $ref: '#/components/examples/PolicyTypeInformation'
schema:
items:
$ref: '#/components/schemas/PolicyTypeInformation'
type: array
- examples:
- PolicyTypeInformation:
- $ref: '#/components/examples/PolicyTypeInformation'
description: OK - Policy Type IDs found Ok
- '400':
- $ref: '#/components/responses/400'
- '401':
- $ref: '#/components/responses/401'
- '403':
- $ref: '#/components/responses/403'
- '404':
- $ref: '#/components/responses/404'
- '406':
- $ref: '#/components/responses/406'
- '429':
- $ref: '#/components/responses/429'
- '500':
- $ref: '#/components/responses/500'
- '502':
- $ref: '#/components/responses/502'
- '503':
- $ref: '#/components/responses/503'
+ "400":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Bad Request
+ "401":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Unauthorized
+ "403":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Forbidden
+ "404":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Found
+ "406":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Acceptable
+ "429":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Too Many Requests
+ "500":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Internal Server Error
+ "502":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Bad Gateway
+ "503":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Service Unavailable
+ summary: Get A1 Policy Types (getPolicyTypes)
+ tags:
+ - A1 Policy Management
/policy-types/{policyTypeId}:
get:
- operationId: getPolicyTypeDefinition
description: Get an A1 Policy Type definition using its policy type ID
- summary: Get an A1 Policy Type definition (getPolicyTypeDefinition)
- tags:
- - A1 Policy Management
+ operationId: getPolicyTypeDefinition
parameters:
- - explode: false
- in: path
- name: policyTypeId
- required: true
- schema:
- type: string
- style: simple
- - description: Specifies the content type that the client expects to receive in response to the request.
- Only application/json is allowed.
- in: header
- name: Accept
- schema:
- type: string
- example: application/json
+ - explode: false
+ in: path
+ name: policyTypeId
+ required: true
+ schema:
+ type: string
+ style: simple
+ - description: Specifies the content type that the client expects to receive
+ in response to the request. Only application/json is allowed.
+ in: header
+ name: Accept
+ schema:
+ example: application/json
+ type: string
responses:
- '200':
+ "200":
content:
application/json:
- schema:
- $ref: '#/components/schemas/PolicyTypeObject'
examples:
PolicyTypeObject:
$ref: '#/components/examples/PolicyTypeObject'
+ schema:
+ $ref: '#/components/schemas/PolicyTypeObject'
description: OK - details and schema of the requested A1 Policy Type
- '400':
- $ref: '#/components/responses/400'
- '401':
- $ref: '#/components/responses/401'
- '403':
- $ref: '#/components/responses/403'
- '404':
- $ref: '#/components/responses/404'
- '406':
- $ref: '#/components/responses/406'
- '429':
- $ref: '#/components/responses/429'
- '500':
- $ref: '#/components/responses/500'
- '502':
- $ref: '#/components/responses/502'
- '503':
- $ref: '#/components/responses/503'
- /policies/{policyId}:
- put:
- operationId: putPolicy
- description: Update an existing A1 Policy instance's policy data using its policy ID.
- summary: Update an A1 Policy's policy data (putPolicy)
+ "400":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Bad Request
+ "401":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Unauthorized
+ "403":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Forbidden
+ "404":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Found
+ "406":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Acceptable
+ "429":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Too Many Requests
+ "500":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Internal Server Error
+ "502":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Bad Gateway
+ "503":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Service Unavailable
+ summary: Get an A1 Policy Type definition (getPolicyTypeDefinition)
tags:
- - A1 Policy Management
+ - A1 Policy Management
+ /policies/{policyId}:
+ delete:
+ description: Delete an existing A1 Policy instance using its policy ID.
+ operationId: deletePolicy
parameters:
- - name: policyId
- in: path
- required: true
- schema:
- type: string
- requestBody:
+ - explode: false
+ in: path
+ name: policyId
required: true
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/PolicyObject'
- examples:
- policyObject:
- $ref: '#/components/examples/PolicyObject'
+ schema:
+ type: string
+ style: simple
+ - description: Specifies the content type that the client expects to receive
+ in response to the request. Only application/json is allowed.
+ in: header
+ name: Accept
+ schema:
+ example: application/json
+ type: string
responses:
- '200':
+ "204":
+ description: No Content
+ "400":
content:
- application/json:
+ application/problem+json:
schema:
- $ref: '#/components/schemas/PolicyObject'
- description: OK - Policy updated
- '400':
- $ref: '#/components/responses/400'
- '401':
- $ref: '#/components/responses/401'
- '403':
- $ref: '#/components/responses/403'
- '404':
- $ref: '#/components/responses/404'
- '406':
- $ref: '#/components/responses/406'
- '411':
- $ref: '#/components/responses/411'
- '413':
- $ref: '#/components/responses/413'
- '415':
- $ref: '#/components/responses/415'
- '423':
- $ref: '#/components/responses/Locked'
- '429':
- $ref: '#/components/responses/429'
- '500':
- $ref: '#/components/responses/500'
- '502':
- $ref: '#/components/responses/502'
- '503':
- $ref: '#/components/responses/503'
- delete:
- operationId: deletePolicy
- description: Delete an existing A1 Policy instance using its policy ID.
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Bad Request
+ "401":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Unauthorized
+ "403":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Forbidden
+ "404":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Found
+ "405":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Method Not Allowed
+ "406":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Acceptable
+ "423":
+ content:
+ application/problem+json:
+ example:
+ status: 423
+ title: Locked
+ detail: State is Locked in the provided request.
+ schema:
+ $ref: '#/components/schemas/ErrorInformation'
+ description: Locked - HTTP Status code which can be used when the state
+ is Locked
+ "429":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Too Many Requests
+ "500":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Internal Server Error
+ "502":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Bad Gateway
+ "503":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Service Unavailable
summary: Delete an A1 Policy instance (deletePolicy)
tags:
- - A1 Policy Management
- parameters:
- - explode: false
- in: path
- name: policyId
- required: true
- schema:
- type: string
- style: simple
- - description: Specifies the content type that the client expects to receive in response to the request.
- Only application/json is allowed.
- in: header
- name: Accept
- schema:
- type: string
- example: application/json
- responses:
- '204':
- description: 'No Content'
- '400':
- $ref: '#/components/responses/400'
- '401':
- $ref: '#/components/responses/401'
- '403':
- $ref: '#/components/responses/403'
- '404':
- $ref: '#/components/responses/404'
- '405':
- $ref: '#/components/responses/405'
- '406':
- $ref: '#/components/responses/406'
- '423':
- $ref: '#/components/responses/Locked'
- '429':
- $ref: '#/components/responses/429'
- '500':
- $ref: '#/components/responses/500'
- '502':
- $ref: '#/components/responses/502'
- '503':
- $ref: '#/components/responses/503'
+ - A1 Policy Management
get:
- operationId: getPolicy
description: Get an A1 Policy instance's policy data using its policy ID
- summary: Get an A1 Policy's policy data (getPolicy)
- tags:
- - A1 Policy Management
+ operationId: getPolicy
parameters:
- - explode: false
- in: path
- name: policyId
- required: true
- schema:
- type: string
- style: simple
- - description: Specifies the content type that the client expects to receive in response to the request.
- Only application/json is allowed.
- in: header
- name: Accept
- schema:
- type: string
- example: application/json
+ - explode: false
+ in: path
+ name: policyId
+ required: true
+ schema:
+ type: string
+ style: simple
+ - description: Specifies the content type that the client expects to receive
+ in response to the request. Only application/json is allowed.
+ in: header
+ name: Accept
+ schema:
+ example: application/json
+ type: string
responses:
- '200':
+ "200":
content:
application/json:
- schema:
- $ref: '#/components/schemas/PolicyObject'
examples:
policyObject:
$ref: '#/components/examples/PolicyObject'
+ schema:
+ $ref: '#/components/schemas/PolicyObject'
description: OK - Policy found
- '400':
- $ref: '#/components/responses/400'
- '401':
- $ref: '#/components/responses/401'
- '403':
- $ref: '#/components/responses/403'
- '404':
- $ref: '#/components/responses/404'
- '406':
- $ref: '#/components/responses/406'
- '429':
- $ref: '#/components/responses/429'
- '500':
- $ref: '#/components/responses/500'
- '502':
- $ref: '#/components/responses/502'
- '503':
- $ref: '#/components/responses/503'
- /policies/{policyId}/status:
- get:
- operationId: getPolicyStatus
- description: Retrieve the status information for an A1 Policy Instance using its policy ID.
- summary: Get an A1 Policy Instance's status (getPolicyStatus)
- tags:
- - A1 Policy Management
- parameters:
- - explode: false
- in: path
- name: policyId
- required: true
- schema:
- type: string
- style: simple
- - description: Specifies the content type that the client expects to receive in response to the request.
- Only application/json is allowed.
- in: header
- name: Accept
- schema:
- type: string
- example: application/json
- responses:
- '200':
+ "400":
content:
- application/json:
+ application/problem+json:
schema:
- $ref: '#/components/schemas/PolicyStatusObject'
- description: OK
- '400':
- $ref: '#/components/responses/400'
- '401':
- $ref: '#/components/responses/401'
- '403':
- $ref: '#/components/responses/403'
- '404':
- $ref: '#/components/responses/404'
- '406':
- $ref: '#/components/responses/406'
- '429':
- $ref: '#/components/responses/429'
- '500':
- $ref: '#/components/responses/500'
- '502':
- $ref: '#/components/responses/502'
- '503':
- $ref: '#/components/responses/503'
- /policies:
- get:
- operationId: getAllPolicies
- description: >
- Returns a collection of A1 Policy Instance IDs for policies that match given search criteria.
- If several query parameters are defined, the policies matching all conditions are returned.
- summary: Query for A1 Policy instances (getAllPolicies)
- tags:
- - A1 Policy Management
- parameters:
- - description: Select policies with a given A1 Policy Type ID.
- explode: true
- in: query
- name: policyTypeId
- required: false
- schema:
- type: string
- style: form
- - description: Select policies for a given Near-RT RIC identity.
- explode: true
- in: query
- name: nearRtRicId
- required: false
- schema:
- type: string
- style: form
- - description: Select policies owned by a given service (registered or unregistered).
- explode: true
- in: query
- name: serviceId
- required: false
- schema:
- type: string
- style: form
- - description: Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
- explode: true
- in: query
- name: typeName
- required: false
- schema:
- type: string
- style: form
- - description: Specifies the content type that the client expects to receive in response to the request.
- Only application/json is allowed.
- in: header
- name: Accept
- schema:
- type: string
- example: application/json
- responses:
- '200':
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Bad Request
+ "401":
content:
- application/json:
+ application/problem+json:
schema:
- items:
- $ref: '#/components/schemas/PolicyInformation'
- type: array
- description: OK - Policy identities
- '400':
- $ref: '#/components/responses/400'
- '401':
- $ref: '#/components/responses/401'
- '403':
- $ref: '#/components/responses/403'
- '404':
- $ref: '#/components/responses/404'
- '406':
- $ref: '#/components/responses/406'
- '429':
- $ref: '#/components/responses/429'
- '500':
- $ref: '#/components/responses/500'
- '502':
- $ref: '#/components/responses/502'
- '503':
- $ref: '#/components/responses/503'
- post:
- operationId: createPolicy
- description: Create an A1 Policy Instance
- summary: Create an A1 Policy Instance (createPolicy)
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Unauthorized
+ "403":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Forbidden
+ "404":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Found
+ "406":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Acceptable
+ "429":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Too Many Requests
+ "500":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Internal Server Error
+ "502":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Bad Gateway
+ "503":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Service Unavailable
+ summary: Get an A1 Policy's policy data (getPolicy)
tags:
- - A1 Policy Management
+ - A1 Policy Management
+ put:
+ description: Update an existing A1 Policy instance's policy data using its policy
+ ID.
+ operationId: updatePolicy
+ parameters:
+ - in: path
+ name: policyId
+ required: true
+ schema:
+ type: string
requestBody:
+ content:
+ application/json:
+ examples:
+ policyObject:
+ $ref: '#/components/examples/PolicyObject'
+ schema:
+ $ref: '#/components/schemas/PolicyObject'
+ required: true
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PolicyObject'
+ description: OK - Policy updated
+ "400":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Bad Request
+ "401":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Unauthorized
+ "403":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Forbidden
+ "404":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Found
+ "406":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Acceptable
+ "411":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Length Required
+ "413":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Payload Too Large
+ "415":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Unsupported Media Type
+ "423":
+ content:
+ application/problem+json:
+ example:
+ status: 423
+ title: Locked
+ detail: State is Locked in the provided request.
+ schema:
+ $ref: '#/components/schemas/ErrorInformation'
+ description: Locked - HTTP Status code which can be used when the state
+ is Locked
+ "429":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Too Many Requests
+ "500":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Internal Server Error
+ "502":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Bad Gateway
+ "503":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Service Unavailable
+ summary: Update an A1 Policy's policy data (updatePolicy)
+ tags:
+ - A1 Policy Management
+ /policies/{policyId}/status:
+ get:
+ description: Retrieve the status information for an A1 Policy Instance using
+ its policy ID.
+ operationId: getPolicyStatus
+ parameters:
+ - explode: false
+ in: path
+ name: policyId
required: true
+ schema:
+ type: string
+ style: simple
+ - description: Specifies the content type that the client expects to receive
+ in response to the request. Only application/json is allowed.
+ in: header
+ name: Accept
+ schema:
+ example: application/json
+ type: string
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PolicyStatusObject'
+ description: OK
+ "400":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Bad Request
+ "401":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Unauthorized
+ "403":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Forbidden
+ "404":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Found
+ "406":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Acceptable
+ "429":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Too Many Requests
+ "500":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Internal Server Error
+ "502":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Bad Gateway
+ "503":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Service Unavailable
+ summary: Get an A1 Policy Instance's status (getPolicyStatus)
+ tags:
+ - A1 Policy Management
+ /policies:
+ get:
+ description: |
+ Returns a collection of A1 Policy Instance IDs for policies that match given search criteria. If several query parameters are defined, the policies matching all conditions are returned.
+ operationId: getPolicyIds
+ parameters:
+ - description: Select policies with a given A1 Policy Type ID.
+ explode: true
+ in: query
+ name: policyTypeId
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: Select policies for a given Near-RT RIC identity.
+ explode: true
+ in: query
+ name: nearRtRicId
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: Select policies owned by a given service (registered or unregistered).
+ explode: true
+ in: query
+ name: serviceId
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: Select policies of a given A1 Policy Type name (type identity
+ has the format 'typename_version').
+ explode: true
+ in: query
+ name: typeName
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: Specifies the content type that the client expects to receive
+ in response to the request. Only application/json is allowed.
+ in: header
+ name: Accept
+ schema:
+ example: application/json
+ type: string
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ items:
+ $ref: '#/components/schemas/PolicyInformation'
+ type: array
+ description: OK - Policy identities
+ "400":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Bad Request
+ "401":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Unauthorized
+ "403":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Forbidden
+ "404":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Found
+ "406":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Acceptable
+ "429":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Too Many Requests
+ "500":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Internal Server Error
+ "502":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Bad Gateway
+ "503":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Service Unavailable
+ summary: Query for A1 Policy instances (getPolicyIds)
+ tags:
+ - A1 Policy Management
+ post:
+ description: Create an A1 Policy Instance
+ operationId: createPolicy
+ requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PolicyObjectInformation'
+ required: true
responses:
- '201':
- description: 'Created'
+ "201":
content:
application/json:
schema:
$ref: '#/components/schemas/PolicyObjectInformation'
+ description: Created
headers:
Location:
- description: >
- Contains the URI of the newly created A1 Policy Instances.
- This URI includes the A1 Policy Instance ID for the newly
- created policy instance.
+ description: |
+ Contains the URI of the newly created A1 Policy Instances. This URI includes the A1 Policy Instance ID for the newly created policy instance.
required: true
schema:
type: string
Content-Type:
- description: 'Media Type of the response'
+ description: Media Type of the response
schema:
- type: string
example: application/json
-
- '400':
- $ref: '#/components/responses/400'
- '401':
- $ref: '#/components/responses/401'
- '403':
- $ref: '#/components/responses/403'
- '404':
- $ref: '#/components/responses/404'
- '405':
- $ref: '#/components/responses/405'
- '406':
- $ref: '#/components/responses/406'
- '409':
- $ref: '#/components/responses/409'
- '413':
- $ref: '#/components/responses/413'
- '415':
- $ref: '#/components/responses/415'
- '423':
- $ref: '#/components/responses/Locked'
- '429':
- $ref: '#/components/responses/429'
- '500':
- $ref: '#/components/responses/500'
- '502':
- $ref: '#/components/responses/502'
- '503':
- $ref: '#/components/responses/503'
+ type: string
+ "400":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Bad Request
+ "401":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Unauthorized
+ "403":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Forbidden
+ "404":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Found
+ "405":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Method Not Allowed
+ "406":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Acceptable
+ "409":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Conflict
+ "413":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Payload Too Large
+ "415":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Unsupported Media Type
+ "423":
+ content:
+ application/problem+json:
+ example:
+ status: 423
+ title: Locked
+ detail: State is Locked in the provided request.
+ schema:
+ $ref: '#/components/schemas/ErrorInformation'
+ description: Locked - HTTP Status code which can be used when the state
+ is Locked
+ "429":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Too Many Requests
+ "500":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Internal Server Error
+ "502":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Bad Gateway
+ "503":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Service Unavailable
+ summary: Create an A1 Policy Instance (createPolicy)
+ tags:
+ - A1 Policy Management
/configuration:
get:
- operationId: getConfiguration
description: Returns the entire contents of the Application Configuration.
- tags:
- - Configuration
- summary: Get the Application Configuration (getConfiguration)
+ operationId: getConfiguration
responses:
"200":
content:
type: string
description: OK - Application configuration received
"404":
- $ref: '#/components/responses/404'
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Found
+ summary: Get the Application Configuration (getConfiguration)
+ tags:
+ - Configuration
put:
+ description: |
+ Replace the current Application Configuration with a new configuration. The new configuration, if accepted, will take effect after a short delay. The new configuration must comply with the Application Configuration schema, which can be found from the the Application Documentation (Developer Guide)
operationId: putConfiguration
- description: >
- Replace the current Application Configuration with a new configuration.
- The new configuration, if accepted, will take effect after a short delay.
- The new configuration must comply with the Application Configuration schema,
- which can be found from the the Application Documentation (Developer Guide)
- tags:
- - Configuration
- summary: Set/Replace the Application Configuration (putConfiguration)
requestBody:
content:
application/json:
responses:
"200":
content:
- 'application/json':
+ application/json:
schema:
$ref: '#/components/schemas/void'
description: OK - Configuration updated
"400":
- $ref: '#/components/responses/400'
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Bad Request
+ summary: Set/Replace the Application Configuration (putConfiguration)
+ tags:
+ - Configuration
/services/{serviceId}/keepalive:
put:
+ description: "A registered service should invoke this operation regularly to\
+ \ indicate that it is still alive. If a registered service fails to invoke\
+ \ some operation, or this operation, before the end of a timeout period the\
+ \ service will be deregistered and all its A1 policies wil be removed and\
+ \ the service is deleted. This operation is only intended for registered services.\
+ \ (This timeout can be set or disabled when each service is initially registered).\
+ \ Unregistered services do not need to invoke this operation, since the optional\
+ \ keep-alive monitoring feature can only be enabled for registered services."
operationId: keepAliveService
- description: A registered service should invoke this operation regularly to
- indicate that it is still alive. If a registered service fails to invoke some operation,
- or this operation, before the end of a timeout period the service will be deregistered
- and all its A1 policies wil be removed and the service is deleted.
- This operation is only intended for registered services. (This timeout can be set or disabled when
- each service is initially registered). Unregistered services do not need to invoke this operation,
- since the optional keep-alive monitoring feature can only be enabled for registered services.
- summary: Heartbeat message from a service (keepAliveService)
- tags:
- - Service Registry and Supervision
parameters:
- - explode: false
- in: path
- name: serviceId
- required: true
- schema:
- type: string
- style: simple
- - description: Specifies the content type that the client expects to receive in response to the request.
- Only application/json is allowed.
- in: header
- name: Accept
- schema:
- type: string
- example: application/json
- requestBody:
- required: false
- content:
- application/json:
- schema:
- type: string
+ - explode: false
+ in: path
+ name: serviceId
+ required: true
+ schema:
+ type: string
+ style: simple
+ - description: Specifies the content type that the client expects to receive
+ in response to the request. Only application/json is allowed.
+ in: header
+ name: Accept
+ schema:
+ example: application/json
+ type: string
responses:
"200":
content:
- 'application/json':
+ application/json:
schema:
type: object
- description: OK - Service supervision timer refreshed, OK
+ description: "OK - Service supervision timer refreshed, OK"
"404":
- $ref: '#/components/responses/404'
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Found
+ summary: Heartbeat message from a service (keepAliveService)
+ tags:
+ - Service Registry and Supervision
/services:
get:
+ description: |
+ Get information about all registered services, or a single registered service. If the service ID of a registered service is included in the query, information about that service is returned. Otherwise Information about all registered is returned. This operation does not retrieve information about unregistered services.
operationId: getServices
- description: >
- Get information about all registered services, or a single registered service.
- If the service ID of a registered service is included in the query, information about that
- service is returned. Otherwise Information about all registered is returned.
- This operation does not retrieve information about unregistered services.
- summary: Get Services (getServices)
- tags:
- - Service Registry and Supervision
parameters:
- - description: The identity of the registered service
- explode: true
- in: query
- name: serviceId
- required: false
- schema:
- type: string
- style: form
- - description: Specifies the content type that the client expects to receive in response to the request.
- Only application/json is allowed.
- in: header
- name: Accept
- schema:
- type: string
- example: application/json
+ - description: The identity of the registered service
+ explode: true
+ in: query
+ name: serviceId
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: Specifies the content type that the client expects to receive
+ in response to the request. Only application/json is allowed.
+ in: header
+ name: Accept
+ schema:
+ example: application/json
+ type: string
responses:
"200":
content:
application/json:
- schema:
- $ref: '#/components/schemas/ServiceStatusList'
examples:
service_status_list:
$ref: '#/components/examples/ServiceStatusList'
+ schema:
+ $ref: '#/components/schemas/ServiceStatusList'
description: OK
"404":
- $ref: '#/components/responses/404'
- put:
- operationId: putService
- description: >
- Register a single service, or update a previous registration.
- Service registration is required to get callbacks about available NearRT RICs
- and to enable supervision of the service's active status. If a registered
- service becomes inactive, its policies can be automatically deleted.
- A1 Policy instances can also be created for unregistered services.
- If an unregistered service is later registered, the service's policies are
- retained when the service becomes registered. This feature is optional to use.
- summary: Register or update a Service (putService)
- tags:
- - Service Registry and Supervision
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ServiceRegistrationInfo'
- required: true
- responses:
- "200":
- content:
- 'application/json':
- schema:
- type: object
- description: OK - Service updated
- "201":
content:
- 'application/json':
+ application/problem+json:
schema:
- type: object
- description: Created - Service created
- "400":
- $ref: '#/components/responses/400'
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Found
+ summary: Get Services (getServices)
+ tags:
+ - Service Registry and Supervision
+ put:
callbacks:
RICStatus:
- "{$request.body#/callback_url}":
+ '{$request.body#/callback_url}':
post:
+ description: "Callouts to indicate Near-RT RIC status changes relevant\
+ \ for Services. \nThe URL invoked by this callback is provided at\
+ \ Service registration.\n"
operationId: serviceCallback
- description: |
- Callouts to indicate Near-RT RIC status changes relevant for Services.
- The URL invoked by this callback is provided at Service registration.
- summary: Callback for Near-RT RIC status (serviceCallback)
- tags:
- - Service Registry and Supervision
requestBody:
content:
application/json:
$ref: '#/components/schemas/void'
description: OK
"404":
- $ref: '#/components/responses/404'
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Found
+ summary: Callback for Near-RT RIC status (serviceCallback)
+ tags:
+ - Service Registry and Supervision
+ x-callback-request: true
+ description: |
+ Register a single service, or update a previous registration. Service registration is required to get callbacks about available NearRT RICs and to enable supervision of the service's active status. If a registered service becomes inactive, its policies can be automatically deleted. A1 Policy instances can also be created for unregistered services. If an unregistered service is later registered, the service's policies are retained when the service becomes registered. This feature is optional to use.
+ operationId: putService
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ServiceRegistrationInfo'
+ required: true
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ type: object
+ description: OK - Service updated
+ "201":
+ content:
+ application/json:
+ schema:
+ type: object
+ description: Created - Service created
+ "400":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Bad Request
+ summary: Register or update a Service (putService)
+ tags:
+ - Service Registry and Supervision
/services/{serviceId}:
delete:
+ description: |
+ Unregister a registered Service using its service ID. Only registered services can be unregistered. All A1 Policy Instances for the previously registered service will be removed.
operationId: deleteService
- description: >
- Unregister a registered Service using its service ID.
- Only registered services can be unregistered. All A1 Policy Instances
- for the previously registered service will be removed.
- tags:
- - Service Registry and Supervision
- summary: Unregister a Service (deleteService)
parameters:
- - explode: false
- in: path
- name: serviceId
- required: true
- schema:
- type: string
- style: simple
- - description: Specifies the content type that the client expects to receive in response to the request.
- Only application/json is allowed.
- in: header
- name: Accept
- schema:
- type: string
- example: application/json
+ - explode: false
+ in: path
+ name: serviceId
+ required: true
+ schema:
+ type: string
+ style: simple
+ - description: Specifies the content type that the client expects to receive
+ in response to the request. Only application/json is allowed.
+ in: header
+ name: Accept
+ schema:
+ example: application/json
+ type: string
responses:
"204":
content:
- 'application/json':
+ application/json:
schema:
type: object
description: No Content - Service unregistered
"404":
- $ref: '#/components/responses/404'
-
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Found
+ summary: Unregister a Service (deleteService)
+ tags:
+ - Service Registry and Supervision
components:
-
examples:
- ServiceStatusList:
- description: List of service information
- value:
- serviceList:
- - callbackUrl: http://callback.url
- serviceId: serviceId1
- keepAliveIntervalSeconds: 0
- timeSinceLastActivitySeconds: 6
- - callbackUrl: http://callback.url
- serviceId: serviceId2
- keepAliveIntervalSeconds: 500
- timeSinceLastActivitySeconds: 401
StatusInfo:
value:
status: success
value:
ricId: ricId1
managedElementIds:
- - "Note #1"
- - "Athlone small cells"
- - "Some optional string"
+ - "Note #1"
+ - Athlone small cells
+ - Some optional string
state: UNAVAILABLE
policyTypeIds:
- - policyTypeId1
- - policyTypeId2
+ - policyTypeId1
+ - policyTypeId2
RicInfoList:
value:
rics:
- - ricId: ricId1
- managedElementIds:
- - "Note #1"
- - "Athlone small cells"
- - "Fake Cells"
- state: UNAVAILABLE
- policyTypeIds:
- - policyTypeId1
- - policyTypeId2
- - ricId: ricId2
- managedElementIds:
- - "My test element"
- - "Another test element"
- state: UNAVAILABLE
- policyTypeIds:
- - policyTypeId3
- - policyTypeId4
- PolicyObject:
- value:
- scope:
- ueId:
- guRanUeId:
- globalGnbId:
- plmnId:
- mcc: "123"
- mnc: "45"
- gnbId:
- gnbIdLength: 24
- gnbIdValue: 12345678
- RanUeId: 'a31c510b20e64a74'
- groupId:
- spId: 123
- qosId:
- 5qI: 1
- cellId:
- plmnId:
- mcc: "123"
- mnc: "45"
- cId:
- ncI: 123
- qosObjectives:
- gfbr: 100
- mfbr: 200
- priorityLevel: 3
- pdb: 50
+ - ricId: ricId1
+ managedElementIds:
+ - "Note #1"
+ - Athlone small cells
+ - Fake Cells
+ state: UNAVAILABLE
+ policyTypeIds:
+ - policyTypeId1
+ - policyTypeId2
+ - ricId: ricId2
+ managedElementIds:
+ - My test element
+ - Another test element
+ state: UNAVAILABLE
+ policyTypeIds:
+ - policyTypeId3
+ - policyTypeId4
PolicyTypeInformation:
value:
- policyTypeId: STD_QOS2_0.1.0
PolicyTypeObject:
value:
policySchema:
- "$schema": http://json-schema.org/draft-07/schema#
+ $schema: http://json-schema.org/draft-07/schema#
title: STD_QOS_0_2_0
description: STD QOS2 policy type
type: object
type: string
additionalProperties: false
required:
- - ueId
- - qosId
+ - ueId
+ - qosId
qosObjectives:
type: object
properties:
type: number
additionalProperties: false
required:
- - priorityLevel
-
+ - priorityLevel
+ PolicyObject:
+ value:
+ scope:
+ ueId:
+ guRanUeId:
+ globalGnbId:
+ plmnId:
+ mcc: "123"
+ mnc: "45"
+ gnbId:
+ gnbIdLength: 24
+ gnbIdValue: 12345678
+ RanUeId: a31c510b20e64a74
+ groupId:
+ spId: 123
+ qosId:
+ "5qI": 1
+ cellId:
+ plmnId:
+ mcc: "123"
+ mnc: "45"
+ cId:
+ ncI: 123
+ qosObjectives:
+ gfbr: 100
+ mfbr: 200
+ priorityLevel: 3
+ pdb: 50
+ ServiceStatusList:
+ description: List of service information
+ value:
+ serviceList:
+ - callbackUrl: http://callback.url
+ serviceId: serviceId1
+ keepAliveIntervalSeconds: 0
+ timeSinceLastActivitySeconds: 6
+ - callbackUrl: http://callback.url
+ serviceId: serviceId2
+ keepAliveIntervalSeconds: 500
+ timeSinceLastActivitySeconds: 401
+ responses:
+ "404":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Found
+ "400":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Bad Request
+ "401":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Unauthorized
+ "403":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Forbidden
+ "406":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Acceptable
+ "429":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Too Many Requests
+ "500":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Internal Server Error
+ "502":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Bad Gateway
+ "503":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Service Unavailable
+ "411":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Length Required
+ "413":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Payload Too Large
+ "415":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Unsupported Media Type
+ Locked:
+ content:
+ application/problem+json:
+ example:
+ status: 423
+ title: Locked
+ detail: State is Locked in the provided request.
+ schema:
+ $ref: '#/components/schemas/ErrorInformation'
+ description: Locked - HTTP Status code which can be used when the state is Locked
+ "405":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Method Not Allowed
+ "409":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Conflict
schemas:
- PolicyTypeInformation:
- description: >-
- A data tuple to indicate that an identified A1 Policy Type is supported at an identified Near-RT RIC.
- type: object
+ StatusInfo:
+ example:
+ status: status
properties:
- policyTypeId:
- description: A1 Policy Type identifier
+ status:
+ description: Status text
type: string
- nearRtRicId:
- $ref: '#/components/schemas/NearRtRicId'
- required:
- - policyTypeId
- - nearRtRicId
- example:
- policyTypeId: STD_QOS2_0.1.0
- nearRtRicId: ric_g3_2
- PolicyObjectInformation:
- description: Information to create an A1 Policy Instance
type: object
+ ProblemDetails:
+ description: Object to carry details about a problem in an HTTP response according
+ to IETF RFC 7807
properties:
- nearRtRicId:
- description: Identity of the target Near-RT RIC
- type: string
- example:
- 'Near-RT-Ric-ID1'
- transient:
- default: false
- description: >
- If true, the policy is automatically deleted if the targeted Near-RT RIC restarts
- or recovers. If false, the A1 Policy Instance remains, and is re-pushed to the targeted
- Near-RT RIC after a restart or recovery. If false, the A1 Policy Instance is maintained and
- must be deleted separately in the event of Near-RT RIC restart or recovery. Default is false.
- nullable: false
- type: boolean
- policyId:
- description: >
- An optional identity to be used for the new A1 Policy Instance.
- If this value is present, it must be unique. If not present the new A1
- Policy Instance will be assigned a newly generated unique ID, and the
- new ID can be extracted from the 'Location' header in the response.
- type: string
- example:
- 'POLICY-ID1'
- serviceId:
- description: the identity of the service owning the policy. This can be
- used to group the policies (it is possible to get all policies associated
- to a service). Note that the service does not need to be registered.
- If the service is registered, the newly created A1 Policy Instance will be
- subject to the same supervision rules as the the service's other policies.
+ type:
+ description: URI reference according to IETF RFC 3986 that identifies the
+ problem type
type: string
- example:
- 'rApp 1'
- default: ""
- policyObject:
- $ref: '#/components/schemas/PolicyObject'
- policyTypeId:
- description: A1 Policy Type identity
+ title:
+ description: Human-readable summary of the problem type
type: string
- example: ORAN_QOS_1.0.0 '(typeName_SemVersion)'
- required:
- - nearRtRicId
- - policyObject
- - policyTypeId
- ErrorInformation:
- description: Problem as defined in https://tools.ietf.org/html/rfc7807
- properties:
+ status:
+ description: HTTP status code
+ type: number
detail:
- description: A human-readable explanation specific to this occurrence of the problem.
- example: Policy type not found
+ description: Human-readable explanation
type: string
- title:
- description: A specific error name
- type: string
- example: Not Found
- status:
- description: |
- The HTTP status code generated by the origin server for this occurrence of the problem.
- example: 404
- format: int32
- type: integer
- type: object
- PolicyObject:
- description: >
- Policy Object is a JSON representation policy data for an A1 Policy Instance.
- The schema for this policy data is defined in the corresponding A1 Policy Type.
- type: object
- PolicyTypeObject:
- description: An A1 Policy Type, as defined in O-RAN Alliance A1TD
- type: object
- properties:
- policySchema:
- $ref: '#/components/schemas/PolicySchema'
- statusSchema:
- $ref: '#/components/schemas/StatusSchema'
- required:
- - policySchema
- example:
- policySchema:
- "$schema": http://json-schema.org/draft-07/schema#
- title: STD_QOS_0_2_0
- description: Policy data schema for STD_QOS_0.2.0 A1 Policy Instances.
- type: object
- properties:
- scope:
- type: object
- properties:
- ueId:
- type: string
- qosId:
- type: string
- additionalProperties: false
- required:
- - ueId
- - qosId
- qosObjectives:
- type: object
- properties:
- priorityLevel:
- type: number
- additionalProperties: false
- required:
- - priorityLevel
- statusSchema:
- "$schema": http://json-schema.org/draft-07/schema#
- title: STD_QOS_0.2.0
- description: Status schema for STD_QOS_0.2.0 A1 Policy Instances.
- type: object
- properties:
- enforceStatus:
- type: string
- enforceReason:
- type: string
- additionalProperties: false
- required:
- - enforceStatus
- PolicySchema:
- description: >
- A schema to define the policy data contents of A1 Policy Instances.
- Policy data schemas are Policy Type specific.
- All A1 Policy Instances of an A1 Policy Type should comply with the type's policy data schema.
- type: object
- StatusSchema:
- description: >
- A schema to define the contents of the status information for A1 Policy Instances.
- Status schemas are Policy Type specific.
- All status information for all A1 Policy Instances of an A1 Policy Type should comply
- with the type's status schema.
- type: object
- PolicyStatusObject:
- description: >
- A generic policy status object that can be used to transport any policy status.
- Additionally, a schema for policy status can be defined in the corresponding A1 Policy Type.
- type: object
- void:
- description: Void/empty
- type: object
- StatusInfo:
- properties:
- status:
- description: Status text
+ instance:
+ description: URI reference that identifies the specific occurrence of the
+ problem
type: string
type: object
RicInfo:
description: Information for a Near-RT RIC
+ example:
+ ricId: ricId
+ policyTypeIds:
+ - policyTypeIds
+ - policyTypeIds
+ managedElementIds:
+ - managedElementIds
+ - managedElementIds
+ state: UNAVAILABLE
properties:
ricId:
description: Identity of the Near-RT RIC
state:
description: Represents the state of a Near-RT RIC
enum:
- - UNAVAILABLE
- - AVAILABLE
- - SYNCHRONIZING
- - CONSISTENCY_CHECK
+ - UNAVAILABLE
+ - AVAILABLE
+ - SYNCHRONIZING
+ - CONSISTENCY_CHECK
type: string
policyTypeIds:
description: Supported A1 Policy Types
type: string
type: array
type: object
- ServiceRegistrationInfo:
- description: Information for a service to be registered
+ RicInfoList:
+ description: Collection of Near-RT RIC information objects
+ example:
+ rics:
+ - ricId: ricId
+ policyTypeIds:
+ - policyTypeIds
+ - policyTypeIds
+ managedElementIds:
+ - managedElementIds
+ - managedElementIds
+ state: UNAVAILABLE
+ - ricId: ricId
+ policyTypeIds:
+ - policyTypeIds
+ - policyTypeIds
+ managedElementIds:
+ - managedElementIds
+ - managedElementIds
+ state: UNAVAILABLE
properties:
- callbackUrl:
- description: Callback URL for notifying of Near-RT RIC state changes
+ rics:
+ description: List of Near-RT RIC information objects
+ items:
+ $ref: '#/components/schemas/RicInfo'
+ type: array
+ type: object
+ PolicyTypeInformation:
+ description: A data tuple to indicate that an identified A1 Policy Type is supported
+ at an identified Near-RT RIC.
+ example:
+ policyTypeId: STD_QOS2_0.1.0
+ nearRtRicId: ric_g3_2
+ properties:
+ policyTypeId:
+ description: A1 Policy Type identifier
type: string
- serviceId:
- description: Identity of the service
+ nearRtRicId:
+ description: Identity of the Near-RT RIC
type: string
- keepAliveIntervalSeconds:
- description: >
- Keep alive interval for the service. This is used to enable
- optional heartbeat supervision of the service. If set (> 0) the registered
- service should regularly invoke a 'keepalive' REST call. When a service
- fails to invoke this 'keepalive' call within the configured time, the
- service is considered unavailable. An unavailable service will be automatically
- deregistered and its policies will be deleted. Value 0 means timeout
- supervision is disabled.
- format: int64
+ required:
+ - nearRtRicId
+ - policyTypeId
+ type: object
+ NearRtRicId:
+ description: Identity of the Near-RT RIC
+ type: string
+ PolicyTypeObject:
+ description: "An A1 Policy Type, as defined in O-RAN Alliance A1TD"
+ example:
+ policySchema:
+ $schema: http://json-schema.org/draft-07/schema#
+ title: STD_QOS_0_2_0
+ description: Policy data schema for STD_QOS_0.2.0 A1 Policy Instances.
+ type: object
+ properties:
+ scope:
+ type: object
+ properties:
+ ueId:
+ type: string
+ qosId:
+ type: string
+ additionalProperties: false
+ required:
+ - ueId
+ - qosId
+ qosObjectives:
+ type: object
+ properties:
+ priorityLevel:
+ type: number
+ additionalProperties: false
+ required:
+ - priorityLevel
+ statusSchema:
+ $schema: http://json-schema.org/draft-07/schema#
+ title: STD_QOS_0.2.0
+ description: Status schema for STD_QOS_0.2.0 A1 Policy Instances.
+ type: object
+ properties:
+ enforceStatus:
+ type: string
+ enforceReason:
+ type: string
+ additionalProperties: false
+ required:
+ - enforceStatus
+ properties:
+ policySchema:
+ description: |
+ A schema to define the policy data contents of A1 Policy Instances. Policy data schemas are Policy Type specific. All A1 Policy Instances of an A1 Policy Type should comply with the type's policy data schema.
+ type: object
+ statusSchema:
+ description: |
+ A schema to define the contents of the status information for A1 Policy Instances. Status schemas are Policy Type specific. All status information for all A1 Policy Instances of an A1 Policy Type should comply with the type's status schema.
+ type: object
+ required:
+ - policySchema
+ type: object
+ PolicySchema:
+ description: |
+ A schema to define the policy data contents of A1 Policy Instances. Policy data schemas are Policy Type specific. All A1 Policy Instances of an A1 Policy Type should comply with the type's policy data schema.
+ type: object
+ StatusSchema:
+ description: |
+ A schema to define the contents of the status information for A1 Policy Instances. Status schemas are Policy Type specific. All status information for all A1 Policy Instances of an A1 Policy Type should comply with the type's status schema.
+ type: object
+ PolicyObject:
+ description: |
+ Policy Object is a JSON representation policy data for an A1 Policy Instance. The schema for this policy data is defined in the corresponding A1 Policy Type.
+ type: object
+ ErrorInformation:
+ description: Problem as defined in https://tools.ietf.org/html/rfc7807
+ properties:
+ detail:
+ description: A human-readable explanation specific to this occurrence of
+ the problem.
+ example: Policy type not found
+ type: string
+ title:
+ description: A specific error name
+ example: Not Found
+ type: string
+ status:
+ description: |
+ The HTTP status code generated by the origin server for this occurrence of the problem.
+ example: 404
+ format: int32
type: integer
+ type: object
+ PolicyStatusObject:
+ description: |
+ A generic policy status object that can be used to transport any policy status. Additionally, a schema for policy status can be defined in the corresponding A1 Policy Type.
+ type: object
+ PolicyInformation:
+ description: |
+ Information tuple for a single A1 Policy Instance. Contains the A1 Policy Instance ID, and the ID of the Near-RT RIC where the policy is created.
+ example:
+ policyId: policyId
+ nearRtRicId: nearRtRicId
+ properties:
+ policyId:
+ description: Identity of the A1 Policy Instance
+ type: string
+ nearRtRicId:
+ description: Identity of the Near-RT RIC
+ type: string
+ required:
+ - nearRtRicId
+ - policyId
+ type: object
+ PolicyObjectInformation:
+ description: Information to create an A1 Policy Instance
+ example:
+ policyId: POLICY-ID1
+ nearRtRicId: Near-RT-Ric-ID1
+ transient: false
+ policyObject: "{}"
+ serviceId: rApp 1
+ policyTypeId: ORAN_QOS_1.0.0 '(typeName_SemVersion)'
+ properties:
+ nearRtRicId:
+ description: Identity of the target Near-RT RIC
+ example: Near-RT-Ric-ID1
+ type: string
+ transient:
+ default: false
+ description: |
+ If true, the policy is automatically deleted if the targeted Near-RT RIC restarts or recovers. If false, the A1 Policy Instance remains, and is re-pushed to the targeted Near-RT RIC after a restart or recovery. If false, the A1 Policy Instance is maintained and must be deleted separately in the event of Near-RT RIC restart or recovery. Default is false.
+ nullable: false
+ type: boolean
+ policyId:
+ description: |
+ An optional identity to be used for the new A1 Policy Instance. If this value is present, it must be unique. If not present the new A1 Policy Instance will be assigned a newly generated unique ID, and the new ID can be extracted from the 'Location' header in the response.
+ example: POLICY-ID1
+ type: string
+ serviceId:
+ default: ""
+ description: "the identity of the service owning the policy. This can be\
+ \ used to group the policies (it is possible to get all policies associated\
+ \ to a service). Note that the service does not need to be registered.\
+ \ If the service is registered, the newly created A1 Policy Instance will\
+ \ be subject to the same supervision rules as the the service's other\
+ \ policies."
+ example: rApp 1
+ type: string
+ policyObject:
+ description: |
+ Policy Object is a JSON representation policy data for an A1 Policy Instance. The schema for this policy data is defined in the corresponding A1 Policy Type.
+ type: object
+ policyTypeId:
+ description: A1 Policy Type identity
+ example: ORAN_QOS_1.0.0 '(typeName_SemVersion)'
+ type: string
required:
- - serviceId
+ - nearRtRicId
+ - policyObject
+ - policyTypeId
+ type: object
+ void:
+ description: Void/empty
+ type: object
+ ServiceStatusList:
+ example:
+ serviceList:
+ - keepAliveIntervalSeconds: 0
+ callbackUrl: callbackUrl
+ timeSinceLastActivitySeconds: 6
+ serviceId: serviceId
+ - keepAliveIntervalSeconds: 0
+ callbackUrl: callbackUrl
+ timeSinceLastActivitySeconds: 6
+ serviceId: serviceId
+ properties:
+ serviceList:
+ description: "List of Service Status objects, describing a collection of\
+ \ registered services."
+ items:
+ $ref: '#/components/schemas/ServiceStatus'
+ type: array
type: object
ServiceStatus:
description: Information about a previously registered service
+ example:
+ keepAliveIntervalSeconds: 0
+ callbackUrl: callbackUrl
+ timeSinceLastActivitySeconds: 6
+ serviceId: serviceId
properties:
callbackUrl:
description: Callback URL for notifying of Near-RT RIC state changes
description: Identity of the service
type: string
keepAliveIntervalSeconds:
- description: >
- Keep alive interval (seconds) for the service. This is used to enable
- optional heartbeat supervision of the service. If set (> 0) the registered
- service should regularly invoke a 'keepalive' REST call. When a service
- fails to invoke this 'keepalive' call within the configured time, the
- service is considered unavailable. An unavailable service will be automatically
- deregistered and its policies will be deleted. Value 0 means timeout
- supervision is disabled.
+ description: |
+ Keep alive interval (seconds) for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.
format: int64
type: integer
timeSinceLastActivitySeconds:
format: int64
type: integer
type: object
- RicInfoList:
- description: Collection of Near-RT RIC information objects
- properties:
- rics:
- description: List of Near-RT RIC information objects
- items:
- $ref: '#/components/schemas/RicInfo'
- type: array
- type: object
- NearRtRicId:
- description: Identity of the Near-RT RIC
- type: string
- PolicyInformation:
- description: >
- Information tuple for a single A1 Policy Instance.
- Contains the A1 Policy Instance ID, and the ID of the Near-RT RIC where the policy is created.
- type: object
+ ServiceRegistrationInfo:
+ description: Information for a service to be registered
+ example:
+ keepAliveIntervalSeconds: 0
+ callbackUrl: callbackUrl
+ serviceId: serviceId
properties:
- policyId:
- description: Identity of the A1 Policy Instance
+ callbackUrl:
+ description: Callback URL for notifying of Near-RT RIC state changes
type: string
- nearRtRicId:
- $ref: '#/components/schemas/NearRtRicId'
+ serviceId:
+ description: Identity of the service
+ type: string
+ keepAliveIntervalSeconds:
+ description: |
+ Keep alive interval for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.
+ format: int64
+ type: integer
required:
- - policyId
- - nearRtRicId
- ServiceStatusList:
- properties:
- serviceList:
- description: List of Service Status objects, describing a collection of registered services.
- items:
- $ref: '#/components/schemas/ServiceStatus'
- type: array
+ - serviceId
type: object
ServiceCallbackInfo:
- description: |
- Information transferred in Service callbacks,
- if a callback URL was provided for a registered service
+ description: "Information transferred in Service callbacks, \nif a callback\
+ \ URL was provided for a registered service\n"
+ example:
+ ricId: ricId
+ eventType: AVAILABLE
properties:
ricId:
description: Identity of a Near-RT RIC
type: string
eventType:
- description: >
- values:
- AVAILABLE: the Near-RT RIC has become available for A1 Policy management
+ description: "values: \n AVAILABLE: the Near-RT RIC has become available\
+ \ for A1 Policy management\n"
enum:
- - AVAILABLE
+ - AVAILABLE
type: string
required:
- - eventType
- - ricId
- type: object
- ProblemDetails:
- description: Object to carry details about a problem in an HTTP response according to IETF RFC 7807
+ - eventType
+ - ricId
type: object
- properties:
- type:
- description: URI reference according to IETF RFC 3986 that identifies the problem type
- type: string
- title:
- description: Human-readable summary of the problem type
- type: string
- status:
- description: HTTP status code
- type: number
- detail:
- description: Human-readable explanation
- type: string
- instance:
- description: URI reference that identifies the specific occurrence of the problem
- type: string
-
- responses:
- '400':
- description: Bad Request
- content:
- application/problem+json:
- schema:
- $ref: '#/components/schemas/ProblemDetails'
- '401':
- description: Unauthorized
- content:
- application/problem+json:
- schema:
- $ref: '#/components/schemas/ProblemDetails'
- '403':
- description: Forbidden
- content:
- application/problem+json:
- schema:
- $ref: '#/components/schemas/ProblemDetails'
- '404':
- description: Not Found
- content:
- application/problem+json:
- schema:
- $ref: '#/components/schemas/ProblemDetails'
- '405':
- description: Method Not Allowed
- content:
- application/problem+json:
- schema:
- $ref: '#/components/schemas/ProblemDetails'
- '406':
- description: Not Acceptable
- content:
- application/problem+json:
- schema:
- $ref: '#/components/schemas/ProblemDetails'
- '409':
- description: Conflict
- content:
- application/problem+json:
- schema:
- $ref: '#/components/schemas/ProblemDetails'
- '411':
- description: Length Required
- content:
- application/problem+json:
- schema:
- $ref: '#/components/schemas/ProblemDetails'
- '413':
- description: Payload Too Large
- content:
- application/problem+json:
- schema:
- $ref: '#/components/schemas/ProblemDetails'
- '415':
- description: Unsupported Media Type
- content:
- application/problem+json:
- schema:
- $ref: '#/components/schemas/ProblemDetails'
- '429':
- description: Too Many Requests
- content:
- application/problem+json:
- schema:
- $ref: '#/components/schemas/ProblemDetails'
- '500':
- description: Internal Server Error
- content:
- application/problem+json:
- schema:
- $ref: '#/components/schemas/ProblemDetails'
- '502':
- description: Bad Gateway
- content:
- application/problem+json:
- schema:
- $ref: '#/components/schemas/ProblemDetails'
- '503':
- description: Service Unavailable
- content:
- application/problem+json:
- schema:
- $ref: '#/components/schemas/ProblemDetails'
- Locked:
- description: Locked - HTTP Status code which can be used when the state is Locked
- content:
- application/problem+json:
- schema:
- $ref: '#/components/schemas/ErrorInformation'
- example:
- status: 423
- title: Locked
- detail: State is Locked in the provided request.
"info" : {
"contact" : {
"email" : "discuss-list@onap.com",
+ "name" : "ONAP CCSDK Project",
"url" : "https://www.onap.org/"
},
- "description" : "<h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides a REST API for managemecnt of A1 policies. <br/>The main tasks of the service are:</p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring and maintaining consistency of the SMO view of A1 policies and the Near-RT RICs</li><li>Maintaining a view of supported Near-RT RIC policy types</li><li>Supervision of using services (R-APPs). When a service is unavailable, its policies are removed.</li></ul><h2>APIs provided or defined by the service</h2><h3>A1 Policy Management</h3><p>This is an API for management of A1 Policies.</p><ul><li>A1 Policy retrieval, creation, modification and deletion.</li><li>Retrieval of supported A1 Policy types for a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management of configuration</h3><p>API for updating and retrieval of the component configuration. Note that there other ways to maintain the configuration.</p><h3>Service callbacks</h3><p>These are endpoints that are invoked by this service. The callbacks are registered in this service at service registration.</p><h3>NearRT-RIC Repository</h3><p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy is targeted for one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision of the PMS component.</p><h3>Service Registry and Supervision</h3><p>API used for registering services that uses PMS. Each A1 policy is optionally owned by a service. PMS can supervise each registered service by a heart-beat supervision and will automatically remove policies for unavailable services. Note that a service does not need to be registered in order to create A1 Policies. This is a feature that is optional to use.</p><h3>Authorization API</h3><p>API used for access control of A1 Policy access. If configured, an external authorization provider is requested to grant access to the A1 Policy type.</p><h3>Spring Boot Actuator</h3><p>Provides generic functions used to monitor and manage the Spring web application.</p>",
+ "description" : "<h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides a REST API for managing A1 policies. <br/>This document describes an older pre-spec API set to perform tasks for: </p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring and maintaining consistency of the SMO view of A1 Policies and the Near-RT RICs</li><li>Maintaining a view of each Near-RT RIC's supported A1 Policy Types</li><li>Supervision of registered services (rApps). When a registered service is unavailable, its policies are removed.</li></ul><h2>APIs provided or defined by the service</h2><h3>A1 Policy Management (Older pre-spec version) </h3> <p>This is an older API for managing A1 Policies:</p><ul><li>A1 Policy retrieval, creation, modification and deletion.</li><li>Retrieval of supported A1 Policy Types for a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management of configuration</h3><p>API for updating and retrieval of the component configuration. Note that there other ways to maintain the configuration.</p><h3>Service Callbacks</h3><p>These are endpoints that are invoked by this service. The callbacks are registered in this service at service registration.</p><h3>NearRT-RIC Repository (Older version)</h3> <p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy is targeted towards one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision of the A1 Policy Management Service .</p><h3>Service Registry and Supervision</h3> <p>API used for registering services/clients/rApps. Each A1 Policy can be tagged with an owner. If the owner service is registered, then the service can be monitored by a heart-beat supervision mechanism, and if the registered service becomes unavailable, then its A1 Policies are removed. Note that services do not need to be registered to create A1 Policies, but unregistered services are not supervised. This is a feature that is optional to use.</p><h3>Authorization API</h3><p>API used for access control of A1 Policy access. If configured, an external authorization provider is requested to grant access to the A1 Policy Type.</p><h3>Spring Boot Actuator</h3><p>Provides built-in functions used to monitor and configure the Spring web application hosting the service.</p>",
"license" : {
- "name" : "Copyright (C) 2020-2023 Nordix Foundation, and Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved. Licensed under the Apache 2 License.",
+ "name" : "Copyright (C) 2020-2023 Nordix Foundation, and Copyright (C) 2024-2025 OpenInfra Foundation Europe. \nAll rights reserved. Licensed under the Apache 2 License.\n",
"url" : "http://www.apache.org/licenses/LICENSE-2.0"
},
- "title" : "ONAP CCSDK A1 Policy Management Service",
+ "title" : "ONAP CCSDK - Pre-Spec A1 Policy Management API",
"version" : "1.3.0",
"x-api-id" : "a31c510b-20e6-4a08-af16-368c44d7fba8",
"x-audience" : "external-public"
"url" : "/"
} ],
"tags" : [ {
- "description" : "Older API used to create polices, Policy Instances and get them as individual using an ID or get all policies/Instances.",
- "name" : "A1 Policy Management (Older version)"
+ "description" : "Older pre-spec API used to get, create, update and delete A1 Policy Instances. Also used to query A1 Policy Types.\n",
+ "name" : "A1 Policy Management"
}, {
- "description" : "API used to get the NearRT-RIC for the managed element.",
+ "description" : "Older API used to get information about registered Near-RT RICs.\n",
"name" : "NearRT-RIC Repository"
}, {
- "description" : "API used to keep the service Alive with in the timeout period",
+ "description" : "Older API used to manage registered services, and control their keep-alive status via heart-beat messages.\n",
"name" : "Service Registry and Supervision"
}, {
- "description" : "API used to get the health status and statistics of this service",
+ "description" : "API used to get the health status and statistics of this service\n",
"name" : "Health Check"
}, {
- "description" : "Callouts to indicate status schanges relevant for Services. <br> Note that these calls are called by A1-PMS, not provided.",
- "name" : "Service callbacks"
+ "description" : "Callout to registered services to indicate a status changes for a Near-RT RIC. Note that these operations are called by the A1 Policy Management Service, not provided.\n",
+ "name" : "Service Callbacks"
}, {
- "description" : "API used for authorization of information A1 policy access (this is provided by an authorization producer such as OPA). <br> Note that this API is called by A1-PMS, it is not provided.",
+ "description" : "API used for authorization of information A1 policy access (this is provided by an authorization producer such as OPA). Note that these operations are called by the A1 Policy Management Service, not provided.\n",
"name" : "Authorization API"
}, {
- "description" : "API used to create or fetch the application configuration.",
+ "description" : "API used to create or fetch the application configuration.\n",
"name" : "Configuration"
}, {
- "description" : "Monitor and interact",
+ "description" : "API used to monitor and configure the A1-PMS Springboot Service.\n",
"externalDocs" : {
"description" : "Spring Boot Actuator Web API Documentation",
- "url" : "https://docs.spring.io/spring-boot/docs/current/actuator-api/html/"
+ "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html"
},
- "name" : "Actuator"
+ "name" : "Actuator API"
} ],
"paths" : {
- "/a1-policy/v2/policy-instances" : {
- "get" : {
- "description" : "Returns a list of A1 policies matching given search criteria. <br>If several query parameters are defined, the policies matching all conditions are returned.",
- "operationId" : "getPolicyInstances",
- "parameters" : [ {
- "description" : "Select policies with a given type identity.",
- "explode" : true,
- "in" : "query",
- "name" : "policytype_id",
- "required" : false,
- "schema" : {
- "type" : "string"
- },
- "style" : "form"
- }, {
- "description" : "Select policies for a given Near-RT RIC identity.",
- "explode" : true,
- "in" : "query",
- "name" : "ric_id",
- "required" : false,
- "schema" : {
- "type" : "string"
- },
- "style" : "form"
- }, {
- "description" : "Select policies owned by a given service.",
- "explode" : true,
- "in" : "query",
- "name" : "service_id",
- "required" : false,
- "schema" : {
- "type" : "string"
- },
- "style" : "form"
- }, {
- "description" : "Select policies of a given type name (type identity has the format <typename_version>)",
- "explode" : true,
- "in" : "query",
- "name" : "type_name",
- "required" : false,
- "schema" : {
- "type" : "string"
- },
- "style" : "form"
- } ],
- "responses" : {
- "200" : {
- "content" : {
- "application/json" : {
- "examples" : {
- "policy_info_list" : {
- "$ref" : "#/components/examples/policy_info_list"
- }
- },
- "schema" : {
- "$ref" : "#/components/schemas/policy_info_list"
- }
- }
- },
- "description" : "OK - Returns A1 Policies which matches the criteria"
- },
- "404" : {
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/error_information"
- }
- }
- },
- "description" : "Not Found - Near-RT RIC, policy type or service not found"
- }
- },
- "summary" : "Query for A1 policy instances",
- "tags" : [ "A1 Policy Management" ]
- }
- },
- "/example-authz-check" : {
- "post" : {
- "description" : "The authorization function decides if access is granted.",
- "operationId" : "performAccessControl",
- "requestBody" : {
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/policy_authorization"
- }
- }
- },
- "required" : true
- },
- "responses" : {
- "200" : {
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/authorization_result"
- }
- }
- },
- "description" : "OK"
- },
- "403" : {
- "content" : {
- "application/problem+json" : {
- "example" : {
- "status" : 403,
- "title" : "Forbidden",
- "detail" : "Your role does not allow to perform this action. Contact System Administrator to change your access rights."
- },
- "schema" : {
- "$ref" : "#/components/schemas/error_information"
- }
- }
- },
- "description" : "Forbidden"
- }
- },
- "summary" : "Request for access authorization.",
- "tags" : [ "Authorization API" ]
- }
- },
- "/actuator/threaddump" : {
+ "/status" : {
"get" : {
- "operationId" : "threaddump",
+ "description" : "Returns status and statistics of this service",
+ "operationId" : "getStatusV1",
"responses" : {
"200" : {
"content" : {
- "text/plain;charset=UTF-8" : {
- "schema" : {
- "type" : "object"
- }
- },
- "application/vnd.spring-boot.actuator.v3+json" : {
- "schema" : {
- "type" : "object"
- }
- },
- "application/json" : {
- "schema" : {
- "type" : "object"
- }
- },
- "application/vnd.spring-boot.actuator.v2+json" : {
+ "*/*" : {
"schema" : {
- "type" : "object"
+ "type" : "string"
}
}
},
- "description" : "OK"
+ "description" : "OK - Service is living"
}
},
- "summary" : "Actuator web endpoint 'threaddump'",
- "tags" : [ "Actuator" ],
- "x-internal" : true
+ "summary" : "Get Status (getStatusV1)",
+ "tags" : [ "Health Check" ]
}
},
"/a1-policy/v2/status" : {
"description" : "OK- Service is living Ok"
}
},
+ "summary" : "Get Status (getStatus)",
"tags" : [ "Health Check" ]
}
},
- "/actuator/loggers" : {
- "get" : {
- "operationId" : "loggers",
- "responses" : {
- "200" : {
- "content" : {
- "application/vnd.spring-boot.actuator.v3+json" : {
- "schema" : {
- "type" : "object"
- }
- },
- "application/json" : {
- "schema" : {
- "type" : "object"
- }
- },
- "application/vnd.spring-boot.actuator.v2+json" : {
- "schema" : {
- "type" : "object"
- }
- }
- },
- "description" : "OK"
- }
- },
- "summary" : "Actuator web endpoint 'loggers'",
- "tags" : [ "Actuator" ],
- "x-internal" : true
- }
- },
- "/actuator/health/**" : {
- "get" : {
- "operationId" : "health-path",
- "responses" : {
- "200" : {
- "content" : {
- "application/vnd.spring-boot.actuator.v3+json" : {
- "schema" : {
- "type" : "object"
- }
- },
- "application/json" : {
- "schema" : {
- "type" : "object"
- }
- },
- "application/vnd.spring-boot.actuator.v2+json" : {
- "schema" : {
- "type" : "object"
- }
- }
- },
- "description" : "OK"
- }
- },
- "summary" : "Actuator web endpoint 'health-path'",
- "tags" : [ "Actuator" ],
- "x-internal" : true
- }
- },
"/a1-policy/v2/rics/ric" : {
"get" : {
- "description" : "Either a Near-RT RIC identity or a Managed Element identity can be specified.<br>The intention with Managed Element identity is the ID used in O1 for accessing the traffical element (such as the ID of CU).",
+ "description" : "Query information about a Near-RT RIC. Either a Near-RT RIC identity or a Managed Element identity can be specified. The intention with Managed Element identity is the ID used in O1 for accessing the traffical element (such as the ID of CU).\n",
"operationId" : "getRic",
"parameters" : [ {
- "description" : "The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned.",
+ "description" : "The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned.\n",
"explode" : true,
"in" : "query",
"name" : "managed_element_id",
"description" : "Not Found"
}
},
- "summary" : "Returns info of Near-RT RIC queried by the ric-id and managed-element-id",
+ "summary" : "Get a Near-RT RIC (getRic)",
"tags" : [ "NearRT-RIC Repository" ]
}
},
- "/actuator/shutdown" : {
- "post" : {
- "operationId" : "shutdown",
- "responses" : {
- "200" : {
- "content" : {
- "application/vnd.spring-boot.actuator.v3+json" : {
- "schema" : {
- "type" : "object"
- }
- },
- "application/json" : {
- "schema" : {
- "type" : "object"
- }
- },
- "application/vnd.spring-boot.actuator.v2+json" : {
- "schema" : {
- "type" : "object"
- }
- }
- },
- "description" : "OK"
- }
- },
- "summary" : "Actuator web endpoint 'shutdown'",
- "tags" : [ "Actuator" ],
- "x-internal" : true
- }
- },
"/a1-policy/v2/policy-types" : {
"get" : {
- "description" : "Query policy type identities",
+ "description" : "Query A1 Policy Type identities using query parameters",
"operationId" : "getPolicyTypes",
"parameters" : [ {
"description" : "Select types for the given Near-RT RIC identity.",
},
"style" : "form"
}, {
- "description" : "Select types with the given type name (type identity has the format <typename_version>)",
+ "description" : "Select types compatible with the given type name (type identity has the format 'typename_version')",
"explode" : true,
"in" : "query",
"name" : "type_name",
"description" : "Not Found"
}
},
+ "summary" : "Get A1 Policy Types (getPolicyTypes)",
"tags" : [ "A1 Policy Management" ]
}
},
"/a1-policy/v2/policies/{policy_id}" : {
"delete" : {
- "description" : "Deleting the policy using the Policy's Policy ID.",
+ "description" : "Delete an A1 Policy instance using its policy ID.",
"operationId" : "deletePolicy",
"parameters" : [ {
"explode" : false,
"description" : "Locked - HTTP Status code which can be used when the state is Locked"
}
},
- "summary" : "Delete a policy",
+ "summary" : "Delete an A1 Policy instance (deletePolicy)",
"tags" : [ "A1 Policy Management" ]
},
"get" : {
- "description" : "Returns a policy",
+ "description" : "Get an A1 Policy instance using its policy ID",
"operationId" : "getPolicy",
"parameters" : [ {
"explode" : false,
"description" : "Not Found"
}
},
+ "summary" : "Get an A1 Policy instance (getPolicy)",
"tags" : [ "A1 Policy Management" ]
}
},
- "/actuator/metrics/{requiredMetricName}" : {
- "get" : {
- "operationId" : "metrics-requiredMetricName",
+ "/a1-policy/v2/services/{service_id}/keepalive" : {
+ "put" : {
+ "description" : "A registered service should invoke this operation regularly to indicate that it is still alive. If a registered service fails to invoke some operation, or this operation, before the end of a timeout period the service will be deregistered and all its A1 policies wil be removed. This operation is only intended for registered services. (This timeout can be set or disabled when each service is initially registered)",
+ "operationId" : "keepAliveService",
"parameters" : [ {
"explode" : false,
"in" : "path",
- "name" : "requiredMetricName",
+ "name" : "service_id",
"required" : true,
"schema" : {
"type" : "string"
"responses" : {
"200" : {
"content" : {
- "application/vnd.spring-boot.actuator.v3+json" : {
- "schema" : {
- "type" : "object"
- }
- },
- "application/json" : {
- "schema" : {
- "type" : "object"
- }
- },
- "application/vnd.spring-boot.actuator.v2+json" : {
+ "*/*" : {
"schema" : {
"type" : "object"
}
}
},
- "description" : "OK"
+ "description" : "OK - Service supervision timer refreshed, OK"
+ },
+ "404" : {
+ "content" : {
+ "application/problem+json" : {
+ "example" : [ ]
+ }
+ },
+ "description" : "Not Found"
}
},
- "summary" : "Actuator web endpoint 'metrics-requiredMetricName'",
- "tags" : [ "Actuator" ],
- "x-internal" : true
+ "summary" : "Heartbeat message from a service (keepAliveService)",
+ "tags" : [ "Service Registry and Supervision" ]
}
},
- "/a1-policy/v2/configuration" : {
+ "/a1-policy/v2/rics" : {
"get" : {
- "description" : "Returns the contents of the application configuration file",
- "operationId" : "getConfiguration",
- "responses" : {
- "200" : {
- "content" : {
- "application/json" : {
- "schema" : {
- "type" : "string"
- }
- }
- },
- "description" : "OK - Configuration"
- },
- "404" : {
- "content" : {
- "application/problem+json" : {
- "example" : [ ]
- }
- },
- "description" : "Not Found"
- }
- },
- "tags" : [ "Configuration" ]
- },
- "put" : {
- "description" : "Replace the current configuration with the given configuration",
- "operationId" : "putConfiguration",
- "requestBody" : {
- "content" : {
- "application/json" : {
- "schema" : {
- "type" : "object"
- }
- }
- },
- "required" : true
- },
- "responses" : {
- "200" : {
- "content" : {
- "*/*" : {
- "schema" : {
- "$ref" : "#/components/schemas/void"
- }
- }
- },
- "description" : "OK - Configuration updated"
- },
- "400" : {
- "content" : {
- "application/problem+json" : {
- "example" : {
- "status" : 400,
- "title" : "Bad Request",
- "detail" : "The provided request is not valid."
- },
- "schema" : {
- "$ref" : "#/components/schemas/error_information"
- }
- }
- },
- "description" : "Bad Request"
- }
- },
- "tags" : [ "Configuration" ]
- }
- },
- "/actuator" : {
- "get" : {
- "operationId" : "links",
- "responses" : {
- "200" : {
- "content" : {
- "application/vnd.spring-boot.actuator.v3+json" : {
- "schema" : {
- "additionalProperties" : {
- "additionalProperties" : {
- "$ref" : "#/components/schemas/Link"
- },
- "type" : "object"
- },
- "type" : "object"
- }
- },
- "application/json" : {
- "schema" : {
- "additionalProperties" : {
- "additionalProperties" : {
- "$ref" : "#/components/schemas/Link"
- },
- "type" : "object"
- },
- "type" : "object"
- }
- },
- "application/vnd.spring-boot.actuator.v2+json" : {
- "schema" : {
- "additionalProperties" : {
- "additionalProperties" : {
- "$ref" : "#/components/schemas/Link"
- },
- "type" : "object"
- },
- "type" : "object"
- }
- }
- },
- "description" : "OK"
- }
- },
- "summary" : "Actuator root web endpoint",
- "tags" : [ "Actuator" ],
- "x-internal" : true
- }
- },
- "/actuator/loggers/{name}" : {
- "get" : {
- "operationId" : "loggers-name",
- "parameters" : [ {
- "explode" : false,
- "in" : "path",
- "name" : "name",
- "required" : true,
- "schema" : {
- "type" : "string"
- },
- "style" : "simple"
- } ],
- "responses" : {
- "200" : {
- "content" : {
- "application/vnd.spring-boot.actuator.v3+json" : {
- "schema" : {
- "type" : "object"
- }
- },
- "application/json" : {
- "schema" : {
- "type" : "object"
- }
- },
- "application/vnd.spring-boot.actuator.v2+json" : {
- "schema" : {
- "type" : "object"
- }
- }
- },
- "description" : "OK"
- }
- },
- "summary" : "Actuator web endpoint 'loggers-name'",
- "tags" : [ "Actuator" ],
- "x-internal" : true
- },
- "post" : {
- "operationId" : "loggers-name_2",
- "parameters" : [ {
- "explode" : false,
- "in" : "path",
- "name" : "name",
- "required" : true,
- "schema" : {
- "type" : "string"
- },
- "style" : "simple"
- } ],
- "requestBody" : {
- "content" : {
- "application/json" : {
- "schema" : {
- "enum" : [ "TRACE", "DEBUG", "INFO", "WARN", "ERROR", "FATAL", "OFF" ],
- "type" : "string"
- }
- }
- }
- },
- "responses" : {
- "200" : {
- "content" : {
- "*/*" : {
- "schema" : {
- "type" : "object"
- }
- }
- },
- "description" : "OK"
- }
- },
- "summary" : "Actuator web endpoint 'loggers-name'",
- "tags" : [ "Actuator" ],
- "x-internal" : true
- }
- },
- "/a1-policy/v2/services/{service_id}/keepalive" : {
- "put" : {
- "description" : "A registered service should invoke this operation regularly to indicate that it is still alive. If a registered service fails to invoke this operation before the end of a timeout period the service will be deregistered and all its A1 policies wil be removed. (This timeout can be set or disabled when each service is initially registered)",
- "operationId" : "keepAliveService",
- "parameters" : [ {
- "explode" : false,
- "in" : "path",
- "name" : "service_id",
- "required" : true,
- "schema" : {
- "type" : "string"
- },
- "style" : "simple"
- } ],
- "responses" : {
- "200" : {
- "content" : {
- "*/*" : {
- "schema" : {
- "type" : "object"
- }
- }
- },
- "description" : "OK - Service supervision timer refreshed, OK"
- },
- "404" : {
- "content" : {
- "application/problem+json" : {
- "example" : [ ]
- }
- },
- "description" : "Not Found"
- }
- },
- "summary" : "Heartbeat indicates that the service is running",
- "tags" : [ "Service Registry and Supervision" ]
- }
- },
- "/actuator/metrics" : {
- "get" : {
- "operationId" : "metrics",
- "responses" : {
- "200" : {
- "content" : {
- "application/vnd.spring-boot.actuator.v3+json" : {
- "schema" : {
- "type" : "object"
- }
- },
- "application/json" : {
- "schema" : {
- "type" : "object"
- }
- },
- "application/vnd.spring-boot.actuator.v2+json" : {
- "schema" : {
- "type" : "object"
- }
- }
- },
- "description" : "OK"
- }
- },
- "summary" : "Actuator web endpoint 'metrics'",
- "tags" : [ "Actuator" ],
- "x-internal" : true
- }
- },
- "/a1-policy/v2/rics" : {
- "get" : {
- "description" : "The call returns all Near-RT RICs that supports a given policy type identity",
+ "description" : "Get all Near-RT RICs that supports a given A1 Policy Type ID",
"operationId" : "getRics",
"parameters" : [ {
- "description" : "The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned",
+ "description" : "The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned.\n",
"explode" : true,
"in" : "query",
"name" : "policytype_id",
"description" : "Not Found"
}
},
- "summary" : "Query Near-RT RIC information",
+ "summary" : "Get Near-RT RICs for A1 Policy Type (getRics)",
"tags" : [ "NearRT-RIC Repository" ]
}
},
"/a1-policy/v2/services" : {
"get" : {
- "description" : "Either information about a registered service with given identity or all registered services are returned.",
+ "description" : "Get information about all registered services, or a single registered service. If the service ID of a registered service is included in the query, information about that service is returned. Otherwise Information about all registered is returned. This operation does not retrieve information about unregistered services.\n",
"operationId" : "getServices",
"parameters" : [ {
- "description" : "The identity of the service",
+ "description" : "The identity of the registered service",
"explode" : true,
"in" : "query",
"name" : "service_id",
"description" : "Not Found"
}
},
- "summary" : "Returns service information",
+ "summary" : "Get Services (getServices)",
"tags" : [ "Service Registry and Supervision" ]
},
"put" : {
"RICStatus" : {
"{$request.body#/callback_url}" : {
"post" : {
- "description" : "The URL to this call is registered at Service registration.",
+ "description" : "Callouts to indicate Near-RT RIC status changes relevant for Services. \nThe URL invoked by this callback is provided at Service registration.\n",
"operationId" : "serviceCallback",
"requestBody" : {
"content" : {
"description" : "Not Found"
}
},
- "summary" : "Callback for Near-RT RIC status",
- "tags" : [ "Service callbacks" ]
+ "summary" : "Callback for Near-RT RIC status (serviceCallback)",
+ "tags" : [ "Service Registry and Supervision", "Service Callbacks" ]
}
}
}
},
- "description" : "Registering a service is needed to:<ul><li>Get callbacks about available NearRT RICs.</li><li>Activate supervision of the service. If a service is inactive, its policies will automatically be deleted.</li></ul>Policies can be created even if the service is not registerred. This is a feature which it is optional to use.",
+ "description" : "Register a single service, or update a previous registtration. Service registration is required to get callbacks about available NearRT RICs and to enable supervision of the service's active status. If a registered service becomes inactive, its policies can be automatically deleted. A1 Policy instances can also be created for unregistered services. If an unregistered service is later registered, the service's policies are retained when the service becomes registered. This feature is optional to use.\n",
"operationId" : "putService",
"requestBody" : {
"content" : {
"description" : "Bad Request"
}
},
- "summary" : "Register a service",
+ "summary" : "Register or update a Service (putService)",
"tags" : [ "Service Registry and Supervision" ]
}
},
- "/actuator/info" : {
+ "/a1-policy/v2/policy-types/{policytype_id}" : {
"get" : {
- "operationId" : "info",
- "responses" : {
- "200" : {
- "content" : {
- "application/vnd.spring-boot.actuator.v3+json" : {
- "schema" : {
- "type" : "object"
- }
- },
- "application/json" : {
- "schema" : {
- "type" : "object"
- }
- },
- "application/vnd.spring-boot.actuator.v2+json" : {
- "schema" : {
- "type" : "object"
- }
- }
- },
- "description" : "OK"
- }
- },
- "summary" : "Actuator web endpoint 'info'",
- "tags" : [ "Actuator" ],
- "x-internal" : true
- }
- },
- "/status" : {
- "get" : {
- "description" : "Returns status and statistics of this service",
- "operationId" : "getStatusV1",
- "responses" : {
- "200" : {
- "content" : {
- "*/*" : {
- "schema" : {
- "type" : "string"
- }
- }
- },
- "description" : "OK - Service is living"
- }
- },
- "tags" : [ "Health Check" ]
- }
- },
- "/a1-policy/v2/policy-types/{policytype_id}" : {
- "get" : {
- "description" : "Returns a policy type definition",
+ "description" : "Get an A1 Policy Type definition using its policy type ID",
"operationId" : "getPolicyTypeDefinition",
"parameters" : [ {
"explode" : false,
}
}
},
- "description" : "OK - schema of the given policy type"
+ "description" : "OK - schema of the requested A1 Policy Type"
},
"404" : {
"content" : {
"description" : "Not Found"
}
},
+ "summary" : "Get an A1 Policy Type definition (getPolicyTypeDefinition)",
"tags" : [ "A1 Policy Management" ]
}
},
- "/actuator/logfile" : {
- "get" : {
- "operationId" : "logfile",
- "responses" : {
- "200" : {
- "content" : {
- "text/plain;charset=UTF-8" : {
- "schema" : {
- "type" : "object"
- }
- }
- },
- "description" : "OK"
- }
- },
- "summary" : "Actuator web endpoint 'logfile'",
- "tags" : [ "Actuator" ],
- "x-internal" : true
- }
- },
- "/actuator/health" : {
- "get" : {
- "operationId" : "health",
- "responses" : {
- "200" : {
- "content" : {
- "application/vnd.spring-boot.actuator.v3+json" : {
- "schema" : {
- "type" : "object"
- }
- },
- "application/json" : {
- "schema" : {
- "type" : "object"
- }
- },
- "application/vnd.spring-boot.actuator.v2+json" : {
- "schema" : {
- "type" : "object"
- }
- }
- },
- "description" : "OK"
- }
- },
- "summary" : "Actuator web endpoint 'health'",
- "tags" : [ "Actuator" ],
- "x-internal" : true
- }
- },
"/a1-policy/v2/policies" : {
"get" : {
- "description" : "Returns a list of A1 policies matching given search criteria. <br>If several query parameters are defined, the policies matching all conditions are returned.",
+ "description" : "Retrieve a list of A1 Policy Instance IDs for policies that match given search criteria. If multiple query parameters are given, the policies matching all conditions are returned.\n",
"operationId" : "getPolicyIds",
"parameters" : [ {
- "description" : "Select policies of a given policy type identity.",
+ "description" : "Select policies of a given A1 Policy Type ID.",
"explode" : true,
"in" : "query",
"name" : "policytype_id",
},
"style" : "form"
}, {
- "description" : "Select policies owned by a given service.",
+ "description" : "Select policies owned by a given service. (Both registered and unregistered services)",
"explode" : true,
"in" : "query",
"name" : "service_id",
},
"style" : "form"
}, {
- "description" : "Select policies of types with the given type name (type identity has the format <typename_version>)",
+ "description" : "Select policies of types with the given A1 Policy Type name (type names have the format 'typename_version')\n",
"explode" : true,
"in" : "query",
"name" : "type_name",
"description" : "Not Found"
}
},
- "summary" : "Query policy identities",
+ "summary" : "Query A1 Policy Instances (getPolicyIds)",
"tags" : [ "A1 Policy Management" ]
},
"put" : {
- "description" : "Create or update a policy",
+ "description" : "Create or Update an A1 Policy Instance",
"operationId" : "putPolicy",
"requestBody" : {
"content" : {
"description" : "Locked - HTTP Status code which can be used when the state is Locked"
}
},
+ "summary" : "Create or Update an A1 Policy Instance (putPolicy)",
+ "tags" : [ "A1 Policy Management" ]
+ }
+ },
+ "/a1-policy/v2/policy-instances" : {
+ "get" : {
+ "description" : "Returns a collection of A1 Policy Instance information for policies that match given search criteria. If several query parameters are defined, the policies matching all conditions are returned.\n",
+ "operationId" : "getPolicyInstances",
+ "parameters" : [ {
+ "description" : "Select policies with a given A1 Policy Type ID.",
+ "explode" : true,
+ "in" : "query",
+ "name" : "policytype_id",
+ "required" : false,
+ "schema" : {
+ "type" : "string"
+ },
+ "style" : "form"
+ }, {
+ "description" : "Select policies for a given Near-RT RIC identity.",
+ "explode" : true,
+ "in" : "query",
+ "name" : "ric_id",
+ "required" : false,
+ "schema" : {
+ "type" : "string"
+ },
+ "style" : "form"
+ }, {
+ "description" : "Select policies owned by a given service (registered or unregistered).",
+ "explode" : true,
+ "in" : "query",
+ "name" : "service_id",
+ "required" : false,
+ "schema" : {
+ "type" : "string"
+ },
+ "style" : "form"
+ }, {
+ "description" : "Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').",
+ "explode" : true,
+ "in" : "query",
+ "name" : "type_name",
+ "required" : false,
+ "schema" : {
+ "type" : "string"
+ },
+ "style" : "form"
+ } ],
+ "responses" : {
+ "200" : {
+ "content" : {
+ "application/json" : {
+ "examples" : {
+ "policy_info_list" : {
+ "$ref" : "#/components/examples/policy_info_list"
+ }
+ },
+ "schema" : {
+ "$ref" : "#/components/schemas/policy_info_list"
+ }
+ }
+ },
+ "description" : "OK - Returns A1 Policy Instances which match the criteria"
+ },
+ "404" : {
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/error_information"
+ }
+ }
+ },
+ "description" : "Not Found - Near-RT RIC, A1 Policy Type or service was not found"
+ }
+ },
+ "summary" : "Query for A1 Policy instances (getPolicyInstances)",
"tags" : [ "A1 Policy Management" ]
}
},
"/a1-policy/v2/services/{service_id}" : {
"delete" : {
- "description" : "Unregister a service",
+ "description" : "Unregister a registered Service using its service ID. Only registered services can be unregistered. All A1 Policy Instances for the previously registered service will be removed.\n",
"operationId" : "deleteService",
"parameters" : [ {
"explode" : false,
"description" : "Not Found"
}
},
+ "summary" : "Unregister a Service (deleteService)",
"tags" : [ "Service Registry and Supervision" ]
}
},
- "/actuator/heapdump" : {
- "get" : {
- "operationId" : "heapdump",
- "responses" : {
- "200" : {
- "content" : {
- "application/octet-stream" : {
- "schema" : {
- "type" : "object"
- }
- }
- },
- "description" : "OK"
- }
- },
- "summary" : "Actuator web endpoint 'heapdump'",
- "tags" : [ "Actuator" ],
- "x-internal" : true
- }
- },
"/a1-policy/v2/policies/{policy_id}/status" : {
"get" : {
- "description" : "Returns a policy status",
+ "description" : "Retrieve the status information for an A1 Policy Instance.",
"operationId" : "getPolicyStatus",
"parameters" : [ {
"explode" : false,
"description" : "Not Found"
}
},
+ "summary" : "Get an A1 Policy Instance's status (getPolicyStatus)",
"tags" : [ "A1 Policy Management" ]
}
- }
- },
- "components" : {
- "examples" : {
- "service_status" : {
- "description" : "List of service information",
- "value" : {
- "callback_url" : "callback_url",
- "service_id" : "service_id",
- "keep_alive_interval_seconds" : 0,
- "time_since_last_activity_seconds" : 6
- }
- },
- "service_status_list" : {
- "description" : "List of service information",
- "value" : {
- "service_list" : [ {
- "callback_url" : "callback_url",
- "service_id" : "service_id",
- "keep_alive_interval_seconds" : 0,
- "time_since_last_activity_seconds" : 6
- }, {
- "callback_url" : "callback_url",
- "service_id" : "service_id",
- "keep_alive_interval_seconds" : 0,
- "time_since_last_activity_seconds" : 6
- } ]
- }
- },
- "policy_type_definition" : {
- "description" : "Schema of the given Policy type",
- "value" : {
- "policy_schema" : "{}"
- }
- },
- "policy_type_id_list" : {
- "description" : "Array of policy type id's",
- "value" : {
- "policy_type_id_list" : [ "policytype_id", "policytype_id" ]
- }
- },
- "policy_info" : {
- "description" : "Policy information of one A1-P policy",
- "value" : {
- "ric_id" : "ric_id",
- "policy_id" : "policy_id",
- "transient" : false,
- "service_id" : "service_id",
- "policy_data" : "{}",
- "status_notification_uri" : "status_notification_uri",
- "policytype_id" : "policytype_id"
- }
- },
- "policy_info_list" : {
- "description" : "List of policy information",
- "value" : {
- "policies" : [ {
- "ric_id" : "ric_id",
- "policy_id" : "policy_id",
- "transient" : false,
- "service_id" : "service_id",
- "policy_data" : "{}",
- "status_notification_uri" : "status_notification_uri",
- "policytype_id" : "policytype_id"
- }, {
- "ric_id" : "ric_id",
- "policy_id" : "policy_id",
- "transient" : false,
- "service_id" : "service_id",
- "policy_data" : "{}",
- "status_notification_uri" : "status_notification_uri",
- "policytype_id" : "policytype_id"
- } ]
- }
+ },
+ "/a1-policy/v2/configuration" : {
+ "get" : {
+ "description" : "Returns the entire contents of the Application Configuration.",
+ "operationId" : "getConfiguration",
+ "responses" : {
+ "200" : {
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "type" : "string"
+ }
+ }
+ },
+ "description" : "OK - Configuration"
+ },
+ "404" : {
+ "content" : {
+ "application/problem+json" : {
+ "example" : [ ]
+ }
+ },
+ "description" : "Not Found"
+ }
+ },
+ "summary" : "Get the Application Configuration (getConfiguration)",
+ "tags" : [ "Configuration" ]
},
- "policy_id_list" : {
- "description" : "A list of policy identities",
- "value" : {
- "policy_ids" : [ "some_policy_id", "some_policy_id" ]
- }
+ "put" : {
+ "description" : "Replace the current Application Configuration with a new configuration. The new configuration, if accepted, will take effect after a short delay. The new configuration must comply with the Application Configuration schema, which can be found from the the Application Documentation (Developer Guide)\n",
+ "operationId" : "putConfiguration",
+ "requestBody" : {
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ }
+ },
+ "required" : true
+ },
+ "responses" : {
+ "200" : {
+ "content" : {
+ "*/*" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/void"
+ }
+ }
+ },
+ "description" : "OK - Configuration updated"
+ },
+ "400" : {
+ "content" : {
+ "application/problem+json" : {
+ "example" : {
+ "status" : 400,
+ "title" : "Bad Request",
+ "detail" : "The provided request is not valid."
+ },
+ "schema" : {
+ "$ref" : "#/components/schemas/error_information"
+ }
+ }
+ },
+ "description" : "Bad Request"
+ }
+ },
+ "summary" : "Set/Replace the Application Configuration (putConfiguration)",
+ "tags" : [ "Configuration" ]
+ }
+ },
+ "/example-authz-check" : {
+ "post" : {
+ "description" : "A template endpoint for callout requests to an external authorization function. The authorization function, if enabled, decides if individual operations are permitted.\n",
+ "operationId" : "performAccessControl",
+ "requestBody" : {
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/policy_authorization"
+ }
+ }
+ },
+ "required" : true
+ },
+ "responses" : {
+ "200" : {
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/authorization_result"
+ }
+ }
+ },
+ "description" : "OK"
+ },
+ "403" : {
+ "content" : {
+ "application/problem+json" : {
+ "example" : {
+ "status" : 403,
+ "title" : "Forbidden",
+ "detail" : "Your role does not allow to perform this action. Contact System Administrator to change your access rights."
+ },
+ "schema" : {
+ "$ref" : "#/components/schemas/error_information"
+ }
+ }
+ },
+ "description" : "Forbidden"
+ }
+ },
+ "summary" : "Callout request for access authorization (performAccessControl)",
+ "tags" : [ "Authorization API" ]
+ }
+ },
+ "/actuator" : {
+ "get" : {
+ "description" : "A1-PMS Springboot Service Actuator web endpoint. Returns a set of links to available/enabled actuator endpoints.\n",
+ "externalDocs" : {
+ "description" : "Spring Boot Actuator Web API Documentation",
+ "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html"
+ },
+ "operationId" : "actuatorLinks",
+ "responses" : {
+ "200" : {
+ "content" : {
+ "application/vnd.spring-boot.actuator.v3+json" : {
+ "schema" : {
+ "additionalProperties" : {
+ "additionalProperties" : {
+ "$ref" : "#/components/schemas/Link"
+ },
+ "type" : "object"
+ },
+ "type" : "object"
+ }
+ },
+ "application/json" : {
+ "schema" : {
+ "additionalProperties" : {
+ "additionalProperties" : {
+ "$ref" : "#/components/schemas/Link"
+ },
+ "type" : "object"
+ },
+ "type" : "object"
+ }
+ },
+ "application/vnd.spring-boot.actuator.v2+json" : {
+ "schema" : {
+ "additionalProperties" : {
+ "additionalProperties" : {
+ "$ref" : "#/components/schemas/Link"
+ },
+ "type" : "object"
+ },
+ "type" : "object"
+ }
+ }
+ },
+ "description" : "OK"
+ }
+ },
+ "summary" : "Actuator endpoint - Root (actuatorLinks)",
+ "tags" : [ "Actuator API" ],
+ "x-internal" : true
+ }
+ },
+ "/actuator/heapdump" : {
+ "get" : {
+ "description" : "A1-PMS Springboot Service Actuator web endpoint - HeapDump.\n",
+ "externalDocs" : {
+ "description" : "Spring Boot Actuator Web API Documentation",
+ "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html"
+ },
+ "operationId" : "actuatorHeapdump",
+ "responses" : {
+ "200" : {
+ "content" : {
+ "application/octet-stream" : {
+ "schema" : {
+ "type" : "object"
+ }
+ }
+ },
+ "description" : "OK"
+ }
+ },
+ "summary" : "Actuator endpoint - Heapdump (actuatorHeapdump)",
+ "tags" : [ "Actuator API" ],
+ "x-internal" : true
+ }
+ },
+ "/actuator/info" : {
+ "get" : {
+ "description" : "A1-PMS Springboot Service Actuator web endpoint - Info.\n",
+ "externalDocs" : {
+ "description" : "Spring Boot Actuator Web API Documentation",
+ "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html"
+ },
+ "operationId" : "actuatorInfo",
+ "responses" : {
+ "200" : {
+ "content" : {
+ "application/vnd.spring-boot.actuator.v3+json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ },
+ "application/json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ },
+ "application/vnd.spring-boot.actuator.v2+json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ }
+ },
+ "description" : "OK"
+ }
+ },
+ "summary" : "Actuator endpoint - Info (actuatorInfo)",
+ "tags" : [ "Actuator API" ],
+ "x-internal" : true
+ }
+ },
+ "/actuator/threaddump" : {
+ "get" : {
+ "description" : "A1-PMS Springboot Service Actuator web endpoint - ThreadDump.\n",
+ "externalDocs" : {
+ "description" : "Spring Boot Actuator Web API Documentation",
+ "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html"
+ },
+ "operationId" : "actuatorThreaddump",
+ "responses" : {
+ "200" : {
+ "content" : {
+ "text/plain;charset=UTF-8" : {
+ "schema" : {
+ "type" : "object"
+ }
+ },
+ "application/vnd.spring-boot.actuator.v3+json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ },
+ "application/json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ },
+ "application/vnd.spring-boot.actuator.v2+json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ }
+ },
+ "description" : "OK"
+ }
+ },
+ "summary" : "Actuator endpoint - Threaddump (actuatorThreaddump)",
+ "tags" : [ "Actuator API" ],
+ "x-internal" : true
+ }
+ },
+ "/actuator/loggers" : {
+ "get" : {
+ "description" : "A1-PMS Springboot Service Actuator web endpoint - Get a list of Loggers.\n",
+ "externalDocs" : {
+ "description" : "Spring Boot Actuator Web API Documentation",
+ "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html"
+ },
+ "operationId" : "actuatorLoggers",
+ "responses" : {
+ "200" : {
+ "content" : {
+ "application/vnd.spring-boot.actuator.v3+json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ },
+ "application/json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ },
+ "application/vnd.spring-boot.actuator.v2+json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ }
+ },
+ "description" : "OK"
+ }
+ },
+ "summary" : "Actuator endpoint - Get Loggers (actuatorLoggers)",
+ "tags" : [ "Actuator API" ],
+ "x-internal" : true
+ }
+ },
+ "/actuator/loggers/{name}" : {
+ "get" : {
+ "description" : "A1-PMS Springboot Service Actuator web endpoint - Get a single named Logger.\n",
+ "externalDocs" : {
+ "description" : "Spring Boot Actuator Web API Documentation",
+ "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html"
+ },
+ "operationId" : "actuatorGetLogger",
+ "parameters" : [ {
+ "explode" : false,
+ "in" : "path",
+ "name" : "name",
+ "required" : true,
+ "schema" : {
+ "type" : "string"
+ },
+ "style" : "simple"
+ } ],
+ "responses" : {
+ "200" : {
+ "content" : {
+ "application/vnd.spring-boot.actuator.v3+json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ },
+ "application/json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ },
+ "application/vnd.spring-boot.actuator.v2+json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ }
+ },
+ "description" : "OK"
+ }
+ },
+ "summary" : "Actuator endpoint - Get Logger (actuatorGetLogger)",
+ "tags" : [ "Actuator API" ],
+ "x-internal" : true
},
- "policy_status_info" : {
- "description" : "Status for one A1-P Policy",
- "value" : {
- "last_modified" : "last_modified",
- "status" : {
- "value" : {
- "status" : "status"
+ "post" : {
+ "description" : "A1-PMS Springboot Service Actuator web endpoint - Create or Update single named Logger.\n",
+ "externalDocs" : {
+ "description" : "Spring Boot Actuator Web API Documentation",
+ "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html"
+ },
+ "operationId" : "actuatorSetlogger",
+ "parameters" : [ {
+ "explode" : false,
+ "in" : "path",
+ "name" : "name",
+ "required" : true,
+ "schema" : {
+ "type" : "string"
+ },
+ "style" : "simple"
+ } ],
+ "requestBody" : {
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "enum" : [ "TRACE", "DEBUG", "INFO", "WARN", "ERROR", "FATAL", "OFF" ],
+ "type" : "string"
+ }
}
}
- }
- },
+ },
+ "responses" : {
+ "200" : {
+ "content" : {
+ "*/*" : {
+ "schema" : {
+ "type" : "object"
+ }
+ }
+ },
+ "description" : "OK"
+ }
+ },
+ "summary" : "Actuator endpoint - Set Logger (actuatorSetlogger)",
+ "tags" : [ "Actuator API" ],
+ "x-internal" : true
+ }
+ },
+ "/actuator/logfile" : {
+ "get" : {
+ "description" : "A1-PMS Springboot Service Actuator web endpoint - Get the Log file.\n",
+ "externalDocs" : {
+ "description" : "Spring Boot Actuator Web API Documentation",
+ "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html"
+ },
+ "operationId" : "actuatorGetLogFile",
+ "responses" : {
+ "200" : {
+ "content" : {
+ "text/plain;charset=UTF-8" : {
+ "schema" : {
+ "type" : "object"
+ }
+ }
+ },
+ "description" : "OK"
+ }
+ },
+ "summary" : "Actuator endpoint - Log File (actuatorGetLogFile)",
+ "tags" : [ "Actuator API" ],
+ "x-internal" : true
+ }
+ },
+ "/actuator/health" : {
+ "get" : {
+ "description" : "A1-PMS Springboot Service Actuator web endpoint - Health Check.\n",
+ "externalDocs" : {
+ "description" : "Spring Boot Actuator Web API Documentation",
+ "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html"
+ },
+ "operationId" : "actuatorHealth",
+ "responses" : {
+ "200" : {
+ "content" : {
+ "application/vnd.spring-boot.actuator.v3+json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ },
+ "application/json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ },
+ "application/vnd.spring-boot.actuator.v2+json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ }
+ },
+ "description" : "OK"
+ }
+ },
+ "summary" : "Actuator endpoint - Health (actuatorHealth)",
+ "tags" : [ "Actuator API" ],
+ "x-internal" : true
+ }
+ },
+ "/actuator/health/**" : {
+ "get" : {
+ "description" : "A1-PMS Springboot Service Actuator web endpoint - Health Status for an Application Component.\n",
+ "externalDocs" : {
+ "description" : "Spring Boot Actuator Web API Documentation",
+ "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html"
+ },
+ "operationId" : "actuatorHealthComponent",
+ "responses" : {
+ "200" : {
+ "content" : {
+ "application/vnd.spring-boot.actuator.v3+json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ },
+ "application/json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ },
+ "application/vnd.spring-boot.actuator.v2+json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ }
+ },
+ "description" : "OK"
+ }
+ },
+ "summary" : "Actuator endpoint - Component Health (actuatorHealthComponent)",
+ "tags" : [ "Actuator API" ],
+ "x-internal" : true
+ }
+ },
+ "/actuator/shutdown" : {
+ "post" : {
+ "description" : "A1-PMS Springboot Service Actuator web endpoint - Shutdown the Application.\n",
+ "externalDocs" : {
+ "description" : "Spring Boot Actuator Web API Documentation",
+ "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html"
+ },
+ "operationId" : "actuatorShutdown",
+ "responses" : {
+ "200" : {
+ "content" : {
+ "application/vnd.spring-boot.actuator.v3+json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ },
+ "application/json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ },
+ "application/vnd.spring-boot.actuator.v2+json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ }
+ },
+ "description" : "OK"
+ }
+ },
+ "summary" : "Actuator endpoint - Shutdown (actuatorShutdown)",
+ "tags" : [ "Actuator API" ],
+ "x-internal" : true
+ }
+ },
+ "/actuator/metrics" : {
+ "get" : {
+ "description" : "A1-PMS Springboot Service Actuator web endpoint - Get a list of Application metrics names.\n",
+ "externalDocs" : {
+ "description" : "Spring Boot Actuator Web API Documentation",
+ "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html"
+ },
+ "operationId" : "actuatorMetrics",
+ "responses" : {
+ "200" : {
+ "content" : {
+ "application/vnd.spring-boot.actuator.v3+json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ },
+ "application/json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ },
+ "application/vnd.spring-boot.actuator.v2+json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ }
+ },
+ "description" : "OK"
+ }
+ },
+ "summary" : "Actuator endpoint - Metrics (actuatorMetrics)",
+ "tags" : [ "Actuator API" ],
+ "x-internal" : true
+ }
+ },
+ "/actuator/metrics/{requiredMetricName}" : {
+ "get" : {
+ "description" : "A1-PMS Springboot Service Actuator web endpoint - Get the value for a named Application metric.\n",
+ "externalDocs" : {
+ "description" : "Spring Boot Actuator Web API Documentation",
+ "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html"
+ },
+ "operationId" : "actuatorGetMetric",
+ "parameters" : [ {
+ "explode" : false,
+ "in" : "path",
+ "name" : "requiredMetricName",
+ "required" : true,
+ "schema" : {
+ "type" : "string"
+ },
+ "style" : "simple"
+ } ],
+ "responses" : {
+ "200" : {
+ "content" : {
+ "application/vnd.spring-boot.actuator.v3+json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ },
+ "application/json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ },
+ "application/vnd.spring-boot.actuator.v2+json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ }
+ },
+ "description" : "OK"
+ }
+ },
+ "summary" : "Actuator endpoint - Get Metric (actuatorGetMetric)",
+ "x-internal" : true
+ }
+ }
+ },
+ "components" : {
+ "examples" : {
"status_info" : {
"value" : {
"status" : "status"
"policytype_ids" : [ "some_policytype_id", "some_policytype_id" ]
}
},
+ "policy_type_id_list" : {
+ "description" : "Array of A1 Policy Type id's",
+ "value" : {
+ "policy_type_id_list" : [ "policytype_id", "policytype_id" ]
+ }
+ },
+ "policy_info" : {
+ "description" : "Information for an A1 Policy Instance",
+ "value" : {
+ "ric_id" : "ric_id1",
+ "policy_id" : "policy_id1",
+ "transient" : false,
+ "service_id" : "service_id1",
+ "policy_data" : "{}",
+ "status_notification_uri" : "status_notification_uri",
+ "policytype_id" : "policytype_id1"
+ }
+ },
"ric_info_list" : {
"value" : {
"rics" : [ {
"policytype_ids" : [ "policytype_ids", "policytype_ids" ]
} ]
}
+ },
+ "service_status_list" : {
+ "description" : "List of service information",
+ "value" : {
+ "service_list" : [ {
+ "callback_url" : "callback_url",
+ "service_id" : "service_id",
+ "keep_alive_interval_seconds" : 0,
+ "time_since_last_activity_seconds" : 6
+ }, {
+ "callback_url" : "callback_url",
+ "service_id" : "service_id",
+ "keep_alive_interval_seconds" : 0,
+ "time_since_last_activity_seconds" : 6
+ } ]
+ }
+ },
+ "policy_type_definition" : {
+ "description" : "Schema of the given A1 Policy Type",
+ "value" : {
+ "policy_schema" : "{}"
+ }
+ },
+ "policy_id_list" : {
+ "description" : "A list of policy identities",
+ "value" : {
+ "policy_ids" : [ "some_policy_id", "some_policy_id" ]
+ }
+ },
+ "policy_info_list" : {
+ "description" : "List of policy information",
+ "value" : {
+ "policies" : [ {
+ "ric_id" : "ric_id1",
+ "policy_id" : "policy_id1",
+ "transient" : false,
+ "service_id" : "service_id1",
+ "policy_data" : "{}",
+ "status_notification_uri" : "status_notification_uri",
+ "policytype_id" : "policytype_id1"
+ }, {
+ "ric_id" : "ric_id2",
+ "policy_id" : "policy_id2",
+ "transient" : true,
+ "service_id" : "service_id2",
+ "policy_data" : "{}",
+ "status_notification_uri" : "status_notification_uri",
+ "policytype_id" : "policytype_id2"
+ } ]
+ }
+ },
+ "policy_status_info" : {
+ "description" : "Status for one A1-P Policy",
+ "value" : {
+ "last_modified" : "last_modified",
+ "status" : {
+ "value" : {
+ "status" : "status"
+ }
+ }
+ }
}
},
"responses" : {
+ "NotFound" : {
+ "content" : {
+ "application/problem+json" : {
+ "example" : [ ]
+ }
+ },
+ "description" : "Not Found"
+ },
"Locked" : {
"content" : {
"application/problem+json" : {
}
},
"description" : "Forbidden"
- },
- "NotFound" : {
- "content" : {
- "application/problem+json" : {
- "example" : [ ]
- }
- },
- "description" : "Not Found"
}
},
- "schemas" : {
- "policy_type_definition" : {
- "description" : "Contains policy type schema definition",
- "properties" : {
- "policy_schema" : {
- "description" : "Policy type json schema. The schema is a json object following http://json-schema.org/draft-07/schema",
- "type" : "object"
- }
- },
- "type" : "object"
- },
- "error_information" : {
- "description" : "Problem as defined in https://tools.ietf.org/html/rfc7807",
- "properties" : {
- "detail" : {
- "description" : " A human-readable explanation specific to this occurrence of the problem.",
- "example" : "Policy type not found",
- "type" : "string"
- },
- "title" : {
- "description" : "A specific error name",
- "example" : "Not Found",
- "type" : "string"
- },
- "status" : {
- "description" : "The HTTP status code generated by the origin server for this occurrence of the problem. ",
- "example" : 404,
- "format" : "int32",
- "type" : "integer"
- }
- },
- "type" : "object"
- },
- "void" : {
- "description" : "Void/empty",
- "type" : "object"
- },
- "status_info" : {
- "properties" : {
- "status" : {
- "description" : "status text",
- "type" : "string"
- }
- },
- "type" : "object"
- },
- "authorization_result" : {
- "description" : "Result of authorization",
- "example" : {
- "result" : true
- },
+ "schemas" : {
+ "status_info" : {
"properties" : {
- "result" : {
- "description" : "If true, the access is granted",
- "type" : "boolean"
+ "status" : {
+ "description" : "status text",
+ "type" : "string"
}
},
- "required" : [ "result" ],
"type" : "object"
},
"ric_info" : {
"type" : "string"
},
"policytype_ids" : {
- "description" : "supported policy types",
+ "description" : "supported A1 Policy Types",
"items" : {
- "description" : "supported policy types",
+ "description" : "supported A1 Policy Types",
"type" : "string"
},
"type" : "array"
},
"type" : "object"
},
- "service_registration_info" : {
- "description" : "Information for one service",
+ "policy_type_id_list" : {
+ "description" : "Information about A1 Policy Types",
"properties" : {
- "callback_url" : {
- "description" : "callback for notifying of Near-RT RIC state changes",
+ "policytype_ids" : {
+ "description" : "A1 Policy Type identities",
+ "items" : {
+ "description" : "A1 Policy Type identities",
+ "type" : "string"
+ },
+ "type" : "array"
+ }
+ },
+ "type" : "object"
+ },
+ "policy_info" : {
+ "description" : "Information for one A1-P Policy",
+ "properties" : {
+ "ric_id" : {
+ "description" : "identity of the target Near-RT RIC",
+ "type" : "string"
+ },
+ "policy_id" : {
+ "description" : "identity of the policy",
"type" : "string"
},
+ "transient" : {
+ "default" : false,
+ "description" : "If true, the policy is automatically deleted if the targeted Near-RT RIC restarts or recovers. If false, the A1 Policy Instance remains, and is re-pushed to the targeted Near-RT RIC after a restart or recovery. If false, the A1 Policy Instance is maintained and must be deleted separately in the event of Near-RT RIC restart or recovery. Default is false.\n",
+ "example" : false,
+ "nullable" : false,
+ "type" : "boolean"
+ },
"service_id" : {
- "description" : "identity of the service",
+ "default" : "",
+ "description" : "The identity of the service owning the policy. This can be used to group the policies (it is possible to get all policies associated to a service). Note that the service does not need to be registered. If the service is registered, the A1 Policy Instance will be subject to the same supervision rules as the the service's other policies.\n",
"type" : "string"
},
- "keep_alive_interval_seconds" : {
- "description" : "keep alive interval for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.",
- "format" : "int64",
+ "policy_data" : {
+ "description" : "the configuration of the policy",
+ "type" : "object"
+ },
+ "status_notification_uri" : {
+ "description" : "Callback URI for policy status updates",
+ "type" : "string"
+ },
+ "policytype_id" : {
+ "description" : "identity of the A1 Policy Type",
+ "type" : "string"
+ }
+ },
+ "required" : [ "policy_data", "policy_id", "policytype_id", "ric_id" ],
+ "type" : "object"
+ },
+ "void" : {
+ "description" : "Void/empty",
+ "type" : "object"
+ },
+ "error_information" : {
+ "description" : "Problem as defined in https://tools.ietf.org/html/rfc7807",
+ "properties" : {
+ "detail" : {
+ "description" : " A human-readable explanation specific to this occurrence of the problem.",
+ "example" : "A1 Policy Type not found",
+ "type" : "string"
+ },
+ "title" : {
+ "description" : "A specific error name",
+ "example" : "Not Found",
+ "type" : "string"
+ },
+ "status" : {
+ "description" : "The HTTP status code generated by the origin server for this occurrence of the problem. ",
+ "example" : 404,
+ "format" : "int32",
"type" : "integer"
}
},
- "required" : [ "service_id" ],
"type" : "object"
},
- "policy_info_list" : {
- "description" : "List of policy information",
+ "ric_info_list" : {
+ "description" : "List of Near-RT RIC information",
"properties" : {
- "policies" : {
- "description" : "List of policy information",
+ "rics" : {
+ "description" : "List of Near-RT RIC information",
"items" : {
- "$ref" : "#/components/schemas/policy_info"
+ "$ref" : "#/components/schemas/ric_info"
},
"type" : "array"
}
},
"type" : "object"
},
- "policy_status_info" : {
- "description" : "Status for one A1-P Policy",
+ "service_status_list" : {
"properties" : {
- "last_modified" : {
- "description" : "timestamp, last modification time",
- "type" : "string"
- },
- "status" : {
- "description" : "the Policy status",
- "type" : "object"
+ "service_list" : {
+ "description" : "List of service information",
+ "items" : {
+ "$ref" : "#/components/schemas/service_status"
+ },
+ "type" : "array"
}
},
"type" : "object"
},
"type" : "object"
},
- "ric_info_list" : {
- "description" : "List of Near-RT RIC information",
- "properties" : {
- "rics" : {
- "description" : "List of Near-RT RIC information",
- "items" : {
- "$ref" : "#/components/schemas/ric_info"
- },
- "type" : "array"
- }
- },
- "type" : "object"
- },
- "input" : {
- "description" : "input",
+ "service_registration_info" : {
+ "description" : "Information for one service",
"properties" : {
- "access_type" : {
- "description" : "Access type",
- "enum" : [ "READ", "WRITE", "DELETE" ],
+ "callback_url" : {
+ "description" : "Callback for notifying of Near-RT RIC state changes",
"type" : "string"
},
- "auth_token" : {
- "description" : "Authorization token",
+ "service_id" : {
+ "description" : "identity of the service",
"type" : "string"
},
- "policy_type_id" : {
- "description" : "Policy type identifier",
- "type" : "string"
- }
- },
- "required" : [ "access_type", "auth_token", "policy_type_id" ],
- "type" : "object"
- },
- "policy_authorization" : {
- "description" : "Authorization request for A1 policy requests",
- "properties" : {
- "input" : {
- "$ref" : "#/components/schemas/input"
+ "keep_alive_interval_seconds" : {
+ "description" : "Keep alive interval for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.\n",
+ "format" : "int64",
+ "type" : "integer"
}
},
- "required" : [ "input" ],
+ "required" : [ "service_id" ],
"type" : "object"
},
- "policy_type_id_list" : {
- "description" : "Information about policy types",
+ "service_callback_info_v2" : {
+ "description" : "Information transferred in Service callbacks, \nif a callback URL was provided for a registered service\n",
"properties" : {
- "policytype_ids" : {
- "description" : "Policy type identities",
- "items" : {
- "description" : "Policy type identities",
- "type" : "string"
- },
- "type" : "array"
+ "ric_id" : {
+ "description" : "identity of a Near-RT RIC",
+ "type" : "string"
+ },
+ "event_type" : {
+ "description" : "values: \n AVAILABLE: the Near-RT RIC has become available for A1 Policy management\n",
+ "enum" : [ "AVAILABLE" ],
+ "type" : "string"
}
},
+ "required" : [ "event_type", "ric_id" ],
"type" : "object"
},
- "policy_info" : {
- "description" : "Information for one A1-P Policy",
+ "policy_type_definition" : {
+ "description" : "Contains A1 Policy Type schema definition",
"properties" : {
- "ric_id" : {
- "description" : "identity of the target Near-RT RIC",
- "type" : "string"
- },
- "policy_id" : {
- "description" : "identity of the policy",
- "type" : "string"
- },
- "transient" : {
- "default" : false,
- "description" : "if true, the policy is deleted at RIC restart. If false, its value is maintained by this service until explicitly deleted. Default false.",
- "example" : false,
- "nullable" : false,
- "type" : "boolean"
- },
- "service_id" : {
- "default" : "",
- "description" : "the identity of the service owning the policy. This can be used to group the policies (it is possible to get all policies associated to a service). Note that the service does not need to be registered.",
- "type" : "string"
- },
- "policy_data" : {
- "description" : "the configuration of the policy",
+ "policy_schema" : {
+ "description" : "A1 Policy Type json schema. The schema is a json object following http://json-schema.org/draft-07/schema",
"type" : "object"
- },
- "status_notification_uri" : {
- "description" : "Callback URI for policy status updates",
- "type" : "string"
- },
- "policytype_id" : {
- "description" : "identity of the policy type",
- "type" : "string"
}
},
- "required" : [ "policy_data", "policy_id", "policytype_id", "ric_id" ],
"type" : "object"
},
"policy_id_list" : {
},
"type" : "object"
},
- "service_status_list" : {
+ "policy_info_list" : {
+ "description" : "List of policy information",
"properties" : {
- "service_list" : {
- "description" : "List of service information",
+ "policies" : {
+ "description" : "List of policy information",
"items" : {
- "$ref" : "#/components/schemas/service_status"
+ "$ref" : "#/components/schemas/policy_info"
},
"type" : "array"
}
},
"type" : "object"
},
- "service_callback_info_v2" : {
- "description" : "Information transferred as in Service callbacks (callback_url)",
+ "policy_status_info" : {
+ "description" : "Status for one A1-P Policy",
"properties" : {
- "ric_id" : {
- "description" : "identity of a Near-RT RIC",
+ "last_modified" : {
+ "description" : "timestamp, last modification time",
"type" : "string"
},
- "event_type" : {
- "description" : "values:\nAVAILABLE: the Near-RT RIC has become available for A1 Policy management",
- "enum" : [ "AVAILABLE" ],
+ "status" : {
+ "description" : "the Policy status",
+ "type" : "object"
+ }
+ },
+ "type" : "object"
+ },
+ "policy_authorization" : {
+ "description" : "Authorization request for A1 policy requests",
+ "properties" : {
+ "input" : {
+ "$ref" : "#/components/schemas/input"
+ }
+ },
+ "required" : [ "input" ],
+ "type" : "object"
+ },
+ "input" : {
+ "description" : "input",
+ "properties" : {
+ "access_type" : {
+ "description" : "Access type",
+ "enum" : [ "READ", "WRITE", "DELETE" ],
+ "type" : "string"
+ },
+ "auth_token" : {
+ "description" : "Authorization token",
+ "type" : "string"
+ },
+ "policy_type_id" : {
+ "description" : "A1 Policy Type identifier",
"type" : "string"
}
},
- "required" : [ "event_type", "ric_id" ],
+ "required" : [ "access_type", "auth_token", "policy_type_id" ],
+ "type" : "object"
+ },
+ "authorization_result" : {
+ "description" : "Result of authorization",
+ "example" : {
+ "result" : true
+ },
+ "properties" : {
+ "result" : {
+ "description" : "If true, the access is granted",
+ "type" : "boolean"
+ }
+ },
+ "required" : [ "result" ],
"type" : "object"
},
"Link" : {
+# ============LICENSE_START=======================================================
+# Copyright (C) 2020-2023 Nordix Foundation. All rights reserved.
# Copyright (C) 2023-2025 OpenInfra Foundation Europe. All rights reserved.
-# Modifications Copyright (C) 2021 Pantheon.tech
-# Modifications Copyright (C) 2021 Bell Canada
# ================================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
openapi: 3.0.3
info:
- x-api-id: a31c510b-20e6-4a08-af16-368c44d7fba8
- x-audience: external-public
- description: "<h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service\
- \ provides a REST API for managemecnt of A1 policies. <br/>The main tasks of the\
- \ service are:</p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring\
- \ and maintaining consistency of the SMO view of A1 policies and the Near-RT RICs</li><li>Maintaining\
- \ a view of supported Near-RT RIC policy types</li><li>Supervision of using services\
- \ (R-APPs). When a service is unavailable, its policies are removed.</li></ul><h2>APIs\
- \ provided or defined by the service</h2><h3>A1 Policy Management</h3><p>This\
- \ is an API for management of A1 Policies.</p><ul><li>A1 Policy retrieval, creation,\
- \ modification and deletion.</li><li>Retrieval of supported A1 Policy types for\
- \ a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management\
- \ of configuration</h3><p>API for updating and retrieval of the component configuration.\
- \ Note that there other ways to maintain the configuration.</p><h3>Service callbacks</h3><p>These\
- \ are endpoints that are invoked by this service. The callbacks are registered\
- \ in this service at service registration.</p><h3>NearRT-RIC Repository</h3><p>This\
- \ is an API that provides support for looking up a NearRT-RIC. Each A1 policy\
- \ is targeted for one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision\
- \ of the PMS component.</p><h3>Service Registry and Supervision</h3><p>API used\
- \ for registering services that uses PMS. Each A1 policy is optionally owned by\
- \ a service. PMS can supervise each registered service by a heart-beat supervision\
- \ and will automatically remove policies for unavailable services. Note that a\
- \ service does not need to be registered in order to create A1 Policies. This\
- \ is a feature that is optional to use.</p><h3>Authorization API</h3><p>API used\
- \ for access control of A1 Policy access. If configured, an external authorization\
- \ provider is requested to grant access to the A1 Policy type.</p><h3>Spring Boot\
- \ Actuator</h3><p>Provides generic functions used to monitor and manage the Spring\
- \ web application.</p>"
+ contact:
+ email: discuss-list@onap.com
+ name: ONAP CCSDK Project
+ url: https://www.onap.org/
+ description: "<h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides\
+ \ a REST API for managing A1 policies. <br/>This document describes an older pre-spec\
+ \ API set to perform tasks for: </p><ul><li>A1 Policy creation, modification\
+ \ and deletion.</li><li>Monitoring and maintaining consistency of the SMO view\
+ \ of A1 Policies and the Near-RT RICs</li><li>Maintaining a view of each Near-RT\
+ \ RIC's supported A1 Policy Types</li><li>Supervision of registered services (rApps).\
+ \ When a registered service is unavailable, its policies are removed.</li></ul><h2>APIs\
+ \ provided or defined by the service</h2><h3>A1 Policy Management (Older pre-spec\
+ \ version) </h3> <p>This is an older API for managing A1 Policies:</p><ul><li>A1\
+ \ Policy retrieval, creation, modification and deletion.</li><li>Retrieval of\
+ \ supported A1 Policy Types for a Near-RT RIC</li><li>Retrieval of status for\
+ \ existing A1 policies</li></ul><h3>Management of configuration</h3><p>API for\
+ \ updating and retrieval of the component configuration. Note that there other\
+ \ ways to maintain the configuration.</p><h3>Service Callbacks</h3><p>These are\
+ \ endpoints that are invoked by this service. The callbacks are registered in\
+ \ this service at service registration.</p><h3>NearRT-RIC Repository (Older version)</h3>\
+ \ <p>This is an API that provides support for looking up a NearRT-RIC. Each A1\
+ \ policy is targeted towards one Near-RT RIC.</p><h3>Health Check</h3><p>API used\
+ \ for supervision of the A1 Policy Management Service .</p><h3>Service Registry\
+ \ and Supervision</h3> <p>API used for registering services/clients/rApps. Each\
+ \ A1 Policy can be tagged with an owner. If the owner service is registered, then\
+ \ the service can be monitored by a heart-beat supervision mechanism, and if the\
+ \ registered service becomes unavailable, then its A1 Policies are removed. Note\
+ \ that services do not need to be registered to create A1 Policies, but unregistered\
+ \ services are not supervised. This is a feature that is optional to use.</p><h3>Authorization\
+ \ API</h3><p>API used for access control of A1 Policy access. If configured, an\
+ \ external authorization provider is requested to grant access to the A1 Policy\
+ \ Type.</p><h3>Spring Boot Actuator</h3><p>Provides built-in functions used to\
+ \ monitor and configure the Spring web application hosting the service.</p>"
license:
- name: Copyright (C) 2020-2023 Nordix Foundation, and Copyright (C) 2024-2025 OpenInfra Foundation Europe.
- All rights reserved. Licensed under the Apache 2 License.
+ name: "Copyright (C) 2020-2023 Nordix Foundation, and Copyright (C) 2024-2025\
+ \ OpenInfra Foundation Europe. \nAll rights reserved. Licensed under the Apache\
+ \ 2 License.\n"
url: http://www.apache.org/licenses/LICENSE-2.0
- title: ONAP CCSDK A1 Policy Management Service
+ title: ONAP CCSDK - Pre-Spec A1 Policy Management API
version: 1.3.0
- contact:
- url: https://www.onap.org/
- email: discuss-list@onap.com
+ x-api-id: a31c510b-20e6-4a08-af16-368c44d7fba8
+ x-audience: external-public
servers:
- - url: /
+- url: /
tags:
- - name: A1 Policy Management (Older version)
- description: "Older API used to create polices, Policy Instances and get them as individual
- using an ID or get all policies/Instances."
- - name: NearRT-RIC Repository
- description: "API used to get the NearRT-RIC for the managed element."
- - name: Service Registry and Supervision
- description: "API used to keep the service Alive with in the timeout period"
- - name: Health Check
- description: "API used to get the health status and statistics of this service"
- - name: Service callbacks
- description: "Callouts to indicate status schanges relevant for Services.
- <br> Note that these calls are called by A1-PMS, not provided."
- - name: Authorization API
- description: "API used for authorization of information A1 policy access (this is
- provided by an authorization producer such as OPA). <br> Note that this API is called
- by A1-PMS, it is not provided."
- - name: Configuration
- description: "API used to create or fetch the application configuration."
- - name: Actuator
- description: Monitor and interact
- externalDocs:
- description: Spring Boot Actuator Web API Documentation
- url: https://docs.spring.io/spring-boot/docs/current/actuator-api/html/
+- description: |
+ Older pre-spec API used to get, create, update and delete A1 Policy Instances. Also used to query A1 Policy Types.
+ name: A1 Policy Management
+- description: |
+ Older API used to get information about registered Near-RT RICs.
+ name: NearRT-RIC Repository
+- description: |
+ Older API used to manage registered services, and control their keep-alive status via heart-beat messages.
+ name: Service Registry and Supervision
+- description: |
+ API used to get the health status and statistics of this service
+ name: Health Check
+- description: |
+ Callout to registered services to indicate a status changes for a Near-RT RIC. Note that these operations are called by the A1 Policy Management Service, not provided.
+ name: Service Callbacks
+- description: |
+ API used for authorization of information A1 policy access (this is provided by an authorization producer such as OPA). Note that these operations are called by the A1 Policy Management Service, not provided.
+ name: Authorization API
+- description: |
+ API used to create or fetch the application configuration.
+ name: Configuration
+- description: |
+ API used to monitor and configure the A1-PMS Springboot Service.
+ externalDocs:
+ description: Spring Boot Actuator Web API Documentation
+ url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html
+ name: Actuator API
paths:
- /a1-policy/v2/policy-instances:
- get:
- description: "Returns a list of A1 policies matching given search criteria.\
- \ <br>If several query parameters are defined, the policies matching all conditions\
- \ are returned."
- operationId: getPolicyInstances
- parameters:
- - description: Select policies with a given type identity.
- explode: true
- in: query
- name: policytype_id
- required: false
- schema:
- type: string
- style: form
- - description: Select policies for a given Near-RT RIC identity.
- explode: true
- in: query
- name: ric_id
- required: false
- schema:
- type: string
- style: form
- - description: Select policies owned by a given service.
- explode: true
- in: query
- name: service_id
- required: false
- schema:
- type: string
- style: form
- - description: Select policies of a given type name (type identity has the format
- <typename_version>)
- explode: true
- in: query
- name: type_name
- required: false
- schema:
- type: string
- style: form
- responses:
- "200":
- content:
- application/json:
- examples:
- policy_info_list:
- $ref: '#/components/examples/policy_info_list'
- schema:
- $ref: '#/components/schemas/policy_info_list'
- description: OK - Returns A1 Policies which matches the criteria
- "404":
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/error_information'
- description: "Not Found - Near-RT RIC, policy type or service not found"
- summary: Query for A1 policy instances
- tags:
- - A1 Policy Management
- /example-authz-check:
- post:
- description: The authorization function decides if access is granted.
- operationId: performAccessControl
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/policy_authorization'
- required: true
- responses:
- "200":
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/authorization_result'
- description: OK
- "403":
- $ref: '#/components/responses/Forbidden'
- summary: Request for access authorization.
- tags:
- - Authorization API
- /actuator/threaddump:
+ /status:
get:
- x-internal: true
- operationId: threaddump
+ description: Returns status and statistics of this service
+ operationId: getStatusV1
responses:
"200":
content:
- text/plain;charset=UTF-8:
- schema:
- type: object
- application/vnd.spring-boot.actuator.v3+json:
- schema:
- type: object
- application/json:
- schema:
- type: object
- application/vnd.spring-boot.actuator.v2+json:
+ '*/*':
schema:
- type: object
- description: OK
- summary: Actuator web endpoint 'threaddump'
+ type: string
+ description: OK - Service is living
+ summary: Get Status (getStatusV1)
tags:
- - Actuator
+ - Health Check
/a1-policy/v2/status:
get:
+ description: Returns status and statistics of this service
operationId: getStatus
responses:
"200":
content:
application/json:
- schema:
- $ref: '#/components/schemas/status_info'
examples:
status_info:
$ref: '#/components/examples/status_info'
- description: OK- Service is living Ok
- description: Returns status and statistics of this service
- tags:
- - Health Check
- /actuator/loggers:
- get:
- x-internal: true
- operationId: loggers
- responses:
- "200":
- content:
- application/vnd.spring-boot.actuator.v3+json:
- schema:
- type: object
- application/json:
- schema:
- type: object
- application/vnd.spring-boot.actuator.v2+json:
- schema:
- type: object
- description: OK
- summary: Actuator web endpoint 'loggers'
- tags:
- - Actuator
- /actuator/health/**:
- get:
- x-internal: true
- operationId: health-path
- responses:
- "200":
- content:
- application/vnd.spring-boot.actuator.v3+json:
- schema:
- type: object
- application/json:
schema:
- type: object
- application/vnd.spring-boot.actuator.v2+json:
- schema:
- type: object
- description: OK
- summary: Actuator web endpoint 'health-path'
+ $ref: '#/components/schemas/status_info'
+ description: OK- Service is living Ok
+ summary: Get Status (getStatus)
tags:
- - Actuator
+ - Health Check
/a1-policy/v2/rics/ric:
get:
- description: Either a Near-RT RIC identity or a Managed Element identity can
- be specified.<br>The intention with Managed Element identity is the ID used
- in O1 for accessing the traffical element (such as the ID of CU).
+ description: |
+ Query information about a Near-RT RIC. Either a Near-RT RIC identity or a Managed Element identity can be specified. The intention with Managed Element identity is the ID used in O1 for accessing the traffical element (such as the ID of CU).
operationId: getRic
parameters:
- - description: "The identity of a Managed Element. If given, the Near-RT RIC\
- \ managing the ME is returned."
- explode: true
- in: query
- name: managed_element_id
- required: false
- schema:
- type: string
- style: form
- - description: The identity of a Near-RT RIC to get information for.
- explode: true
- in: query
- name: ric_id
- required: false
- schema:
- type: string
- style: form
+ - description: |
+ The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned.
+ explode: true
+ in: query
+ name: managed_element_id
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: The identity of a Near-RT RIC to get information for.
+ explode: true
+ in: query
+ name: ric_id
+ required: false
+ schema:
+ type: string
+ style: form
responses:
"200":
content:
application/json:
- schema:
- $ref: '#/components/schemas/ric_info'
examples:
ric_info:
$ref: '#/components/examples/ric_info'
+ schema:
+ $ref: '#/components/schemas/ric_info'
description: OK - Near-RT RIC is found
"404":
- $ref: '#/components/responses/NotFound'
- description: NotFound - Requested NearRT-RIC Not Found
- summary: Returns info of Near-RT RIC queried by the ric-id and managed-element-id
- tags:
- - NearRT-RIC Repository
- /actuator/shutdown:
- post:
- x-internal: true
- operationId: shutdown
- responses:
- "200":
content:
- application/vnd.spring-boot.actuator.v3+json:
- schema:
- type: object
- application/json:
- schema:
- type: object
- application/vnd.spring-boot.actuator.v2+json:
- schema:
- type: object
- description: OK
- summary: Actuator web endpoint 'shutdown'
+ application/problem+json:
+ example: []
+ description: Not Found
+ summary: Get a Near-RT RIC (getRic)
tags:
- - Actuator
+ - NearRT-RIC Repository
/a1-policy/v2/policy-types:
get:
+ description: Query A1 Policy Type identities using query parameters
operationId: getPolicyTypes
parameters:
- - description: Select types for the given Near-RT RIC identity.
- explode: true
- in: query
- name: ric_id
- required: false
- schema:
- type: string
- style: form
- - description: Select types with the given type name (type identity has the
- format <typename_version>)
- explode: true
- in: query
- name: type_name
- required: false
- schema:
- type: string
- style: form
- - description: Select types that are compatible with the given version. This
- parameter is only applicable in conjunction with type_name. As an example
- version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching
- types will be returned sorted in ascending order.
- explode: true
- in: query
- name: compatible_with_version
- required: false
- schema:
- type: string
- style: form
+ - description: Select types for the given Near-RT RIC identity.
+ explode: true
+ in: query
+ name: ric_id
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: Select types compatible with the given type name (type identity
+ has the format 'typename_version')
+ explode: true
+ in: query
+ name: type_name
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: Select types that are compatible with the given version. This
+ parameter is only applicable in conjunction with type_name. As an example
+ version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching
+ types will be returned sorted in ascending order.
+ explode: true
+ in: query
+ name: compatible_with_version
+ required: false
+ schema:
+ type: string
+ style: form
responses:
"200":
content:
$ref: '#/components/schemas/policy_type_id_list'
description: OK - Policy Type IDs Found
"404":
- $ref: '#/components/responses/NotFound'
- description: 'Not Found - Requested Policy Type IDs Not Found'
- description: Query policy type identities
+ content:
+ application/problem+json:
+ example: []
+ description: Not Found
+ summary: Get A1 Policy Types (getPolicyTypes)
tags:
- - A1 Policy Management
+ - A1 Policy Management
/a1-policy/v2/policies/{policy_id}:
delete:
- description: Deleting the policy using the Policy's Policy ID.
+ description: Delete an A1 Policy instance using its policy ID.
operationId: deletePolicy
parameters:
- - explode: false
- in: path
- name: policy_id
- required: true
- schema:
- type: string
- style: simple
+ - explode: false
+ in: path
+ name: policy_id
+ required: true
+ schema:
+ type: string
+ style: simple
responses:
"200":
content:
$ref: '#/components/schemas/void'
description: OK - Policy deleted
"423":
- $ref: '#/components/responses/Locked'
- description: 'The requested policy using policy_id is Locked'
- summary: Delete a policy
+ content:
+ application/problem+json:
+ example:
+ status: 423
+ title: Locked
+ detail: Requested resource is in a locked state.
+ schema:
+ $ref: '#/components/schemas/error_information'
+ description: Locked - HTTP Status code which can be used when the state
+ is Locked
+ summary: Delete an A1 Policy instance (deletePolicy)
tags:
- - A1 Policy Management
+ - A1 Policy Management
get:
+ description: Get an A1 Policy instance using its policy ID
operationId: getPolicy
parameters:
- - explode: false
- in: path
- name: policy_id
- required: true
- schema:
- type: string
- style: simple
+ - explode: false
+ in: path
+ name: policy_id
+ required: true
+ schema:
+ type: string
+ style: simple
responses:
"200":
content:
application/json:
- schema:
- $ref: '#/components/schemas/policy_info'
examples:
policy_info:
$ref: '#/components/examples/policy_info'
+ schema:
+ $ref: '#/components/schemas/policy_info'
description: OK - Policy found
"404":
- $ref: '#/components/responses/NotFound'
- description: 'Not Found - Requested Policy using policy_id is not found'
- description: Returns a policy
+ content:
+ application/problem+json:
+ example: []
+ description: Not Found
+ summary: Get an A1 Policy instance (getPolicy)
tags:
- - A1 Policy Management
- /actuator/metrics/{requiredMetricName}:
- get:
- x-internal: true
- operationId: metrics-requiredMetricName
+ - A1 Policy Management
+ /a1-policy/v2/services/{service_id}/keepalive:
+ put:
+ description: "A registered service should invoke this operation regularly to\
+ \ indicate that it is still alive. If a registered service fails to invoke\
+ \ some operation, or this operation, before the end of a timeout period the\
+ \ service will be deregistered and all its A1 policies wil be removed. This\
+ \ operation is only intended for registered services. (This timeout can be\
+ \ set or disabled when each service is initially registered)"
+ operationId: keepAliveService
parameters:
- - explode: false
- in: path
- name: requiredMetricName
- required: true
- schema:
- type: string
- style: simple
+ - explode: false
+ in: path
+ name: service_id
+ required: true
+ schema:
+ type: string
+ style: simple
responses:
"200":
content:
- application/vnd.spring-boot.actuator.v3+json:
+ '*/*':
schema:
type: object
+ description: "OK - Service supervision timer refreshed, OK"
+ "404":
+ content:
+ application/problem+json:
+ example: []
+ description: Not Found
+ summary: Heartbeat message from a service (keepAliveService)
+ tags:
+ - Service Registry and Supervision
+ /a1-policy/v2/rics:
+ get:
+ description: Get all Near-RT RICs that supports a given A1 Policy Type ID
+ operationId: getRics
+ parameters:
+ - description: |
+ The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned.
+ explode: true
+ in: query
+ name: policytype_id
+ required: false
+ schema:
+ type: string
+ style: form
+ responses:
+ "200":
+ content:
application/json:
+ examples:
+ ric_info_list:
+ $ref: '#/components/examples/ric_info_list'
schema:
- type: object
- application/vnd.spring-boot.actuator.v2+json:
- schema:
- type: object
+ $ref: '#/components/schemas/ric_info_list'
description: OK
- summary: Actuator web endpoint 'metrics-requiredMetricName'
+ "404":
+ content:
+ application/problem+json:
+ example: []
+ description: Not Found
+ summary: Get Near-RT RICs for A1 Policy Type (getRics)
tags:
- - Actuator
- /a1-policy/v2/configuration:
+ - NearRT-RIC Repository
+ /a1-policy/v2/services:
get:
- operationId: getConfiguration
+ description: |
+ Get information about all registered services, or a single registered service. If the service ID of a registered service is included in the query, information about that service is returned. Otherwise Information about all registered is returned. This operation does not retrieve information about unregistered services.
+ operationId: getServices
+ parameters:
+ - description: The identity of the registered service
+ explode: true
+ in: query
+ name: service_id
+ required: false
+ schema:
+ type: string
+ style: form
responses:
"200":
content:
application/json:
+ examples:
+ service_status_list:
+ $ref: '#/components/examples/service_status_list'
schema:
- type: string
- description: OK - Configuration
+ $ref: '#/components/schemas/service_status_list'
+ description: OK
"404":
- $ref: '#/components/responses/NotFound'
- description: Not Found - Configuration is not found or readable
- description: Returns the contents of the application configuration file
+ content:
+ application/problem+json:
+ example: []
+ description: Not Found
+ summary: Get Services (getServices)
tags:
- - Configuration
+ - Service Registry and Supervision
put:
- operationId: putConfiguration
+ callbacks:
+ RICStatus:
+ '{$request.body#/callback_url}':
+ post:
+ description: "Callouts to indicate Near-RT RIC status changes relevant\
+ \ for Services. \nThe URL invoked by this callback is provided at\
+ \ Service registration.\n"
+ operationId: serviceCallback
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/service_callback_info_v2'
+ required: true
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/void'
+ description: OK
+ "404":
+ content:
+ application/problem+json:
+ example: []
+ description: Not Found
+ summary: Callback for Near-RT RIC status (serviceCallback)
+ tags:
+ - Service Registry and Supervision
+ - Service Callbacks
+ x-callback-request: true
+ description: |
+ Register a single service, or update a previous registtration. Service registration is required to get callbacks about available NearRT RICs and to enable supervision of the service's active status. If a registered service becomes inactive, its policies can be automatically deleted. A1 Policy instances can also be created for unregistered services. If an unregistered service is later registered, the service's policies are retained when the service becomes registered. This feature is optional to use.
+ operationId: putService
requestBody:
content:
application/json:
schema:
- type: object
+ $ref: '#/components/schemas/service_registration_info'
required: true
responses:
"200":
content:
'*/*':
schema:
- $ref: '#/components/schemas/void'
- description: OK - Configuration updated
+ type: object
+ description: OK - Service updated
+ "201":
+ content:
+ '*/*':
+ schema:
+ type: object
+ description: Created - Service created
"400":
- $ref: '#/components/responses/BadRequest'
- description: Replace the current configuration with the given configuration
- tags:
- - Configuration
- /actuator:
- get:
- x-internal: true
- operationId: links
- responses:
- "200":
content:
- application/vnd.spring-boot.actuator.v3+json:
+ application/problem+json:
+ example:
+ status: 400
+ title: Bad Request
+ detail: The provided request is not valid.
schema:
- additionalProperties:
- additionalProperties:
- $ref: '#/components/schemas/Link'
- type: object
- type: object
+ $ref: '#/components/schemas/error_information'
+ description: Bad Request
+ summary: Register or update a Service (putService)
+ tags:
+ - Service Registry and Supervision
+ /a1-policy/v2/policy-types/{policytype_id}:
+ get:
+ description: Get an A1 Policy Type definition using its policy type ID
+ operationId: getPolicyTypeDefinition
+ parameters:
+ - explode: false
+ in: path
+ name: policytype_id
+ required: true
+ schema:
+ type: string
+ style: simple
+ responses:
+ "200":
+ content:
application/json:
+ examples:
+ policy_type_definition:
+ $ref: '#/components/examples/policy_type_definition'
schema:
- additionalProperties:
- additionalProperties:
- $ref: '#/components/schemas/Link'
- type: object
- type: object
- application/vnd.spring-boot.actuator.v2+json:
- schema:
- additionalProperties:
- additionalProperties:
- $ref: '#/components/schemas/Link'
- type: object
- type: object
- description: OK
- summary: Actuator root web endpoint
+ $ref: '#/components/schemas/policy_type_definition'
+ description: OK - schema of the requested A1 Policy Type
+ "404":
+ content:
+ application/problem+json:
+ example: []
+ description: Not Found
+ summary: Get an A1 Policy Type definition (getPolicyTypeDefinition)
tags:
- - Actuator
- /actuator/loggers/{name}:
+ - A1 Policy Management
+ /a1-policy/v2/policies:
get:
- x-internal: true
- operationId: loggers-name
+ description: |
+ Retrieve a list of A1 Policy Instance IDs for policies that match given search criteria. If multiple query parameters are given, the policies matching all conditions are returned.
+ operationId: getPolicyIds
parameters:
- - explode: false
- in: path
- name: name
- required: true
- schema:
- type: string
- style: simple
+ - description: Select policies of a given A1 Policy Type ID.
+ explode: true
+ in: query
+ name: policytype_id
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: Select policies of a given Near-RT RIC identity.
+ explode: true
+ in: query
+ name: ric_id
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: Select policies owned by a given service. (Both registered and
+ unregistered services)
+ explode: true
+ in: query
+ name: service_id
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: |
+ Select policies of types with the given A1 Policy Type name (type names have the format 'typename_version')
+ explode: true
+ in: query
+ name: type_name
+ required: false
+ schema:
+ type: string
+ style: form
responses:
"200":
content:
- application/vnd.spring-boot.actuator.v3+json:
- schema:
- type: object
application/json:
+ examples:
+ policy_id_list:
+ $ref: '#/components/examples/policy_id_list'
schema:
- type: object
- application/vnd.spring-boot.actuator.v2+json:
- schema:
- type: object
- description: OK
- summary: Actuator web endpoint 'loggers-name'
+ $ref: '#/components/schemas/policy_id_list'
+ description: OK - Policy identities
+ "404":
+ content:
+ application/problem+json:
+ example: []
+ description: Not Found
+ summary: Query A1 Policy Instances (getPolicyIds)
tags:
- - Actuator
- post:
- x-internal: true
- operationId: loggers-name_2
- parameters:
- - explode: false
- in: path
- name: name
- required: true
- schema:
- type: string
- style: simple
+ - A1 Policy Management
+ put:
+ description: Create or Update an A1 Policy Instance
+ operationId: putPolicy
requestBody:
content:
application/json:
schema:
- enum:
- - TRACE
- - DEBUG
- - INFO
- - WARN
- - ERROR
- - FATAL
- - "OFF"
- type: string
+ $ref: '#/components/schemas/policy_info'
+ required: true
responses:
"200":
content:
- '*/*':
+ application/json:
schema:
- type: object
- description: OK
- summary: Actuator web endpoint 'loggers-name'
- tags:
- - Actuator
- /a1-policy/v2/services/{service_id}/keepalive:
- put:
- description: A registered service should invoke this operation regularly to
- indicate that it is still alive. If a registered service fails to invoke this
- operation before the end of a timeout period the service will be deregistered
- and all its A1 policies wil be removed. (This timeout can be set or disabled
- when each service is initially registered)
- operationId: keepAliveService
- parameters:
- - explode: false
- in: path
- name: service_id
- required: true
- schema:
- type: string
- style: simple
- responses:
- "200":
+ $ref: '#/components/schemas/void'
+ description: OK - Policy updated
+ "201":
content:
- '*/*':
+ application/json:
schema:
- type: object
- description: "OK - Service supervision timer refreshed, OK"
- "404":
- $ref: '#/components/responses/NotFound'
- summary: Heartbeat indicates that the service is running
+ $ref: '#/components/schemas/void'
+ description: Created - Policy created
+ "423":
+ content:
+ application/problem+json:
+ example:
+ status: 423
+ title: Locked
+ detail: Requested resource is in a locked state.
+ schema:
+ $ref: '#/components/schemas/error_information'
+ description: Locked - HTTP Status code which can be used when the state
+ is Locked
+ summary: Create or Update an A1 Policy Instance (putPolicy)
tags:
- - Service Registry and Supervision
- /actuator/metrics:
+ - A1 Policy Management
+ /a1-policy/v2/policy-instances:
get:
- x-internal: true
- operationId: metrics
+ description: |
+ Returns a collection of A1 Policy Instance information for policies that match given search criteria. If several query parameters are defined, the policies matching all conditions are returned.
+ operationId: getPolicyInstances
+ parameters:
+ - description: Select policies with a given A1 Policy Type ID.
+ explode: true
+ in: query
+ name: policytype_id
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: Select policies for a given Near-RT RIC identity.
+ explode: true
+ in: query
+ name: ric_id
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: Select policies owned by a given service (registered or unregistered).
+ explode: true
+ in: query
+ name: service_id
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: Select policies of a given A1 Policy Type name (type identity
+ has the format 'typename_version').
+ explode: true
+ in: query
+ name: type_name
+ required: false
+ schema:
+ type: string
+ style: form
responses:
"200":
content:
- application/vnd.spring-boot.actuator.v3+json:
+ application/json:
+ examples:
+ policy_info_list:
+ $ref: '#/components/examples/policy_info_list'
schema:
- type: object
+ $ref: '#/components/schemas/policy_info_list'
+ description: OK - Returns A1 Policy Instances which match the criteria
+ "404":
+ content:
application/json:
schema:
- type: object
- application/vnd.spring-boot.actuator.v2+json:
+ $ref: '#/components/schemas/error_information'
+ description: "Not Found - Near-RT RIC, A1 Policy Type or service was not\
+ \ found"
+ summary: Query for A1 Policy instances (getPolicyInstances)
+ tags:
+ - A1 Policy Management
+ /a1-policy/v2/services/{service_id}:
+ delete:
+ description: |
+ Unregister a registered Service using its service ID. Only registered services can be unregistered. All A1 Policy Instances for the previously registered service will be removed.
+ operationId: deleteService
+ parameters:
+ - explode: false
+ in: path
+ name: service_id
+ required: true
+ schema:
+ type: string
+ style: simple
+ responses:
+ "204":
+ content:
+ '*/*':
schema:
type: object
- description: OK
- summary: Actuator web endpoint 'metrics'
+ description: No Content - Service unregistered
+ "404":
+ content:
+ application/problem+json:
+ example: []
+ description: Not Found
+ summary: Unregister a Service (deleteService)
tags:
- - Actuator
- /a1-policy/v2/rics:
+ - Service Registry and Supervision
+ /a1-policy/v2/policies/{policy_id}/status:
get:
- description: The call returns all Near-RT RICs that supports a given policy
- type identity
- operationId: getRics
+ description: Retrieve the status information for an A1 Policy Instance.
+ operationId: getPolicyStatus
parameters:
- - description: "The identity of a policy type. If given, all Near-RT RICs supporting\
- \ the policy type are returned"
- explode: true
- in: query
- name: policytype_id
- required: false
- schema:
- type: string
- style: form
+ - explode: false
+ in: path
+ name: policy_id
+ required: true
+ schema:
+ type: string
+ style: simple
responses:
"200":
content:
application/json:
- schema:
- $ref: '#/components/schemas/ric_info_list'
examples:
- ric_info_list:
- $ref: '#/components/examples/ric_info_list'
- description: OK
+ policy_status_info:
+ $ref: '#/components/examples/policy_status_info'
+ schema:
+ $ref: '#/components/schemas/policy_status_info'
+ description: OK - Policy status
"404":
- $ref: '#/components/responses/NotFound'
- summary: Query Near-RT RIC information
+ content:
+ application/problem+json:
+ example: []
+ description: Not Found
+ summary: Get an A1 Policy Instance's status (getPolicyStatus)
tags:
- - NearRT-RIC Repository
- /a1-policy/v2/services:
+ - A1 Policy Management
+ /a1-policy/v2/configuration:
get:
- description: Either information about a registered service with given identity
- or all registered services are returned.
- operationId: getServices
- parameters:
- - description: The identity of the service
- explode: true
- in: query
- name: service_id
- required: false
- schema:
- type: string
- style: form
+ description: Returns the entire contents of the Application Configuration.
+ operationId: getConfiguration
responses:
"200":
content:
application/json:
schema:
- $ref: '#/components/schemas/service_status_list'
- examples:
- service_status_list:
- $ref: '#/components/examples/service_status_list'
- description: OK
+ type: string
+ description: OK - Configuration
"404":
- $ref: '#/components/responses/NotFound'
- summary: Returns service information
+ content:
+ application/problem+json:
+ example: []
+ description: Not Found
+ summary: Get the Application Configuration (getConfiguration)
tags:
- - Service Registry and Supervision
+ - Configuration
put:
- description: "Registering a service is needed to:<ul><li>Get callbacks about\
- \ available NearRT RICs.</li><li>Activate supervision of the service. If a\
- \ service is inactive, its policies will automatically be deleted.</li></ul>Policies\
- \ can be created even if the service is not registerred. This is a feature\
- \ which it is optional to use."
- operationId: putService
+ description: |
+ Replace the current Application Configuration with a new configuration. The new configuration, if accepted, will take effect after a short delay. The new configuration must comply with the Application Configuration schema, which can be found from the the Application Documentation (Developer Guide)
+ operationId: putConfiguration
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/service_registration_info'
+ type: object
required: true
responses:
"200":
content:
'*/*':
schema:
- type: object
- description: OK - Service updated
- "201":
+ $ref: '#/components/schemas/void'
+ description: OK - Configuration updated
+ "400":
content:
- '*/*':
+ application/problem+json:
+ example:
+ status: 400
+ title: Bad Request
+ detail: The provided request is not valid.
schema:
- type: object
- description: Created - Service created
- "400":
- $ref: '#/components/responses/BadRequest'
- summary: Register a service
+ $ref: '#/components/schemas/error_information'
+ description: Bad Request
+ summary: Set/Replace the Application Configuration (putConfiguration)
tags:
- - Service Registry and Supervision
- callbacks:
- RICStatus:
- "{$request.body#/callback_url}":
- post:
- description: The URL to this call is registered at Service registration.
- operationId: serviceCallback
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/service_callback_info_v2'
- required: true
- responses:
- "200":
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/void'
- description: OK
- "404":
- $ref: '#/components/responses/NotFound'
- summary: Callback for Near-RT RIC status
- tags:
- - Service callbacks
- /actuator/info:
+ - Configuration
+ /example-authz-check:
+ post:
+ description: |
+ A template endpoint for callout requests to an external authorization function. The authorization function, if enabled, decides if individual operations are permitted.
+ operationId: performAccessControl
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/policy_authorization'
+ required: true
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/authorization_result'
+ description: OK
+ "403":
+ content:
+ application/problem+json:
+ example:
+ status: 403
+ title: Forbidden
+ detail: Your role does not allow to perform this action. Contact System
+ Administrator to change your access rights.
+ schema:
+ $ref: '#/components/schemas/error_information'
+ description: Forbidden
+ summary: Callout request for access authorization (performAccessControl)
+ tags:
+ - Authorization API
+ /actuator:
get:
- x-internal: true
- operationId: info
+ description: |
+ A1-PMS Springboot Service Actuator web endpoint. Returns a set of links to available/enabled actuator endpoints.
+ externalDocs:
+ description: Spring Boot Actuator Web API Documentation
+ url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html
+ operationId: actuatorLinks
responses:
"200":
content:
application/vnd.spring-boot.actuator.v3+json:
schema:
+ additionalProperties:
+ additionalProperties:
+ $ref: '#/components/schemas/Link'
+ type: object
type: object
application/json:
schema:
+ additionalProperties:
+ additionalProperties:
+ $ref: '#/components/schemas/Link'
+ type: object
type: object
application/vnd.spring-boot.actuator.v2+json:
schema:
+ additionalProperties:
+ additionalProperties:
+ $ref: '#/components/schemas/Link'
+ type: object
type: object
description: OK
- summary: Actuator web endpoint 'info'
+ summary: Actuator endpoint - Root (actuatorLinks)
tags:
- - Actuator
- /status:
+ - Actuator API
+ x-internal: true
+ /actuator/heapdump:
get:
- operationId: getStatusV1
+ description: |
+ A1-PMS Springboot Service Actuator web endpoint - HeapDump.
+ externalDocs:
+ description: Spring Boot Actuator Web API Documentation
+ url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html
+ operationId: actuatorHeapdump
responses:
"200":
content:
- '*/*':
+ application/octet-stream:
schema:
- type: string
- description: OK - Service is living
- description: Returns status and statistics of this service
+ type: object
+ description: OK
+ summary: Actuator endpoint - Heapdump (actuatorHeapdump)
tags:
- - Health Check
- /a1-policy/v2/policy-types/{policytype_id}:
+ - Actuator API
+ x-internal: true
+ /actuator/info:
get:
- operationId: getPolicyTypeDefinition
- parameters:
- - explode: false
- in: path
- name: policytype_id
- required: true
- schema:
- type: string
- style: simple
+ description: |
+ A1-PMS Springboot Service Actuator web endpoint - Info.
+ externalDocs:
+ description: Spring Boot Actuator Web API Documentation
+ url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html
+ operationId: actuatorInfo
responses:
"200":
content:
+ application/vnd.spring-boot.actuator.v3+json:
+ schema:
+ type: object
application/json:
schema:
- $ref: '#/components/schemas/policy_type_definition'
- examples:
- policy_type_definition:
- $ref: '#/components/examples/policy_type_definition'
- description: OK - schema of the given policy type
- "404":
- $ref: '#/components/responses/NotFound'
- description: Returns a policy type definition
+ type: object
+ application/vnd.spring-boot.actuator.v2+json:
+ schema:
+ type: object
+ description: OK
+ summary: Actuator endpoint - Info (actuatorInfo)
tags:
- - A1 Policy Management
- /actuator/logfile:
- get:
+ - Actuator API
x-internal: true
- operationId: logfile
+ /actuator/threaddump:
+ get:
+ description: |
+ A1-PMS Springboot Service Actuator web endpoint - ThreadDump.
+ externalDocs:
+ description: Spring Boot Actuator Web API Documentation
+ url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html
+ operationId: actuatorThreaddump
responses:
"200":
content:
text/plain;charset=UTF-8:
schema:
type: object
+ application/vnd.spring-boot.actuator.v3+json:
+ schema:
+ type: object
+ application/json:
+ schema:
+ type: object
+ application/vnd.spring-boot.actuator.v2+json:
+ schema:
+ type: object
description: OK
- summary: Actuator web endpoint 'logfile'
+ summary: Actuator endpoint - Threaddump (actuatorThreaddump)
tags:
- - Actuator
- /actuator/health:
- get:
+ - Actuator API
x-internal: true
- operationId: health
+ /actuator/loggers:
+ get:
+ description: |
+ A1-PMS Springboot Service Actuator web endpoint - Get a list of Loggers.
+ externalDocs:
+ description: Spring Boot Actuator Web API Documentation
+ url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html
+ operationId: actuatorLoggers
responses:
"200":
content:
schema:
type: object
description: OK
- summary: Actuator web endpoint 'health'
+ summary: Actuator endpoint - Get Loggers (actuatorLoggers)
tags:
- - Actuator
- /a1-policy/v2/policies:
+ - Actuator API
+ x-internal: true
+ /actuator/loggers/{name}:
get:
- description: "Returns a list of A1 policies matching given search criteria.\
- \ <br>If several query parameters are defined, the policies matching all conditions\
- \ are returned."
- operationId: getPolicyIds
+ description: |
+ A1-PMS Springboot Service Actuator web endpoint - Get a single named Logger.
+ externalDocs:
+ description: Spring Boot Actuator Web API Documentation
+ url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html
+ operationId: actuatorGetLogger
parameters:
- - description: Select policies of a given policy type identity.
- explode: true
- in: query
- name: policytype_id
- required: false
- schema:
- type: string
- style: form
- - description: Select policies of a given Near-RT RIC identity.
- explode: true
- in: query
- name: ric_id
- required: false
- schema:
- type: string
- style: form
- - description: Select policies owned by a given service.
- explode: true
- in: query
- name: service_id
- required: false
- schema:
- type: string
- style: form
- - description: Select policies of types with the given type name (type identity
- has the format <typename_version>)
- explode: true
- in: query
- name: type_name
- required: false
- schema:
- type: string
- style: form
+ - explode: false
+ in: path
+ name: name
+ required: true
+ schema:
+ type: string
+ style: simple
responses:
"200":
content:
+ application/vnd.spring-boot.actuator.v3+json:
+ schema:
+ type: object
application/json:
- examples:
- policy_id_list:
- $ref: '#/components/examples/policy_id_list'
schema:
- $ref: '#/components/schemas/policy_id_list'
- description: OK - Policy identities
- "404":
- $ref: '#/components/responses/NotFound'
- summary: Query policy identities
+ type: object
+ application/vnd.spring-boot.actuator.v2+json:
+ schema:
+ type: object
+ description: OK
+ summary: Actuator endpoint - Get Logger (actuatorGetLogger)
tags:
- - A1 Policy Management
- put:
- operationId: putPolicy
+ - Actuator API
+ x-internal: true
+ post:
+ description: |
+ A1-PMS Springboot Service Actuator web endpoint - Create or Update single named Logger.
+ externalDocs:
+ description: Spring Boot Actuator Web API Documentation
+ url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html
+ operationId: actuatorSetlogger
+ parameters:
+ - explode: false
+ in: path
+ name: name
+ required: true
+ schema:
+ type: string
+ style: simple
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/policy_info'
- required: true
+ enum:
+ - TRACE
+ - DEBUG
+ - INFO
+ - WARN
+ - ERROR
+ - FATAL
+ - "OFF"
+ type: string
+ responses:
+ "200":
+ content:
+ '*/*':
+ schema:
+ type: object
+ description: OK
+ summary: Actuator endpoint - Set Logger (actuatorSetlogger)
+ tags:
+ - Actuator API
+ x-internal: true
+ /actuator/logfile:
+ get:
+ description: |
+ A1-PMS Springboot Service Actuator web endpoint - Get the Log file.
+ externalDocs:
+ description: Spring Boot Actuator Web API Documentation
+ url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html
+ operationId: actuatorGetLogFile
responses:
"200":
content:
+ text/plain;charset=UTF-8:
+ schema:
+ type: object
+ description: OK
+ summary: Actuator endpoint - Log File (actuatorGetLogFile)
+ tags:
+ - Actuator API
+ x-internal: true
+ /actuator/health:
+ get:
+ description: |
+ A1-PMS Springboot Service Actuator web endpoint - Health Check.
+ externalDocs:
+ description: Spring Boot Actuator Web API Documentation
+ url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html
+ operationId: actuatorHealth
+ responses:
+ "200":
+ content:
+ application/vnd.spring-boot.actuator.v3+json:
+ schema:
+ type: object
application/json:
schema:
- $ref: '#/components/schemas/void'
- description: OK - Policy updated
- "201":
+ type: object
+ application/vnd.spring-boot.actuator.v2+json:
+ schema:
+ type: object
+ description: OK
+ summary: Actuator endpoint - Health (actuatorHealth)
+ tags:
+ - Actuator API
+ x-internal: true
+ /actuator/health/**:
+ get:
+ description: |
+ A1-PMS Springboot Service Actuator web endpoint - Health Status for an Application Component.
+ externalDocs:
+ description: Spring Boot Actuator Web API Documentation
+ url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html
+ operationId: actuatorHealthComponent
+ responses:
+ "200":
content:
+ application/vnd.spring-boot.actuator.v3+json:
+ schema:
+ type: object
application/json:
schema:
- $ref: '#/components/schemas/void'
- description: Created - Policy created
- "423":
- $ref: '#/components/responses/Locked'
- description: Create or update a policy
+ type: object
+ application/vnd.spring-boot.actuator.v2+json:
+ schema:
+ type: object
+ description: OK
+ summary: Actuator endpoint - Component Health (actuatorHealthComponent)
tags:
- - A1 Policy Management
- /a1-policy/v2/services/{service_id}:
- delete:
- operationId: deleteService
- parameters:
- - explode: false
- in: path
- name: service_id
- required: true
- schema:
- type: string
- style: simple
+ - Actuator API
+ x-internal: true
+ /actuator/shutdown:
+ post:
+ description: |
+ A1-PMS Springboot Service Actuator web endpoint - Shutdown the Application.
+ externalDocs:
+ description: Spring Boot Actuator Web API Documentation
+ url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html
+ operationId: actuatorShutdown
responses:
- "204":
+ "200":
content:
- '*/*':
+ application/vnd.spring-boot.actuator.v3+json:
schema:
type: object
- description: No Content - Service unregistered
- "404":
- $ref: '#/components/responses/NotFound'
- description: Unregister a service
+ application/json:
+ schema:
+ type: object
+ application/vnd.spring-boot.actuator.v2+json:
+ schema:
+ type: object
+ description: OK
+ summary: Actuator endpoint - Shutdown (actuatorShutdown)
tags:
- - Service Registry and Supervision
- /actuator/heapdump:
- get:
+ - Actuator API
x-internal: true
- operationId: heapdump
+ /actuator/metrics:
+ get:
+ description: |
+ A1-PMS Springboot Service Actuator web endpoint - Get a list of Application metrics names.
+ externalDocs:
+ description: Spring Boot Actuator Web API Documentation
+ url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html
+ operationId: actuatorMetrics
responses:
"200":
content:
- application/octet-stream:
+ application/vnd.spring-boot.actuator.v3+json:
+ schema:
+ type: object
+ application/json:
+ schema:
+ type: object
+ application/vnd.spring-boot.actuator.v2+json:
schema:
type: object
description: OK
- summary: Actuator web endpoint 'heapdump'
+ summary: Actuator endpoint - Metrics (actuatorMetrics)
tags:
- - Actuator
- /a1-policy/v2/policies/{policy_id}/status:
+ - Actuator API
+ x-internal: true
+ /actuator/metrics/{requiredMetricName}:
get:
- operationId: getPolicyStatus
+ description: |
+ A1-PMS Springboot Service Actuator web endpoint - Get the value for a named Application metric.
+ externalDocs:
+ description: Spring Boot Actuator Web API Documentation
+ url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html
+ operationId: actuatorGetMetric
parameters:
- - explode: false
- in: path
- name: policy_id
- required: true
- schema:
- type: string
- style: simple
+ - explode: false
+ in: path
+ name: requiredMetricName
+ required: true
+ schema:
+ type: string
+ style: simple
responses:
"200":
content:
+ application/vnd.spring-boot.actuator.v3+json:
+ schema:
+ type: object
application/json:
schema:
- $ref: '#/components/schemas/policy_status_info'
- examples:
- policy_status_info:
- $ref: '#/components/examples/policy_status_info'
- description: OK - Policy status
- "404":
- $ref: '#/components/responses/NotFound'
- description: Returns a policy status
- tags:
- - A1 Policy Management
+ type: object
+ application/vnd.spring-boot.actuator.v2+json:
+ schema:
+ type: object
+ description: OK
+ summary: Actuator endpoint - Get Metric (actuatorGetMetric)
+ x-internal: true
components:
- responses:
- Locked:
- description: "Locked - HTTP Status code which can be used when the state is Locked"
- content:
- application/problem+json:
- schema:
- $ref: '#/components/schemas/error_information'
- example:
- status: 423
- title: Locked
- detail: Requested resource is in a locked state.
- BadRequest:
- description: Bad Request
- content:
- application/problem+json:
- schema:
- $ref: '#/components/schemas/error_information'
- example:
- status: 400
- title: Bad Request
- detail: The provided request is not valid.
- Forbidden:
- description: Forbidden
- content:
- application/problem+json:
- schema:
- $ref: '#/components/schemas/error_information'
- example:
- status: 403
- title: Forbidden
- detail: Your role does not allow to perform this action. Contact System Administrator to change your access rights.
- NotFound:
- description: Not Found
- content:
- application/problem+json:
- example:
- [ ]
-
examples:
- service_status:
- description: List of service information
- value:
- callback_url: callback_url
- service_id: service_id
- keep_alive_interval_seconds: 0
- time_since_last_activity_seconds: 6
-
- service_status_list:
- description: List of service information
+ status_info:
value:
- service_list:
- - callback_url: callback_url
- service_id: service_id
- keep_alive_interval_seconds: 0
- time_since_last_activity_seconds: 6
- - callback_url: callback_url
- service_id: service_id
- keep_alive_interval_seconds: 0
- time_since_last_activity_seconds: 6
- policy_type_definition:
- description: Schema of the given Policy type
+ status: status
+ ric_info:
value:
- policy_schema: "{}"
+ ric_id: ric_id
+ managed_element_ids:
+ - some_managed_element_id
+ - some_managed_element_id
+ state: UNAVAILABLE
+ policytype_ids:
+ - some_policytype_id
+ - some_policytype_id
policy_type_id_list:
- description: Array of policy type id's
+ description: Array of A1 Policy Type id's
value:
policy_type_id_list:
- - policytype_id
- - policytype_id
+ - policytype_id
+ - policytype_id
policy_info:
- description: Policy information of one A1-P policy
+ description: Information for an A1 Policy Instance
value:
- ric_id: ric_id
- policy_id: policy_id
+ ric_id: ric_id1
+ policy_id: policy_id1
transient: false
- service_id: service_id
+ service_id: service_id1
policy_data: "{}"
status_notification_uri: status_notification_uri
- policytype_id: policytype_id
- policy_info_list:
- description: List of policy information
+ policytype_id: policytype_id1
+ ric_info_list:
value:
- policies:
- - ric_id: ric_id
- policy_id: policy_id
- transient: false
- service_id: service_id
- policy_data: "{}"
- status_notification_uri: status_notification_uri
- policytype_id: policytype_id
- - ric_id: ric_id
- policy_id: policy_id
- transient: false
- service_id: service_id
- policy_data: "{}"
- status_notification_uri: status_notification_uri
- policytype_id: policytype_id
+ rics:
+ - ric_id: ric_id
+ managed_element_ids:
+ - some_managed_element_id
+ - some_managed_element_id
+ state: UNAVAILABLE
+ policytype_ids:
+ - policytype_id
+ - policytype_id
+ - ric_id: ric_id
+ managed_element_ids:
+ - managed_element_ids
+ - managed_element_ids
+ state: UNAVAILABLE
+ policytype_ids:
+ - policytype_ids
+ - policytype_ids
+ service_status_list:
+ description: List of service information
+ value:
+ service_list:
+ - callback_url: callback_url
+ service_id: service_id
+ keep_alive_interval_seconds: 0
+ time_since_last_activity_seconds: 6
+ - callback_url: callback_url
+ service_id: service_id
+ keep_alive_interval_seconds: 0
+ time_since_last_activity_seconds: 6
+ policy_type_definition:
+ description: Schema of the given A1 Policy Type
+ value:
+ policy_schema: "{}"
policy_id_list:
description: A list of policy identities
value:
policy_ids:
- - some_policy_id
- - some_policy_id
+ - some_policy_id
+ - some_policy_id
+ policy_info_list:
+ description: List of policy information
+ value:
+ policies:
+ - ric_id: ric_id1
+ policy_id: policy_id1
+ transient: false
+ service_id: service_id1
+ policy_data: "{}"
+ status_notification_uri: status_notification_uri
+ policytype_id: policytype_id1
+ - ric_id: ric_id2
+ policy_id: policy_id2
+ transient: true
+ service_id: service_id2
+ policy_data: "{}"
+ status_notification_uri: status_notification_uri
+ policytype_id: policytype_id2
policy_status_info:
description: Status for one A1-P Policy
value:
status:
value:
status: status
+ responses:
+ NotFound:
+ content:
+ application/problem+json:
+ example: []
+ description: Not Found
+ Locked:
+ content:
+ application/problem+json:
+ example:
+ status: 423
+ title: Locked
+ detail: Requested resource is in a locked state.
+ schema:
+ $ref: '#/components/schemas/error_information'
+ description: Locked - HTTP Status code which can be used when the state is Locked
+ BadRequest:
+ content:
+ application/problem+json:
+ example:
+ status: 400
+ title: Bad Request
+ detail: The provided request is not valid.
+ schema:
+ $ref: '#/components/schemas/error_information'
+ description: Bad Request
+ Forbidden:
+ content:
+ application/problem+json:
+ example:
+ status: 403
+ title: Forbidden
+ detail: Your role does not allow to perform this action. Contact System
+ Administrator to change your access rights.
+ schema:
+ $ref: '#/components/schemas/error_information'
+ description: Forbidden
+ schemas:
status_info:
- value:
- status: status
- ric_info:
- value:
- ric_id: ric_id
- managed_element_ids:
- - some_managed_element_id
- - some_managed_element_id
- state: UNAVAILABLE
- policytype_ids:
- - some_policytype_id
- - some_policytype_id
- ric_info_list:
- value:
- rics:
- - ric_id: ric_id
- managed_element_ids:
- - some_managed_element_id
- - some_managed_element_id
- state: UNAVAILABLE
- policytype_ids:
- - policytype_id
- - policytype_id
- - ric_id: ric_id
- managed_element_ids:
- - managed_element_ids
- - managed_element_ids
- state: UNAVAILABLE
- policytype_ids:
- - policytype_ids
- - policytype_ids
-
- schemas:
- policy_type_definition:
- description: Contains policy type schema definition
- type: object
- properties:
- policy_schema:
- description: Policy type json schema. The schema is a json object following
- http://json-schema.org/draft-07/schema
- type: object
- error_information:
- description: Problem as defined in https://tools.ietf.org/html/rfc7807
- properties:
- detail:
- description: ' A human-readable explanation specific to this occurrence
- of the problem.'
- example: Policy type not found
- type: string
- title:
- description: 'A specific error name'
- type: string
- example: Not Found
- status:
- description: 'The HTTP status code generated by the origin server for this
- occurrence of the problem. '
- example: 404
- format: int32
- type: integer
- type: object
- void:
- description: Void/empty
- type: object
- status_info:
+ example:
+ status: status
properties:
status:
description: status text
type: string
type: object
- authorization_result:
- description: Result of authorization
- example:
- result: true
- properties:
- result:
- description: "If true, the access is granted"
- type: boolean
- required:
- - result
- type: object
ric_info:
description: Information for a Near-RT RIC
+ example:
+ ric_id: ric_id
+ managed_element_ids:
+ - managed_element_ids
+ - managed_element_ids
+ state: UNAVAILABLE
+ policytype_ids:
+ - policytype_ids
+ - policytype_ids
properties:
ric_id:
description: identity of the Near-RT RIC
state:
description: Represents the states for a Near-RT RIC
enum:
- - UNAVAILABLE
- - AVAILABLE
- - SYNCHRONIZING
- - CONSISTENCY_CHECK
+ - UNAVAILABLE
+ - AVAILABLE
+ - SYNCHRONIZING
+ - CONSISTENCY_CHECK
type: string
policytype_ids:
- description: supported policy types
+ description: supported A1 Policy Types
items:
- description: supported policy types
+ description: supported A1 Policy Types
type: string
type: array
type: object
- service_registration_info:
- description: Information for one service
+ policy_type_id_list:
+ description: Information about A1 Policy Types
+ example:
+ policytype_ids:
+ - policytype_ids
+ - policytype_ids
properties:
- callback_url:
- description: callback for notifying of Near-RT RIC state changes
+ policytype_ids:
+ description: A1 Policy Type identities
+ items:
+ description: A1 Policy Type identities
+ type: string
+ type: array
+ type: object
+ policy_info:
+ description: Information for one A1-P Policy
+ example:
+ ric_id: ric_id
+ policy_id: policy_id
+ transient: false
+ service_id: ""
+ policy_data: "{}"
+ status_notification_uri: status_notification_uri
+ policytype_id: policytype_id
+ properties:
+ ric_id:
+ description: identity of the target Near-RT RIC
+ type: string
+ policy_id:
+ description: identity of the policy
type: string
+ transient:
+ default: false
+ description: |
+ If true, the policy is automatically deleted if the targeted Near-RT RIC restarts or recovers. If false, the A1 Policy Instance remains, and is re-pushed to the targeted Near-RT RIC after a restart or recovery. If false, the A1 Policy Instance is maintained and must be deleted separately in the event of Near-RT RIC restart or recovery. Default is false.
+ example: false
+ nullable: false
+ type: boolean
service_id:
- description: identity of the service
+ default: ""
+ description: |
+ The identity of the service owning the policy. This can be used to group the policies (it is possible to get all policies associated to a service). Note that the service does not need to be registered. If the service is registered, the A1 Policy Instance will be subject to the same supervision rules as the the service's other policies.
+ type: string
+ policy_data:
+ description: the configuration of the policy
+ type: object
+ status_notification_uri:
+ description: Callback URI for policy status updates
+ type: string
+ policytype_id:
+ description: identity of the A1 Policy Type
type: string
- keep_alive_interval_seconds:
- description: "keep alive interval for the service. This is used to enable\
- \ optional heartbeat supervision of the service. If set (> 0) the registered\
- \ service should regularly invoke a 'keepalive' REST call. When a service\
- \ fails to invoke this 'keepalive' call within the configured time, the\
- \ service is considered unavailable. An unavailable service will be automatically\
- \ deregistered and its policies will be deleted. Value 0 means timeout\
- \ supervision is disabled."
- format: int64
- type: integer
required:
- - service_id
+ - policy_data
+ - policy_id
+ - policytype_id
+ - ric_id
type: object
- policy_info_list:
- description: List of policy information
+ void:
+ description: Void/empty
+ type: object
+ error_information:
+ description: Problem as defined in https://tools.ietf.org/html/rfc7807
+ example:
+ detail: A1 Policy Type not found
+ title: Not Found
+ status: 404
properties:
- policies:
- description: List of policy information
+ detail:
+ description: ' A human-readable explanation specific to this occurrence
+ of the problem.'
+ example: A1 Policy Type not found
+ type: string
+ title:
+ description: A specific error name
+ example: Not Found
+ type: string
+ status:
+ description: 'The HTTP status code generated by the origin server for this
+ occurrence of the problem. '
+ example: 404
+ format: int32
+ type: integer
+ type: object
+ ric_info_list:
+ description: List of Near-RT RIC information
+ example:
+ rics:
+ - ric_id: ric_id
+ managed_element_ids:
+ - managed_element_ids
+ - managed_element_ids
+ state: UNAVAILABLE
+ policytype_ids:
+ - policytype_ids
+ - policytype_ids
+ - ric_id: ric_id
+ managed_element_ids:
+ - managed_element_ids
+ - managed_element_ids
+ state: UNAVAILABLE
+ policytype_ids:
+ - policytype_ids
+ - policytype_ids
+ properties:
+ rics:
+ description: List of Near-RT RIC information
items:
- $ref: '#/components/schemas/policy_info'
+ $ref: '#/components/schemas/ric_info'
type: array
type: object
- policy_status_info:
- description: Status for one A1-P Policy
+ service_status_list:
+ example:
+ service_list:
+ - callback_url: callback_url
+ service_id: service_id
+ keep_alive_interval_seconds: 0
+ time_since_last_activity_seconds: 6
+ - callback_url: callback_url
+ service_id: service_id
+ keep_alive_interval_seconds: 0
+ time_since_last_activity_seconds: 6
properties:
- last_modified:
- description: "timestamp, last modification time"
- type: string
- status:
- description: the Policy status
- type: object
+ service_list:
+ description: List of service information
+ items:
+ $ref: '#/components/schemas/service_status'
+ type: array
type: object
service_status:
+ example:
+ callback_url: callback_url
+ service_id: service_id
+ keep_alive_interval_seconds: 0
+ time_since_last_activity_seconds: 6
properties:
callback_url:
description: callback for notifying of RIC synchronization
format: int64
type: integer
type: object
- ric_info_list:
- description: List of Near-RT RIC information
- properties:
- rics:
- description: List of Near-RT RIC information
- items:
- $ref: '#/components/schemas/ric_info'
- type: array
- type: object
- input:
- description: input
+ service_registration_info:
+ description: Information for one service
properties:
- access_type:
- description: Access type
- enum:
- - READ
- - WRITE
- - DELETE
- type: string
- auth_token:
- description: Authorization token
+ callback_url:
+ description: Callback for notifying of Near-RT RIC state changes
type: string
- policy_type_id:
- description: Policy type identifier
+ service_id:
+ description: identity of the service
type: string
+ keep_alive_interval_seconds:
+ description: |
+ Keep alive interval for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.
+ format: int64
+ type: integer
required:
- - access_type
- - auth_token
- - policy_type_id
- type: object
- policy_authorization:
- description: Authorization request for A1 policy requests
- properties:
- input:
- $ref: '#/components/schemas/input'
- required:
- - input
- type: object
- policy_type_id_list:
- description: Information about policy types
- properties:
- policytype_ids:
- description: Policy type identities
- items:
- description: Policy type identities
- type: string
- type: array
+ - service_id
type: object
- policy_info:
- description: Information for one A1-P Policy
+ service_callback_info_v2:
+ description: "Information transferred in Service callbacks, \nif a callback\
+ \ URL was provided for a registered service\n"
properties:
ric_id:
- description: identity of the target Near-RT RIC
- type: string
- policy_id:
- description: identity of the policy
- type: string
- transient:
- default: false
- description: "if true, the policy is deleted at RIC restart. If false, its\
- \ value is maintained by this service until explicitly deleted. Default\
- \ false."
- example: false
- nullable: false
- type: boolean
- service_id:
- description: the identity of the service owning the policy. This can be
- used to group the policies (it is possible to get all policies associated
- to a service). Note that the service does not need to be registered.
- type: string
- default: ""
- policy_data:
- description: the configuration of the policy
- type: object
- status_notification_uri:
- description: Callback URI for policy status updates
+ description: identity of a Near-RT RIC
type: string
- policytype_id:
- description: identity of the policy type
+ event_type:
+ description: "values: \n AVAILABLE: the Near-RT RIC has become available\
+ \ for A1 Policy management\n"
+ enum:
+ - AVAILABLE
type: string
required:
- - ric_id
- - policy_id
- - policy_data
- - policytype_id
+ - event_type
+ - ric_id
+ type: object
+ policy_type_definition:
+ description: Contains A1 Policy Type schema definition
+ example:
+ policy_schema: "{}"
+ properties:
+ policy_schema:
+ description: A1 Policy Type json schema. The schema is a json object following
+ http://json-schema.org/draft-07/schema
+ type: object
type: object
policy_id_list:
description: A list of policy identities
example:
policy_ids:
- - policy_ids
- - policy_ids
+ - policy_ids
+ - policy_ids
properties:
policy_ids:
description: Policy identities
type: string
type: array
type: object
- service_status_list:
+ policy_info_list:
+ description: List of policy information
+ example:
+ policies:
+ - ric_id: ric_id
+ policy_id: policy_id
+ transient: false
+ service_id: ""
+ policy_data: "{}"
+ status_notification_uri: status_notification_uri
+ policytype_id: policytype_id
+ - ric_id: ric_id
+ policy_id: policy_id
+ transient: false
+ service_id: ""
+ policy_data: "{}"
+ status_notification_uri: status_notification_uri
+ policytype_id: policytype_id
properties:
- service_list:
- description: List of service information
+ policies:
+ description: List of policy information
items:
- $ref: '#/components/schemas/service_status'
+ $ref: '#/components/schemas/policy_info'
type: array
type: object
- service_callback_info_v2:
- description: Information transferred as in Service callbacks (callback_url)
+ policy_status_info:
+ description: Status for one A1-P Policy
+ example:
+ last_modified: last_modified
+ status: "{}"
properties:
- ric_id:
- description: identity of a Near-RT RIC
+ last_modified:
+ description: "timestamp, last modification time"
type: string
- event_type:
- description: "values:\nAVAILABLE: the Near-RT RIC has become available\
- \ for A1 Policy management"
+ status:
+ description: the Policy status
+ type: object
+ type: object
+ policy_authorization:
+ description: Authorization request for A1 policy requests
+ properties:
+ input:
+ $ref: '#/components/schemas/input'
+ required:
+ - input
+ type: object
+ input:
+ description: input
+ properties:
+ access_type:
+ description: Access type
enum:
- - AVAILABLE
+ - READ
+ - WRITE
+ - DELETE
type: string
+ auth_token:
+ description: Authorization token
+ type: string
+ policy_type_id:
+ description: A1 Policy Type identifier
+ type: string
+ required:
+ - access_type
+ - auth_token
+ - policy_type_id
+ type: object
+ authorization_result:
+ description: Result of authorization
+ example:
+ result: true
+ properties:
+ result:
+ description: "If true, the access is granted"
+ type: boolean
required:
- - event_type
- - ric_id
+ - result
type: object
Link:
properties:
type: boolean
href:
type: string
- type: object
\ No newline at end of file
+ type: object
# ONAP : ccsdk oran
# ================================================================================
# Copyright (C) 2020-2023 Nordix Foundation. All rights reserved.
-# Copyright (C) 2024 OpenInfra Foundation Europe. All rights reserved.
+# Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved.
# ================================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# A URL to authorization provider such as OPA. Each time an A1 Policy is accessed, a call to this
# authorization provider is done for access control. If this is empty, no fine grained access control is done.
authorization-provider:
- # the config-file-schema-path referres to a location in the jar file. If this property is empty or missing,
+ # the config-file-schema-path refers to a location in the jar file. If this property is empty or missing,
# no schema validation will be executed.
config-file-schema-path: /application_configuration_schema.json
# Postgres database usage is enabled using the below parameter.
trust-store: /opt/app/policy-agent/etc/cert/truststore.jks
# path where the service can store data. This parameter is not relevant if S3 Object store is configured.
vardata-directory: /var/policy-management-service
+ # Options for schema validation of the policy and policy status. Options: NONE, INFO, WARN, FAIL
+ validate-policy-instance-schema: NONE
lifecycle:
timeout-per-shutdown-phase: "20s"
+
logging:
+ config: ${LOGBACK_CONFIG_FILE:classpath:logback-plain.xml}
# Reactive logging filter
reactive-entry-exit-filter-enabled: true
# Configuration of logging
sdk:
disabled: ${ONAP_SDK_DISABLED:true}
south: ${ONAP_TRACING_SOUTHBOUND:true}
+ instrumentation:
+ spring-webflux:
+ enabled: ${ONAP_TRACING_NORTHBOUND:true}
tracing:
sampler:
jaeger_remote:
http-port: 8081
shutdown: "graceful"
ssl:
+ enabled: true
key-store-type: JKS
key-store-password: policy_agent
key-store: /opt/app/policy-agent/etc/cert/keystore.jks
username: a1pms
password: mypwd
springdoc:
- show-actuator: true
\ No newline at end of file
+ show-actuator: true
--- /dev/null
+# ============LICENSE_START=======================================================
+# Copyright (C) 2020-2023 Nordix Foundation. All rights reserved.
+# Copyright (C) 2023-2025 OpenInfra Foundation Europe. All rights reserved.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
\ No newline at end of file
--- /dev/null
+{{> license-header}}
+
+{{{openapi-yaml}}}
\ No newline at end of file
--- /dev/null
+actuator:
+ get:
+ x-internal: true
+ operationId: actuatorLinks
+ description: >
+ A1-PMS Springboot Service Actuator web endpoint.
+ Returns a set of links to available/enabled actuator endpoints.
+ externalDocs:
+ description: Spring Boot Actuator Web API Documentation
+ url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html
+ summary: Actuator endpoint - Root (actuatorLinks)
+ tags:
+ - Actuator API
+ responses:
+ "200":
+ content:
+ application/vnd.spring-boot.actuator.v3+json:
+ schema:
+ additionalProperties:
+ additionalProperties:
+ $ref: 'schemas.yaml#/schemas/Link'
+ type: object
+ type: object
+ application/json:
+ schema:
+ additionalProperties:
+ additionalProperties:
+ $ref: 'schemas.yaml#/schemas/Link'
+ type: object
+ type: object
+ application/vnd.spring-boot.actuator.v2+json:
+ schema:
+ additionalProperties:
+ additionalProperties:
+ $ref: 'schemas.yaml#/schemas/Link'
+ type: object
+ type: object
+ description: OK
+
+heapdump:
+ get:
+ x-internal: true
+ operationId: actuatorHeapdump
+ description: >
+ A1-PMS Springboot Service Actuator web endpoint - HeapDump.
+ externalDocs:
+ description: Spring Boot Actuator Web API Documentation
+ url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html
+ summary: Actuator endpoint - Heapdump (actuatorHeapdump)
+ tags:
+ - Actuator API
+ responses:
+ "200":
+ content:
+ application/octet-stream:
+ schema:
+ type: object
+ description: OK
+
+actuator-info:
+ get:
+ x-internal: true
+ operationId: actuatorInfo
+ description: >
+ A1-PMS Springboot Service Actuator web endpoint - Info.
+ externalDocs:
+ description: Spring Boot Actuator Web API Documentation
+ url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html
+ summary: Actuator endpoint - Info (actuatorInfo)
+ tags:
+ - Actuator API
+ responses:
+ "200":
+ content:
+ application/vnd.spring-boot.actuator.v3+json:
+ schema:
+ type: object
+ application/json:
+ schema:
+ type: object
+ application/vnd.spring-boot.actuator.v2+json:
+ schema:
+ type: object
+ description: OK
+
+threaddump:
+ get:
+ x-internal: true
+ operationId: actuatorThreaddump
+ description: >
+ A1-PMS Springboot Service Actuator web endpoint - ThreadDump.
+ externalDocs:
+ description: Spring Boot Actuator Web API Documentation
+ url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html
+ summary: Actuator endpoint - Threaddump (actuatorThreaddump)
+ tags:
+ - Actuator API
+ responses:
+ "200":
+ content:
+ text/plain;charset=UTF-8:
+ schema:
+ type: object
+ application/vnd.spring-boot.actuator.v3+json:
+ schema:
+ type: object
+ application/json:
+ schema:
+ type: object
+ application/vnd.spring-boot.actuator.v2+json:
+ schema:
+ type: object
+ description: OK
+
+loggers:
+ get:
+ x-internal: true
+ operationId: actuatorLoggers
+ description: >
+ A1-PMS Springboot Service Actuator web endpoint - Get a list of Loggers.
+ externalDocs:
+ description: Spring Boot Actuator Web API Documentation
+ url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html
+ summary: Actuator endpoint - Get Loggers (actuatorLoggers)
+ tags:
+ - Actuator API
+ responses:
+ "200":
+ content:
+ application/vnd.spring-boot.actuator.v3+json:
+ schema:
+ type: object
+ application/json:
+ schema:
+ type: object
+ application/vnd.spring-boot.actuator.v2+json:
+ schema:
+ type: object
+ description: OK
+
+logger:
+ get:
+ x-internal: true
+ operationId: actuatorGetLogger
+ description: >
+ A1-PMS Springboot Service Actuator web endpoint - Get a single named Logger.
+ externalDocs:
+ description: Spring Boot Actuator Web API Documentation
+ url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html
+ summary: Actuator endpoint - Get Logger (actuatorGetLogger)
+ tags:
+ - Actuator API
+ parameters:
+ - explode: false
+ in: path
+ name: name
+ required: true
+ schema:
+ type: string
+ style: simple
+ responses:
+ "200":
+ content:
+ application/vnd.spring-boot.actuator.v3+json:
+ schema:
+ type: object
+ application/json:
+ schema:
+ type: object
+ application/vnd.spring-boot.actuator.v2+json:
+ schema:
+ type: object
+ description: OK
+ post:
+ x-internal: true
+ operationId: actuatorSetlogger
+ description: >
+ A1-PMS Springboot Service Actuator web endpoint - Create or Update single named Logger.
+ externalDocs:
+ description: Spring Boot Actuator Web API Documentation
+ url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html
+ summary: Actuator endpoint - Set Logger (actuatorSetlogger)
+ tags:
+ - Actuator API
+ parameters:
+ - explode: false
+ in: path
+ name: name
+ required: true
+ schema:
+ type: string
+ style: simple
+ requestBody:
+ content:
+ application/json:
+ schema:
+ enum:
+ - TRACE
+ - DEBUG
+ - INFO
+ - WARN
+ - ERROR
+ - FATAL
+ - "OFF"
+ type: string
+ responses:
+ "200":
+ content:
+ '*/*':
+ schema:
+ type: object
+ description: OK
+
+logfile:
+ get:
+ x-internal: true
+ operationId: actuatorGetLogFile
+ description: >
+ A1-PMS Springboot Service Actuator web endpoint - Get the Log file.
+ externalDocs:
+ description: Spring Boot Actuator Web API Documentation
+ url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html
+ summary: Actuator endpoint - Log File (actuatorGetLogFile)
+ tags:
+ - Actuator API
+ responses:
+ "200":
+ content:
+ text/plain;charset=UTF-8:
+ schema:
+ type: object
+ description: OK
+
+health:
+ get:
+ x-internal: true
+ operationId: actuatorHealth
+ description: >
+ A1-PMS Springboot Service Actuator web endpoint - Health Check.
+ externalDocs:
+ description: Spring Boot Actuator Web API Documentation
+ url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html
+ summary: Actuator endpoint - Health (actuatorHealth)
+ tags:
+ - Actuator API
+ responses:
+ "200":
+ content:
+ application/vnd.spring-boot.actuator.v3+json:
+ schema:
+ type: object
+ application/json:
+ schema:
+ type: object
+ application/vnd.spring-boot.actuator.v2+json:
+ schema:
+ type: object
+ description: OK
+
+health-all:
+ get:
+ x-internal: true
+ operationId: actuatorHealthComponent
+ description: >
+ A1-PMS Springboot Service Actuator web endpoint - Health Status for an Application Component.
+ externalDocs:
+ description: Spring Boot Actuator Web API Documentation
+ url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html
+ summary: Actuator endpoint - Component Health (actuatorHealthComponent)
+ tags:
+ - Actuator API
+ responses:
+ "200":
+ content:
+ application/vnd.spring-boot.actuator.v3+json:
+ schema:
+ type: object
+ application/json:
+ schema:
+ type: object
+ application/vnd.spring-boot.actuator.v2+json:
+ schema:
+ type: object
+ description: OK
+
+shutdown:
+ post:
+ x-internal: true
+ operationId: actuatorShutdown
+ description: >
+ A1-PMS Springboot Service Actuator web endpoint - Shutdown the Application.
+ externalDocs:
+ description: Spring Boot Actuator Web API Documentation
+ url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html
+ summary: Actuator endpoint - Shutdown (actuatorShutdown)
+ tags:
+ - Actuator API
+ responses:
+ "200":
+ content:
+ application/vnd.spring-boot.actuator.v3+json:
+ schema:
+ type: object
+ application/json:
+ schema:
+ type: object
+ application/vnd.spring-boot.actuator.v2+json:
+ schema:
+ type: object
+ description: OK
+
+metrics:
+ get:
+ x-internal: true
+ operationId: actuatorMetrics
+ description: >
+ A1-PMS Springboot Service Actuator web endpoint - Get a list of Application metrics names.
+ externalDocs:
+ description: Spring Boot Actuator Web API Documentation
+ url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html
+ summary: Actuator endpoint - Metrics (actuatorMetrics)
+ tags:
+ - Actuator API
+ responses:
+ "200":
+ content:
+ application/vnd.spring-boot.actuator.v3+json:
+ schema:
+ type: object
+ application/json:
+ schema:
+ type: object
+ application/vnd.spring-boot.actuator.v2+json:
+ schema:
+ type: object
+ description: OK
+
+metric:
+ get:
+ x-internal: true
+ operationId: actuatorGetMetric
+ description: >
+ A1-PMS Springboot Service Actuator web endpoint - Get the value for a named Application metric.
+ externalDocs:
+ description: Spring Boot Actuator Web API Documentation
+ url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html
+ summary: Actuator endpoint - Get Metric (actuatorGetMetric)
+ parameters:
+ - explode: false
+ in: path
+ name: requiredMetricName
+ required: true
+ schema:
+ type: string
+ style: simple
+ responses:
+ "200":
+ content:
+ application/vnd.spring-boot.actuator.v3+json:
+ schema:
+ type: object
+ application/json:
+ schema:
+ type: object
+ application/vnd.spring-boot.actuator.v2+json:
+ schema:
+ type: object
+ description: OK
\ No newline at end of file
--- /dev/null
+authz:
+ post:
+ description: >
+ A template endpoint for callout requests to an external authorization function.
+ The authorization function, if enabled, decides if individual operations are permitted.
+ operationId: performAccessControl
+ summary: Callout request for access authorization (performAccessControl)
+ tags:
+ - Authorization API
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: 'schemas.yaml#/schemas/policy_authorization'
+ required: true
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: 'schemas.yaml#/schemas/authorization_result'
+ description: OK
+ "403":
+ $ref: 'responses.yaml#/responses/Forbidden'
\ No newline at end of file
--- /dev/null
+configuration:
+ get:
+ description: Returns the entire contents of the Application Configuration.
+ tags:
+ - Configuration
+ operationId: getConfiguration
+ summary: Get the Application Configuration (getConfiguration)
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ type: string
+ description: OK - Configuration
+ "404":
+ $ref: 'responses.yaml#/responses/NotFound'
+ description: Not Found - Configuration is not found or is not readable
+ put:
+ description: >
+ Replace the current Application Configuration with a new configuration.
+ The new configuration, if accepted, will take effect after a short delay.
+ The new configuration must comply with the Application Configuration schema,
+ which can be found from the the Application Documentation (Developer Guide)
+ tags:
+ - Configuration
+ operationId: putConfiguration
+ summary: Set/Replace the Application Configuration (putConfiguration)
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: object
+ required: true
+ responses:
+ "200":
+ content:
+ '*/*':
+ schema:
+ $ref: 'schemas.yaml#/schemas/void'
+ description: OK - Configuration updated
+ "400":
+ $ref: 'responses.yaml#/responses/BadRequest'
\ No newline at end of file
--- /dev/null
+examples:
+ service_status:
+ description: List of service information
+ value:
+ callback_url: callback_url
+ service_id: service_id
+ keep_alive_interval_seconds: 0
+ time_since_last_activity_seconds: 6
+
+ service_status_list:
+ description: List of service information
+ value:
+ service_list:
+ - callback_url: callback_url
+ service_id: service_id
+ keep_alive_interval_seconds: 0
+ time_since_last_activity_seconds: 6
+ - callback_url: callback_url
+ service_id: service_id
+ keep_alive_interval_seconds: 0
+ time_since_last_activity_seconds: 6
+ policy_type_definition:
+ description: Schema of the given A1 Policy Type
+ value:
+ policy_schema: "{}"
+ policy_type_id_list:
+ description: Array of A1 Policy Type id's
+ value:
+ policy_type_id_list:
+ - policytype_id
+ - policytype_id
+ policy_info:
+ description: Information for an A1 Policy Instance
+ value:
+ ric_id: ric_id1
+ policy_id: policy_id1
+ transient: false
+ service_id: service_id1
+ policy_data: "{}"
+ status_notification_uri: status_notification_uri
+ policytype_id: policytype_id1
+ policy_info_list:
+ description: List of policy information
+ value:
+ policies:
+ - ric_id: ric_id1
+ policy_id: policy_id1
+ transient: false
+ service_id: service_id1
+ policy_data: "{}"
+ status_notification_uri: status_notification_uri
+ policytype_id: policytype_id1
+ - ric_id: ric_id2
+ policy_id: policy_id2
+ transient: true
+ service_id: service_id2
+ policy_data: "{}"
+ status_notification_uri: status_notification_uri
+ policytype_id: policytype_id2
+ policy_id_list:
+ description: A list of policy identities
+ value:
+ policy_ids:
+ - some_policy_id
+ - some_policy_id
+ policy_status_info:
+ description: Status for one A1-P Policy
+ value:
+ last_modified: last_modified
+ status:
+ value:
+ status: status
+ status_info:
+ value:
+ status: status
+ ric_info:
+ value:
+ ric_id: ric_id
+ managed_element_ids:
+ - some_managed_element_id
+ - some_managed_element_id
+ state: UNAVAILABLE
+ policytype_ids:
+ - some_policytype_id
+ - some_policytype_id
+ ric_info_list:
+ value:
+ rics:
+ - ric_id: ric_id
+ managed_element_ids:
+ - some_managed_element_id
+ - some_managed_element_id
+ state: UNAVAILABLE
+ policytype_ids:
+ - policytype_id
+ - policytype_id
+ - ric_id: ric_id
+ managed_element_ids:
+ - managed_element_ids
+ - managed_element_ids
+ state: UNAVAILABLE
+ policytype_ids:
+ - policytype_ids
+ - policytype_ids
\ No newline at end of file
--- /dev/null
+status:
+ get:
+ operationId: getStatusV1
+ description: Returns status and statistics of this service
+ summary: Get Status (getStatusV1)
+ tags:
+ - Health Check
+ responses:
+ "200":
+ content:
+ '*/*':
+ schema:
+ type: string
+ description: OK - Service is living
+status-v2:
+ get:
+ operationId: getStatus
+ description: Returns status and statistics of this service
+ summary: Get Status (getStatus)
+ tags:
+ - Health Check
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: 'schemas.yaml#/schemas/status_info'
+ examples:
+ status_info:
+ $ref: 'examples.yaml#/examples/status_info'
+ description: OK- Service is living Ok
\ No newline at end of file
--- /dev/null
+# ============LICENSE_START=======================================================
+# Copyright (C) 2020-2023 Nordix Foundation. All rights reserved.
+# Copyright (C) 2023-2025 OpenInfra Foundation Europe. All rights reserved.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+
+openapi: 3.0.3
+info:
+ x-api-id: a31c510b-20e6-4a08-af16-368c44d7fba8
+ x-audience: external-public
+ description: "<h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service\
+ \ provides a REST API for managing A1 policies. <br/>This document describes an older pre-spec API set
+ \ to perform tasks for: </p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring\
+ \ and maintaining consistency of the SMO view of A1 Policies and the Near-RT RICs</li><li>Maintaining\
+ \ a view of each Near-RT RIC's supported A1 Policy Types</li><li>Supervision of registered services\
+ \ (rApps). When a registered service is unavailable, its policies are removed.</li></ul><h2>APIs\
+ \ provided or defined by the service</h2><h3>A1 Policy Management (Older pre-spec version) </h3>\
+ \ <p>This is an older API for managing A1 Policies:</p><ul><li>A1 Policy retrieval, creation,\
+ \ modification and deletion.</li><li>Retrieval of supported A1 Policy Types for\
+ \ a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management\
+ \ of configuration</h3><p>API for updating and retrieval of the component configuration.\
+ \ Note that there other ways to maintain the configuration.</p><h3>Service Callbacks</h3><p>These\
+ \ are endpoints that are invoked by this service. The callbacks are registered\
+ \ in this service at service registration.</p><h3>NearRT-RIC Repository (Older version)</h3>\
+ \ <p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy\
+ \ is targeted towards one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision\
+ \ of the A1 Policy Management Service .</p><h3>Service Registry and Supervision</h3>\
+ \ <p>API used for registering services/clients/rApps. Each A1 Policy can be tagged with an owner.\
+ \ If the owner service is registered, then the service can be monitored by a heart-beat supervision\
+ \ mechanism, and if the registered service becomes unavailable, then its A1 Policies are removed. Note \
+ \ that services do not need to be registered to create A1 Policies, but unregistered services are not \
+ \ supervised. This is a feature that is optional to use.</p><h3>Authorization API</h3><p>API used\
+ \ for access control of A1 Policy access. If configured, an external authorization\
+ \ provider is requested to grant access to the A1 Policy Type.</p><h3>Spring Boot\
+ \ Actuator</h3><p>Provides built-in functions used to monitor and configure the Spring\
+ \ web application hosting the service.</p>"
+ license:
+ name: |
+ Copyright (C) 2020-2023 Nordix Foundation, and Copyright (C) 2024-2025 OpenInfra Foundation Europe.
+ All rights reserved. Licensed under the Apache 2 License.
+ url: http://www.apache.org/licenses/LICENSE-2.0
+ title: ONAP CCSDK - Pre-Spec A1 Policy Management API
+ version: 1.3.0
+ contact:
+ name: ONAP CCSDK Project
+ url: https://www.onap.org/
+ email: discuss-list@onap.com
+servers:
+ - url: /
+tags:
+ - name: A1 Policy Management
+ description: >
+ Older pre-spec API used to get, create, update and delete A1 Policy Instances. Also used to query A1 Policy Types.
+ - name: NearRT-RIC Repository
+ description: >
+ Older API used to get information about registered Near-RT RICs.
+ - name: Service Registry and Supervision
+ description: >
+ Older API used to manage registered services, and control their keep-alive status via heart-beat messages.
+ - name: Health Check
+ description: >
+ API used to get the health status and statistics of this service
+ - name: Service Callbacks
+ description: >
+ Callout to registered services to indicate a status changes for a Near-RT RIC.
+ Note that these operations are called by the A1 Policy Management Service, not provided.
+ - name: Authorization API
+ description: >
+ API used for authorization of information A1 policy access (this is
+ provided by an authorization producer such as OPA).
+ Note that these operations are called by the A1 Policy Management Service, not provided.
+ - name: Configuration
+ description: >
+ API used to create or fetch the application configuration.
+ - name: Actuator API
+ description: >
+ API used to monitor and configure the A1-PMS Springboot Service.
+ externalDocs:
+ description: Spring Boot Actuator Web API Documentation
+ url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html
+
+paths:
+ /status:
+ $ref: 'healthcheck-api.yaml#/status'
+ /a1-policy/v2/status:
+ $ref: 'healthcheck-api.yaml#/status-v2'
+ /a1-policy/v2/rics/ric:
+ $ref: 'ric-api.yaml#/ric'
+ /a1-policy/v2/policy-types:
+ $ref: 'pms-lcm-api.yaml#/policy-types'
+ /a1-policy/v2/policies/{policy_id}:
+ $ref: 'pms-lcm-api.yaml#/policy'
+ /a1-policy/v2/services/{service_id}/keepalive:
+ $ref: 'service-api.yaml#/keep-alive'
+ /a1-policy/v2/rics:
+ $ref: 'ric-api.yaml#/rics'
+ /a1-policy/v2/services:
+ $ref: 'service-api.yaml#/services'
+ /a1-policy/v2/policy-types/{policytype_id}:
+ $ref: 'pms-lcm-api.yaml#/policy-type'
+ /a1-policy/v2/policies:
+ $ref: 'pms-lcm-api.yaml#/policies'
+ /a1-policy/v2/policy-instances:
+ $ref: 'pms-lcm-api.yaml#/policy-instances'
+ /a1-policy/v2/services/{service_id}:
+ $ref: 'service-api.yaml#/service'
+ /a1-policy/v2/policies/{policy_id}/status:
+ $ref: 'pms-lcm-api.yaml#/policy-status'
+ /a1-policy/v2/configuration:
+ $ref: 'configuration-api.yaml#/configuration'
+ /example-authz-check:
+ $ref: 'authz-api.yaml#/authz'
+ /actuator:
+ $ref: 'actuator-api.yaml#/actuator'
+ /actuator/heapdump:
+ $ref: 'actuator-api.yaml#/heapdump'
+ /actuator/info:
+ $ref: 'actuator-api.yaml#/actuator-info'
+ /actuator/threaddump:
+ $ref: 'actuator-api.yaml#/threaddump'
+ /actuator/loggers:
+ $ref: 'actuator-api.yaml#/loggers'
+ /actuator/loggers/{name}:
+ $ref: 'actuator-api.yaml#/logger'
+ /actuator/logfile:
+ $ref: 'actuator-api.yaml#/logfile'
+ /actuator/health:
+ $ref: 'actuator-api.yaml#/health'
+ /actuator/health/**:
+ $ref: 'actuator-api.yaml#/health-all'
+ /actuator/shutdown:
+ $ref: 'actuator-api.yaml#/shutdown'
+ /actuator/metrics:
+ $ref: 'actuator-api.yaml#/metrics'
+ /actuator/metrics/{requiredMetricName}:
+ $ref: 'actuator-api.yaml#/metric'
--- /dev/null
+policy-types:
+ get:
+ operationId: getPolicyTypes
+ description: Query A1 Policy Type identities using query parameters
+ summary: Get A1 Policy Types (getPolicyTypes)
+ tags:
+ - A1 Policy Management
+ parameters:
+ - description: Select types for the given Near-RT RIC identity.
+ explode: true
+ in: query
+ name: ric_id
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: Select types compatible with the given type name (type identity has the
+ format 'typename_version')
+ explode: true
+ in: query
+ name: type_name
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: Select types that are compatible with the given version. This
+ parameter is only applicable in conjunction with type_name. As an example
+ version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching
+ types will be returned sorted in ascending order.
+ explode: true
+ in: query
+ name: compatible_with_version
+ required: false
+ schema:
+ type: string
+ style: form
+ responses:
+ "200":
+ content:
+ application/json:
+ examples:
+ policy_type_id_list:
+ $ref: 'examples.yaml#/examples/policy_type_id_list'
+ schema:
+ $ref: 'schemas.yaml#/schemas/policy_type_id_list'
+ description: OK - Policy Type IDs Found
+ "404":
+ $ref: 'responses.yaml#/responses/NotFound'
+ description: 'Not Found - Requested Policy Type IDs Not Found'
+
+policy-type:
+ get:
+ description: Get an A1 Policy Type definition using its policy type ID
+ operationId: getPolicyTypeDefinition
+ summary: Get an A1 Policy Type definition (getPolicyTypeDefinition)
+ tags:
+ - A1 Policy Management
+ parameters:
+ - explode: false
+ in: path
+ name: policytype_id
+ required: true
+ schema:
+ type: string
+ style: simple
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: 'schemas.yaml#/schemas/policy_type_definition'
+ examples:
+ policy_type_definition:
+ $ref: 'examples.yaml#/examples/policy_type_definition'
+ description: OK - schema of the requested A1 Policy Type
+ "404":
+ $ref: 'responses.yaml#/responses/NotFound'
+
+policy-instances:
+ get:
+ description: >
+ Returns a collection of A1 Policy Instance information for policies that match given search criteria.
+ If several query parameters are defined, the policies matching all conditions are returned.
+ operationId: getPolicyInstances
+ summary: Query for A1 Policy instances (getPolicyInstances)
+ tags:
+ - A1 Policy Management
+ parameters:
+ - description: Select policies with a given A1 Policy Type ID.
+ explode: true
+ in: query
+ name: policytype_id
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: Select policies for a given Near-RT RIC identity.
+ explode: true
+ in: query
+ name: ric_id
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: Select policies owned by a given service (registered or unregistered).
+ explode: true
+ in: query
+ name: service_id
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
+ explode: true
+ in: query
+ name: type_name
+ required: false
+ schema:
+ type: string
+ style: form
+ responses:
+ "200":
+ content:
+ application/json:
+ examples:
+ policy_info_list:
+ $ref: 'examples.yaml#/examples/policy_info_list'
+ schema:
+ $ref: 'schemas.yaml#/schemas/policy_info_list'
+ description: OK - Returns A1 Policy Instances which match the criteria
+ "404":
+ content:
+ application/json:
+ schema:
+ $ref: 'schemas.yaml#/schemas/error_information'
+ description: Not Found - Near-RT RIC, A1 Policy Type or service was not found
+
+policy-status:
+ get:
+ description: Retrieve the status information for an A1 Policy Instance.
+ tags:
+ - A1 Policy Management
+ operationId: getPolicyStatus
+ summary: Get an A1 Policy Instance's status (getPolicyStatus)
+ parameters:
+ - explode: false
+ in: path
+ name: policy_id
+ required: true
+ schema:
+ type: string
+ style: simple
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: 'schemas.yaml#/schemas/policy_status_info'
+ examples:
+ policy_status_info:
+ $ref: 'examples.yaml#/examples/policy_status_info'
+ description: OK - Policy status
+ "404":
+ $ref: 'responses.yaml#/responses/NotFound'
+
+policies:
+ get:
+ description: >
+ Retrieve a list of A1 Policy Instance IDs for policies that match given search criteria.
+ If multiple query parameters are given, the policies matching all conditions are returned.
+ operationId: getPolicyIds
+ summary: Query A1 Policy Instances (getPolicyIds)
+ tags:
+ - A1 Policy Management
+ parameters:
+ - description: Select policies of a given A1 Policy Type ID.
+ explode: true
+ in: query
+ name: policytype_id
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: Select policies of a given Near-RT RIC identity.
+ explode: true
+ in: query
+ name: ric_id
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: Select policies owned by a given service. (Both registered and unregistered services)
+ explode: true
+ in: query
+ name: service_id
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: >
+ Select policies of types with the given A1 Policy Type name
+ (type names have the format 'typename_version')
+ explode: true
+ in: query
+ name: type_name
+ required: false
+ schema:
+ type: string
+ style: form
+ responses:
+ "200":
+ content:
+ application/json:
+ examples:
+ policy_id_list:
+ $ref: 'examples.yaml#/examples/policy_id_list'
+ schema:
+ $ref: 'schemas.yaml#/schemas/policy_id_list'
+ description: OK - Policy identities
+ "404":
+ $ref: 'responses.yaml#/responses/NotFound'
+ put:
+ description: Create or Update an A1 Policy Instance
+ tags:
+ - A1 Policy Management
+ operationId: putPolicy
+ summary: Create or Update an A1 Policy Instance (putPolicy)
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: 'schemas.yaml#/schemas/policy_info'
+ required: true
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: 'schemas.yaml#/schemas/void'
+ description: OK - Policy updated
+ "201":
+ content:
+ application/json:
+ schema:
+ $ref: 'schemas.yaml#/schemas/void'
+ description: Created - Policy created
+ "423":
+ $ref: 'responses.yaml#/responses/Locked'
+
+policy:
+ delete:
+ description: Delete an A1 Policy instance using its policy ID.
+ operationId: deletePolicy
+ summary: Delete an A1 Policy instance (deletePolicy)
+ tags:
+ - A1 Policy Management
+ parameters:
+ - explode: false
+ in: path
+ name: policy_id
+ required: true
+ schema:
+ type: string
+ style: simple
+ responses:
+ "200":
+ content:
+ '*/*':
+ schema:
+ $ref: 'schemas.yaml#/schemas/void'
+ description: OK - Policy deleted
+ "423":
+ $ref: 'responses.yaml#/responses/Locked'
+ description: 'The requested policy using policy_id is Locked'
+ get:
+ description: Get an A1 Policy instance using its policy ID
+ operationId: getPolicy
+ summary: Get an A1 Policy instance (getPolicy)
+ tags:
+ - A1 Policy Management
+ parameters:
+ - explode: false
+ in: path
+ name: policy_id
+ required: true
+ schema:
+ type: string
+ style: simple
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: 'schemas.yaml#/schemas/policy_info'
+ examples:
+ policy_info:
+ $ref: 'examples.yaml#/examples/policy_info'
+ description: OK - Policy found
+ "404":
+ $ref: 'responses.yaml#/responses/NotFound'
+ description: 'Not Found - Requested Policy using policy_id is not found'
\ No newline at end of file
--- /dev/null
+responses:
+ Locked:
+ description: Locked - HTTP Status code which can be used when the state is Locked
+ content:
+ application/problem+json:
+ schema:
+ $ref: 'schemas.yaml#/schemas/error_information'
+ example:
+ status: 423
+ title: Locked
+ detail: Requested resource is in a locked state.
+ BadRequest:
+ description: Bad Request
+ content:
+ application/problem+json:
+ schema:
+ $ref: 'schemas.yaml#/schemas/error_information'
+ example:
+ status: 400
+ title: Bad Request
+ detail: The provided request is not valid.
+ Forbidden:
+ description: Forbidden
+ content:
+ application/problem+json:
+ schema:
+ $ref: 'schemas.yaml#/schemas/error_information'
+ example:
+ status: 403
+ title: Forbidden
+ detail: Your role does not allow to perform this action. Contact System Administrator to change your access rights.
+ NotFound:
+ description: Not Found
+ content:
+ application/problem+json:
+ example:
+ [ ]
\ No newline at end of file
--- /dev/null
+ric:
+ get:
+ description: >
+ Query information about a Near-RT RIC. Either a Near-RT RIC identity or a Managed Element
+ identity can be specified. The intention with Managed Element identity is the ID used
+ in O1 for accessing the traffical element (such as the ID of CU).
+ operationId: getRic
+ summary: Get a Near-RT RIC (getRic)
+ tags:
+ - NearRT-RIC Repository
+ parameters:
+ - description: >
+ The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned.
+ explode: true
+ in: query
+ name: managed_element_id
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: The identity of a Near-RT RIC to get information for.
+ explode: true
+ in: query
+ name: ric_id
+ required: false
+ schema:
+ type: string
+ style: form
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: 'schemas.yaml#/schemas/ric_info'
+ examples:
+ ric_info:
+ $ref: 'examples.yaml#/examples/ric_info'
+ description: OK - Near-RT RIC is found
+ "404":
+ $ref: 'responses.yaml#/responses/NotFound'
+ description: NotFound - Requested NearRT-RIC Not Found
+rics:
+ get:
+ description: Get all Near-RT RICs that supports a given A1 Policy Type ID
+ operationId: getRics
+ summary: Get Near-RT RICs for A1 Policy Type (getRics)
+ tags:
+ - NearRT-RIC Repository
+ parameters:
+ - description: >
+ The identity of an A1 Policy Type. If given, all Near-RT RICs supporting
+ the A1 Policy Type are returned.
+ explode: true
+ in: query
+ name: policytype_id
+ required: false
+ schema:
+ type: string
+ style: form
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: 'schemas.yaml#/schemas/ric_info_list'
+ examples:
+ ric_info_list:
+ $ref: 'examples.yaml#/examples/ric_info_list'
+ description: OK
+ "404":
+ $ref: 'responses.yaml#/responses/NotFound'
\ No newline at end of file
--- /dev/null
+schemas:
+ policy_type_definition:
+ description: Contains A1 Policy Type schema definition
+ type: object
+ properties:
+ policy_schema:
+ description: A1 Policy Type json schema. The schema is a json object following
+ http://json-schema.org/draft-07/schema
+ type: object
+ error_information:
+ description: Problem as defined in https://tools.ietf.org/html/rfc7807
+ properties:
+ detail:
+ description: ' A human-readable explanation specific to this occurrence
+ of the problem.'
+ example: A1 Policy Type not found
+ type: string
+ title:
+ description: 'A specific error name'
+ type: string
+ example: Not Found
+ status:
+ description: 'The HTTP status code generated by the origin server for this
+ occurrence of the problem. '
+ example: 404
+ format: int32
+ type: integer
+ type: object
+ void:
+ description: Void/empty
+ type: object
+ status_info:
+ properties:
+ status:
+ description: status text
+ type: string
+ type: object
+ authorization_result:
+ description: Result of authorization
+ example:
+ result: true
+ properties:
+ result:
+ description: If true, the access is granted
+ type: boolean
+ required:
+ - result
+ type: object
+ ric_info:
+ description: Information for a Near-RT RIC
+ properties:
+ ric_id:
+ description: identity of the Near-RT RIC
+ type: string
+ managed_element_ids:
+ description: O1 identities for managed entities
+ items:
+ description: O1 identities for managed entities
+ type: string
+ type: array
+ state:
+ description: Represents the states for a Near-RT RIC
+ enum:
+ - UNAVAILABLE
+ - AVAILABLE
+ - SYNCHRONIZING
+ - CONSISTENCY_CHECK
+ type: string
+ policytype_ids:
+ description: supported A1 Policy Types
+ items:
+ description: supported A1 Policy Types
+ type: string
+ type: array
+ type: object
+ service_registration_info:
+ description: Information for one service
+ properties:
+ callback_url:
+ description: Callback for notifying of Near-RT RIC state changes
+ type: string
+ service_id:
+ description: identity of the service
+ type: string
+ keep_alive_interval_seconds:
+ description: >
+ Keep alive interval for the service. This is used to enable
+ optional heartbeat supervision of the service. If set (> 0) the registered
+ service should regularly invoke a 'keepalive' REST call. When a service
+ fails to invoke this 'keepalive' call within the configured time, the
+ service is considered unavailable. An unavailable service will be automatically
+ deregistered and its policies will be deleted. Value 0 means timeout
+ supervision is disabled.
+ format: int64
+ type: integer
+ required:
+ - service_id
+ type: object
+ policy_info_list:
+ description: List of policy information
+ properties:
+ policies:
+ description: List of policy information
+ items:
+ $ref: '#/schemas/policy_info'
+ type: array
+ type: object
+ policy_status_info:
+ description: Status for one A1-P Policy
+ properties:
+ last_modified:
+ description: timestamp, last modification time
+ type: string
+ status:
+ description: the Policy status
+ type: object
+ type: object
+ service_status:
+ properties:
+ callback_url:
+ description: callback for notifying of RIC synchronization
+ type: string
+ service_id:
+ description: identity of the service
+ type: string
+ keep_alive_interval_seconds:
+ description: policy keep alive timeout
+ format: int64
+ type: integer
+ time_since_last_activity_seconds:
+ description: time since last invocation by the service
+ format: int64
+ type: integer
+ type: object
+ ric_info_list:
+ description: List of Near-RT RIC information
+ properties:
+ rics:
+ description: List of Near-RT RIC information
+ items:
+ $ref: '#/schemas/ric_info'
+ type: array
+ type: object
+ input:
+ description: input
+ properties:
+ access_type:
+ description: Access type
+ enum:
+ - READ
+ - WRITE
+ - DELETE
+ type: string
+ auth_token:
+ description: Authorization token
+ type: string
+ policy_type_id:
+ description: A1 Policy Type identifier
+ type: string
+ required:
+ - access_type
+ - auth_token
+ - policy_type_id
+ type: object
+ policy_authorization:
+ description: Authorization request for A1 policy requests
+ properties:
+ input:
+ $ref: '#/schemas/input'
+ required:
+ - input
+ type: object
+ policy_type_id_list:
+ description: Information about A1 Policy Types
+ properties:
+ policytype_ids:
+ description: A1 Policy Type identities
+ items:
+ description: A1 Policy Type identities
+ type: string
+ type: array
+ type: object
+ policy_info:
+ description: Information for one A1-P Policy
+ properties:
+ ric_id:
+ description: identity of the target Near-RT RIC
+ type: string
+ policy_id:
+ description: identity of the policy
+ type: string
+ transient:
+ default: false
+ description: >
+ If true, the policy is automatically deleted if the targeted Near-RT RIC restarts
+ or recovers. If false, the A1 Policy Instance remains, and is re-pushed to the targeted
+ Near-RT RIC after a restart or recovery. If false, the A1 Policy Instance is maintained and
+ must be deleted separately in the event of Near-RT RIC restart or recovery. Default is false.
+ example: false
+ nullable: false
+ type: boolean
+ service_id:
+ description: >
+ The identity of the service owning the policy. This can be
+ used to group the policies (it is possible to get all policies associated
+ to a service). Note that the service does not need to be registered.
+ If the service is registered, the A1 Policy Instance will be
+ subject to the same supervision rules as the the service's other policies.
+ type: string
+ default: ""
+ policy_data:
+ description: the configuration of the policy
+ type: object
+ status_notification_uri:
+ description: Callback URI for policy status updates
+ type: string
+ policytype_id:
+ description: identity of the A1 Policy Type
+ type: string
+ required:
+ - ric_id
+ - policy_id
+ - policy_data
+ - policytype_id
+ type: object
+ policy_id_list:
+ description: A list of policy identities
+ example:
+ policy_ids:
+ - policy_ids
+ - policy_ids
+ properties:
+ policy_ids:
+ description: Policy identities
+ items:
+ description: Policy identities
+ type: string
+ type: array
+ type: object
+ service_status_list:
+ properties:
+ service_list:
+ description: List of service information
+ items:
+ $ref: '#/schemas/service_status'
+ type: array
+ type: object
+ service_callback_info_v2:
+ description: |
+ Information transferred in Service callbacks,
+ if a callback URL was provided for a registered service
+ properties:
+ ric_id:
+ description: identity of a Near-RT RIC
+ type: string
+ event_type:
+ description: >
+ values:
+ AVAILABLE: the Near-RT RIC has become available for A1 Policy management
+ enum:
+ - AVAILABLE
+ type: string
+ required:
+ - event_type
+ - ric_id
+ type: object
+ Link:
+ properties:
+ templated:
+ type: boolean
+ href:
+ type: string
+ type: object
\ No newline at end of file
--- /dev/null
+keep-alive:
+ put:
+ description: A registered service should invoke this operation regularly to
+ indicate that it is still alive. If a registered service fails to invoke some operation,
+ or this operation, before the end of a timeout period the service will be deregistered
+ and all its A1 policies wil be removed. This operation is only intended for registered
+ services. (This timeout can be set or disabled when each service is initially registered)
+ operationId: keepAliveService
+ summary: Heartbeat message from a service (keepAliveService)
+ tags:
+ - Service Registry and Supervision
+ parameters:
+ - explode: false
+ in: path
+ name: service_id
+ required: true
+ schema:
+ type: string
+ style: simple
+ responses:
+ "200":
+ content:
+ '*/*':
+ schema:
+ type: object
+ description: OK - Service supervision timer refreshed, OK
+ "404":
+ $ref: 'responses.yaml#/responses/NotFound'
+
+services:
+ get:
+ description: >
+ Get information about all registered services, or a single registered service.
+ If the service ID of a registered service is included in the query, information about that
+ service is returned. Otherwise Information about all registered is returned.
+ This operation does not retrieve information about unregistered services.
+ operationId: getServices
+ summary: Get Services (getServices)
+ tags:
+ - Service Registry and Supervision
+ parameters:
+ - description: The identity of the registered service
+ explode: true
+ in: query
+ name: service_id
+ required: false
+ schema:
+ type: string
+ style: form
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: 'schemas.yaml#/schemas/service_status_list'
+ examples:
+ service_status_list:
+ $ref: 'examples.yaml#/examples/service_status_list'
+ description: OK
+ "404":
+ $ref: 'responses.yaml#/responses/NotFound'
+ put:
+ description: >
+ Register a single service, or update a previous registtration.
+ Service registration is required to get callbacks about available NearRT RICs
+ and to enable supervision of the service's active status. If a registered
+ service becomes inactive, its policies can be automatically deleted.
+ A1 Policy instances can also be created for unregistered services.
+ If an unregistered service is later registered, the service's policies are
+ retained when the service becomes registered. This feature is optional to use.
+ operationId: putService
+ summary: Register or update a Service (putService)
+ tags:
+ - Service Registry and Supervision
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: 'schemas.yaml#/schemas/service_registration_info'
+ required: true
+ responses:
+ "200":
+ content:
+ '*/*':
+ schema:
+ type: object
+ description: OK - Service updated
+ "201":
+ content:
+ '*/*':
+ schema:
+ type: object
+ description: Created - Service created
+ "400":
+ $ref: 'responses.yaml#/responses/BadRequest'
+ callbacks:
+ RICStatus:
+ "{$request.body#/callback_url}":
+ post:
+ description: |
+ Callouts to indicate Near-RT RIC status changes relevant for Services.
+ The URL invoked by this callback is provided at Service registration.
+ operationId: serviceCallback
+ summary: Callback for Near-RT RIC status (serviceCallback)
+ tags:
+ - Service Registry and Supervision
+ - Service Callbacks
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: 'schemas.yaml#/schemas/service_callback_info_v2'
+ required: true
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: 'schemas.yaml#/schemas/void'
+ description: OK
+ "404":
+ $ref: 'responses.yaml#/responses/NotFound'
+
+service:
+ delete:
+ description: >
+ Unregister a registered Service using its service ID.
+ Only registered services can be unregistered. All A1 Policy Instances
+ for the previously registered service will be removed.
+ tags:
+ - Service Registry and Supervision
+ operationId: deleteService
+ summary: Unregister a Service (deleteService)
+ parameters:
+ - explode: false
+ in: path
+ name: service_id
+ required: true
+ schema:
+ type: string
+ style: simple
+ responses:
+ "204":
+ content:
+ '*/*':
+ schema:
+ type: object
+ description: No Content - Service unregistered
+ "404":
+ $ref: 'responses.yaml#/responses/NotFound'
\ No newline at end of file
--- /dev/null
+configuration:
+ get:
+ operationId: getConfiguration
+ description: Returns the entire contents of the Application Configuration.
+ tags:
+ - Configuration
+ summary: Get the Application Configuration (getConfiguration)
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ type: string
+ description: OK - Application configuration received
+ "404":
+ $ref: 'responses.yaml#/responses/404'
+ put:
+ operationId: putConfiguration
+ description: >
+ Replace the current Application Configuration with a new configuration.
+ The new configuration, if accepted, will take effect after a short delay.
+ The new configuration must comply with the Application Configuration schema,
+ which can be found from the the Application Documentation (Developer Guide)
+ tags:
+ - Configuration
+ summary: Set/Replace the Application Configuration (putConfiguration)
+ requestBody:
+ content:
+ application/json:
+ schema:
+ type: object
+ required: true
+ responses:
+ "200":
+ content:
+ 'application/json':
+ schema:
+ $ref: 'schemas.yaml#/schemas/void'
+ description: OK - Configuration updated
+ "400":
+ $ref: 'responses.yaml#/responses/400'
\ No newline at end of file
--- /dev/null
+examples:
+ ServiceStatusList:
+ description: List of service information
+ value:
+ serviceList:
+ - callbackUrl: http://callback.url
+ serviceId: serviceId1
+ keepAliveIntervalSeconds: 0
+ timeSinceLastActivitySeconds: 6
+ - callbackUrl: http://callback.url
+ serviceId: serviceId2
+ keepAliveIntervalSeconds: 500
+ timeSinceLastActivitySeconds: 401
+ StatusInfo:
+ value:
+ status: success
+ RicInfo:
+ value:
+ ricId: ricId1
+ managedElementIds:
+ - "Note #1"
+ - "Athlone small cells"
+ - "Some optional string"
+ state: UNAVAILABLE
+ policyTypeIds:
+ - policyTypeId1
+ - policyTypeId2
+ RicInfoList:
+ value:
+ rics:
+ - ricId: ricId1
+ managedElementIds:
+ - "Note #1"
+ - "Athlone small cells"
+ - "Fake Cells"
+ state: UNAVAILABLE
+ policyTypeIds:
+ - policyTypeId1
+ - policyTypeId2
+ - ricId: ricId2
+ managedElementIds:
+ - "My test element"
+ - "Another test element"
+ state: UNAVAILABLE
+ policyTypeIds:
+ - policyTypeId3
+ - policyTypeId4
+ PolicyObject:
+ value:
+ scope:
+ ueId:
+ guRanUeId:
+ globalGnbId:
+ plmnId:
+ mcc: "123"
+ mnc: "45"
+ gnbId:
+ gnbIdLength: 24
+ gnbIdValue: 12345678
+ RanUeId: 'a31c510b20e64a74'
+ groupId:
+ spId: 123
+ qosId:
+ 5qI: 1
+ cellId:
+ plmnId:
+ mcc: "123"
+ mnc: "45"
+ cId:
+ ncI: 123
+ qosObjectives:
+ gfbr: 100
+ mfbr: 200
+ priorityLevel: 3
+ pdb: 50
+ PolicyTypeInformation:
+ value:
+ - policyTypeId: STD_QOS2_0.1.0
+ nearRtRicId: ric_g3_2
+ - policyTypeId: STD_QOS_0_2_0
+ nearRtRicId: ric_g3_2
+ - policyTypeId: STD_QOS2_0.1.0
+ nearRtRicId: ric_g3_1
+ - policyTypeId: STD_QOS_0_2_0
+ nearRtRicId: ric_g3_1
+ PolicyTypeObject:
+ value:
+ policySchema:
+ "$schema": http://json-schema.org/draft-07/schema#
+ title: STD_QOS_0_2_0
+ description: STD QOS2 policy type
+ type: object
+ properties:
+ scope:
+ type: object
+ properties:
+ ueId:
+ type: string
+ qosId:
+ type: string
+ additionalProperties: false
+ required:
+ - ueId
+ - qosId
+ qosObjectives:
+ type: object
+ properties:
+ priorityLevel:
+ type: number
+ additionalProperties: false
+ required:
+ - priorityLevel
\ No newline at end of file
--- /dev/null
+status:
+ get:
+ operationId: getStatus
+ description: Returns status and statistics of this service
+ summary: Get Status (getStatus)
+ tags:
+ - Health Check
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: 'schemas.yaml#/schemas/StatusInfo'
+ examples:
+ status_info:
+ $ref: 'examples.yaml#/examples/StatusInfo'
+ description: OK- Service is living Ok
+ "404":
+ $ref: 'responses.yaml#/responses/404'
\ No newline at end of file
--- /dev/null
+# ============LICENSE_START=======================================================
+# Copyright (C) 2020-2023 Nordix Foundation. All rights reserved.
+# Copyright (C) 2023-2025 OpenInfra Foundation Europe. All rights reserved.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+
+openapi: 3.0.3
+info:
+ title: ONAP CCSDK - A1 Policy Management API
+ version: 1.0.0
+ x-api-id: e9776a07-0813-4fca-9801-6f892f0a7c13
+ x-audience: external-public
+ description: "<h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service\
+ \ provides a REST API for managing A1 policies. <br/>This document describes the latest API set
+ \ to perform tasks for: </p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring\
+ \ and maintaining consistency of the SMO view of A1 Policies and the Near-RT RICs</li><li>Maintaining\
+ \ a view of each Near-RT RIC's supported A1 Policy Types</li><li>Supervision of registered services\
+ \ (rApps). When a registered service is unavailable, its policies are removed.</li></ul><h2>APIs\
+ \ provided or defined by the service</h2>\
+ \ <p>Note: parts of this API are strongly based on extracts of the O-RAN Alliance R1 Interface specification\
+ \ for A1 Policy Management, and those parts should be considered '© O-RAN ALLIANCE - All rights reserved.'</p>\
+ \ <h3>A1 Policy Management</h3>\
+ \ <p>This is the latest API for managing A1 Policies. This API is partially compliant with O-RAN\
+ \ Alliance R1 Interface specifications for A1 Policy Management:</p><ul><li>A1 Policy retrieval, creation,\
+ \ modification and deletion.</li><li>Retrieval of supported A1 Policy Types for\
+ \ a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management\
+ \ of configuration</h3><p>API for updating and retrieval of the component configuration.\
+ \ Note that there other ways to maintain the configuration.</p><h3>Service Callbacks</h3><p>These\
+ \ are endpoints that are invoked by this service. The callbacks are registered\
+ \ in this service at service registration.</p><h3>NearRT-RIC Repository (Older version)</h3>\
+ \ <p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy\
+ \ is targeted towards one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision\
+ \ of the A1 Policy Management Service.</p><h3>Service Registry and Supervision</h3>\
+ \ <p>API used for registering services/clients/rApps. Each A1 Policy can be tagged with an owner.\
+ \ If the owner service is registered, then the service can be optionally monitored by a heart-beat supervision\
+ \ mechanism, and if the registered service becomes unavailable, then it is removed and all its A1 Policies are \
+ \ deleted. Note that services do not need to be registered to create A1 Policies, but unregistered \
+ \ services are not supervised. This is a feature that is optional to use.</p>"
+ license:
+ name: Copyright (C) 2024 - 2025 OpenInfra Foundation Europe. Licensed under the Apache 2 License.
+ url: http://www.apache.org/licenses/LICENSE-2.0
+ contact:
+ url: https://www.onap.org/
+ email: discuss-list@onap.com
+externalDocs:
+ description: 'Based on parts of O-RAN ALLIANCE specification: O-RAN.WG2.R1AP-v07.00'
+ url: 'https://www.o-ran.org/specifications'
+servers:
+ - url: '{apiRoot}/a1-policy-management/v1'
+ variables:
+ apiRoot:
+ default: 'https://example.com'
+ description: 'This is the Host:Port or Address where the A1-Policy Management Service can be accessed.
+ Note: This URL path format aligns with the O-RAN Alliance R1-AP specifications for A1 Policy Management'
+tags:
+ - name: A1 Policy Management
+ description: >
+ API used to get, create, update and delete A1 Policy Instances. Also used to query A1 Policy Types.
+ - name: NearRT-RIC Repository
+ description: >
+ API used to get information about registered Near-RT RICs.
+ - name: Service Registry and Supervision
+ description: >
+ API used to manage registered services, and control their keep-alive status via heart-beat messages.
+ - name: Health Check
+ description: >
+ API used to get the health status and statistics of this service.
+ - name: Configuration
+ description: >
+ API used to create or fetch the application configuration.
+paths:
+ /status:
+ $ref: 'healthcheck-api.yaml#/status'
+ /rics/{ricId}:
+ $ref: 'ric-api.yaml#/ric'
+ /rics:
+ $ref: 'ric-api.yaml#/rics'
+ /policy-types:
+ $ref: 'pms-lcm-api.yaml#/policy-types'
+ /policy-types/{policyTypeId}:
+ $ref: 'pms-lcm-api.yaml#/policy-type'
+ /policies/{policyId}:
+ $ref: 'pms-lcm-api.yaml#/policy'
+ /policies/{policyId}/status:
+ $ref: 'pms-lcm-api.yaml#/policy-status'
+ /policies:
+ $ref: 'pms-lcm-api.yaml#/policies'
+ /configuration:
+ $ref: 'configuration-api.yaml#/configuration'
+ /services/{serviceId}/keepalive:
+ $ref: 'service-api.yaml#/keep-alive'
+ /services:
+ $ref: 'service-api.yaml#/services'
+ /services/{serviceId}:
+ $ref: 'service-api.yaml#/service'
--- /dev/null
+policy-types:
+ get:
+ description: Query A1 Policy Type identities using query parameters
+ operationId: getPolicyTypes
+ summary: Get A1 Policy Types (getPolicyTypes)
+ tags:
+ - A1 Policy Management
+ parameters:
+ - description: Select types for the given Near-RT RIC identity.
+ explode: true
+ in: query
+ name: nearRtRicId
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: Select types compatible with the given type name (type identity has the format 'typename_version')
+ explode: true
+ in: query
+ name: typeName
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: >
+ Select types that are compatible with the given version. This
+ parameter is only applicable in conjunction with typeName. As an example
+ version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching
+ types will be returned sorted in ascending order.
+ explode: true
+ in: query
+ name: compatibleWithVersion
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: Specifies the content type that the client expects to receive in response to the request.
+ Only application/json is allowed.
+ in: header
+ name: Accept
+ schema:
+ type: string
+ example: application/json
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ items:
+ $ref: 'schemas.yaml#/schemas/PolicyTypeInformation'
+ type: array
+ examples:
+ PolicyTypeInformation:
+ $ref: 'examples.yaml#/examples/PolicyTypeInformation'
+ description: OK - Policy Type IDs found Ok
+ '400':
+ $ref: 'responses.yaml#/responses/400'
+ '401':
+ $ref: 'responses.yaml#/responses/401'
+ '403':
+ $ref: 'responses.yaml#/responses/403'
+ '404':
+ $ref: 'responses.yaml#/responses/404'
+ '406':
+ $ref: 'responses.yaml#/responses/406'
+ '429':
+ $ref: 'responses.yaml#/responses/429'
+ '500':
+ $ref: 'responses.yaml#/responses/500'
+ '502':
+ $ref: 'responses.yaml#/responses/502'
+ '503':
+ $ref: 'responses.yaml#/responses/503'
+
+policy-type:
+ get:
+ operationId: getPolicyTypeDefinition
+ description: Get an A1 Policy Type definition using its policy type ID
+ summary: Get an A1 Policy Type definition (getPolicyTypeDefinition)
+ tags:
+ - A1 Policy Management
+ parameters:
+ - explode: false
+ in: path
+ name: policyTypeId
+ required: true
+ schema:
+ type: string
+ style: simple
+ - description: Specifies the content type that the client expects to receive in response to the request.
+ Only application/json is allowed.
+ in: header
+ name: Accept
+ schema:
+ type: string
+ example: application/json
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: 'schemas.yaml#/schemas/PolicyTypeObject'
+ examples:
+ PolicyTypeObject:
+ $ref: 'examples.yaml#/examples/PolicyTypeObject'
+ description: OK - details and schema of the requested A1 Policy Type
+ '400':
+ $ref: 'responses.yaml#/responses/400'
+ '401':
+ $ref: 'responses.yaml#/responses/401'
+ '403':
+ $ref: 'responses.yaml#/responses/403'
+ '404':
+ $ref: 'responses.yaml#/responses/404'
+ '406':
+ $ref: 'responses.yaml#/responses/406'
+ '429':
+ $ref: 'responses.yaml#/responses/429'
+ '500':
+ $ref: 'responses.yaml#/responses/500'
+ '502':
+ $ref: 'responses.yaml#/responses/502'
+ '503':
+ $ref: 'responses.yaml#/responses/503'
+
+policy:
+ put:
+ operationId: updatePolicy
+ description: Update an existing A1 Policy instance's policy data using its policy ID.
+ summary: Update an A1 Policy's policy data (updatePolicy)
+ tags:
+ - A1 Policy Management
+ parameters:
+ - name: policyId
+ in: path
+ required: true
+ schema:
+ type: string
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ $ref: 'schemas.yaml#/schemas/PolicyObject'
+ examples:
+ policyObject:
+ $ref: 'examples.yaml#/examples/PolicyObject'
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: 'schemas.yaml#/schemas/PolicyObject'
+ description: OK - Policy updated
+ '400':
+ $ref: 'responses.yaml#/responses/400'
+ '401':
+ $ref: 'responses.yaml#/responses/401'
+ '403':
+ $ref: 'responses.yaml#/responses/403'
+ '404':
+ $ref: 'responses.yaml#/responses/404'
+ '406':
+ $ref: 'responses.yaml#/responses/406'
+ '411':
+ $ref: 'responses.yaml#/responses/411'
+ '413':
+ $ref: 'responses.yaml#/responses/413'
+ '415':
+ $ref: 'responses.yaml#/responses/415'
+ '423':
+ $ref: 'responses.yaml#/responses/Locked'
+ '429':
+ $ref: 'responses.yaml#/responses/429'
+ '500':
+ $ref: 'responses.yaml#/responses/500'
+ '502':
+ $ref: 'responses.yaml#/responses/502'
+ '503':
+ $ref: 'responses.yaml#/responses/503'
+ delete:
+ operationId: deletePolicy
+ description: Delete an existing A1 Policy instance using its policy ID.
+ summary: Delete an A1 Policy instance (deletePolicy)
+ tags:
+ - A1 Policy Management
+ parameters:
+ - explode: false
+ in: path
+ name: policyId
+ required: true
+ schema:
+ type: string
+ style: simple
+ - description: Specifies the content type that the client expects to receive in response to the request.
+ Only application/json is allowed.
+ in: header
+ name: Accept
+ schema:
+ type: string
+ example: application/json
+ responses:
+ '204':
+ description: 'No Content'
+ '400':
+ $ref: 'responses.yaml#/responses/400'
+ '401':
+ $ref: 'responses.yaml#/responses/401'
+ '403':
+ $ref: 'responses.yaml#/responses/403'
+ '404':
+ $ref: 'responses.yaml#/responses/404'
+ '405':
+ $ref: 'responses.yaml#/responses/405'
+ '406':
+ $ref: 'responses.yaml#/responses/406'
+ '423':
+ $ref: 'responses.yaml#/responses/Locked'
+ '429':
+ $ref: 'responses.yaml#/responses/429'
+ '500':
+ $ref: 'responses.yaml#/responses/500'
+ '502':
+ $ref: 'responses.yaml#/responses/502'
+ '503':
+ $ref: 'responses.yaml#/responses/503'
+ get:
+ operationId: getPolicy
+ description: Get an A1 Policy instance's policy data using its policy ID
+ summary: Get an A1 Policy's policy data (getPolicy)
+ tags:
+ - A1 Policy Management
+ parameters:
+ - explode: false
+ in: path
+ name: policyId
+ required: true
+ schema:
+ type: string
+ style: simple
+ - description: Specifies the content type that the client expects to receive in response to the request.
+ Only application/json is allowed.
+ in: header
+ name: Accept
+ schema:
+ type: string
+ example: application/json
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: 'schemas.yaml#/schemas/PolicyObject'
+ examples:
+ policyObject:
+ $ref: 'examples.yaml#/examples/PolicyObject'
+ description: OK - Policy found
+ '400':
+ $ref: 'responses.yaml#/responses/400'
+ '401':
+ $ref: 'responses.yaml#/responses/401'
+ '403':
+ $ref: 'responses.yaml#/responses/403'
+ '404':
+ $ref: 'responses.yaml#/responses/404'
+ '406':
+ $ref: 'responses.yaml#/responses/406'
+ '429':
+ $ref: 'responses.yaml#/responses/429'
+ '500':
+ $ref: 'responses.yaml#/responses/500'
+ '502':
+ $ref: 'responses.yaml#/responses/502'
+ '503':
+ $ref: 'responses.yaml#/responses/503'
+
+policy-status:
+ get:
+ operationId: getPolicyStatus
+ description: Retrieve the status information for an A1 Policy Instance using its policy ID.
+ summary: Get an A1 Policy Instance's status (getPolicyStatus)
+ tags:
+ - A1 Policy Management
+ parameters:
+ - explode: false
+ in: path
+ name: policyId
+ required: true
+ schema:
+ type: string
+ style: simple
+ - description: Specifies the content type that the client expects to receive in response to the request.
+ Only application/json is allowed.
+ in: header
+ name: Accept
+ schema:
+ type: string
+ example: application/json
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ $ref: 'schemas.yaml#/schemas/PolicyStatusObject'
+ description: OK
+ '400':
+ $ref: 'responses.yaml#/responses/400'
+ '401':
+ $ref: 'responses.yaml#/responses/401'
+ '403':
+ $ref: 'responses.yaml#/responses/403'
+ '404':
+ $ref: 'responses.yaml#/responses/404'
+ '406':
+ $ref: 'responses.yaml#/responses/406'
+ '429':
+ $ref: 'responses.yaml#/responses/429'
+ '500':
+ $ref: 'responses.yaml#/responses/500'
+ '502':
+ $ref: 'responses.yaml#/responses/502'
+ '503':
+ $ref: 'responses.yaml#/responses/503'
+
+policies:
+ get:
+ operationId: getPolicyIds
+ description: >
+ Returns a collection of A1 Policy Instance IDs for policies that match given search criteria.
+ If several query parameters are defined, the policies matching all conditions are returned.
+ summary: Query for A1 Policy instances (getPolicyIds)
+ tags:
+ - A1 Policy Management
+ parameters:
+ - description: Select policies with a given A1 Policy Type ID.
+ explode: true
+ in: query
+ name: policyTypeId
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: Select policies for a given Near-RT RIC identity.
+ explode: true
+ in: query
+ name: nearRtRicId
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: Select policies owned by a given service (registered or unregistered).
+ explode: true
+ in: query
+ name: serviceId
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
+ explode: true
+ in: query
+ name: typeName
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: Specifies the content type that the client expects to receive in response to the request.
+ Only application/json is allowed.
+ in: header
+ name: Accept
+ schema:
+ type: string
+ example: application/json
+ responses:
+ '200':
+ content:
+ application/json:
+ schema:
+ items:
+ $ref: 'schemas.yaml#/schemas/PolicyInformation'
+ type: array
+ description: OK - Policy identities
+ '400':
+ $ref: 'responses.yaml#/responses/400'
+ '401':
+ $ref: 'responses.yaml#/responses/401'
+ '403':
+ $ref: 'responses.yaml#/responses/403'
+ '404':
+ $ref: 'responses.yaml#/responses/404'
+ '406':
+ $ref: 'responses.yaml#/responses/406'
+ '429':
+ $ref: 'responses.yaml#/responses/429'
+ '500':
+ $ref: 'responses.yaml#/responses/500'
+ '502':
+ $ref: 'responses.yaml#/responses/502'
+ '503':
+ $ref: 'responses.yaml#/responses/503'
+ post:
+ operationId: createPolicy
+ description: Create an A1 Policy Instance
+ summary: Create an A1 Policy Instance (createPolicy)
+ tags:
+ - A1 Policy Management
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ $ref: 'schemas.yaml#/schemas/PolicyObjectInformation'
+ responses:
+ '201':
+ description: 'Created'
+ content:
+ application/json:
+ schema:
+ $ref: 'schemas.yaml#/schemas/PolicyObjectInformation'
+ headers:
+ Location:
+ description: >
+ Contains the URI of the newly created A1 Policy Instances.
+ This URI includes the A1 Policy Instance ID for the newly
+ created policy instance.
+ required: true
+ schema:
+ type: string
+ Content-Type:
+ description: 'Media Type of the response'
+ schema:
+ type: string
+ example: application/json
+
+ '400':
+ $ref: 'responses.yaml#/responses/400'
+ '401':
+ $ref: 'responses.yaml#/responses/401'
+ '403':
+ $ref: 'responses.yaml#/responses/403'
+ '404':
+ $ref: 'responses.yaml#/responses/404'
+ '405':
+ $ref: 'responses.yaml#/responses/405'
+ '406':
+ $ref: 'responses.yaml#/responses/406'
+ '409':
+ $ref: 'responses.yaml#/responses/409'
+ '413':
+ $ref: 'responses.yaml#/responses/413'
+ '415':
+ $ref: 'responses.yaml#/responses/415'
+ '423':
+ $ref: 'responses.yaml#/responses/Locked'
+ '429':
+ $ref: 'responses.yaml#/responses/429'
+ '500':
+ $ref: 'responses.yaml#/responses/500'
+ '502':
+ $ref: 'responses.yaml#/responses/502'
+ '503':
+ $ref: 'responses.yaml#/responses/503'
\ No newline at end of file
--- /dev/null
+responses:
+ '400':
+ description: Bad Request
+ content:
+ application/problem+json:
+ schema:
+ $ref: 'schemas.yaml#/schemas/ProblemDetails'
+ '401':
+ description: Unauthorized
+ content:
+ application/problem+json:
+ schema:
+ $ref: 'schemas.yaml#/schemas/ProblemDetails'
+ '403':
+ description: Forbidden
+ content:
+ application/problem+json:
+ schema:
+ $ref: 'schemas.yaml#/schemas/ProblemDetails'
+ '404':
+ description: Not Found
+ content:
+ application/problem+json:
+ schema:
+ $ref: 'schemas.yaml#/schemas/ProblemDetails'
+ '405':
+ description: Method Not Allowed
+ content:
+ application/problem+json:
+ schema:
+ $ref: 'schemas.yaml#/schemas/ProblemDetails'
+ '406':
+ description: Not Acceptable
+ content:
+ application/problem+json:
+ schema:
+ $ref: 'schemas.yaml#/schemas/ProblemDetails'
+ '409':
+ description: Conflict
+ content:
+ application/problem+json:
+ schema:
+ $ref: 'schemas.yaml#/schemas/ProblemDetails'
+ '411':
+ description: Length Required
+ content:
+ application/problem+json:
+ schema:
+ $ref: 'schemas.yaml#/schemas/ProblemDetails'
+ '413':
+ description: Payload Too Large
+ content:
+ application/problem+json:
+ schema:
+ $ref: 'schemas.yaml#/schemas/ProblemDetails'
+ '415':
+ description: Unsupported Media Type
+ content:
+ application/problem+json:
+ schema:
+ $ref: 'schemas.yaml#/schemas/ProblemDetails'
+ '429':
+ description: Too Many Requests
+ content:
+ application/problem+json:
+ schema:
+ $ref: 'schemas.yaml#/schemas/ProblemDetails'
+ '500':
+ description: Internal Server Error
+ content:
+ application/problem+json:
+ schema:
+ $ref: 'schemas.yaml#/schemas/ProblemDetails'
+ '502':
+ description: Bad Gateway
+ content:
+ application/problem+json:
+ schema:
+ $ref: 'schemas.yaml#/schemas/ProblemDetails'
+ '503':
+ description: Service Unavailable
+ content:
+ application/problem+json:
+ schema:
+ $ref: 'schemas.yaml#/schemas/ProblemDetails'
+ Locked:
+ description: Locked - HTTP Status code which can be used when the state is Locked
+ content:
+ application/problem+json:
+ schema:
+ $ref: 'schemas.yaml#/schemas/ErrorInformation'
+ example:
+ status: 423
+ title: Locked
+ detail: State is Locked in the provided request.
\ No newline at end of file
--- /dev/null
+ric:
+ get:
+ operationId: getRic
+ description: Get information about a Near-RT RIC
+ summary: Get a Near-RT RIC (getRic)
+ tags:
+ - NearRT-RIC Repository
+ parameters:
+ - description: The identity of a Near-RT RIC to get information for.
+ explode: true
+ in: path
+ name: ricId
+ required: true
+ schema:
+ type: string
+ nullable: false
+ - description: Specifies the content type that the client expects to receive in response to the request.
+ Only application/json is allowed.
+ in: header
+ name: Accept
+ schema:
+ type: string
+ example: application/json
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: 'schemas.yaml#/schemas/RicInfo'
+ examples:
+ ric_info:
+ $ref: 'examples.yaml#/examples/RicInfo'
+ description: OK - Near-RT RIC is found OK
+ "404":
+ $ref: 'responses.yaml#/responses/404'
+rics:
+ get:
+ operationId: getRics
+ description: Get all Near-RT RICs that supports a given A1 Policy Type ID
+ summary: Get Near-RT RICs for A1 Policy Type (getRics)
+ tags:
+ - NearRT-RIC Repository
+ parameters:
+ - description: >
+ The identity of an A1 Policy Type. If given, all Near-RT RICs supporting
+ the A1 Policy Type are returned.
+ explode: true
+ in: query
+ name: policyTypeId
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: Specifies the content type that the client expects to receive in response to the request.
+ Only application/json is allowed.
+ in: header
+ name: Accept
+ schema:
+ type: string
+ example: application/json
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: 'schemas.yaml#/schemas/RicInfoList'
+ examples:
+ ric_info_list:
+ $ref: 'examples.yaml#/examples/RicInfoList'
+ description: OK
+ "404":
+ $ref: 'responses.yaml#/responses/404'
\ No newline at end of file
--- /dev/null
+schemas:
+ PolicyTypeInformation:
+ description: >-
+ A data tuple to indicate that an identified A1 Policy Type is supported at an identified Near-RT RIC.
+ type: object
+ properties:
+ policyTypeId:
+ description: A1 Policy Type identifier
+ type: string
+ nearRtRicId:
+ $ref: '#/schemas/NearRtRicId'
+ required:
+ - policyTypeId
+ - nearRtRicId
+ example:
+ policyTypeId: STD_QOS2_0.1.0
+ nearRtRicId: ric_g3_2
+ PolicyObjectInformation:
+ description: Information to create an A1 Policy Instance
+ type: object
+ properties:
+ nearRtRicId:
+ description: Identity of the target Near-RT RIC
+ type: string
+ example:
+ 'Near-RT-Ric-ID1'
+ transient:
+ default: false
+ description: >
+ If true, the policy is automatically deleted if the targeted Near-RT RIC restarts
+ or recovers. If false, the A1 Policy Instance remains, and is re-pushed to the targeted
+ Near-RT RIC after a restart or recovery. If false, the A1 Policy Instance is maintained and
+ must be deleted separately in the event of Near-RT RIC restart or recovery. Default is false.
+ nullable: false
+ type: boolean
+ policyId:
+ description: >
+ An optional identity to be used for the new A1 Policy Instance.
+ If this value is present, it must be unique. If not present the new A1
+ Policy Instance will be assigned a newly generated unique ID, and the
+ new ID can be extracted from the 'Location' header in the response.
+ type: string
+ example:
+ 'POLICY-ID1'
+ serviceId:
+ description: the identity of the service owning the policy. This can be
+ used to group the policies (it is possible to get all policies associated
+ to a service). Note that the service does not need to be registered.
+ If the service is registered, the newly created A1 Policy Instance will be
+ subject to the same supervision rules as the the service's other policies.
+ type: string
+ example:
+ 'rApp 1'
+ default: ""
+ policyObject:
+ $ref: '#/schemas/PolicyObject'
+ policyTypeId:
+ description: A1 Policy Type identity
+ type: string
+ example: ORAN_QOS_1.0.0 '(typeName_SemVersion)'
+ required:
+ - nearRtRicId
+ - policyObject
+ - policyTypeId
+ ErrorInformation:
+ description: Problem as defined in https://tools.ietf.org/html/rfc7807
+ properties:
+ detail:
+ description: A human-readable explanation specific to this occurrence of the problem.
+ example: Policy type not found
+ type: string
+ title:
+ description: A specific error name
+ type: string
+ example: Not Found
+ status:
+ description: |
+ The HTTP status code generated by the origin server for this occurrence of the problem.
+ example: 404
+ format: int32
+ type: integer
+ type: object
+ PolicyObject:
+ description: >
+ Policy Object is a JSON representation policy data for an A1 Policy Instance.
+ The schema for this policy data is defined in the corresponding A1 Policy Type.
+ type: object
+ PolicyTypeObject:
+ description: An A1 Policy Type, as defined in O-RAN Alliance A1TD
+ type: object
+ properties:
+ policySchema:
+ $ref: '#/schemas/PolicySchema'
+ statusSchema:
+ $ref: '#/schemas/StatusSchema'
+ required:
+ - policySchema
+ example:
+ policySchema:
+ "$schema": http://json-schema.org/draft-07/schema#
+ title: STD_QOS_0_2_0
+ description: Policy data schema for STD_QOS_0.2.0 A1 Policy Instances.
+ type: object
+ properties:
+ scope:
+ type: object
+ properties:
+ ueId:
+ type: string
+ qosId:
+ type: string
+ additionalProperties: false
+ required:
+ - ueId
+ - qosId
+ qosObjectives:
+ type: object
+ properties:
+ priorityLevel:
+ type: number
+ additionalProperties: false
+ required:
+ - priorityLevel
+ statusSchema:
+ "$schema": http://json-schema.org/draft-07/schema#
+ title: STD_QOS_0.2.0
+ description: Status schema for STD_QOS_0.2.0 A1 Policy Instances.
+ type: object
+ properties:
+ enforceStatus:
+ type: string
+ enforceReason:
+ type: string
+ additionalProperties: false
+ required:
+ - enforceStatus
+ PolicySchema:
+ description: >
+ A schema to define the policy data contents of A1 Policy Instances.
+ Policy data schemas are Policy Type specific.
+ All A1 Policy Instances of an A1 Policy Type should comply with the type's policy data schema.
+ type: object
+ StatusSchema:
+ description: >
+ A schema to define the contents of the status information for A1 Policy Instances.
+ Status schemas are Policy Type specific.
+ All status information for all A1 Policy Instances of an A1 Policy Type should comply
+ with the type's status schema.
+ type: object
+ PolicyStatusObject:
+ description: >
+ A generic policy status object that can be used to transport any policy status.
+ Additionally, a schema for policy status can be defined in the corresponding A1 Policy Type.
+ type: object
+ void:
+ description: Void/empty
+ type: object
+ StatusInfo:
+ properties:
+ status:
+ description: Status text
+ type: string
+ type: object
+ RicInfo:
+ description: Information for a Near-RT RIC
+ properties:
+ ricId:
+ description: Identity of the Near-RT RIC
+ type: string
+ managedElementIds:
+ description: Identities for managed entities
+ items:
+ description: Identity for a managed entity
+ type: string
+ type: array
+ state:
+ description: Represents the state of a Near-RT RIC
+ enum:
+ - UNAVAILABLE
+ - AVAILABLE
+ - SYNCHRONIZING
+ - CONSISTENCY_CHECK
+ type: string
+ policyTypeIds:
+ description: Supported A1 Policy Types
+ items:
+ description: Supported A1 Policy Type ID
+ type: string
+ type: array
+ type: object
+ ServiceRegistrationInfo:
+ description: Information for a service to be registered
+ properties:
+ callbackUrl:
+ description: Callback URL for notifying of Near-RT RIC state changes
+ type: string
+ serviceId:
+ description: Identity of the service
+ type: string
+ keepAliveIntervalSeconds:
+ description: >
+ Keep alive interval for the service. This is used to enable
+ optional heartbeat supervision of the service. If set (> 0) the registered
+ service should regularly invoke a 'keepalive' REST call. When a service
+ fails to invoke this 'keepalive' call within the configured time, the
+ service is considered unavailable. An unavailable service will be automatically
+ deregistered and its policies will be deleted. Value 0 means timeout
+ supervision is disabled.
+ format: int64
+ type: integer
+ required:
+ - serviceId
+ type: object
+ ServiceStatus:
+ description: Information about a previously registered service
+ properties:
+ callbackUrl:
+ description: Callback URL for notifying of Near-RT RIC state changes
+ type: string
+ serviceId:
+ description: Identity of the service
+ type: string
+ keepAliveIntervalSeconds:
+ description: >
+ Keep alive interval (seconds) for the service. This is used to enable
+ optional heartbeat supervision of the service. If set (> 0) the registered
+ service should regularly invoke a 'keepalive' REST call. When a service
+ fails to invoke this 'keepalive' call within the configured time, the
+ service is considered unavailable. An unavailable service will be automatically
+ deregistered and its policies will be deleted. Value 0 means timeout
+ supervision is disabled.
+ format: int64
+ type: integer
+ timeSinceLastActivitySeconds:
+ description: Time (seconds) since last recorded operation by the service
+ format: int64
+ type: integer
+ type: object
+ RicInfoList:
+ description: Collection of Near-RT RIC information objects
+ properties:
+ rics:
+ description: List of Near-RT RIC information objects
+ items:
+ $ref: '#/schemas/RicInfo'
+ type: array
+ type: object
+ NearRtRicId:
+ description: Identity of the Near-RT RIC
+ type: string
+ PolicyInformation:
+ description: >
+ Information tuple for a single A1 Policy Instance.
+ Contains the A1 Policy Instance ID, and the ID of the Near-RT RIC where the policy is created.
+ type: object
+ properties:
+ policyId:
+ description: Identity of the A1 Policy Instance
+ type: string
+ nearRtRicId:
+ $ref: '#/schemas/NearRtRicId'
+ required:
+ - policyId
+ - nearRtRicId
+ ServiceStatusList:
+ properties:
+ serviceList:
+ description: List of Service Status objects, describing a collection of registered services.
+ items:
+ $ref: '#/schemas/ServiceStatus'
+ type: array
+ type: object
+ ServiceCallbackInfo:
+ description: |
+ Information transferred in Service callbacks,
+ if a callback URL was provided for a registered service
+ properties:
+ ricId:
+ description: Identity of a Near-RT RIC
+ type: string
+ eventType:
+ description: >
+ values:
+ AVAILABLE: the Near-RT RIC has become available for A1 Policy management
+ enum:
+ - AVAILABLE
+ type: string
+ required:
+ - eventType
+ - ricId
+ type: object
+ ProblemDetails:
+ description: Object to carry details about a problem in an HTTP response according to IETF RFC 7807
+ type: object
+ properties:
+ type:
+ description: URI reference according to IETF RFC 3986 that identifies the problem type
+ type: string
+ title:
+ description: Human-readable summary of the problem type
+ type: string
+ status:
+ description: HTTP status code
+ type: number
+ detail:
+ description: Human-readable explanation
+ type: string
+ instance:
+ description: URI reference that identifies the specific occurrence of the problem
+ type: string
\ No newline at end of file
--- /dev/null
+keep-alive:
+ put:
+ operationId: keepAliveService
+ description: A registered service should invoke this operation regularly to
+ indicate that it is still alive. If a registered service fails to invoke some operation,
+ or this operation, before the end of a timeout period the service will be deregistered
+ and all its A1 policies wil be removed and the service is deleted.
+ This operation is only intended for registered services. (This timeout can be set or disabled when
+ each service is initially registered). Unregistered services do not need to invoke this operation,
+ since the optional keep-alive monitoring feature can only be enabled for registered services.
+ summary: Heartbeat message from a service (keepAliveService)
+ tags:
+ - Service Registry and Supervision
+ parameters:
+ - explode: false
+ in: path
+ name: serviceId
+ required: true
+ schema:
+ type: string
+ style: simple
+ - description: Specifies the content type that the client expects to receive in response to the request.
+ Only application/json is allowed.
+ in: header
+ name: Accept
+ schema:
+ type: string
+ example: application/json
+ responses:
+ "200":
+ content:
+ 'application/json':
+ schema:
+ type: object
+ description: OK - Service supervision timer refreshed, OK
+ "404":
+ $ref: 'responses.yaml#/responses/404'
+
+services:
+ get:
+ operationId: getServices
+ description: >
+ Get information about all registered services, or a single registered service.
+ If the service ID of a registered service is included in the query, information about that
+ service is returned. Otherwise Information about all registered is returned.
+ This operation does not retrieve information about unregistered services.
+ summary: Get Services (getServices)
+ tags:
+ - Service Registry and Supervision
+ parameters:
+ - description: The identity of the registered service
+ explode: true
+ in: query
+ name: serviceId
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: Specifies the content type that the client expects to receive in response to the request.
+ Only application/json is allowed.
+ in: header
+ name: Accept
+ schema:
+ type: string
+ example: application/json
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: 'schemas.yaml#/schemas/ServiceStatusList'
+ examples:
+ service_status_list:
+ $ref: 'examples.yaml#/examples/ServiceStatusList'
+ description: OK
+ "404":
+ $ref: 'responses.yaml#/responses/404'
+ put:
+ operationId: putService
+ description: >
+ Register a single service, or update a previous registration.
+ Service registration is required to get callbacks about available NearRT RICs
+ and to enable supervision of the service's active status. If a registered
+ service becomes inactive, its policies can be automatically deleted.
+ A1 Policy instances can also be created for unregistered services.
+ If an unregistered service is later registered, the service's policies are
+ retained when the service becomes registered. This feature is optional to use.
+ summary: Register or update a Service (putService)
+ tags:
+ - Service Registry and Supervision
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: 'schemas.yaml#/schemas/ServiceRegistrationInfo'
+ required: true
+ responses:
+ "200":
+ content:
+ 'application/json':
+ schema:
+ type: object
+ description: OK - Service updated
+ "201":
+ content:
+ 'application/json':
+ schema:
+ type: object
+ description: Created - Service created
+ "400":
+ $ref: 'responses.yaml#/responses/400'
+ callbacks:
+ RICStatus:
+ "{$request.body#/callback_url}":
+ post:
+ operationId: serviceCallback
+ description: |
+ Callouts to indicate Near-RT RIC status changes relevant for Services.
+ The URL invoked by this callback is provided at Service registration.
+ summary: Callback for Near-RT RIC status (serviceCallback)
+ tags:
+ - Service Registry and Supervision
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: 'schemas.yaml#/schemas/ServiceCallbackInfo'
+ required: true
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: 'schemas.yaml#/schemas/void'
+ description: OK
+ "404":
+ $ref: 'responses.yaml#/responses/404'
+
+service:
+ delete:
+ operationId: deleteService
+ description: >
+ Unregister a registered Service using its service ID.
+ Only registered services can be unregistered. All A1 Policy Instances
+ for the previously registered service will be removed.
+ tags:
+ - Service Registry and Supervision
+ summary: Unregister a Service (deleteService)
+ parameters:
+ - explode: false
+ in: path
+ name: serviceId
+ required: true
+ schema:
+ type: string
+ style: simple
+ - description: Specifies the content type that the client expects to receive in response to the request.
+ Only application/json is allowed.
+ in: header
+ name: Accept
+ schema:
+ type: string
+ example: application/json
+ responses:
+ "204":
+ content:
+ 'application/json':
+ schema:
+ type: object
+ description: No Content - Service unregistered
+ "404":
+ $ref: 'responses.yaml#/responses/404'
\ No newline at end of file
<parent>
<groupId>org.onap.ccsdk.parent</groupId>
<artifactId>spring-boot-34-starter-parent</artifactId>
- <version>3.0.2</version>
+ <version>3.1.1-SNAPSHOT</version>
<relativePath/>
</parent>
<groupId>org.onap.ccsdk.oran</groupId>
<jackson-databind-nullable.version>0.2.6</jackson-databind-nullable.version>
<validation-api.version>2.0.1.Final</validation-api.version>
<swagger-annotations.version>2.2.15</swagger-annotations.version>
- <spring-boot-actuator-autoconfigure.version>3.4.0</spring-boot-actuator-autoconfigure.version>
<formatter-maven-plugin.version>2.22.0</formatter-maven-plugin.version>
<spotless-maven-plugin.version>2.35.0</spotless-maven-plugin.version>
<commons-io.version>2.16.1</commons-io.version>
<surefire-report-plugin.version>3.0.0-M8</surefire-report-plugin.version>
<jacoco-maven-plugin.version>0.8.8</jacoco-maven-plugin.version>
<ccsdk.project.version>${project.version}</ccsdk.project.version>
- <software.amazon.awssdk.version>2.27.24</software.amazon.awssdk.version>
+ <software.amazon.awssdk.version>2.30.11</software.amazon.awssdk.version>
<mapstruct.version>1.6.0</mapstruct.version>
+ <!-- Tracing Dependecies -->
+ <opentelemetry-bom.version>1.41.0</opentelemetry-bom.version>
+ <opentelemetry-instrumentation-bom-alpha.version>2.7.0-alpha</opentelemetry-instrumentation-bom-alpha.version>
<allowskiptests>false</allowskiptests>
+ <version.logback>8.0</version.logback>
</properties>
<repositories>
<repository>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-actuator-autoconfigure</artifactId>
- <version>3.3.0</version>
+ <version>${spring.boot.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>net.logstash.logback</groupId>
+ <artifactId>logstash-logback-encoder</artifactId>
+ <version>${version.logback}</version>
</dependency>
</dependencies>
<dependencyManagement>
<dependency>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-bom</artifactId>
- <version>1.46.0</version>
+ <version>${opentelemetry-bom.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>io.opentelemetry.instrumentation</groupId>
<artifactId>opentelemetry-instrumentation-bom-alpha</artifactId>
- <version>2.12.0-alpha</version>
+ <version>${opentelemetry-instrumentation-bom-alpha.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<artifactId>openapi-generator-maven-plugin</artifactId>
<version>7.7.0</version>
<executions>
+ <execution>
+ <id>openapi-yaml-gen</id>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ <phase>compile</phase>
+ <configuration>
+ <inputSpec>${project.basedir}/open-api-fragments/v2-fragments/pms-api.yaml</inputSpec>
+ <generatorName>openapi-yaml</generatorName>
+ <templateDirectory>open-api-fragments/custom-openapi-license-template</templateDirectory>
+ <output>${project.basedir}/api/offeredapis/swagger</output>
+ <configOptions>
+ <outputFile>pms-api.yaml</outputFile>
+ </configOptions>
+ </configuration>
+ </execution>
+ <execution>
+ <id>openapi-yaml-gen-v3</id>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ <phase>compile</phase>
+ <configuration>
+ <inputSpec>${project.basedir}/open-api-fragments/v3-fragments/pms-api-v3.yaml</inputSpec>
+ <generatorName>openapi-yaml</generatorName>
+ <templateDirectory>open-api-fragments/custom-openapi-license-template</templateDirectory>
+ <output>${project.basedir}/api/offeredapis/swagger</output>
+ <configOptions>
+ <outputFile>pms-api-v3.yaml</outputFile>
+ </configOptions>
+ </configuration>
+ </execution>
<execution>
<id>generate-openapi-json</id>
<phase>prepare-package</phase>
<goal>generate</goal>
</goals>
<configuration>
- <inputSpec>${project.basedir}/api/offeredapis/swagger/pms-api.yaml</inputSpec>
+ <inputSpec>${project.basedir}/open-api-fragments/v2-fragments/pms-api.yaml</inputSpec>
<generatorName>openapi</generatorName>
<output>${project.basedir}/api/offeredapis/swagger</output>
<configOptions>
<goal>generate</goal>
</goals>
<configuration>
- <inputSpec>${project.basedir}/api/offeredapis/swagger/pms-api-v3.yaml</inputSpec>
+ <inputSpec>${project.basedir}/open-api-fragments/v3-fragments/pms-api-v3.yaml</inputSpec>
<generatorName>openapi</generatorName>
<output>${project.basedir}/api/offeredapis/swagger</output>
<configOptions>
<goal>generate</goal>
</goals>
<configuration>
- <inputSpec>${project.basedir}/api/offeredapis/swagger/pms-api-v3.yaml</inputSpec>
+ <inputSpec>${project.basedir}/open-api-fragments/v3-fragments/pms-api-v3.yaml</inputSpec>
<generatorName>openapi</generatorName>
<apisToGenerate>A1PolicyManagement</apisToGenerate> <!-- Select which apis to include. Current pms-api-v3 only has one API -->
<output>${project.basedir}/api/offeredapis/swagger/custom</output>
<goal>generate</goal>
</goals>
<configuration>
- <inputSpec>${project.basedir}/api/offeredapis/swagger/pms-api.yaml</inputSpec>
+ <inputSpec>${project.basedir}/open-api-fragments/v2-fragments/pms-api.yaml</inputSpec>
<invokerPackage>${project.groupId}.a1policymanagementservice.controllers.v2</invokerPackage>
<apiPackage>${project.groupId}.a1policymanagementservice.controllers.api.v2</apiPackage>
<modelPackage>${project.groupId}.a1policymanagementservice.models.v2</modelPackage>
<goal>generate</goal>
</goals>
<configuration>
- <inputSpec>${project.basedir}/api/offeredapis/swagger/pms-api-v3.yaml</inputSpec>
+ <inputSpec>${project.basedir}/open-api-fragments/v3-fragments/pms-api-v3.yaml</inputSpec>
<invokerPackage>${project.groupId}.a1policymanagementservice.controllers.v3</invokerPackage>
<apiPackage>${project.groupId}.a1policymanagementservice.controllers.api.v3</apiPackage>
<modelPackage>${project.groupId}.a1policymanagementservice.models.v3</modelPackage>
* ONAP : ccsdk oran
* ======================================================================
* Copyright (C) 2019-2020 Nordix Foundation. All rights reserved.
- * Copyright (C) 2023-2024 OpenInfra Foundation Europe. All rights reserved.
+ * Copyright (C) 2023-2025 OpenInfra Foundation Europe. All rights reserved.
* ======================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@Configuration
public class BeanFactory {
- @Value("${server.http-port}")
+ @Value("${server.http-port:0}")
private int httpPort = 0;
@Bean
* ONAP : ccsdk oran
* ======================================================================
* Copyright (C) 2019-2022 Nordix Foundation. All rights reserved.
+ * Modifications Copyright (C) 2025 OpenInfra Foundation Europe.
+ * All rights reserved.
* ======================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
public AsyncRestClientFactory(WebClientConfig clientConfig, SecurityContext securityContext) {
if (clientConfig != null) {
- this.sslContextFactory = new CachingSslContextFactory(clientConfig);
+ if (clientConfig.isSslEnabled()) {
+ this.sslContextFactory = new CachingSslContextFactory(clientConfig);
+ } else {
+ this.sslContextFactory = null;
+ logger.debug("SSL is turned OFF for the web client");
+ }
this.httpProxyConfig = clientConfig.getHttpProxyConfig();
} else {
logger.warn("No configuration for web client defined, HTTPS will not work");
* ONAP : ccsdk oran
* ======================================================================
* Copyright (C) 2019-2020 Nordix Foundation. All rights reserved.
- * Copyright (C) 2023-2024 OpenInfra Foundation Europe. All rights reserved.
+ * Modifications Copyright (C) 2023-2025 OpenInfra Foundation Europe.
+ * All rights reserved.
* ======================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
package org.onap.ccsdk.oran.a1policymanagementservice.configuration;
import com.google.common.base.Strings;
-
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
-
import lombok.Getter;
import lombok.Setter;
-
import org.onap.ccsdk.oran.a1policymanagementservice.configuration.WebClientConfig.HttpProxyConfig;
import org.onap.ccsdk.oran.a1policymanagementservice.exceptions.ServiceException;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
-
import reactor.core.publisher.Flux;
import reactor.netty.transport.ProxyProvider;
public class ApplicationConfig {
@Getter
- @Value("${app.filepath}")
+ @Value("${app.filepath:null}")
private String localConfigurationFilePath;
@Getter
- @Value("${app.config-file-schema-path:}")
+ @Value("${app.config-file-schema-path:null}")
private String configurationFileSchemaPath;
@Getter
@Value("${app.vardata-directory:null}")
private String vardataDirectory;
- @Value("${server.ssl.key-store-type}")
+ @Getter
+ @Value("${server.ssl.enabled:true}")
+ private boolean sslEnabled;
+
+ @Value("${server.ssl.key-store-type:null}")
private String sslKeyStoreType = "";
- @Value("${server.ssl.key-store-password}")
+ @Value("${server.ssl.key-store-password:null}")
private String sslKeyStorePassword = "";
- @Value("${server.ssl.key-store}")
+ @Value("${server.ssl.key-store:null}")
private String sslKeyStore = "";
- @Value("${server.ssl.key-password}")
+ @Value("${server.ssl.key-password:null}")
private String sslKeyPassword = "";
- @Value("${app.webclient.trust-store-used}")
+ @Value("${app.webclient.trust-store-used:false}")
private boolean sslTrustStoreUsed = false;
- @Value("${app.webclient.trust-store-password}")
+ @Value("${app.webclient.trust-store-password:null}")
private String sslTrustStorePassword = "";
- @Value("${app.webclient.trust-store}")
+ @Value("${app.webclient.trust-store:null}")
private String sslTrustStore = "";
@Value("${app.webclient.http.proxy-host:}")
@Value("${app.database-enabled:}")
private boolean databaseEnabled;
+ public enum ValidateSchema {
+ NONE,
+ INFO,
+ WARN,
+ FAIL
+ }
+
+ @Getter
+ @Setter
+ @Value("${app.validate-policy-instance-schema:NONE}")
+ private ValidateSchema validatePolicyInstanceSchema;
+
private Map<String, RicConfig> ricConfigs = new HashMap<>();
private WebClientConfig webClientConfig = null;
.httpProxyPort(this.httpProxyPort) //
.httpProxyType(ProxyProvider.Proxy.valueOf(this.httpProxyType)) //
.build();
+ if (sslEnabled) {
+ this.webClientConfig = WebClientConfig.builder() //
+ .sslEnabled(true)
+ .keyStoreType(this.sslKeyStoreType) //
+ .keyStorePassword(this.sslKeyStorePassword) //
+ .keyStore(this.sslKeyStore) //
+ .keyPassword(this.sslKeyPassword) //
+ .isTrustStoreUsed(this.sslTrustStoreUsed) //
+ .trustStore(this.sslTrustStore) //
+ .trustStorePassword(this.sslTrustStorePassword) //
+ .httpProxyConfig(httpProxyConfig) //
+ .build();
+ } else {
+ this.webClientConfig = WebClientConfig.builder() //
+ .sslEnabled(false)
+ .isTrustStoreUsed(false)
+ .httpProxyConfig(httpProxyConfig) //
+ .build();
+ }
- this.webClientConfig = WebClientConfig.builder() //
- .keyStoreType(this.sslKeyStoreType) //
- .keyStorePassword(this.sslKeyStorePassword) //
- .keyStore(this.sslKeyStore) //
- .keyPassword(this.sslKeyPassword) //
- .isTrustStoreUsed(this.sslTrustStoreUsed) //
- .trustStore(this.sslTrustStore) //
- .trustStorePassword(this.sslTrustStorePassword) //
- .httpProxyConfig(httpProxyConfig) //
- .build();
}
return this.webClientConfig;
}
* ========================LICENSE_START=================================
* ONAP : ccsdk oran
* ======================================================================
- * Copyright (C) 2019-2020 Nordix Foundation. All rights reserved.
+ * Copyright (C) 2019-2025 OpenInfra Foundation Europe. All rights reserved.
* ======================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
"Configuration error, controller configuration not found: " + controllerName);
}
- RicConfig ricConfig = RicConfig.builder() //
- .ricId(get(ricJsonObj, "name", "id", "ricId").getAsString()) //
- .baseUrl(get(ricJsonObj, "baseUrl").getAsString()) //
- .managedElementIds(parseManagedElementIds(get(ricJsonObj, "managedElementIds").getAsJsonArray())) //
+ RicConfig.RicConfigBuilder ricConfigBuilder = RicConfig.builder()
+ .ricId(get(ricJsonObj, "name", "id", "ricId").getAsString())
+ .baseUrl(get(ricJsonObj, "baseUrl").getAsString())
.controllerConfig(controllerConfig)
- .customAdapterClass(getString(ricJsonObj, "customAdapterClass", "")) //
- .build();
+ .customAdapterClass(getString(ricJsonObj, "customAdapterClass", ""));
+
+ if (ricJsonObj.has("managedElementIds")) {
+ ricConfigBuilder
+ .managedElementIds(parseManagedElementIds(get(ricJsonObj, "managedElementIds").getAsJsonArray()));
+ } else {
+ ricConfigBuilder.managedElementIds(null);
+ }
+
+ RicConfig ricConfig = ricConfigBuilder.build();
if (!ricConfig.getBaseUrl().isEmpty()) {
result.add(ricConfig);
} else {
* ONAP : ccsdk oran
* ======================================================================
* Copyright (C) 2020-2023 Nordix Foundation. All rights reserved.
+ * Modifications Copyright (C) 2025 OpenInfra Foundation Europe.
+ * All rights reserved.
* ======================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
import lombok.Builder;
import lombok.Getter;
import lombok.ToString;
-
import reactor.netty.transport.ProxyProvider;
@Builder
@Getter
@ToString
public class WebClientConfig {
+
+ private boolean sslEnabled;
+
private String keyStoreType;
private String keyStorePassword;
import org.springframework.web.server.ServerWebExchange;
import reactor.core.publisher.Mono;
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Set;
+import java.util.*;
@RestController("ricRepositoryControllerV2")
@RequiredArgsConstructor
}
private RicInfo toRicInfo(Ric ric) {
- return new RicInfo().ricId(ric.id())
- .managedElementIds((List<String>) ric.getManagedElementIds())
+ RicInfo ricInfo = new RicInfo().ricId(ric.id())
.policytypeIds((List<String>) ric.getSupportedPolicyTypeNames())
.state(toRicState(ric.getState()));
+
+ if (ric.getConfig().getManagedElementIds() == null) {
+ ricInfo.setManagedElementIds(new ArrayList<>());
+ } else {
+ ricInfo.managedElementIds((List<String>) ric.getConfig().getManagedElementIds());
+ }
+
+ return ricInfo;
}
}
}
@Override
- public Mono<ResponseEntity<Flux<PolicyInformation>>> getAllPolicies(String policyTypeId, String nearRtRicId, String serviceId, String typeName, String accept, ServerWebExchange exchange) throws Exception {
+ public Mono<ResponseEntity<Flux<PolicyInformation>>> getPolicyIds(String policyTypeId, String nearRtRicId, String serviceId, String typeName, String accept, ServerWebExchange exchange) throws Exception {
return policyService.getPolicyIdsService(policyTypeId, nearRtRicId, serviceId, typeName, exchange)
.doOnError(errorHandlingService::handleError);
}
}
@Override
- public Mono<ResponseEntity<Object>> putPolicy(String policyId, Mono<Object> body, ServerWebExchange exchange) throws Exception {
+ public Mono<ResponseEntity<Object>> updatePolicy(String policyId, Mono<Object> body, ServerWebExchange exchange) throws Exception {
return body.flatMap(payload -> policyService.putPolicyService(policyId, payload, exchange))
.doOnError(errorHandlingService::handleError);
}
import org.springframework.web.server.ServerWebExchange;
import reactor.core.publisher.Mono;
-import java.util.List;
-import java.util.Set;
+import java.util.*;
@RestController("ricRepositoryControllerV3")
@RequiredArgsConstructor
}
private RicInfo toRicInfo(Ric ric) {
- return new RicInfo().ricId(ric.id())
- .managedElementIds((List<String>) ric.getManagedElementIds())
+ RicInfo ricInfo = new RicInfo().ricId(ric.id())
.policyTypeIds((List<String>) ric.getSupportedPolicyTypeNames())
.state(toRicState(ric.getState()));
+
+ if (ric.getConfig().getManagedElementIds() == null) {
+ ricInfo.setManagedElementIds(new ArrayList<>());
+ } else {
+ ricInfo.managedElementIds((List<String>) ric.getConfig().getManagedElementIds());
+ }
+
+ return ricInfo;
}
private RicInfo.StateEnum toRicState(Ric.RicState state) {
* ========================LICENSE_START=================================
* ONAP : ccsdk oran
* ======================================================================
- * Copyright (C) 2024 OpenInfra Foundation Europe. All rights reserved.
+ * Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved.
* ======================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
}
@Override
- public Mono<ResponseEntity<Object>> keepAliveService(String serviceId, String accept, Mono<String> body, ServerWebExchange exchange) throws Exception {
+ public Mono<ResponseEntity<Object>> keepAliveService(String serviceId, String accept, ServerWebExchange exchange) throws Exception {
return serviceController.keepAliveService(serviceId, exchange);
}
Ric ric = rics.getRic(policyObjectInfo.getNearRtRicId());
PolicyType policyType = policyTypes.getType(policyObjectInfo.getPolicyTypeId());
Policy policy = helper.buildPolicy(policyObjectInfo, policyType, ric, helper.policyIdGeneration(policyObjectInfo), serverWebExchange);
+ if (Boolean.FALSE.equals(helper.performPolicySchemaValidation(policy, policyType)))
+ return Mono.error(new ServiceException("Policy Type Schema validation failed in create", HttpStatus.BAD_REQUEST));
return helper.isPolicyAlreadyCreated(policy,policies)
.doOnError(errorHandlingService::handleError)
.flatMap(policyBuilt -> authorizationService.authCheck(serverWebExchange, policy, AccessType.WRITE)
- .doOnError(errorHandlingService::handleError)
- .flatMap(policyNotUsed -> ric.getLock().lock(Lock.LockType.SHARED, "createPolicy"))
- .flatMap(grant -> postPolicy(policy, grant))
- .map(locationHeaderValue ->
- new ResponseEntity<PolicyObjectInformation>(policyObjectInfo,helper.createHttpHeaders(
- "location",helper.buildURI(policy.getId(), serverWebExchange)), HttpStatus.CREATED))
- .doOnError(errorHandlingService::handleError));
+ .doOnError(errorHandlingService::handleError)
+ .flatMap(policyNotUsed -> ric.getLock().lock(Lock.LockType.SHARED, "createPolicy"))
+ .flatMap(grant -> postPolicy(policy, grant))
+ .map(locationHeaderValue ->
+ new ResponseEntity<PolicyObjectInformation>(policyObjectInfo,helper.createHttpHeaders(
+ "location",helper.buildURI(policy.getId(), serverWebExchange)), HttpStatus.CREATED))
+ .doOnError(errorHandlingService::handleError));
} catch (Exception ex) {
return Mono.error(ex);
}
PolicyObjectInformation pos =
new PolicyObjectInformation(existingPolicy.getRic().getConfig().getRicId(), body, existingPolicy.getType().getId());
Policy updatedPolicy = helper.buildPolicy(pos, existingPolicy.getType(), existingPolicy.getRic(), policyId, exchange);
+ PolicyType policyType = policyTypes.getType(pos.getPolicyTypeId());
+ if (Boolean.FALSE.equals(helper.performPolicySchemaValidation(updatedPolicy, policyType)))
+ return Mono.error(new ServiceException("Policy Type Schema validation failed in update", HttpStatus.BAD_REQUEST));
Ric ric = existingPolicy.getRic();
return authorizationService.authCheck(exchange, updatedPolicy, AccessType.WRITE)
.doOnError(errorHandlingService::handleError)
public Mono<ResponseEntity<Object>> getPolicyService(String policyId, ServerWebExchange serverWebExchange)
throws EntityNotFoundException{
- Policy policy = policies.getPolicy(policyId);
+ Policy policy = policies.getPolicy(policyId);
return authorizationService.authCheck(serverWebExchange, policy, AccessType.READ)
.map(x -> new ResponseEntity<Object>(policy.getJson(), HttpStatus.OK))
.doOnError(errorHandlingService::handleError);
.map(successResponse -> new ResponseEntity<Object>(successResponse, HttpStatus.OK))
.doOnError(errorHandlingService::handleError);
}
-}
+}
\ No newline at end of file
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import lombok.RequiredArgsConstructor;
+import org.everit.json.schema.loader.SchemaLoader;
+import org.json.JSONObject;
+import org.onap.ccsdk.oran.a1policymanagementservice.configuration.ApplicationConfig;
import org.onap.ccsdk.oran.a1policymanagementservice.exceptions.InvalidRequestException;
import org.onap.ccsdk.oran.a1policymanagementservice.exceptions.ServiceException;
import org.onap.ccsdk.oran.a1policymanagementservice.models.v3.PolicyInformation;
@RequiredArgsConstructor
public class Helper {
+ private final ApplicationConfig applicationConfig;
+
@Autowired
private TokenService tokenService;
return true;
}
+ private boolean policyTypeSchemaValidation(Policy policy, PolicyType policyType) {
+ try {
+ JSONObject schemaJson = new JSONObject(policyType.getSchema());
+ var schema = SchemaLoader.load(schemaJson);
+ JSONObject policyJson = new JSONObject(policy.getJson());
+
+ // PUT request body is not automatically deserialized - so we manually extract the desired policy object
+ if (policyJson.has("policyObject")) {
+ policyJson = policyJson.getJSONObject("policyObject");
+ }
+
+ schema.validate(policyJson);
+ logger.info("Policy type schema validation successful");
+ return true; // Validation passed
+ } catch (Exception e) {
+ logger.error("Policy type schema validation failed", e);
+ return false; // Validation failed
+ }
+ }
+
+ public Boolean performPolicySchemaValidation(Policy policy, PolicyType policyType) {
+
+ switch (applicationConfig.getValidatePolicyInstanceSchema()) {
+ case INFO:
+ if (policyTypeSchemaValidation(policy, policyType)) {
+ return true;
+ }
+ logger.info("Policy Schema validation failed but not enforced.");
+ return true;
+ case WARN:
+ if (policyTypeSchemaValidation(policy, policyType)) {
+ return true;
+ }
+ logger.warn("Policy Schema validation failed but not enforced.");
+ return true;
+ case FAIL:
+ if (policyTypeSchemaValidation(policy, policyType)) {
+ return true;
+ }
+ logger.error("Policy Schema validation failed.");
+ return false;
+ default:
+ logger.info("Policy schema validation disabled.");
+ return true;
+ }
+ }
+
public String policyIdGeneration(PolicyObjectInformation policyObjectInfo) {
if (policyObjectInfo.getPolicyId() == null || policyObjectInfo.getPolicyId().isEmpty() ||
policyObjectInfo.getPolicyId().isBlank())
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ============LICENSE_START=======================================================
+ Copyright (C) 2025 OpenInfra Foundation Europe
+ ================================================================================
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ SPDX-License-Identifier: Apache-2.0
+ ============LICENSE_END=========================================================
+ -->
+<configuration>
+ <appender name="json" class="ch.qos.logback.core.ConsoleAppender">
+ <encoder class="net.logstash.logback.encoder.LoggingEventCompositeJsonEncoder">
+ <providers>
+ <version>
+ <fieldName>version</fieldName>
+ <version>1.2.0</version>
+ </version>
+ <timestamp>
+ <fieldName>timestamp</fieldName>
+ <pattern>yyyy-MM-dd'T'HH:mm:ss.SSSZ</pattern>
+ </timestamp>
+ <pattern>
+ <omitEmptyFields>true</omitEmptyFields>
+ <pattern>
+ {
+ "service_id": "${SERVICE_ID:-a1pms}",
+ "message": "%msg",
+ "facility": "%X{facility}",
+ "subject": "%X{subject}",
+ "extra_data": {
+ "logger": "%logger",
+ "thread_info": {
+ "thread_name": "%thread"
+ },
+ "dst": {
+ "trace_id": "%mdc{traceId}"
+ },
+ "exception": {
+ "stack_trace": "%xEx"
+ }
+ },
+ "metadata": {
+ "application_id": "${APP_ID:-a1pms}"
+ }
+ }
+ </pattern>
+ </pattern>
+ </providers>
+
+ </encoder>
+ </appender>
+
+ <root level="${ROOT_LOG_LEVEL:-INFO}">
+ <appender-ref ref="json"/>
+ </root>
+
+ <logger name="/" level="${ROOT_LOG_LEVEL:-INFO}"/>
+</configuration>
+
--- /dev/null
+<!--
+ ~ ============LICENSE_START=======================================================
+ ~ ONAP : ccsdk oran
+ ~ ================================================================================
+ ~ Copyright (C) 2025 OpenInfra Foundation Europe. All rights reserved.
+ ~ ================================================================================
+ ~ Licensed under the Apache License, Version 2.0 (the "License");
+ ~ you may not use this file except in compliance with the License.
+ ~ You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ ~ ============LICENSE_END=======================================================
+ ~
+-->
+<configuration>
+ <appender name="console" class="ch.qos.logback.core.ConsoleAppender">
+ <encoder>
+ <pattern>
+ %d{yyyy-MM-dd'T'HH:mm:ss.SSSZ} [%thread] %-5level %logger - %msg [facility=%X{facility}, subject=%X{subject}, traceId=%mdc{traceId}] %n%xEx
+ </pattern>
+ </encoder>
+ </appender>
+
+ <root level="${ROOT_LOG_LEVEL:-INFO}">
+ <appender-ref ref="console"/>
+ </root>
+
+ <logger name="/" level="${ROOT_LOG_LEVEL:-INFO}"/>
+</configuration>
\ No newline at end of file
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ============LICENSE_START=======================================================
+ Copyright (C) 2025 OpenInfra Foundation Europe
+ ================================================================================
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ SPDX-License-Identifier: Apache-2.0
+ ============LICENSE_END=========================================================
+ -->
+<configuration>
+ <appender name="json" class="net.logstash.logback.appender.LogstashTcpSocketAppender">
+ <destination>localhost:5044</destination>
+ <encoder class="net.logstash.logback.encoder.LoggingEventCompositeJsonEncoder">
+ <providers>
+ <version>
+ <fieldName>version</fieldName>
+ <version>1.2.0</version>
+ </version>
+ <timestamp>
+ <fieldName>timestamp</fieldName>
+ <pattern>yyyy-MM-dd'T'HH:mm:ss.SSSZ</pattern>
+ </timestamp>
+ <pattern>
+ <omitEmptyFields>true</omitEmptyFields>
+ <pattern>
+ {
+ "service_id": "${SERVICE_ID:-a1pms}",
+ "message": "%msg",
+ "facility": "%X{facility}",
+ "subject": "%X{subject}",
+ "extra_data": {
+ "logger": "%logger",
+ "thread_info": {
+ "thread_name": "%thread"
+ },
+ "dst": {
+ "trace_id": "%mdc{traceId}"
+ },
+ "exception": {
+ "stack_trace": "%xEx"
+ }
+ },
+ "metadata": {
+ "application_id": "${APP_ID:-a1pms}"
+ }
+ }
+ </pattern>
+ </pattern>
+ </providers>
+
+ </encoder>
+ </appender>
+
+ <appender name="console" class="ch.qos.logback.core.ConsoleAppender">
+ <encoder>
+ <pattern>
+ %d{yyyy-MM-dd'T'HH:mm:ss.SSSZ} [%thread] %-5level %logger - %msg [facility=%X{facility}, subject=%X{subject}, traceId=%mdc{traceId}] %n%xEx
+ </pattern>
+ </encoder>
+ </appender>
+
+ <root level="${ROOT_LOG_LEVEL:-INFO}">
+ <appender-ref ref="json"/>
+ <appender-ref ref="console"/>
+ </root>
+
+ <logger name="/" level="${ROOT_LOG_LEVEL:-INFO}"/>
+</configuration>
+
* ONAP : ccsdk oran
* ======================================================================
* Copyright (C) 2019-2023 Nordix Foundation. All rights reserved.
+ * Modifications Copyright (C) 2025 OpenInfra Foundation Europe.
+ * All rights reserved.
* ======================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
private AsyncRestClient restClient(String baseUrl, boolean useTrustValidation) {
WebClientConfig config = this.applicationConfig.getWebClientConfig();
config = WebClientConfig.builder()
+ .sslEnabled(config.isSslEnabled())
.keyStoreType(config.getKeyStoreType())
.keyStorePassword(config.getKeyStorePassword())
.keyStore(config.getKeyStore())
}
- private String baseUrl() {
- return "https://localhost:" + port;
+ public String baseUrl() {
+ if (applicationConfig.isSslEnabled()) {
+ return "https://localhost:" + port;
+ } else {
+ return "http://localhost:" + port;
+ }
}
private AsyncRestClient restClient(boolean useTrustValidation) {
/*-
* ========================LICENSE_START=================================
* Copyright (C) 2020-2023 Nordix Foundation. All rights reserved.
+ * Modifications Copyright (C) 2025 OpenInfra Foundation Europe.
+ * All rights reserved.
* ======================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
"app.config-file-schema-path=/application_configuration_schema.json" //
})
class ConfigurationControllerTest {
- @Autowired
- ApplicationContext context;
@Autowired
ApplicationConfig applicationConfig;
private AsyncRestClient restClient() {
WebClientConfig config = this.applicationConfig.getWebClientConfig();
- config = WebClientConfig.builder() //
- .keyStoreType(config.getKeyStoreType()) //
- .keyStorePassword(config.getKeyStorePassword()) //
- .keyStore(config.getKeyStore()) //
- .keyPassword(config.getKeyPassword()) //
- .isTrustStoreUsed(false) //
- .trustStore(config.getTrustStore()) //
- .trustStorePassword(config.getTrustStorePassword()) //
- .httpProxyConfig(config.getHttpProxyConfig()) //
- .build();
-
- AsyncRestClientFactory f = new AsyncRestClientFactory(config, new SecurityContext(""));
- return f.createRestClientNoHttpProxy("https://localhost:" + port);
+ if (applicationConfig.isSslEnabled()) {
+ config = WebClientConfig.builder() //
+ .sslEnabled(applicationConfig.isSslEnabled())
+ .keyStoreType(config.getKeyStoreType()) //
+ .keyStorePassword(config.getKeyStorePassword()) //
+ .keyStore(config.getKeyStore()) //
+ .keyPassword(config.getKeyPassword()) //
+ .isTrustStoreUsed(config.isTrustStoreUsed()) //
+ .trustStore(config.getTrustStore()) //
+ .trustStorePassword(config.getTrustStorePassword()) //
+ .httpProxyConfig(config.getHttpProxyConfig()) //
+ .build();
+
+ AsyncRestClientFactory f = new AsyncRestClientFactory(config, new SecurityContext(""));
+ return f.createRestClientNoHttpProxy("https://localhost:" + port);
+ } else {
+ config = WebClientConfig.builder()
+ .httpProxyConfig(config.getHttpProxyConfig())
+ .build();
+ AsyncRestClientFactory f = new AsyncRestClientFactory(config, new SecurityContext(""));
+ return f.createRestClientNoHttpProxy("http://localhost:" + port);
+ }
}
}
/*-
* ========================LICENSE_START=================================
- * Copyright (C) 2020-2023 Nordix Foundation. All rights reserved.
+ * Copyright (C) 2020-2025 OpenInfra Foundation Europe. All rights reserved.
* ======================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
"app.config-file-schema-path=/application_configuration_schema.json" //
})
class ConfigurationControllerV3Test {
+
+ @Autowired
+ private RefreshConfigTask refreshConfigTask;
+
@Autowired
ApplicationContext context;
testHelperTest.testSuccessResponse(responseGetConfigMono, HttpStatus.OK, responseBody -> responseBody.contains("config"));
}
+ @Test
+ void testPutConfigurationMeNull() throws Exception {
+ Mono<ResponseEntity<String>> responseEntityMono = testHelperTest.restClientV3().putForEntity("/configuration",
+ testHelperTest.configAsStringMeNull());
+ testHelperTest.testSuccessResponse(responseEntityMono, HttpStatus.OK, Objects::isNull);
+ //put Valid Configuration With New Ric should Update Repository. So, will wait until the ric size is 2
+ await().until(rics::size, equalTo(2));
+ //test Get Configuration
+ Mono<ResponseEntity<String>> responseGetConfigMono = testHelperTest.restClientV3().getForEntity("/configuration");
+ testHelperTest.testSuccessResponse(responseGetConfigMono, HttpStatus.OK, responseBody -> !responseBody.contains("\"managedElementIds\""));
+
+ refreshConfigTask.start();
+
+ Mono<ResponseEntity<String>> responseGetRicsMono = testHelperTest.restClientV3().getForEntity("/rics");
+ testHelperTest.testSuccessResponse(responseGetRicsMono, HttpStatus.OK, responseBody -> responseBody.contains("\"managedElementIds\":[]"));
+
+ Mono<ResponseEntity<String>> responseGetRicMono = testHelperTest.restClientV3().getForEntity("/rics/ric1");
+ testHelperTest.testSuccessResponse(responseGetRicMono, HttpStatus.OK, responseBody -> responseBody.contains("\"managedElementIds\":[]"));
+ }
+
+ @Test
+ void testPutConfigurationMeEmpty() throws Exception {
+ Mono<ResponseEntity<String>> responseEntityMono = testHelperTest.restClientV3().putForEntity("/configuration",
+ testHelperTest.configAsStringMeEmpty());
+ testHelperTest.testSuccessResponse(responseEntityMono, HttpStatus.OK, Objects::isNull);
+ //put Valid Configuration With New Ric should Update Repository. So, will wait until the ric size is 2
+ await().until(rics::size, equalTo(2));
+ //test Get Configuration
+ Mono<ResponseEntity<String>> responseGetConfigMono = testHelperTest.restClientV3().getForEntity("/configuration");
+ testHelperTest.testSuccessResponse(responseGetConfigMono, HttpStatus.OK, responseBody -> responseBody.contains("\"managedElementIds\":[]"));
+
+ refreshConfigTask.start();
+
+ Mono<ResponseEntity<String>> responseGetRicsMono = testHelperTest.restClientV3().getForEntity("/rics");
+ testHelperTest.testSuccessResponse(responseGetRicsMono, HttpStatus.OK, responseBody -> responseBody.contains("\"managedElementIds\":[]"));
+
+ Mono<ResponseEntity<String>> responseGetRicMono = testHelperTest.restClientV3().getForEntity("/rics/ric1");
+ testHelperTest.testSuccessResponse(responseGetRicMono, HttpStatus.OK, responseBody -> responseBody.contains("\"managedElementIds\":[]"));
+ }
+
@Test
void testHealthCheck() {
Mono<ResponseEntity<String>> responseHealthCheckMono = testHelperTest.restClientV3().getForEntity("/status");
+ "ImV4cCI6MzAwMDAwMDAwMCwiY2xpZW50X2lkIjoibXljbGllbnQiLCJyb2xlIjoidXNlciJ9."
+ "O5QN_SWN4J1mWKyXk_-PCvOA6GF3ypv1rSdg2uTb_Ls";
+ private final String bearerTokenUpn = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9."
+ + "eyJpc3MiOiJleGFtcGxlX2lzc3VlciIsInVwbiI6IjEyMzQ1Njc4OTAiLCJhdWQiOiJteWNsaWVu"
+ + "dCIsImV4cCI6MzAwMDAwMDAwMCwiY2xpZW50X2lkIjoibXljbGllbnQiLCJyb2xlIjoidXNlciJ9."
+ + "z3OqH4_a2jzt4XOJlUB5r9seP2ppkdYVdK1LYZXkSh4";
+
+ private final String bearerTokenPrefUser = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9."
+ + "eyJpc3MiOiJleGFtcGxlX2lzc3VlciIsInByZWZlcnJlZF91c2VybmFtZSI6IjEyMzQ1Njc4OTAiLCJh"
+ + "dWQiOiJteWNsaWVudCIsImV4cCI6MzAwMDAwMDAwMCwiY2xpZW50X2lkIjoibXljbGllbnQiLCJyb2xlIjoidXNlciJ9."
+ + "vt5K1E68zHUBkvK8lTXSLHXH6gvHdZ1RwyrhPx9qQ-Q";
+
private final String emptyBearerToken = "eyJhbGciOiJIUzI1NiIsInR5cCI6IiJ9."
+ "eyJpYXQiOjE1MTYyMzkwMjJ9.uE72OfhNzhIFuyHhZyI0eYVPG6QJ7s7A-SVeKsLubCQ";
void init() {
testHelperTest.port = port;
this.applicationConfig.setAuthProviderUrl(testHelperTest.baseUrl() + OpenPolicyAgentSimulatorController.ACCESS_CONTROL_URL);
+ this.applicationConfig.setValidatePolicyInstanceSchema(ApplicationConfig.ValidateSchema.NONE);
}
@AfterEach
Mono<ResponseEntity<String>> responseMono = testHelperTest.restClientV3().postForEntity(url, policyBody);
testHelperTest.testSuccessResponse(responseMono, HttpStatus.CREATED, responseBody ->
responseBody.contains("{\"scope\":{\"ueId\":\"ue5100\",\"qosId\":\"qos5100\"},\"qosObjectives\":{\"priorityLevel\":5100.0}}"));
- testHelperTest.testSuccessHeader(responseMono, "location", headerValue -> headerValue.contains("https://localhost:" + port + "/a1-policy-management/v1/policies/"));
+ testHelperTest.testSuccessHeader(responseMono, "location", headerValue -> headerValue.contains(testHelperTest.baseUrl() + "/a1-policy-management/v1/policies/"));
+ }
+
+
+ @Test
+ @DisplayName("test Create Policy Success when schema validation set to FAIL")
+ void testPolicyTypeSchemaValidationFail() throws Exception {
+ this.applicationConfig.setValidatePolicyInstanceSchema(ApplicationConfig.ValidateSchema.FAIL);
+ String nonRtRicId = "ric.1";
+ String policyTypeName = "type1_1.2.3";
+ String url = "/policies";
+ testHelperTest.addPolicyType(policyTypeName, nonRtRicId);
+ String policyBody = testHelperTest.postPolicyBody(nonRtRicId, policyTypeName, "");
+ Mono<ResponseEntity<String>> responseMono = testHelperTest.restClientV3().postForEntity(url, policyBody);
+ testHelperTest.testSuccessResponse(responseMono, HttpStatus.CREATED, responseBody ->
+ responseBody.contains("{\"scope\":{\"ueId\":\"ue5100\",\"qosId\":\"qos5100\"},\"qosObjectives\":{\"priorityLevel\":5100.0}}"));
+ testHelperTest.testSuccessHeader(responseMono, "location", headerValue -> headerValue.contains(testHelperTest.baseUrl() + "/a1-policy-management/v1/policies/"));
+ }
+
+
+ @Test
+ @DisplayName("test Create Policy Success when schema validation set to INFO")
+ void testPolicyTypeSchemaValidationInfo() throws Exception {
+ this.applicationConfig.setValidatePolicyInstanceSchema(ApplicationConfig.ValidateSchema.INFO);
+ String nonRtRicId = "ric.1";
+ String policyTypeName = "type1_1.2.3";
+ String url = "/policies";
+ testHelperTest.addPolicyType(policyTypeName, nonRtRicId);
+ String policyBody = testHelperTest.postPolicyBody(nonRtRicId, policyTypeName, "");
+ Mono<ResponseEntity<String>> responseMono = testHelperTest.restClientV3().postForEntity(url, policyBody);
+ testHelperTest.testSuccessResponse(responseMono, HttpStatus.CREATED, responseBody ->
+ responseBody.contains("{\"scope\":{\"ueId\":\"ue5100\",\"qosId\":\"qos5100\"},\"qosObjectives\":{\"priorityLevel\":5100.0}}"));
+ testHelperTest.testSuccessHeader(responseMono, "location", headerValue -> headerValue.contains(testHelperTest.baseUrl() + "/a1-policy-management/v1/policies/"));
+ }
+
+
+ @Test
+ @DisplayName("test Create Policy Success when schema validation set to WARN")
+ void testPolicyTypeSchemaValidationWarn() throws Exception {
+ this.applicationConfig.setValidatePolicyInstanceSchema(ApplicationConfig.ValidateSchema.WARN);
+ String nonRtRicId = "ric.1";
+ String policyTypeName = "type1_1.2.3";
+ String url = "/policies";
+ testHelperTest.addPolicyType(policyTypeName, nonRtRicId);
+ String policyBody = testHelperTest.postPolicyBody(nonRtRicId, policyTypeName, "");
+ Mono<ResponseEntity<String>> responseMono = testHelperTest.restClientV3().postForEntity(url, policyBody);
+ testHelperTest.testSuccessResponse(responseMono, HttpStatus.CREATED, responseBody ->
+ responseBody.contains("{\"scope\":{\"ueId\":\"ue5100\",\"qosId\":\"qos5100\"},\"qosObjectives\":{\"priorityLevel\":5100.0}}"));
+ testHelperTest.testSuccessHeader(responseMono, "location", headerValue -> headerValue.contains(testHelperTest.baseUrl() + "/a1-policy-management/v1/policies/"));
+ }
+
+ @Test
+ @DisplayName("test bad Create Policy when schema validation set to FAIL")
+ void testBadPolicyTypeSchemaValidationFail() throws Exception {
+ this.applicationConfig.setValidatePolicyInstanceSchema(ApplicationConfig.ValidateSchema.FAIL);
+ String nonRtRicId = "ric.1";
+ String policyTypeName = "type1_1.2.3";
+ String url = "/policies";
+ testHelperTest.addPolicyType(policyTypeName, nonRtRicId);
+ String policyBody = testHelperTest.postBadPolicyBody(nonRtRicId, policyTypeName, "");
+ Mono<ResponseEntity<String>> responseMono = testHelperTest.restClientV3().postForEntity(url, policyBody);
+ testHelperTest.testErrorCode(responseMono, HttpStatus.BAD_REQUEST, "Policy Type Schema validation failed");
+ }
+
+ @Test
+ @DisplayName("test bad Create Policy when schema validation set to INFO")
+ void testBadPolicyTypeSchemaValidationInfo() throws Exception {
+ this.applicationConfig.setValidatePolicyInstanceSchema(ApplicationConfig.ValidateSchema.INFO);
+ String nonRtRicId = "ric.1";
+ String policyTypeName = "type1_1.2.3";
+ String url = "/policies";
+ testHelperTest.addPolicyType(policyTypeName, nonRtRicId);
+ String policyBody = testHelperTest.postBadPolicyBody(nonRtRicId, policyTypeName, "");
+ Mono<ResponseEntity<String>> responseMono = testHelperTest.restClientV3().postForEntity(url, policyBody);
+ testHelperTest.testSuccessHeader(responseMono, "location", headerValue -> headerValue.contains(testHelperTest.baseUrl() + "/a1-policy-management/v1/policies/"));
+ }
+
+ @Test
+ @DisplayName("test bad Create Policy when schema validation set to WARN")
+ void testBadPolicyTypeSchemaValidationWarn() throws Exception {
+ this.applicationConfig.setValidatePolicyInstanceSchema(ApplicationConfig.ValidateSchema.WARN);
+ String nonRtRicId = "ric.1";
+ String policyTypeName = "type1_1.2.3";
+ String url = "/policies";
+ testHelperTest.addPolicyType(policyTypeName, nonRtRicId);
+ String policyBody = testHelperTest.postBadPolicyBody(nonRtRicId, policyTypeName, "");
+ Mono<ResponseEntity<String>> responseMono = testHelperTest.restClientV3().postForEntity(url, policyBody);
+ testHelperTest.testSuccessHeader(responseMono, "location", headerValue -> headerValue.contains(testHelperTest.baseUrl() + "/a1-policy-management/v1/policies/"));
}
@Test
testHelperTest.addPolicyType(policyTypeName, nonRtRicId);
String policyBody = testHelperTest.postPolicyBody(nonRtRicId, policyTypeName, "1");
Mono<ResponseEntity<String>> responseMono = testHelperTest.restClientV3().postForEntity(url, policyBody);
- testHelperTest.testSuccessHeader(responseMono, "location", headerValue -> headerValue.contains("https://localhost:" + port + "/a1-policy-management/v1/policies/1"));
+ testHelperTest.testSuccessHeader(responseMono, "location", headerValue -> headerValue.contains(testHelperTest.baseUrl() + "/a1-policy-management/v1/policies/1"));
}
@Test
responseBody.contains("{\"scope\":{\"ueId\":\"ue5200\",\"qosId\":\"qos5200\"},\"qosObjectives\":{\"priorityLevel\":5200.0}"));
}
+
+ @Test
+ @DisplayName("test Update Policy Success when schema validation set to FAIL")
+ void testUpdatePolicyTypeSchemaValidationFail() throws Exception {
+ this.applicationConfig.setValidatePolicyInstanceSchema(ApplicationConfig.ValidateSchema.FAIL);
+ String nonRtRicId = "ric.1";
+ String policyTypeName = "type1_1.2.3";
+ String url = "/policies";
+ testHelperTest.addPolicyType(policyTypeName, nonRtRicId);
+ String policyBodyForPost = testHelperTest.postPolicyBody(nonRtRicId, policyTypeName, "policyOne");
+ testHelperTest.restClientV3().postForEntity(url, policyBodyForPost).block();
+ String policyBodyForPut = testHelperTest.putPolicyBody(nonRtRicId, policyTypeName, "policyOne", "ue5200",
+ "qos5200", "5200.0");
+ testHelperTest.restClientV3().putForEntity(url+"/policyOne", policyBodyForPut).block();
+ Mono<ResponseEntity<String>> responseMonoGet = testHelperTest.restClientV3().getForEntity(url+"/policyOne");
+ testHelperTest.testSuccessResponse(responseMonoGet, HttpStatus.OK, responseBody ->
+ responseBody.contains("{\"scope\":{\"ueId\":\"ue5200\",\"qosId\":\"qos5200\"},\"qosObjectives\":{\"priorityLevel\":5200.0}"));
+ }
+
+
+ @Test
+ @DisplayName("test Update Policy Success when schema validation set to INFO")
+ void testUpdatePolicyTypeSchemaValidationInfo() throws Exception {
+ this.applicationConfig.setValidatePolicyInstanceSchema(ApplicationConfig.ValidateSchema.INFO);
+ String nonRtRicId = "ric.1";
+ String policyTypeName = "type1_1.2.3";
+ String url = "/policies";
+ testHelperTest.addPolicyType(policyTypeName, nonRtRicId);
+ String policyBodyForPost = testHelperTest.postPolicyBody(nonRtRicId, policyTypeName, "policyOne");
+ testHelperTest.restClientV3().postForEntity(url, policyBodyForPost).block();
+ String policyBodyForPut = testHelperTest.putPolicyBody(nonRtRicId, policyTypeName, "policyOne", "ue5200",
+ "qos5200", "5200.0");
+ testHelperTest.restClientV3().putForEntity(url+"/policyOne", policyBodyForPut).block();
+ Mono<ResponseEntity<String>> responseMonoGet = testHelperTest.restClientV3().getForEntity(url+"/policyOne");
+ testHelperTest.testSuccessResponse(responseMonoGet, HttpStatus.OK, responseBody ->
+ responseBody.contains("{\"scope\":{\"ueId\":\"ue5200\",\"qosId\":\"qos5200\"},\"qosObjectives\":{\"priorityLevel\":5200.0}"));
+ }
+
+
+ @Test
+ @DisplayName("test Update Policy Success when schema validation set to WARN")
+ void testUpdatePolicyTypeSchemaValidationWarn() throws Exception {
+ this.applicationConfig.setValidatePolicyInstanceSchema(ApplicationConfig.ValidateSchema.WARN);
+ String nonRtRicId = "ric.1";
+ String policyTypeName = "type1_1.2.3";
+ String url = "/policies";
+ testHelperTest.addPolicyType(policyTypeName, nonRtRicId);
+ String policyBodyForPost = testHelperTest.postPolicyBody(nonRtRicId, policyTypeName, "policyOne");
+ testHelperTest.restClientV3().postForEntity(url, policyBodyForPost).block();
+ String policyBodyForPut = testHelperTest.putPolicyBody(nonRtRicId, policyTypeName, "policyOne", "ue5200",
+ "qos5200", "5200.0");
+ testHelperTest.restClientV3().putForEntity(url+"/policyOne", policyBodyForPut).block();
+ Mono<ResponseEntity<String>> responseMonoGet = testHelperTest.restClientV3().getForEntity(url+"/policyOne");
+ testHelperTest.testSuccessResponse(responseMonoGet, HttpStatus.OK, responseBody ->
+ responseBody.contains("{\"scope\":{\"ueId\":\"ue5200\",\"qosId\":\"qos5200\"},\"qosObjectives\":{\"priorityLevel\":5200.0}"));
+ }
+
+ @Test
+ @DisplayName("test bad Update Policy when schema validation set to FAIL")
+ void testUpdateBadPolicyTypeSchemaValidationFail() throws Exception {
+ this.applicationConfig.setValidatePolicyInstanceSchema(ApplicationConfig.ValidateSchema.FAIL);
+ String nonRtRicId = "ric.1";
+ String policyTypeName = "type1_1.2.3";
+ String url = "/policies";
+ testHelperTest.addPolicyType(policyTypeName, nonRtRicId);
+ String policyBodyForPost = testHelperTest.postPolicyBody(nonRtRicId, policyTypeName, "policyOne");
+ testHelperTest.restClientV3().postForEntity(url, policyBodyForPost).block();
+ String policyBodyForPut = testHelperTest.putBadPolicyBody(nonRtRicId, policyTypeName, "policyOne", "ue5200",
+ "qos5200", "5200.0", "bar");
+ Mono<ResponseEntity<String>> responseMono = testHelperTest.restClientV3().putForEntity(url+"/policyOne", policyBodyForPut);
+ testHelperTest.testErrorCode(responseMono, HttpStatus.BAD_REQUEST, "Policy Type Schema validation failed");
+ }
+
+ @Test
+ @DisplayName("test bad Update Policy when schema validation set to WARN")
+ void testUpdateBadPolicyTypeSchemaValidationWarn() throws Exception {
+ this.applicationConfig.setValidatePolicyInstanceSchema(ApplicationConfig.ValidateSchema.WARN);
+ String nonRtRicId = "ric.1";
+ String policyTypeName = "type1_1.2.3";
+ String url = "/policies";
+ testHelperTest.addPolicyType(policyTypeName, nonRtRicId);
+ String policyBodyForPost = testHelperTest.postPolicyBody(nonRtRicId, policyTypeName, "policyOne");
+ testHelperTest.restClientV3().postForEntity(url, policyBodyForPost).block();
+ String policyBodyForPut = testHelperTest.putBadPolicyBody(nonRtRicId, policyTypeName, "policyOne", "ue5200",
+ "qos5200", "5200.0", "bar");
+ Mono<ResponseEntity<String>> responseMono = testHelperTest.restClientV3().putForEntity(url+"/policyOne", policyBodyForPut);
+ testHelperTest.testSuccessResponse(responseMono, HttpStatus.OK, responseBody ->
+ responseBody.contains("{\"scope\":{\"ueId\":\"ue5200\",\"qosId\":\"qos5200\",\"foo\":\"bar\"},\"qosObjectives\":{\"priorityLevel\":5200.0}}"));
+ }
+
+ @Test
+ @DisplayName("test bad Update Policy when schema validation set to INFO")
+ void testUpdateBadPolicyTypeSchemaValidationInfo() throws Exception {
+ this.applicationConfig.setValidatePolicyInstanceSchema(ApplicationConfig.ValidateSchema.INFO);
+ String nonRtRicId = "ric.1";
+ String policyTypeName = "type1_1.2.3";
+ String url = "/policies";
+ testHelperTest.addPolicyType(policyTypeName, nonRtRicId);
+ String policyBodyForPost = testHelperTest.postPolicyBody(nonRtRicId, policyTypeName, "policyOne");
+ testHelperTest.restClientV3().postForEntity(url, policyBodyForPost).block();
+ String policyBodyForPut = testHelperTest.putBadPolicyBody(nonRtRicId, policyTypeName, "policyOne", "ue5200",
+ "qos5200", "5200.0", "bar");
+ Mono<ResponseEntity<String>> responseMono = testHelperTest.restClientV3().putForEntity(url+"/policyOne", policyBodyForPut);
+ testHelperTest.testSuccessResponse(responseMono, HttpStatus.OK, responseBody ->
+ responseBody.contains("{\"scope\":{\"ueId\":\"ue5200\",\"qosId\":\"qos5200\",\"foo\":\"bar\"},\"qosObjectives\":{\"priorityLevel\":5200.0}}"));
+ }
+
private void postPolicyWithTokenAndVerify(String clientId, String serviceId, String result) throws IOException {
testHelperTest.addPolicyType("type1_1.2.3", "ric.1");
String policyBody = testHelperTest.postPolicyBody("ric.1", "type1_1.2.3", "1");
postPolicyWithTokenAndVerify(bearerToken, null, "myclient");
}
+ @Test
+ @DisplayName("client_id VALID + service_id NULL/EMPTY = client_id with subject as upn")
+ void testPostPolicyWithTokenUpn() throws IOException {
+ postPolicyWithTokenAndVerify(bearerTokenUpn, null, "myclient");
+ }
+
+ @Test
+ @DisplayName("client_id VALID + service_id NULL/EMPTY = client_id with subject as preferred_username")
+ void testPostPolicyWithTokenPrefUser() throws IOException {
+ postPolicyWithTokenAndVerify(bearerTokenPrefUser, null, "myclient");
+ }
+
@Test
@DisplayName("client_id VALID + service_id VALID = service_id")
void testPostPolicyWithTokenAndServiceID() throws IOException {
* ========================LICENSE_START=================================
* ONAP : ccsdk oran
* ======================================================================
- * Copyright (C) 2024 OpenInfra Foundation Europe. All rights reserved.
+ * Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved.
* ======================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
private static S3ObjectStore s3ObjectStore;
private static final String bucketName = "s3bucket";
+ private static final String localstackVersion = "4.1.0";
+
+ @SuppressWarnings("resource") // @Testcontainers will manage the lifecycle of the container.
@Container
private static final LocalStackContainer localstack =
- new LocalStackContainer(DockerImageName.parse("localstack/localstack:0.11.3"))
+ new LocalStackContainer(DockerImageName.parse("localstack/localstack:" + localstackVersion))
.withServices(LocalStackContainer.Service.S3);
@BeforeAll
Policy policy = testHelperTest.buidTestPolicy(testHelperTest.policyObjectInfo(nonRtRicId, policyTypeName), "122344-5674");
when(helper.jsonSchemaValidation(any())).thenReturn(Boolean.TRUE);
when(helper.buildPolicy(any(),any(), any(), any(), any())).thenReturn(policy);
+ when(helper.performPolicySchemaValidation(any(), any())).thenReturn(Boolean.TRUE);
when(helper.isPolicyAlreadyCreated(any(), any())).thenReturn(Mono.error(new ServiceException
("Same policy content already created with policy ID: 122344-5674", HttpStatus.BAD_REQUEST)));
Mono<ResponseEntity<PolicyObjectInformation>> responseMono = policyService.createPolicyService(testHelperTest.policyObjectInfo(nonRtRicId, policyTypeName), serverWebExchange);
testHelperTest.addPolicyType(policyTypeName, nonRtRicId);
ServerWebExchange serverWebExchange = Mockito.mock(DefaultServerWebExchange.class);
when(helper.jsonSchemaValidation(any())).thenReturn(Boolean.TRUE);
+ when(helper.performPolicySchemaValidation(any(), any())).thenReturn(Boolean.TRUE);
when(helper.isPolicyAlreadyCreated(any(), any())).thenReturn(Mono.just(Policy.builder().build()));
when(authorizationService.authCheck(any(), any(), any())).thenReturn(Mono.error(new ServiceException("Not authorized", HttpStatus.UNAUTHORIZED)));
Mono<ResponseEntity<PolicyObjectInformation>> responseMono = policyService.createPolicyService(testHelperTest.policyObjectInfo(nonRtRicId, policyTypeName), serverWebExchange);
when(helper.buildPolicy(any(),any(), any(), any(), any())).thenReturn(updatedPolicy);
when(helper.checkRicStateIdle(any())).thenReturn(Mono.just(updatedPolicy.getRic()));
when(helper.checkSupportedType(any(), any())).thenReturn(Mono.just(updatedPolicy.getRic()));
+ when(helper.performPolicySchemaValidation(any(), any())).thenReturn(Boolean.TRUE);
when(authorizationService.authCheck(any(), any(), any())).thenReturn(Mono.just(updatedPolicy));
Mono<ResponseEntity<Object>> responseMono = policyService.putPolicyService(policy.getId(), updatedPolicyObjectInfo.getPolicyObject(), serverWebExchange);
testHelperTest.testSuccessResponse(responseMono, HttpStatus.OK, responseBody -> {
+/*-
+ * ========================LICENSE_START=================================
+ * ONAP : ccsdk oran
+ * ======================================================================
+ * Copyright (C) 2025 OpenInfra Foundation Europe. All rights reserved.
+ * ======================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ========================LICENSE_END===================================
+ */
+
package org.onap.ccsdk.oran.a1policymanagementservice.utils.v3;
import org.junit.jupiter.api.AfterAll;
import java.nio.file.Path;
import static org.junit.jupiter.api.Assertions.assertFalse;
-import static org.junit.jupiter.api.Assertions.assertTrue;
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
@ExtendWith({OutputCaptureExtension.class})
Mono<ResponseEntity<String>> responseMono = testHelperTest.restClientV3().postForEntity(url, policyBody);
testHelperTest.testSuccessResponse(responseMono, HttpStatus.CREATED, responseBody ->
responseBody.contains("{\"scope\":{\"ueId\":\"ue5100\",\"qosId\":\"qos5100\"},\"qosObjectives\":{\"priorityLevel\":5100.0}}"));
- testHelperTest.testSuccessHeader(responseMono, "location", headerValue -> headerValue.contains("https://localhost:" + port + "/a1-policy-management/v1/policies/"));
+ testHelperTest.testSuccessHeader(responseMono, "location", headerValue -> headerValue.contains(testHelperTest.baseUrl() + "/a1-policy-management/v1/policies/"));
assertFalse(capturedOutput.getOut().contains("Request received with path: /a1-policy-management/v1/policies"));
assertFalse(capturedOutput.getOut().contains("the Status code of the response: 201 CREATED"));
assertFalse(capturedOutput.getOut().contains("the response is:"));
+/*-
+ * ========================LICENSE_START=================================
+ * ONAP : ccsdk oran
+ * ======================================================================
+ * Copyright (C) 2025 OpenInfra Foundation Europe. All rights reserved.
+ * ======================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ========================LICENSE_END===================================
+ */
+
package org.onap.ccsdk.oran.a1policymanagementservice.utils.v3;
import org.junit.jupiter.api.AfterAll;
Mono<ResponseEntity<String>> responseMono = testHelperTest.restClientV3().postForEntity(url, policyBody);
testHelperTest.testSuccessResponse(responseMono, HttpStatus.CREATED, responseBody ->
responseBody.contains("{\"scope\":{\"ueId\":\"ue5100\",\"qosId\":\"qos5100\"},\"qosObjectives\":{\"priorityLevel\":5100.0}}"));
- testHelperTest.testSuccessHeader(responseMono, "location", headerValue -> headerValue.contains("https://localhost:" + port + "/a1-policy-management/v1/policies/"));
+ testHelperTest.testSuccessHeader(responseMono, "location", headerValue -> headerValue.contains(testHelperTest.baseUrl() + "/a1-policy-management/v1/policies/"));
assertTrue(capturedOutput.getOut().contains("Request received with path: /a1-policy-management/v1/policies"));
assertTrue(capturedOutput.getOut().contains("the Status code of the response: 201 CREATED"));
assertTrue(capturedOutput.getOut().contains("the response is:"));
* ========================LICENSE_START=================================
* ONAP : ccsdk oran
* ======================================================================
- * Copyright (C) 2024 OpenInfra Foundation Europe. All rights reserved.
+ * Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved.
* ======================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
public AsyncRestClient restClient(String baseUrl, boolean useTrustValidation) {
WebClientConfig config = this.applicationConfig.getWebClientConfig();
config = WebClientConfig.builder()
+ .sslEnabled(config.isSslEnabled())
.keyStoreType(config.getKeyStoreType())
.keyStorePassword(config.getKeyStorePassword())
.keyStore(config.getKeyStore())
}
public String baseUrl() {
- return "https://localhost:" + port;
+ if (applicationConfig.isSslEnabled()) {
+ return "https://localhost:" + port;
+ } else {
+ return "http://localhost:" + port;
+ }
}
public AsyncRestClient restClientV3(boolean useTrustValidation) {
policyObjectInfo.setPolicyId(policyId);
return gson.toJson(policyObjectInfo);
}
+ public String postBadPolicyBody(String nearRtRicId, String policyTypeName, String policyId) {
+ PolicyObjectInformation policyObjectInfo = new PolicyObjectInformation(nearRtRicId, dummyBadPolicyObject(), policyTypeName);
+ if (policyId != null && !policyId.isEmpty() && !policyId.isBlank())
+ policyObjectInfo.setPolicyId(policyId);
+ return gson.toJson(policyObjectInfo);
+ }
public String putPolicyBody(String nearRtRicId, String policyTypeName, String policyId, String ueId, String qosId,
String priorityLevel) {
return gson.toJson(policyObjectInfo);
}
+ public String putBadPolicyBody(String nearRtRicId, String policyTypeName, String policyId, String ueId, String qosId,
+ String priorityLevel, String foo) {
+ PolicyObjectInformation policyObjectInfo = new PolicyObjectInformation(nearRtRicId, dummyBadPolicyObjectForPut(
+ ueId, qosId, priorityLevel, foo), policyTypeName);
+ if (policyId != null && !policyId.isEmpty() && !policyId.isBlank())
+ policyObjectInfo.setPolicyId(policyId);
+ return gson.toJson(policyObjectInfo);
+ }
+
public PolicyObjectInformation policyObjectInfo(String nearRtRicId, String policyTypeName) {
return gson.fromJson(postPolicyBody(nearRtRicId, policyTypeName, ""), PolicyObjectInformation.class);
}
" }").getAsJsonObject();
}
+ public JsonObject dummyBadPolicyObjectForPut(String... values) {
+ return JsonParser.parseString("{\n" +
+ " \"scope\": {\n" +
+ " \"ueId\": \"" + values[0] + "\",\n" +
+ " \"qosId\": \"" + values[1] + "\",\n" +
+ " \"foo\": \"" + values[3] + "\"\n" +
+ " },\n" +
+ " \"qosObjectives\": {\n" +
+ " \"priorityLevel\": " + values[2] + "\n" +
+ " }\n" +
+ " }").getAsJsonObject();
+ }
+
public JsonObject dummyPolicyObject() {
return JsonParser.parseString("{\n" +
" \"scope\": {\n" +
" }").getAsJsonObject();
}
+ public JsonObject dummyBadPolicyObject() {
+ return JsonParser.parseString("{\n" +
+ " \"scope\": {\n" +
+ " \"ueId\": \"ue5100\",\n" +
+ " \"qosId\": \"qos5100\",\n" +
+ " \"foo\": \"bar\"\n" +
+ " },\n" +
+ " \"qosObjectives\": {\n" +
+ " \"priorityLevel\": 5100.0\n" +
+ " }\n" +
+ " }").getAsJsonObject();
+ }
+
public Policy buidTestPolicy(PolicyObjectInformation policyInfo, String id) throws Exception{
return Policy.builder().ric(rics.getRic(policyInfo.getNearRtRicId()))
.type(policyTypes.getType(policyInfo.getPolicyTypeId()))
new File(Objects.requireNonNull(getClass().getClassLoader().getResource("test_application_configuration.json")).getFile());
return FileUtils.readFileToString(configFile, "UTF-8");
}
+
+ public String configAsStringMeNull() throws Exception {
+ File configFile =
+ new File(Objects.requireNonNull(getClass().getClassLoader().getResource("test_application_configuration_me_null.json")).getFile());
+ return FileUtils.readFileToString(configFile, "UTF-8");
+ }
+
+ public String configAsStringMeEmpty() throws Exception {
+ File configFile =
+ new File(Objects.requireNonNull(getClass().getClassLoader().getResource("test_application_configuration_me_empty.json")).getFile());
+ return FileUtils.readFileToString(configFile, "UTF-8");
+ }
}
--- /dev/null
+{
+ "config": {
+ "description": "Test",
+ "controller": [
+ {
+ "name": "controller1",
+ "baseUrl": "http://localhost:8083/",
+ "userName": "user",
+ "password": "password"
+ }
+ ],
+ "ric": [
+ {
+ "name": "ric1",
+ "controller": "controller1",
+ "baseUrl": "http://localhost:8083/",
+ "customAdapterClass": "org.onap.ccsdk.oran.a1policymanagementservice.clients.StdA1ClientVersion2$Factory",
+ "managedElementIds": []
+ },
+ {
+ "name": "ric2",
+ "baseUrl": "http://localhost:8085/",
+ "managedElementIds": []
+ },
+ {
+ "name": "ric3_noBaseURL",
+ "baseUrl": "",
+ "managedElementIds": []
+ }
+ ]
+ }
+}
--- /dev/null
+{
+ "config": {
+ "description": "Test",
+ "controller": [
+ {
+ "name": "controller1",
+ "baseUrl": "http://localhost:8083/",
+ "userName": "user",
+ "password": "password"
+ }
+ ],
+ "ric": [
+ {
+ "name": "ric1",
+ "controller": "controller1",
+ "baseUrl": "http://localhost:8083/",
+ "customAdapterClass": "org.onap.ccsdk.oran.a1policymanagementservice.clients.StdA1ClientVersion2$Factory"
+ },
+ {
+ "name": "ric2",
+ "baseUrl": "http://localhost:8085/"
+ },
+ {
+ "name": "ric3_noBaseURL",
+ "baseUrl": ""
+ }
+ ]
+ }
+}
-.. SPDX-License-Identifier: CC-BY-4.0
-.. Copyright 2023 Nordix Foundation. All rights reserved.
-.. Copyright 2024 OpenInfra Foundation Europe. All rights reserved.
+.. This work is licensed under a Creative Commons Attribution 4.0 International License.
+.. http://creativecommons.org/licenses/by/4.0
+.. Copyright 2022-2024 Nordix Foundation
+.. Copyright 2024-202% OpenInfra Foundation Europe
+
.. _architecture:
This picture provides a overview of ONAP's A1 Controller architecture,
integration with other components and API resource/operation provided.
-.. image:: ../media/ONAP-A1ControllerArchitecture.png
+.. image:: ../media/ONAP-A1ControllerArchitecture-Paris.png
:width: 500pt
The A1 Policy Management Service provides an API for accessing of A1 Policies. The A1-PMS
.. This work is licensed under a Creative Commons Attribution 4.0 International License.
.. http://creativecommons.org/licenses/by/4.0
-.. Copyright 2023 Nordix Foundation. All rights reserved.
-.. Copyright 2024 OpenInfra Foundation Europe. All rights reserved.
+.. Copyright 2022-2024 Nordix Foundation. All rights reserved.
+.. Copyright 2024-2025 OpenInfra Foundation Europe. All rights reserved.
.. _developer_guide:
This document provides a quickstart for developers of the CCSDK functions for O-RAN A1 Policies.
-.. image:: ../media/ONAP-A1ControllerArchitecture-NewDelhiOslo.png
+.. image:: ../media/ONAP-A1ControllerArchitecture-Paris.png
:width: 500pt
Additional guides for developers can be found on the `ONAP wiki (Development Guides) <https://lf-onap.atlassian.net/wiki/spaces/DW/pages/16445127/Development+guide+for+O-RAN+A1+Policies+Non-RealTime+RIC+applications>`_.
A1 Policy Management Service
++++++++++++++++++++++++++++
-The ONAP CCSDK A1 Policy Management Service (A1-PMS) is a Java 17 web application built using the Spring Framework.
+The ONAP CCSDK A1 Policy Management Service (A1-PMS) is a Java 17 web application built using
+the Spring Framework.
Using Spring Boot dependencies, it runs as a standalone application.
A1 Policy Management Service provides a REST API for managing A1 Policies. It provides support for:
* Create/Modify/Delete operations for A1 Policy Instances in each near-RT RIC
* Query functions to check the status of each near-RT RIC, and their A1 Policy Instances.
-The A1 Policy Management Service can be accessed over the REST API. See :ref:`pms_api` for more information about the API.
+The A1 Policy Management Service can be accessed over the REST APIs. See :ref:`pms_api` for more
+information about the API.
The configured A1 Policies are stored persistently, and can survive service restart. This state information can be stored in a persistent volume or in an S3 Object Store bucket.
- `Lombok <https://github.com/projectlombok/lombok>`_ to generate code, such as getters and setters
- `Awaitility <https://github.com/awaitility/awaitility>`_ to test asynchronous functionality
-
To get a complete list of all dependencies, use command "mvn dependency:tree".
Configuration
This picture provides a overview of ONAP's A1 Controller architecture,
integration with other ONAP components and API resource/operation provided.
-.. image:: ../media/ONAP-A1ControllerArchitecture.png
+.. image:: ../media/ONAP-A1ControllerArchitecture-Paris.png
:width: 500pt
API Table
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
- <title>ONAP CCSDK A1 Policy Management Service</title>
+ <title>ONAP CCSDK - Pre-Spec A1 Policy Management API</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="UTF-8" />
"detail" : {
"type" : "string",
"description" : " A human-readable explanation specific to this occurrence of the problem.",
- "example" : "Policy type not found"
+ "example" : "A1 Policy Type not found"
},
"title" : {
"type" : "string",
},
"policy_type_id" : {
"type" : "string",
- "description" : "Policy type identifier"
+ "description" : "A1 Policy Type identifier"
}
},
"description" : "input"
},
"transient" : {
"type" : "boolean",
- "description" : "if true, the policy is deleted at RIC restart. If false, its value is maintained by this service until explicitly deleted. Default false.",
+ "description" : "If true, the policy is automatically deleted if the targeted Near-RT RIC restarts or recovers. If false, the A1 Policy Instance remains, and is re-pushed to the targeted Near-RT RIC after a restart or recovery. If false, the A1 Policy Instance is maintained and must be deleted separately in the event of Near-RT RIC restart or recovery. Default is false.\n",
"nullable" : false,
"example" : false,
"default" : false
},
"service_id" : {
"type" : "string",
- "description" : "the identity of the service owning the policy. This can be used to group the policies (it is possible to get all policies associated to a service). Note that the service does not need to be registered.",
+ "description" : "The identity of the service owning the policy. This can be used to group the policies (it is possible to get all policies associated to a service). Note that the service does not need to be registered. If the service is registered, the A1 Policy Instance will be subject to the same supervision rules as the the service's other policies.\n",
"default" : ""
},
"policy_data" : {
},
"policytype_id" : {
"type" : "string",
- "description" : "identity of the policy type"
+ "description" : "identity of the A1 Policy Type"
}
},
"description" : "Information for one A1-P Policy"
"properties" : {
"policy_schema" : {
"type" : "object",
- "description" : "Policy type json schema. The schema is a json object following http://json-schema.org/draft-07/schema"
+ "description" : "A1 Policy Type json schema. The schema is a json object following http://json-schema.org/draft-07/schema"
}
},
- "description" : "Contains policy type schema definition"
+ "description" : "Contains A1 Policy Type schema definition"
};
defs["policy_type_id_list"] = {
"type" : "object",
"properties" : {
"policytype_ids" : {
"type" : "array",
- "description" : "Policy type identities",
+ "description" : "A1 Policy Type identities",
"items" : {
"type" : "string",
- "description" : "Policy type identities"
+ "description" : "A1 Policy Type identities"
}
}
},
- "description" : "Information about policy types"
+ "description" : "Information about A1 Policy Types"
};
defs["ric_info"] = {
"type" : "object",
},
"policytype_ids" : {
"type" : "array",
- "description" : "supported policy types",
+ "description" : "supported A1 Policy Types",
"items" : {
"type" : "string",
- "description" : "supported policy types"
+ "description" : "supported A1 Policy Types"
}
}
},
},
"event_type" : {
"type" : "string",
- "description" : "values:\nAVAILABLE: the Near-RT RIC has become available for A1 Policy management",
+ "description" : "values: \n AVAILABLE: the Near-RT RIC has become available for A1 Policy management\n",
"enum" : [ "AVAILABLE" ]
}
},
- "description" : "Information transferred as in Service callbacks (callback_url)"
+ "description" : "Information transferred in Service callbacks, \nif a callback URL was provided for a registered service\n"
};
defs["service_registration_info"] = {
"required" : [ "service_id" ],
"properties" : {
"callback_url" : {
"type" : "string",
- "description" : "callback for notifying of Near-RT RIC state changes"
+ "description" : "Callback for notifying of Near-RT RIC state changes"
},
"service_id" : {
"type" : "string",
},
"keep_alive_interval_seconds" : {
"type" : "integer",
- "description" : "keep alive interval for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.",
+ "description" : "Keep alive interval for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.\n",
"format" : "int64"
}
},
<div id="content">
<div id="project">
<div class="pull-left">
- <h1>ONAP CCSDK A1 Policy Management Service</h1>
+ <h1>ONAP CCSDK - Pre-Spec A1 Policy Management API</h1>
</div>
<div class="clearfix"></div>
</div>
<div class="app-desc">Version: 1.3.0</div>
<hr>
<div id="app-description" class="app-desc">
- <h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides a REST API for managemecnt of A1 policies. <br/>The main tasks of the service are:</p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring and maintaining consistency of the SMO view of A1 policies and the Near-RT RICs</li><li>Maintaining a view of supported Near-RT RIC policy types</li><li>Supervision of using services (R-APPs). When a service is unavailable, its policies are removed.</li></ul><h2>APIs provided or defined by the service</h2><h3>A1 Policy Management</h3><p>This is an API for management of A1 Policies.</p><ul><li>A1 Policy retrieval, creation, modification and deletion.</li><li>Retrieval of supported A1 Policy types for a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management of configuration</h3><p>API for updating and retrieval of the component configuration. Note that there other ways to maintain the configuration.</p><h3>Service callbacks</h3><p>These are endpoints that are invoked by this service. The callbacks are registered in this service at service registration.</p><h3>NearRT-RIC Repository</h3><p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy is targeted for one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision of the PMS component.</p><h3>Service Registry and Supervision</h3><p>API used for registering services that uses PMS. Each A1 policy is optionally owned by a service. PMS can supervise each registered service by a heart-beat supervision and will automatically remove policies for unavailable services. Note that a service does not need to be registered in order to create A1 Policies. This is a feature that is optional to use.</p><h3>Authorization API</h3><p>API used for access control of A1 Policy access. If configured, an external authorization provider is requested to grant access to the A1 Policy type.</p><h3>Spring Boot Actuator</h3><p>Provides generic functions used to monitor and manage the Spring web application.</p>
+ <h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides a REST API for managing A1 policies. <br/>This document describes an older pre-spec API set to perform tasks for: </p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring and maintaining consistency of the SMO view of A1 Policies and the Near-RT RICs</li><li>Maintaining a view of each Near-RT RIC's supported A1 Policy Types</li><li>Supervision of registered services (rApps). When a registered service is unavailable, its policies are removed.</li></ul><h2>APIs provided or defined by the service</h2><h3>A1 Policy Management (Older pre-spec version) </h3> <p>This is an older API for managing A1 Policies:</p><ul><li>A1 Policy retrieval, creation, modification and deletion.</li><li>Retrieval of supported A1 Policy Types for a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management of configuration</h3><p>API for updating and retrieval of the component configuration. Note that there other ways to maintain the configuration.</p><h3>Service Callbacks</h3><p>These are endpoints that are invoked by this service. The callbacks are registered in this service at service registration.</p><h3>NearRT-RIC Repository (Older version)</h3> <p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy is targeted towards one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision of the A1 Policy Management Service .</p><h3>Service Registry and Supervision</h3> <p>API used for registering services/clients/rApps. Each A1 Policy can be tagged with an owner. If the owner service is registered, then the service can be monitored by a heart-beat supervision mechanism, and if the registered service becomes unavailable, then its A1 Policies are removed. Note that services do not need to be registered to create A1 Policies, but unregistered services are not supervised. This is a feature that is optional to use.</p><h3>Authorization API</h3><p>API used for access control of A1 Policy access. If configured, an external authorization provider is requested to grant access to the A1 Policy Type.</p><h3>Spring Boot Actuator</h3><p>Provides built-in functions used to monitor and configure the Spring web application hosting the service.</p>
</div>
</div>
<article id="api-A1PolicyManagement-deletePolicy-0" data-group="User" data-name="deletePolicy" data-version="0">
<div class="pull-left">
<h1>deletePolicy</h1>
- <p>Delete a policy</p>
+ <p>Delete an A1 Policy instance (deletePolicy)</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
- <p class="marked">Deleting the policy using the Policy's Policy ID.</p>
+ <p class="marked">Delete an A1 Policy instance using its policy ID.</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="delete"><code><span class="pln">/a1-policy/v2/policies/{policy_id}</span></code></pre>
A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init];
String *policyId = policyId_example; // (default to null)
-// Delete a policy
+// Delete an A1 Policy instance (deletePolicy)
[apiInstance deletePolicyWith:policyId
completionHandler: ^(Object output, NSError* error) {
if (output) {
</div>
<div class="tab-pane" id="examples-A1PolicyManagement-deletePolicy-0-javascript">
- <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service');
+ <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api');
// Create an instance of the API class
-var api = new OnapCcsdkA1PolicyManagementService.A1PolicyManagementApi()
+var api = new OnapCcsdkPreSpecA1PolicyManagementApi.A1PolicyManagementApi()
var policyId = policyId_example; // {String}
var callback = function(error, data, response) {
var policyId = policyId_example; // String | (default to null)
try {
- // Delete a policy
+ // Delete an A1 Policy instance (deletePolicy)
Object result = apiInstance.deletePolicy(policyId);
Debug.WriteLine(result);
} catch (Exception e) {
policyId = policyId_example # String | (default to null)
try:
- # Delete a policy
+ # Delete an A1 Policy instance (deletePolicy)
api_response = api_instance.delete_policy(policyId)
pprint(api_response)
except ApiException as e:
<article id="api-A1PolicyManagement-getPolicy-0" data-group="User" data-name="getPolicy" data-version="0">
<div class="pull-left">
<h1>getPolicy</h1>
- <p></p>
+ <p>Get an A1 Policy instance (getPolicy)</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
- <p class="marked">Returns a policy</p>
+ <p class="marked">Get an A1 Policy instance using its policy ID</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/a1-policy/v2/policies/{policy_id}</span></code></pre>
A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init];
String *policyId = policyId_example; // (default to null)
+// Get an A1 Policy instance (getPolicy)
[apiInstance getPolicyWith:policyId
completionHandler: ^(policy_info output, NSError* error) {
if (output) {
</div>
<div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-javascript">
- <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service');
+ <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api');
// Create an instance of the API class
-var api = new OnapCcsdkA1PolicyManagementService.A1PolicyManagementApi()
+var api = new OnapCcsdkPreSpecA1PolicyManagementApi.A1PolicyManagementApi()
var policyId = policyId_example; // {String}
var callback = function(error, data, response) {
var policyId = policyId_example; // String | (default to null)
try {
+ // Get an A1 Policy instance (getPolicy)
policy_info result = apiInstance.getPolicy(policyId);
Debug.WriteLine(result);
} catch (Exception e) {
policyId = policyId_example # String | (default to null)
try:
+ # Get an A1 Policy instance (getPolicy)
api_response = api_instance.get_policy(policyId)
pprint(api_response)
except ApiException as e:
<article id="api-A1PolicyManagement-getPolicyIds-0" data-group="User" data-name="getPolicyIds" data-version="0">
<div class="pull-left">
<h1>getPolicyIds</h1>
- <p>Query policy identities</p>
+ <p>Query A1 Policy Instances (getPolicyIds)</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
- <p class="marked">Returns a list of A1 policies matching given search criteria. <br>If several query parameters are defined, the policies matching all conditions are returned.</p>
+ <p class="marked">Retrieve a list of A1 Policy Instance IDs for policies that match given search criteria. If multiple query parameters are given, the policies matching all conditions are returned.
+</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/a1-policy/v2/policies</span></code></pre>
// Create an instance of the API class
A1PolicyManagementApi apiInstance = new A1PolicyManagementApi();
- String policytypeId = policytypeId_example; // String | Select policies of a given policy type identity.
+ String policytypeId = policytypeId_example; // String | Select policies of a given A1 Policy Type ID.
String ricId = ricId_example; // String | Select policies of a given Near-RT RIC identity.
- String serviceId = serviceId_example; // String | Select policies owned by a given service.
- String typeName = typeName_example; // String | Select policies of types with the given type name (type identity has the format <typename_version>)
+ String serviceId = serviceId_example; // String | Select policies owned by a given service. (Both registered and unregistered services)
+ String typeName = typeName_example; // String | Select policies of types with the given A1 Policy Type name (type names have the format 'typename_version')
+
try {
policy_id_list result = apiInstance.getPolicyIds(policytypeId, ricId, serviceId, typeName);
final api_instance = DefaultApi();
-final String policytypeId = new String(); // String | Select policies of a given policy type identity.
+final String policytypeId = new String(); // String | Select policies of a given A1 Policy Type ID.
final String ricId = new String(); // String | Select policies of a given Near-RT RIC identity.
-final String serviceId = new String(); // String | Select policies owned by a given service.
-final String typeName = new String(); // String | Select policies of types with the given type name (type identity has the format <typename_version>)
+final String serviceId = new String(); // String | Select policies owned by a given service. (Both registered and unregistered services)
+final String typeName = new String(); // String | Select policies of types with the given A1 Policy Type name (type names have the format 'typename_version')
+
try {
final result = await api_instance.getPolicyIds(policytypeId, ricId, serviceId, typeName);
public class A1PolicyManagementApiExample {
public static void main(String[] args) {
A1PolicyManagementApi apiInstance = new A1PolicyManagementApi();
- String policytypeId = policytypeId_example; // String | Select policies of a given policy type identity.
+ String policytypeId = policytypeId_example; // String | Select policies of a given A1 Policy Type ID.
String ricId = ricId_example; // String | Select policies of a given Near-RT RIC identity.
- String serviceId = serviceId_example; // String | Select policies owned by a given service.
- String typeName = typeName_example; // String | Select policies of types with the given type name (type identity has the format <typename_version>)
+ String serviceId = serviceId_example; // String | Select policies owned by a given service. (Both registered and unregistered services)
+ String typeName = typeName_example; // String | Select policies of types with the given A1 Policy Type name (type names have the format 'typename_version')
+
try {
policy_id_list result = apiInstance.getPolicyIds(policytypeId, ricId, serviceId, typeName);
// Create an instance of the API class
A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init];
-String *policytypeId = policytypeId_example; // Select policies of a given policy type identity. (optional) (default to null)
+String *policytypeId = policytypeId_example; // Select policies of a given A1 Policy Type ID. (optional) (default to null)
String *ricId = ricId_example; // Select policies of a given Near-RT RIC identity. (optional) (default to null)
-String *serviceId = serviceId_example; // Select policies owned by a given service. (optional) (default to null)
-String *typeName = typeName_example; // Select policies of types with the given type name (type identity has the format <typename_version>) (optional) (default to null)
+String *serviceId = serviceId_example; // Select policies owned by a given service. (Both registered and unregistered services) (optional) (default to null)
+String *typeName = typeName_example; // Select policies of types with the given A1 Policy Type name (type names have the format 'typename_version')
+ (optional) (default to null)
-// Query policy identities
+// Query A1 Policy Instances (getPolicyIds)
[apiInstance getPolicyIdsWith:policytypeId
ricId:ricId
serviceId:serviceId
</div>
<div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-javascript">
- <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service');
+ <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api');
// Create an instance of the API class
-var api = new OnapCcsdkA1PolicyManagementService.A1PolicyManagementApi()
+var api = new OnapCcsdkPreSpecA1PolicyManagementApi.A1PolicyManagementApi()
var opts = {
- 'policytypeId': policytypeId_example, // {String} Select policies of a given policy type identity.
+ 'policytypeId': policytypeId_example, // {String} Select policies of a given A1 Policy Type ID.
'ricId': ricId_example, // {String} Select policies of a given Near-RT RIC identity.
- 'serviceId': serviceId_example, // {String} Select policies owned by a given service.
- 'typeName': typeName_example // {String} Select policies of types with the given type name (type identity has the format <typename_version>)
+ 'serviceId': serviceId_example, // {String} Select policies owned by a given service. (Both registered and unregistered services)
+ 'typeName': typeName_example // {String} Select policies of types with the given A1 Policy Type name (type names have the format 'typename_version')
+
};
var callback = function(error, data, response) {
// Create an instance of the API class
var apiInstance = new A1PolicyManagementApi();
- var policytypeId = policytypeId_example; // String | Select policies of a given policy type identity. (optional) (default to null)
+ var policytypeId = policytypeId_example; // String | Select policies of a given A1 Policy Type ID. (optional) (default to null)
var ricId = ricId_example; // String | Select policies of a given Near-RT RIC identity. (optional) (default to null)
- var serviceId = serviceId_example; // String | Select policies owned by a given service. (optional) (default to null)
- var typeName = typeName_example; // String | Select policies of types with the given type name (type identity has the format <typename_version>) (optional) (default to null)
+ var serviceId = serviceId_example; // String | Select policies owned by a given service. (Both registered and unregistered services) (optional) (default to null)
+ var typeName = typeName_example; // String | Select policies of types with the given A1 Policy Type name (type names have the format 'typename_version')
+ (optional) (default to null)
try {
- // Query policy identities
+ // Query A1 Policy Instances (getPolicyIds)
policy_id_list result = apiInstance.getPolicyIds(policytypeId, ricId, serviceId, typeName);
Debug.WriteLine(result);
} catch (Exception e) {
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\A1PolicyManagementApi();
-$policytypeId = policytypeId_example; // String | Select policies of a given policy type identity.
+$policytypeId = policytypeId_example; // String | Select policies of a given A1 Policy Type ID.
$ricId = ricId_example; // String | Select policies of a given Near-RT RIC identity.
-$serviceId = serviceId_example; // String | Select policies owned by a given service.
-$typeName = typeName_example; // String | Select policies of types with the given type name (type identity has the format <typename_version>)
+$serviceId = serviceId_example; // String | Select policies owned by a given service. (Both registered and unregistered services)
+$typeName = typeName_example; // String | Select policies of types with the given A1 Policy Type name (type names have the format 'typename_version')
+
try {
$result = $api_instance->getPolicyIds($policytypeId, $ricId, $serviceId, $typeName);
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::A1PolicyManagementApi->new();
-my $policytypeId = policytypeId_example; # String | Select policies of a given policy type identity.
+my $policytypeId = policytypeId_example; # String | Select policies of a given A1 Policy Type ID.
my $ricId = ricId_example; # String | Select policies of a given Near-RT RIC identity.
-my $serviceId = serviceId_example; # String | Select policies owned by a given service.
-my $typeName = typeName_example; # String | Select policies of types with the given type name (type identity has the format <typename_version>)
+my $serviceId = serviceId_example; # String | Select policies owned by a given service. (Both registered and unregistered services)
+my $typeName = typeName_example; # String | Select policies of types with the given A1 Policy Type name (type names have the format 'typename_version')
+
eval {
my $result = $api_instance->getPolicyIds(policytypeId => $policytypeId, ricId => $ricId, serviceId => $serviceId, typeName => $typeName);
# Create an instance of the API class
api_instance = openapi_client.A1PolicyManagementApi()
-policytypeId = policytypeId_example # String | Select policies of a given policy type identity. (optional) (default to null)
+policytypeId = policytypeId_example # String | Select policies of a given A1 Policy Type ID. (optional) (default to null)
ricId = ricId_example # String | Select policies of a given Near-RT RIC identity. (optional) (default to null)
-serviceId = serviceId_example # String | Select policies owned by a given service. (optional) (default to null)
-typeName = typeName_example # String | Select policies of types with the given type name (type identity has the format <typename_version>) (optional) (default to null)
+serviceId = serviceId_example # String | Select policies owned by a given service. (Both registered and unregistered services) (optional) (default to null)
+typeName = typeName_example # String | Select policies of types with the given A1 Policy Type name (type names have the format 'typename_version')
+ (optional) (default to null)
try:
- # Query policy identities
+ # Query A1 Policy Instances (getPolicyIds)
api_response = api_instance.get_policy_ids(policytypeId=policytypeId, ricId=ricId, serviceId=serviceId, typeName=typeName)
pprint(api_response)
except ApiException as e:
</span>
<div class="inner description marked">
-Select policies of a given policy type identity.
+Select policies of a given A1 Policy Type ID.
</div>
</div>
</div>
</span>
<div class="inner description marked">
-Select policies owned by a given service.
+Select policies owned by a given service. (Both registered and unregistered services)
</div>
</div>
</div>
</span>
<div class="inner description marked">
-Select policies of types with the given type name (type identity has the format <typename_version>)
+Select policies of types with the given A1 Policy Type name (type names have the format 'typename_version')
+
</div>
</div>
</div>
<article id="api-A1PolicyManagement-getPolicyInstances-0" data-group="User" data-name="getPolicyInstances" data-version="0">
<div class="pull-left">
<h1>getPolicyInstances</h1>
- <p>Query for A1 policy instances</p>
+ <p>Query for A1 Policy instances (getPolicyInstances)</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
- <p class="marked">Returns a list of A1 policies matching given search criteria. <br>If several query parameters are defined, the policies matching all conditions are returned.</p>
+ <p class="marked">Returns a collection of A1 Policy Instance information for policies that match given search criteria. If several query parameters are defined, the policies matching all conditions are returned.
+</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/a1-policy/v2/policy-instances</span></code></pre>
// Create an instance of the API class
A1PolicyManagementApi apiInstance = new A1PolicyManagementApi();
- String policytypeId = policytypeId_example; // String | Select policies with a given type identity.
+ String policytypeId = policytypeId_example; // String | Select policies with a given A1 Policy Type ID.
String ricId = ricId_example; // String | Select policies for a given Near-RT RIC identity.
- String serviceId = serviceId_example; // String | Select policies owned by a given service.
- String typeName = typeName_example; // String | Select policies of a given type name (type identity has the format <typename_version>)
+ String serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered).
+ String typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
try {
policy_info_list result = apiInstance.getPolicyInstances(policytypeId, ricId, serviceId, typeName);
final api_instance = DefaultApi();
-final String policytypeId = new String(); // String | Select policies with a given type identity.
+final String policytypeId = new String(); // String | Select policies with a given A1 Policy Type ID.
final String ricId = new String(); // String | Select policies for a given Near-RT RIC identity.
-final String serviceId = new String(); // String | Select policies owned by a given service.
-final String typeName = new String(); // String | Select policies of a given type name (type identity has the format <typename_version>)
+final String serviceId = new String(); // String | Select policies owned by a given service (registered or unregistered).
+final String typeName = new String(); // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
try {
final result = await api_instance.getPolicyInstances(policytypeId, ricId, serviceId, typeName);
public class A1PolicyManagementApiExample {
public static void main(String[] args) {
A1PolicyManagementApi apiInstance = new A1PolicyManagementApi();
- String policytypeId = policytypeId_example; // String | Select policies with a given type identity.
+ String policytypeId = policytypeId_example; // String | Select policies with a given A1 Policy Type ID.
String ricId = ricId_example; // String | Select policies for a given Near-RT RIC identity.
- String serviceId = serviceId_example; // String | Select policies owned by a given service.
- String typeName = typeName_example; // String | Select policies of a given type name (type identity has the format <typename_version>)
+ String serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered).
+ String typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
try {
policy_info_list result = apiInstance.getPolicyInstances(policytypeId, ricId, serviceId, typeName);
// Create an instance of the API class
A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init];
-String *policytypeId = policytypeId_example; // Select policies with a given type identity. (optional) (default to null)
+String *policytypeId = policytypeId_example; // Select policies with a given A1 Policy Type ID. (optional) (default to null)
String *ricId = ricId_example; // Select policies for a given Near-RT RIC identity. (optional) (default to null)
-String *serviceId = serviceId_example; // Select policies owned by a given service. (optional) (default to null)
-String *typeName = typeName_example; // Select policies of a given type name (type identity has the format <typename_version>) (optional) (default to null)
+String *serviceId = serviceId_example; // Select policies owned by a given service (registered or unregistered). (optional) (default to null)
+String *typeName = typeName_example; // Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). (optional) (default to null)
-// Query for A1 policy instances
+// Query for A1 Policy instances (getPolicyInstances)
[apiInstance getPolicyInstancesWith:policytypeId
ricId:ricId
serviceId:serviceId
</div>
<div class="tab-pane" id="examples-A1PolicyManagement-getPolicyInstances-0-javascript">
- <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service');
+ <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api');
// Create an instance of the API class
-var api = new OnapCcsdkA1PolicyManagementService.A1PolicyManagementApi()
+var api = new OnapCcsdkPreSpecA1PolicyManagementApi.A1PolicyManagementApi()
var opts = {
- 'policytypeId': policytypeId_example, // {String} Select policies with a given type identity.
+ 'policytypeId': policytypeId_example, // {String} Select policies with a given A1 Policy Type ID.
'ricId': ricId_example, // {String} Select policies for a given Near-RT RIC identity.
- 'serviceId': serviceId_example, // {String} Select policies owned by a given service.
- 'typeName': typeName_example // {String} Select policies of a given type name (type identity has the format <typename_version>)
+ 'serviceId': serviceId_example, // {String} Select policies owned by a given service (registered or unregistered).
+ 'typeName': typeName_example // {String} Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
};
var callback = function(error, data, response) {
// Create an instance of the API class
var apiInstance = new A1PolicyManagementApi();
- var policytypeId = policytypeId_example; // String | Select policies with a given type identity. (optional) (default to null)
+ var policytypeId = policytypeId_example; // String | Select policies with a given A1 Policy Type ID. (optional) (default to null)
var ricId = ricId_example; // String | Select policies for a given Near-RT RIC identity. (optional) (default to null)
- var serviceId = serviceId_example; // String | Select policies owned by a given service. (optional) (default to null)
- var typeName = typeName_example; // String | Select policies of a given type name (type identity has the format <typename_version>) (optional) (default to null)
+ var serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered). (optional) (default to null)
+ var typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). (optional) (default to null)
try {
- // Query for A1 policy instances
+ // Query for A1 Policy instances (getPolicyInstances)
policy_info_list result = apiInstance.getPolicyInstances(policytypeId, ricId, serviceId, typeName);
Debug.WriteLine(result);
} catch (Exception e) {
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\A1PolicyManagementApi();
-$policytypeId = policytypeId_example; // String | Select policies with a given type identity.
+$policytypeId = policytypeId_example; // String | Select policies with a given A1 Policy Type ID.
$ricId = ricId_example; // String | Select policies for a given Near-RT RIC identity.
-$serviceId = serviceId_example; // String | Select policies owned by a given service.
-$typeName = typeName_example; // String | Select policies of a given type name (type identity has the format <typename_version>)
+$serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered).
+$typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
try {
$result = $api_instance->getPolicyInstances($policytypeId, $ricId, $serviceId, $typeName);
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::A1PolicyManagementApi->new();
-my $policytypeId = policytypeId_example; # String | Select policies with a given type identity.
+my $policytypeId = policytypeId_example; # String | Select policies with a given A1 Policy Type ID.
my $ricId = ricId_example; # String | Select policies for a given Near-RT RIC identity.
-my $serviceId = serviceId_example; # String | Select policies owned by a given service.
-my $typeName = typeName_example; # String | Select policies of a given type name (type identity has the format <typename_version>)
+my $serviceId = serviceId_example; # String | Select policies owned by a given service (registered or unregistered).
+my $typeName = typeName_example; # String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
eval {
my $result = $api_instance->getPolicyInstances(policytypeId => $policytypeId, ricId => $ricId, serviceId => $serviceId, typeName => $typeName);
# Create an instance of the API class
api_instance = openapi_client.A1PolicyManagementApi()
-policytypeId = policytypeId_example # String | Select policies with a given type identity. (optional) (default to null)
+policytypeId = policytypeId_example # String | Select policies with a given A1 Policy Type ID. (optional) (default to null)
ricId = ricId_example # String | Select policies for a given Near-RT RIC identity. (optional) (default to null)
-serviceId = serviceId_example # String | Select policies owned by a given service. (optional) (default to null)
-typeName = typeName_example # String | Select policies of a given type name (type identity has the format <typename_version>) (optional) (default to null)
+serviceId = serviceId_example # String | Select policies owned by a given service (registered or unregistered). (optional) (default to null)
+typeName = typeName_example # String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). (optional) (default to null)
try:
- # Query for A1 policy instances
+ # Query for A1 Policy instances (getPolicyInstances)
api_response = api_instance.get_policy_instances(policytypeId=policytypeId, ricId=ricId, serviceId=serviceId, typeName=typeName)
pprint(api_response)
except ApiException as e:
</span>
<div class="inner description marked">
-Select policies with a given type identity.
+Select policies with a given A1 Policy Type ID.
</div>
</div>
</div>
</span>
<div class="inner description marked">
-Select policies owned by a given service.
+Select policies owned by a given service (registered or unregistered).
</div>
</div>
</div>
</span>
<div class="inner description marked">
-Select policies of a given type name (type identity has the format <typename_version>)
+Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
</div>
</div>
</div>
<h3 id="examples-A1PolicyManagement-getPolicyInstances-title-200"></h3>
<p id="examples-A1PolicyManagement-getPolicyInstances-description-200" class="marked"></p>
<script>
- var responseA1PolicyManagement200_description = `OK - Returns A1 Policies which matches the criteria`;
+ var responseA1PolicyManagement200_description = `OK - Returns A1 Policy Instances which match the criteria`;
var responseA1PolicyManagement200_description_break = responseA1PolicyManagement200_description.indexOf('\n');
if (responseA1PolicyManagement200_description_break == -1) {
$("#examples-A1PolicyManagement-getPolicyInstances-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description);
<script>
$(document).ready(function() {
var schemaWrapper = {
- "description" : "OK - Returns A1 Policies which matches the criteria",
+ "description" : "OK - Returns A1 Policy Instances which match the criteria",
"content" : {
"application/json" : {
"schema" : {
<h3 id="examples-A1PolicyManagement-getPolicyInstances-title-404"></h3>
<p id="examples-A1PolicyManagement-getPolicyInstances-description-404" class="marked"></p>
<script>
- var responseA1PolicyManagement404_description = `Not Found - Near-RT RIC, policy type or service not found`;
+ var responseA1PolicyManagement404_description = `Not Found - Near-RT RIC, A1 Policy Type or service was not found`;
var responseA1PolicyManagement404_description_break = responseA1PolicyManagement404_description.indexOf('\n');
if (responseA1PolicyManagement404_description_break == -1) {
$("#examples-A1PolicyManagement-getPolicyInstances-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description);
<script>
$(document).ready(function() {
var schemaWrapper = {
- "description" : "Not Found - Near-RT RIC, policy type or service not found",
+ "description" : "Not Found - Near-RT RIC, A1 Policy Type or service was not found",
"content" : {
"application/json" : {
"schema" : {
<article id="api-A1PolicyManagement-getPolicyStatus-0" data-group="User" data-name="getPolicyStatus" data-version="0">
<div class="pull-left">
<h1>getPolicyStatus</h1>
- <p></p>
+ <p>Get an A1 Policy Instance's status (getPolicyStatus)</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
- <p class="marked">Returns a policy status</p>
+ <p class="marked">Retrieve the status information for an A1 Policy Instance.</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/a1-policy/v2/policies/{policy_id}/status</span></code></pre>
A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init];
String *policyId = policyId_example; // (default to null)
+// Get an A1 Policy Instance's status (getPolicyStatus)
[apiInstance getPolicyStatusWith:policyId
completionHandler: ^(policy_status_info output, NSError* error) {
if (output) {
</div>
<div class="tab-pane" id="examples-A1PolicyManagement-getPolicyStatus-0-javascript">
- <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service');
+ <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api');
// Create an instance of the API class
-var api = new OnapCcsdkA1PolicyManagementService.A1PolicyManagementApi()
+var api = new OnapCcsdkPreSpecA1PolicyManagementApi.A1PolicyManagementApi()
var policyId = policyId_example; // {String}
var callback = function(error, data, response) {
var policyId = policyId_example; // String | (default to null)
try {
+ // Get an A1 Policy Instance's status (getPolicyStatus)
policy_status_info result = apiInstance.getPolicyStatus(policyId);
Debug.WriteLine(result);
} catch (Exception e) {
policyId = policyId_example # String | (default to null)
try:
+ # Get an A1 Policy Instance's status (getPolicyStatus)
api_response = api_instance.get_policy_status(policyId)
pprint(api_response)
except ApiException as e:
<article id="api-A1PolicyManagement-getPolicyTypeDefinition-0" data-group="User" data-name="getPolicyTypeDefinition" data-version="0">
<div class="pull-left">
<h1>getPolicyTypeDefinition</h1>
- <p></p>
+ <p>Get an A1 Policy Type definition (getPolicyTypeDefinition)</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
- <p class="marked">Returns a policy type definition</p>
+ <p class="marked">Get an A1 Policy Type definition using its policy type ID</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/a1-policy/v2/policy-types/{policytype_id}</span></code></pre>
A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init];
String *policytypeId = policytypeId_example; // (default to null)
+// Get an A1 Policy Type definition (getPolicyTypeDefinition)
[apiInstance getPolicyTypeDefinitionWith:policytypeId
completionHandler: ^(policy_type_definition output, NSError* error) {
if (output) {
</div>
<div class="tab-pane" id="examples-A1PolicyManagement-getPolicyTypeDefinition-0-javascript">
- <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service');
+ <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api');
// Create an instance of the API class
-var api = new OnapCcsdkA1PolicyManagementService.A1PolicyManagementApi()
+var api = new OnapCcsdkPreSpecA1PolicyManagementApi.A1PolicyManagementApi()
var policytypeId = policytypeId_example; // {String}
var callback = function(error, data, response) {
var policytypeId = policytypeId_example; // String | (default to null)
try {
+ // Get an A1 Policy Type definition (getPolicyTypeDefinition)
policy_type_definition result = apiInstance.getPolicyTypeDefinition(policytypeId);
Debug.WriteLine(result);
} catch (Exception e) {
policytypeId = policytypeId_example # String | (default to null)
try:
+ # Get an A1 Policy Type definition (getPolicyTypeDefinition)
api_response = api_instance.get_policy_type_definition(policytypeId)
pprint(api_response)
except ApiException as e:
<h3 id="examples-A1PolicyManagement-getPolicyTypeDefinition-title-200"></h3>
<p id="examples-A1PolicyManagement-getPolicyTypeDefinition-description-200" class="marked"></p>
<script>
- var responseA1PolicyManagement200_description = `OK - schema of the given policy type`;
+ var responseA1PolicyManagement200_description = `OK - schema of the requested A1 Policy Type`;
var responseA1PolicyManagement200_description_break = responseA1PolicyManagement200_description.indexOf('\n');
if (responseA1PolicyManagement200_description_break == -1) {
$("#examples-A1PolicyManagement-getPolicyTypeDefinition-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description);
<script>
$(document).ready(function() {
var schemaWrapper = {
- "description" : "OK - schema of the given policy type",
+ "description" : "OK - schema of the requested A1 Policy Type",
"content" : {
"application/json" : {
"schema" : {
<article id="api-A1PolicyManagement-getPolicyTypes-0" data-group="User" data-name="getPolicyTypes" data-version="0">
<div class="pull-left">
<h1>getPolicyTypes</h1>
- <p></p>
+ <p>Get A1 Policy Types (getPolicyTypes)</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
- <p class="marked">Query policy type identities</p>
+ <p class="marked">Query A1 Policy Type identities using query parameters</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/a1-policy/v2/policy-types</span></code></pre>
// Create an instance of the API class
A1PolicyManagementApi apiInstance = new A1PolicyManagementApi();
String ricId = ricId_example; // String | Select types for the given Near-RT RIC identity.
- String typeName = typeName_example; // String | Select types with the given type name (type identity has the format <typename_version>)
+ String typeName = typeName_example; // String | Select types compatible with the given type name (type identity has the format 'typename_version')
String compatibleWithVersion = compatibleWithVersion_example; // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order.
try {
final api_instance = DefaultApi();
final String ricId = new String(); // String | Select types for the given Near-RT RIC identity.
-final String typeName = new String(); // String | Select types with the given type name (type identity has the format <typename_version>)
+final String typeName = new String(); // String | Select types compatible with the given type name (type identity has the format 'typename_version')
final String compatibleWithVersion = new String(); // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order.
try {
public static void main(String[] args) {
A1PolicyManagementApi apiInstance = new A1PolicyManagementApi();
String ricId = ricId_example; // String | Select types for the given Near-RT RIC identity.
- String typeName = typeName_example; // String | Select types with the given type name (type identity has the format <typename_version>)
+ String typeName = typeName_example; // String | Select types compatible with the given type name (type identity has the format 'typename_version')
String compatibleWithVersion = compatibleWithVersion_example; // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order.
try {
// Create an instance of the API class
A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init];
String *ricId = ricId_example; // Select types for the given Near-RT RIC identity. (optional) (default to null)
-String *typeName = typeName_example; // Select types with the given type name (type identity has the format <typename_version>) (optional) (default to null)
+String *typeName = typeName_example; // Select types compatible with the given type name (type identity has the format 'typename_version') (optional) (default to null)
String *compatibleWithVersion = compatibleWithVersion_example; // Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. (optional) (default to null)
+// Get A1 Policy Types (getPolicyTypes)
[apiInstance getPolicyTypesWith:ricId
typeName:typeName
compatibleWithVersion:compatibleWithVersion
</div>
<div class="tab-pane" id="examples-A1PolicyManagement-getPolicyTypes-0-javascript">
- <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service');
+ <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api');
// Create an instance of the API class
-var api = new OnapCcsdkA1PolicyManagementService.A1PolicyManagementApi()
+var api = new OnapCcsdkPreSpecA1PolicyManagementApi.A1PolicyManagementApi()
var opts = {
'ricId': ricId_example, // {String} Select types for the given Near-RT RIC identity.
- 'typeName': typeName_example, // {String} Select types with the given type name (type identity has the format <typename_version>)
+ 'typeName': typeName_example, // {String} Select types compatible with the given type name (type identity has the format 'typename_version')
'compatibleWithVersion': compatibleWithVersion_example // {String} Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order.
};
// Create an instance of the API class
var apiInstance = new A1PolicyManagementApi();
var ricId = ricId_example; // String | Select types for the given Near-RT RIC identity. (optional) (default to null)
- var typeName = typeName_example; // String | Select types with the given type name (type identity has the format <typename_version>) (optional) (default to null)
+ var typeName = typeName_example; // String | Select types compatible with the given type name (type identity has the format 'typename_version') (optional) (default to null)
var compatibleWithVersion = compatibleWithVersion_example; // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. (optional) (default to null)
try {
+ // Get A1 Policy Types (getPolicyTypes)
policy_type_id_list result = apiInstance.getPolicyTypes(ricId, typeName, compatibleWithVersion);
Debug.WriteLine(result);
} catch (Exception e) {
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\A1PolicyManagementApi();
$ricId = ricId_example; // String | Select types for the given Near-RT RIC identity.
-$typeName = typeName_example; // String | Select types with the given type name (type identity has the format <typename_version>)
+$typeName = typeName_example; // String | Select types compatible with the given type name (type identity has the format 'typename_version')
$compatibleWithVersion = compatibleWithVersion_example; // String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order.
try {
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::A1PolicyManagementApi->new();
my $ricId = ricId_example; # String | Select types for the given Near-RT RIC identity.
-my $typeName = typeName_example; # String | Select types with the given type name (type identity has the format <typename_version>)
+my $typeName = typeName_example; # String | Select types compatible with the given type name (type identity has the format 'typename_version')
my $compatibleWithVersion = compatibleWithVersion_example; # String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order.
eval {
# Create an instance of the API class
api_instance = openapi_client.A1PolicyManagementApi()
ricId = ricId_example # String | Select types for the given Near-RT RIC identity. (optional) (default to null)
-typeName = typeName_example # String | Select types with the given type name (type identity has the format <typename_version>) (optional) (default to null)
+typeName = typeName_example # String | Select types compatible with the given type name (type identity has the format 'typename_version') (optional) (default to null)
compatibleWithVersion = compatibleWithVersion_example # String | Select types that are compatible with the given version. This parameter is only applicable in conjunction with type_name. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order. (optional) (default to null)
try:
+ # Get A1 Policy Types (getPolicyTypes)
api_response = api_instance.get_policy_types(ricId=ricId, typeName=typeName, compatibleWithVersion=compatibleWithVersion)
pprint(api_response)
except ApiException as e:
</span>
<div class="inner description marked">
-Select types with the given type name (type identity has the format <typename_version>)
+Select types compatible with the given type name (type identity has the format 'typename_version')
</div>
</div>
</div>
<article id="api-A1PolicyManagement-putPolicy-0" data-group="User" data-name="putPolicy" data-version="0">
<div class="pull-left">
<h1>putPolicy</h1>
- <p></p>
+ <p>Create or Update an A1 Policy Instance (putPolicy)</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
- <p class="marked">Create or update a policy</p>
+ <p class="marked">Create or Update an A1 Policy Instance</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="put"><code><span class="pln">/a1-policy/v2/policies</span></code></pre>
A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init];
PolicyInfo *policyInfo = ; //
+// Create or Update an A1 Policy Instance (putPolicy)
[apiInstance putPolicyWith:policyInfo
completionHandler: ^(Object output, NSError* error) {
if (output) {
</div>
<div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-javascript">
- <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service');
+ <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api');
// Create an instance of the API class
-var api = new OnapCcsdkA1PolicyManagementService.A1PolicyManagementApi()
+var api = new OnapCcsdkPreSpecA1PolicyManagementApi.A1PolicyManagementApi()
var policyInfo = ; // {PolicyInfo}
var callback = function(error, data, response) {
var policyInfo = new PolicyInfo(); // PolicyInfo |
try {
+ // Create or Update an A1 Policy Instance (putPolicy)
Object result = apiInstance.putPolicy(policyInfo);
Debug.WriteLine(result);
} catch (Exception e) {
policyInfo = # PolicyInfo |
try:
+ # Create or Update an A1 Policy Instance (putPolicy)
api_response = api_instance.put_policy(policyInfo)
pprint(api_response)
except ApiException as e:
<article id="api-AuthorizationAPI-performAccessControl-0" data-group="User" data-name="performAccessControl" data-version="0">
<div class="pull-left">
<h1>performAccessControl</h1>
- <p>Request for access authorization.</p>
+ <p>Callout request for access authorization (performAccessControl)</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
- <p class="marked">The authorization function decides if access is granted.</p>
+ <p class="marked">A template endpoint for callout requests to an external authorization function. The authorization function, if enabled, decides if individual operations are permitted.
+</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="post"><code><span class="pln">/example-authz-check</span></code></pre>
AuthorizationAPIApi *apiInstance = [[AuthorizationAPIApi alloc] init];
PolicyAuthorization *policyAuthorization = ; //
-// Request for access authorization.
+// Callout request for access authorization (performAccessControl)
[apiInstance performAccessControlWith:policyAuthorization
completionHandler: ^(authorization_result output, NSError* error) {
if (output) {
</div>
<div class="tab-pane" id="examples-AuthorizationAPI-performAccessControl-0-javascript">
- <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service');
+ <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api');
// Create an instance of the API class
-var api = new OnapCcsdkA1PolicyManagementService.AuthorizationAPIApi()
+var api = new OnapCcsdkPreSpecA1PolicyManagementApi.AuthorizationAPIApi()
var policyAuthorization = ; // {PolicyAuthorization}
var callback = function(error, data, response) {
var policyAuthorization = new PolicyAuthorization(); // PolicyAuthorization |
try {
- // Request for access authorization.
+ // Callout request for access authorization (performAccessControl)
authorization_result result = apiInstance.performAccessControl(policyAuthorization);
Debug.WriteLine(result);
} catch (Exception e) {
policyAuthorization = # PolicyAuthorization |
try:
- # Request for access authorization.
+ # Callout request for access authorization (performAccessControl)
api_response = api_instance.perform_access_control(policyAuthorization)
pprint(api_response)
except ApiException as e:
<article id="api-Configuration-getConfiguration-0" data-group="User" data-name="getConfiguration" data-version="0">
<div class="pull-left">
<h1>getConfiguration</h1>
- <p></p>
+ <p>Get the Application Configuration (getConfiguration)</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
- <p class="marked">Returns the contents of the application configuration file</p>
+ <p class="marked">Returns the entire contents of the Application Configuration.</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/a1-policy/v2/configuration</span></code></pre>
// Create an instance of the API class
ConfigurationApi *apiInstance = [[ConfigurationApi alloc] init];
+// Get the Application Configuration (getConfiguration)
[apiInstance getConfigurationWithCompletionHandler:
^('String' output, NSError* error) {
if (output) {
</div>
<div class="tab-pane" id="examples-Configuration-getConfiguration-0-javascript">
- <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service');
+ <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api');
// Create an instance of the API class
-var api = new OnapCcsdkA1PolicyManagementService.ConfigurationApi()
+var api = new OnapCcsdkPreSpecA1PolicyManagementApi.ConfigurationApi()
var callback = function(error, data, response) {
if (error) {
console.error(error);
var apiInstance = new ConfigurationApi();
try {
+ // Get the Application Configuration (getConfiguration)
'String' result = apiInstance.getConfiguration();
Debug.WriteLine(result);
} catch (Exception e) {
api_instance = openapi_client.ConfigurationApi()
try:
+ # Get the Application Configuration (getConfiguration)
api_response = api_instance.get_configuration()
pprint(api_response)
except ApiException as e:
<article id="api-Configuration-putConfiguration-0" data-group="User" data-name="putConfiguration" data-version="0">
<div class="pull-left">
<h1>putConfiguration</h1>
- <p></p>
+ <p>Set/Replace the Application Configuration (putConfiguration)</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
- <p class="marked">Replace the current configuration with the given configuration</p>
+ <p class="marked">Replace the current Application Configuration with a new configuration. The new configuration, if accepted, will take effect after a short delay. The new configuration must comply with the Application Configuration schema, which can be found from the the Application Documentation (Developer Guide)
+</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="put"><code><span class="pln">/a1-policy/v2/configuration</span></code></pre>
ConfigurationApi *apiInstance = [[ConfigurationApi alloc] init];
Object *body = Object; //
+// Set/Replace the Application Configuration (putConfiguration)
[apiInstance putConfigurationWith:body
completionHandler: ^(Object output, NSError* error) {
if (output) {
</div>
<div class="tab-pane" id="examples-Configuration-putConfiguration-0-javascript">
- <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service');
+ <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api');
// Create an instance of the API class
-var api = new OnapCcsdkA1PolicyManagementService.ConfigurationApi()
+var api = new OnapCcsdkPreSpecA1PolicyManagementApi.ConfigurationApi()
var body = Object; // {Object}
var callback = function(error, data, response) {
var body = Object; // Object |
try {
+ // Set/Replace the Application Configuration (putConfiguration)
Object result = apiInstance.putConfiguration(body);
Debug.WriteLine(result);
} catch (Exception e) {
body = Object # Object |
try:
+ # Set/Replace the Application Configuration (putConfiguration)
api_response = api_instance.put_configuration(body)
pprint(api_response)
except ApiException as e:
<article id="api-HealthCheck-getStatus-0" data-group="User" data-name="getStatus" data-version="0">
<div class="pull-left">
<h1>getStatus</h1>
- <p></p>
+ <p>Get Status (getStatus)</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
// Create an instance of the API class
HealthCheckApi *apiInstance = [[HealthCheckApi alloc] init];
+// Get Status (getStatus)
[apiInstance getStatusWithCompletionHandler:
^(status_info output, NSError* error) {
if (output) {
</div>
<div class="tab-pane" id="examples-HealthCheck-getStatus-0-javascript">
- <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service');
+ <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api');
// Create an instance of the API class
-var api = new OnapCcsdkA1PolicyManagementService.HealthCheckApi()
+var api = new OnapCcsdkPreSpecA1PolicyManagementApi.HealthCheckApi()
var callback = function(error, data, response) {
if (error) {
console.error(error);
var apiInstance = new HealthCheckApi();
try {
+ // Get Status (getStatus)
status_info result = apiInstance.getStatus();
Debug.WriteLine(result);
} catch (Exception e) {
api_instance = openapi_client.HealthCheckApi()
try:
+ # Get Status (getStatus)
api_response = api_instance.get_status()
pprint(api_response)
except ApiException as e:
<article id="api-HealthCheck-getStatusV1-0" data-group="User" data-name="getStatusV1" data-version="0">
<div class="pull-left">
<h1>getStatusV1</h1>
- <p></p>
+ <p>Get Status (getStatusV1)</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
// Create an instance of the API class
HealthCheckApi *apiInstance = [[HealthCheckApi alloc] init];
+// Get Status (getStatusV1)
[apiInstance getStatusV1WithCompletionHandler:
^('String' output, NSError* error) {
if (output) {
</div>
<div class="tab-pane" id="examples-HealthCheck-getStatusV1-0-javascript">
- <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service');
+ <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api');
// Create an instance of the API class
-var api = new OnapCcsdkA1PolicyManagementService.HealthCheckApi()
+var api = new OnapCcsdkPreSpecA1PolicyManagementApi.HealthCheckApi()
var callback = function(error, data, response) {
if (error) {
console.error(error);
var apiInstance = new HealthCheckApi();
try {
+ // Get Status (getStatusV1)
'String' result = apiInstance.getStatusV1();
Debug.WriteLine(result);
} catch (Exception e) {
api_instance = openapi_client.HealthCheckApi()
try:
+ # Get Status (getStatusV1)
api_response = api_instance.get_status_v1()
pprint(api_response)
except ApiException as e:
<article id="api-NearRTRICRepository-getRic-0" data-group="User" data-name="getRic" data-version="0">
<div class="pull-left">
<h1>getRic</h1>
- <p>Returns info of Near-RT RIC queried by the ric-id and managed-element-id</p>
+ <p>Get a Near-RT RIC (getRic)</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
- <p class="marked">Either a Near-RT RIC identity or a Managed Element identity can be specified.<br>The intention with Managed Element identity is the ID used in O1 for accessing the traffical element (such as the ID of CU).</p>
+ <p class="marked">Query information about a Near-RT RIC. Either a Near-RT RIC identity or a Managed Element identity can be specified. The intention with Managed Element identity is the ID used in O1 for accessing the traffical element (such as the ID of CU).
+</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/a1-policy/v2/rics/ric</span></code></pre>
// Create an instance of the API class
NearRTRICRepositoryApi apiInstance = new NearRTRICRepositoryApi();
String managedElementId = managedElementId_example; // String | The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned.
+
String ricId = ricId_example; // String | The identity of a Near-RT RIC to get information for.
try {
final api_instance = DefaultApi();
final String managedElementId = new String(); // String | The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned.
+
final String ricId = new String(); // String | The identity of a Near-RT RIC to get information for.
try {
public static void main(String[] args) {
NearRTRICRepositoryApi apiInstance = new NearRTRICRepositoryApi();
String managedElementId = managedElementId_example; // String | The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned.
+
String ricId = ricId_example; // String | The identity of a Near-RT RIC to get information for.
try {
// Create an instance of the API class
NearRTRICRepositoryApi *apiInstance = [[NearRTRICRepositoryApi alloc] init];
-String *managedElementId = managedElementId_example; // The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned. (optional) (default to null)
+String *managedElementId = managedElementId_example; // The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned.
+ (optional) (default to null)
String *ricId = ricId_example; // The identity of a Near-RT RIC to get information for. (optional) (default to null)
-// Returns info of Near-RT RIC queried by the ric-id and managed-element-id
+// Get a Near-RT RIC (getRic)
[apiInstance getRicWith:managedElementId
ricId:ricId
completionHandler: ^(ric_info output, NSError* error) {
</div>
<div class="tab-pane" id="examples-NearRTRICRepository-getRic-0-javascript">
- <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service');
+ <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api');
// Create an instance of the API class
-var api = new OnapCcsdkA1PolicyManagementService.NearRTRICRepositoryApi()
+var api = new OnapCcsdkPreSpecA1PolicyManagementApi.NearRTRICRepositoryApi()
var opts = {
'managedElementId': managedElementId_example, // {String} The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned.
+
'ricId': ricId_example // {String} The identity of a Near-RT RIC to get information for.
};
// Create an instance of the API class
var apiInstance = new NearRTRICRepositoryApi();
- var managedElementId = managedElementId_example; // String | The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned. (optional) (default to null)
+ var managedElementId = managedElementId_example; // String | The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned.
+ (optional) (default to null)
var ricId = ricId_example; // String | The identity of a Near-RT RIC to get information for. (optional) (default to null)
try {
- // Returns info of Near-RT RIC queried by the ric-id and managed-element-id
+ // Get a Near-RT RIC (getRic)
ric_info result = apiInstance.getRic(managedElementId, ricId);
Debug.WriteLine(result);
} catch (Exception e) {
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\NearRTRICRepositoryApi();
$managedElementId = managedElementId_example; // String | The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned.
+
$ricId = ricId_example; // String | The identity of a Near-RT RIC to get information for.
try {
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::NearRTRICRepositoryApi->new();
my $managedElementId = managedElementId_example; # String | The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned.
+
my $ricId = ricId_example; # String | The identity of a Near-RT RIC to get information for.
eval {
# Create an instance of the API class
api_instance = openapi_client.NearRTRICRepositoryApi()
-managedElementId = managedElementId_example # String | The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned. (optional) (default to null)
+managedElementId = managedElementId_example # String | The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned.
+ (optional) (default to null)
ricId = ricId_example # String | The identity of a Near-RT RIC to get information for. (optional) (default to null)
try:
- # Returns info of Near-RT RIC queried by the ric-id and managed-element-id
+ # Get a Near-RT RIC (getRic)
api_response = api_instance.get_ric(managedElementId=managedElementId, ricId=ricId)
pprint(api_response)
except ApiException as e:
<div class="inner description marked">
The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned.
+
</div>
</div>
</div>
<article id="api-NearRTRICRepository-getRics-0" data-group="User" data-name="getRics" data-version="0">
<div class="pull-left">
<h1>getRics</h1>
- <p>Query Near-RT RIC information</p>
+ <p>Get Near-RT RICs for A1 Policy Type (getRics)</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
- <p class="marked">The call returns all Near-RT RICs that supports a given policy type identity</p>
+ <p class="marked">Get all Near-RT RICs that supports a given A1 Policy Type ID</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/a1-policy/v2/rics</span></code></pre>
// Create an instance of the API class
NearRTRICRepositoryApi apiInstance = new NearRTRICRepositoryApi();
- String policytypeId = policytypeId_example; // String | The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned
+ String policytypeId = policytypeId_example; // String | The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned.
+
try {
ric_info_list result = apiInstance.getRics(policytypeId);
final api_instance = DefaultApi();
-final String policytypeId = new String(); // String | The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned
+final String policytypeId = new String(); // String | The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned.
+
try {
final result = await api_instance.getRics(policytypeId);
public class NearRTRICRepositoryApiExample {
public static void main(String[] args) {
NearRTRICRepositoryApi apiInstance = new NearRTRICRepositoryApi();
- String policytypeId = policytypeId_example; // String | The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned
+ String policytypeId = policytypeId_example; // String | The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned.
+
try {
ric_info_list result = apiInstance.getRics(policytypeId);
// Create an instance of the API class
NearRTRICRepositoryApi *apiInstance = [[NearRTRICRepositoryApi alloc] init];
-String *policytypeId = policytypeId_example; // The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned (optional) (default to null)
+String *policytypeId = policytypeId_example; // The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned.
+ (optional) (default to null)
-// Query Near-RT RIC information
+// Get Near-RT RICs for A1 Policy Type (getRics)
[apiInstance getRicsWith:policytypeId
completionHandler: ^(ric_info_list output, NSError* error) {
if (output) {
</div>
<div class="tab-pane" id="examples-NearRTRICRepository-getRics-0-javascript">
- <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service');
+ <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api');
// Create an instance of the API class
-var api = new OnapCcsdkA1PolicyManagementService.NearRTRICRepositoryApi()
+var api = new OnapCcsdkPreSpecA1PolicyManagementApi.NearRTRICRepositoryApi()
var opts = {
- 'policytypeId': policytypeId_example // {String} The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned
+ 'policytypeId': policytypeId_example // {String} The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned.
+
};
var callback = function(error, data, response) {
// Create an instance of the API class
var apiInstance = new NearRTRICRepositoryApi();
- var policytypeId = policytypeId_example; // String | The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned (optional) (default to null)
+ var policytypeId = policytypeId_example; // String | The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned.
+ (optional) (default to null)
try {
- // Query Near-RT RIC information
+ // Get Near-RT RICs for A1 Policy Type (getRics)
ric_info_list result = apiInstance.getRics(policytypeId);
Debug.WriteLine(result);
} catch (Exception e) {
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\NearRTRICRepositoryApi();
-$policytypeId = policytypeId_example; // String | The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned
+$policytypeId = policytypeId_example; // String | The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned.
+
try {
$result = $api_instance->getRics($policytypeId);
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::NearRTRICRepositoryApi->new();
-my $policytypeId = policytypeId_example; # String | The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned
+my $policytypeId = policytypeId_example; # String | The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned.
+
eval {
my $result = $api_instance->getRics(policytypeId => $policytypeId);
# Create an instance of the API class
api_instance = openapi_client.NearRTRICRepositoryApi()
-policytypeId = policytypeId_example # String | The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned (optional) (default to null)
+policytypeId = policytypeId_example # String | The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned.
+ (optional) (default to null)
try:
- # Query Near-RT RIC information
+ # Get Near-RT RICs for A1 Policy Type (getRics)
api_response = api_instance.get_rics(policytypeId=policytypeId)
pprint(api_response)
except ApiException as e:
</span>
<div class="inner description marked">
-The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned
+The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned.
+
</div>
</div>
</div>
<article id="api-ServiceRegistryAndSupervision-deleteService-0" data-group="User" data-name="deleteService" data-version="0">
<div class="pull-left">
<h1>deleteService</h1>
- <p></p>
+ <p>Unregister a Service (deleteService)</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
- <p class="marked">Unregister a service</p>
+ <p class="marked">Unregister a registered Service using its service ID. Only registered services can be unregistered. All A1 Policy Instances for the previously registered service will be removed.
+</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="delete"><code><span class="pln">/a1-policy/v2/services/{service_id}</span></code></pre>
ServiceRegistryAndSupervisionApi *apiInstance = [[ServiceRegistryAndSupervisionApi alloc] init];
String *serviceId = serviceId_example; // (default to null)
+// Unregister a Service (deleteService)
[apiInstance deleteServiceWith:serviceId
completionHandler: ^(Object output, NSError* error) {
if (output) {
</div>
<div class="tab-pane" id="examples-ServiceRegistryAndSupervision-deleteService-0-javascript">
- <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service');
+ <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api');
// Create an instance of the API class
-var api = new OnapCcsdkA1PolicyManagementService.ServiceRegistryAndSupervisionApi()
+var api = new OnapCcsdkPreSpecA1PolicyManagementApi.ServiceRegistryAndSupervisionApi()
var serviceId = serviceId_example; // {String}
var callback = function(error, data, response) {
var serviceId = serviceId_example; // String | (default to null)
try {
+ // Unregister a Service (deleteService)
Object result = apiInstance.deleteService(serviceId);
Debug.WriteLine(result);
} catch (Exception e) {
serviceId = serviceId_example # String | (default to null)
try:
+ # Unregister a Service (deleteService)
api_response = api_instance.delete_service(serviceId)
pprint(api_response)
except ApiException as e:
<article id="api-ServiceRegistryAndSupervision-getServices-0" data-group="User" data-name="getServices" data-version="0">
<div class="pull-left">
<h1>getServices</h1>
- <p>Returns service information</p>
+ <p>Get Services (getServices)</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
- <p class="marked">Either information about a registered service with given identity or all registered services are returned.</p>
+ <p class="marked">Get information about all registered services, or a single registered service. If the service ID of a registered service is included in the query, information about that service is returned. Otherwise Information about all registered is returned. This operation does not retrieve information about unregistered services.
+</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/a1-policy/v2/services</span></code></pre>
// Create an instance of the API class
ServiceRegistryAndSupervisionApi apiInstance = new ServiceRegistryAndSupervisionApi();
- String serviceId = serviceId_example; // String | The identity of the service
+ String serviceId = serviceId_example; // String | The identity of the registered service
try {
service_status_list result = apiInstance.getServices(serviceId);
final api_instance = DefaultApi();
-final String serviceId = new String(); // String | The identity of the service
+final String serviceId = new String(); // String | The identity of the registered service
try {
final result = await api_instance.getServices(serviceId);
public class ServiceRegistryAndSupervisionApiExample {
public static void main(String[] args) {
ServiceRegistryAndSupervisionApi apiInstance = new ServiceRegistryAndSupervisionApi();
- String serviceId = serviceId_example; // String | The identity of the service
+ String serviceId = serviceId_example; // String | The identity of the registered service
try {
service_status_list result = apiInstance.getServices(serviceId);
// Create an instance of the API class
ServiceRegistryAndSupervisionApi *apiInstance = [[ServiceRegistryAndSupervisionApi alloc] init];
-String *serviceId = serviceId_example; // The identity of the service (optional) (default to null)
+String *serviceId = serviceId_example; // The identity of the registered service (optional) (default to null)
-// Returns service information
+// Get Services (getServices)
[apiInstance getServicesWith:serviceId
completionHandler: ^(service_status_list output, NSError* error) {
if (output) {
</div>
<div class="tab-pane" id="examples-ServiceRegistryAndSupervision-getServices-0-javascript">
- <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service');
+ <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api');
// Create an instance of the API class
-var api = new OnapCcsdkA1PolicyManagementService.ServiceRegistryAndSupervisionApi()
+var api = new OnapCcsdkPreSpecA1PolicyManagementApi.ServiceRegistryAndSupervisionApi()
var opts = {
- 'serviceId': serviceId_example // {String} The identity of the service
+ 'serviceId': serviceId_example // {String} The identity of the registered service
};
var callback = function(error, data, response) {
// Create an instance of the API class
var apiInstance = new ServiceRegistryAndSupervisionApi();
- var serviceId = serviceId_example; // String | The identity of the service (optional) (default to null)
+ var serviceId = serviceId_example; // String | The identity of the registered service (optional) (default to null)
try {
- // Returns service information
+ // Get Services (getServices)
service_status_list result = apiInstance.getServices(serviceId);
Debug.WriteLine(result);
} catch (Exception e) {
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ServiceRegistryAndSupervisionApi();
-$serviceId = serviceId_example; // String | The identity of the service
+$serviceId = serviceId_example; // String | The identity of the registered service
try {
$result = $api_instance->getServices($serviceId);
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ServiceRegistryAndSupervisionApi->new();
-my $serviceId = serviceId_example; # String | The identity of the service
+my $serviceId = serviceId_example; # String | The identity of the registered service
eval {
my $result = $api_instance->getServices(serviceId => $serviceId);
# Create an instance of the API class
api_instance = openapi_client.ServiceRegistryAndSupervisionApi()
-serviceId = serviceId_example # String | The identity of the service (optional) (default to null)
+serviceId = serviceId_example # String | The identity of the registered service (optional) (default to null)
try:
- # Returns service information
+ # Get Services (getServices)
api_response = api_instance.get_services(serviceId=serviceId)
pprint(api_response)
except ApiException as e:
</span>
<div class="inner description marked">
-The identity of the service
+The identity of the registered service
</div>
</div>
</div>
<article id="api-ServiceRegistryAndSupervision-keepAliveService-0" data-group="User" data-name="keepAliveService" data-version="0">
<div class="pull-left">
<h1>keepAliveService</h1>
- <p>Heartbeat indicates that the service is running</p>
+ <p>Heartbeat message from a service (keepAliveService)</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
- <p class="marked">A registered service should invoke this operation regularly to indicate that it is still alive. If a registered service fails to invoke this operation before the end of a timeout period the service will be deregistered and all its A1 policies wil be removed. (This timeout can be set or disabled when each service is initially registered)</p>
+ <p class="marked">A registered service should invoke this operation regularly to indicate that it is still alive. If a registered service fails to invoke some operation, or this operation, before the end of a timeout period the service will be deregistered and all its A1 policies wil be removed. This operation is only intended for registered services. (This timeout can be set or disabled when each service is initially registered)</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="put"><code><span class="pln">/a1-policy/v2/services/{service_id}/keepalive</span></code></pre>
ServiceRegistryAndSupervisionApi *apiInstance = [[ServiceRegistryAndSupervisionApi alloc] init];
String *serviceId = serviceId_example; // (default to null)
-// Heartbeat indicates that the service is running
+// Heartbeat message from a service (keepAliveService)
[apiInstance keepAliveServiceWith:serviceId
completionHandler: ^(Object output, NSError* error) {
if (output) {
</div>
<div class="tab-pane" id="examples-ServiceRegistryAndSupervision-keepAliveService-0-javascript">
- <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service');
+ <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api');
// Create an instance of the API class
-var api = new OnapCcsdkA1PolicyManagementService.ServiceRegistryAndSupervisionApi()
+var api = new OnapCcsdkPreSpecA1PolicyManagementApi.ServiceRegistryAndSupervisionApi()
var serviceId = serviceId_example; // {String}
var callback = function(error, data, response) {
var serviceId = serviceId_example; // String | (default to null)
try {
- // Heartbeat indicates that the service is running
+ // Heartbeat message from a service (keepAliveService)
Object result = apiInstance.keepAliveService(serviceId);
Debug.WriteLine(result);
} catch (Exception e) {
serviceId = serviceId_example # String | (default to null)
try:
- # Heartbeat indicates that the service is running
+ # Heartbeat message from a service (keepAliveService)
api_response = api_instance.keep_alive_service(serviceId)
pprint(api_response)
except ApiException as e:
<article id="api-ServiceRegistryAndSupervision-putService-0" data-group="User" data-name="putService" data-version="0">
<div class="pull-left">
<h1>putService</h1>
- <p>Register a service</p>
+ <p>Register or update a Service (putService)</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
- <p class="marked">Registering a service is needed to:<ul><li>Get callbacks about available NearRT RICs.</li><li>Activate supervision of the service. If a service is inactive, its policies will automatically be deleted.</li></ul>Policies can be created even if the service is not registerred. This is a feature which it is optional to use.</p>
+ <p class="marked">Register a single service, or update a previous registtration. Service registration is required to get callbacks about available NearRT RICs and to enable supervision of the service's active status. If a registered service becomes inactive, its policies can be automatically deleted. A1 Policy instances can also be created for unregistered services. If an unregistered service is later registered, the service's policies are retained when the service becomes registered. This feature is optional to use.
+</p>
<p></p>
<br />
<pre class="prettyprint language-html prettyprinted" data-type="put"><code><span class="pln">/a1-policy/v2/services</span></code></pre>
ServiceRegistryAndSupervisionApi *apiInstance = [[ServiceRegistryAndSupervisionApi alloc] init];
ServiceRegistrationInfo *serviceRegistrationInfo = ; //
-// Register a service
+// Register or update a Service (putService)
[apiInstance putServiceWith:serviceRegistrationInfo
completionHandler: ^(Object output, NSError* error) {
if (output) {
</div>
<div class="tab-pane" id="examples-ServiceRegistryAndSupervision-putService-0-javascript">
- <pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementService = require('onap_ccsdk_a1_policy_management_service');
+ <pre class="prettyprint"><code class="language-js">var OnapCcsdkPreSpecA1PolicyManagementApi = require('onap_ccsdk_pre_spec_a1_policy_management_api');
// Create an instance of the API class
-var api = new OnapCcsdkA1PolicyManagementService.ServiceRegistryAndSupervisionApi()
+var api = new OnapCcsdkPreSpecA1PolicyManagementApi.ServiceRegistryAndSupervisionApi()
var serviceRegistrationInfo = ; // {ServiceRegistrationInfo}
var callback = function(error, data, response) {
var serviceRegistrationInfo = new ServiceRegistrationInfo(); // ServiceRegistrationInfo |
try {
- // Register a service
+ // Register or update a Service (putService)
Object result = apiInstance.putService(serviceRegistrationInfo);
Debug.WriteLine(result);
} catch (Exception e) {
serviceRegistrationInfo = # ServiceRegistrationInfo |
try:
- # Register a service
+ # Register or update a Service (putService)
api_response = api_instance.put_service(serviceRegistrationInfo)
pprint(api_response)
except ApiException as e:
<div class="app-desc">Information URL: <a href="https://www.onap.org/">https://www.onap.org/</a></div>
<div class="app-desc">Contact Info: <a href="discuss-list@onap.com">discuss-list@onap.com</a></div>
</p>
- <div class="license-info">Copyright (C) 2020-2023 Nordix Foundation, and Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved. Licensed under the Apache 2 License.</div>
+ <div class="license-info">Copyright (C) 2020-2023 Nordix Foundation, and Copyright (C) 2024-2025 OpenInfra Foundation Europe.
+All rights reserved. Licensed under the Apache 2 License.
+</div>
<div class="license-url">http://www.apache.org/licenses/LICENSE-2.0</div>
</div>
</div>
<li data-group="A1PolicyManagement" data-name="deletePolicy" class="">
<a href="#api-A1PolicyManagement-deletePolicy">deletePolicy</a>
</li>
- <li data-group="A1PolicyManagement" data-name="getAllPolicies" class="">
- <a href="#api-A1PolicyManagement-getAllPolicies">getAllPolicies</a>
- </li>
<li data-group="A1PolicyManagement" data-name="getPolicy" class="">
<a href="#api-A1PolicyManagement-getPolicy">getPolicy</a>
</li>
+ <li data-group="A1PolicyManagement" data-name="getPolicyIds" class="">
+ <a href="#api-A1PolicyManagement-getPolicyIds">getPolicyIds</a>
+ </li>
<li data-group="A1PolicyManagement" data-name="getPolicyStatus" class="">
<a href="#api-A1PolicyManagement-getPolicyStatus">getPolicyStatus</a>
</li>
<li data-group="A1PolicyManagement" data-name="getPolicyTypes" class="">
<a href="#api-A1PolicyManagement-getPolicyTypes">getPolicyTypes</a>
</li>
- <li data-group="A1PolicyManagement" data-name="putPolicy" class="">
- <a href="#api-A1PolicyManagement-putPolicy">putPolicy</a>
+ <li data-group="A1PolicyManagement" data-name="updatePolicy" class="">
+ <a href="#api-A1PolicyManagement-updatePolicy">updatePolicy</a>
</li>
</ul>
</nav>
<div class="app-desc">Version: 1.0.0</div>
<hr>
<div id="app-description" class="app-desc">
- <h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides a REST API for managing A1 policies. <br/>This document describes the latest API set to perform tasks for: </p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring and maintaining consistency of the SMO view of A1 Policies and the Near-RT RICs</li><li>Maintaining a view of each Near-RT RIC's supported A1 Policy Types</li><li>Supervision of registered services (rApps). When a registered service is unavailable, its policies are removed.</li></ul><h2>APIs provided or defined by the service</h2> <p>Note: parts of this API are strongly based on extracts of the O-RAN Alliance R1 Interface specification for A1 Policy Management, and those parts should be considered '� O-RAN ALLIANCE - All rights reserved.'</p> <h3>A1 Policy Management</h3> <p>This is the latest API for managing A1 Policies. This API is partially compliant with O-RAN Alliance R1 Interface specifications for A1 Policy Management:</p><ul><li>A1 Policy retrieval, creation, modification and deletion.</li><li>Retrieval of supported A1 Policy Types for a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management of configuration</h3><p>API for updating and retrieval of the component configuration. Note that there other ways to maintain the configuration.</p><h3>Service Callbacks</h3><p>These are endpoints that are invoked by this service. The callbacks are registered in this service at service registration.</p><h3>NearRT-RIC Repository (Older version)</h3> <p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy is targeted towards one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision of the A1 Policy Management Service.</p><h3>Service Registry and Supervision</h3> <p>API used for registering services/clients/rApps. Each A1 Policy can be tagged with an owner. If the owner service is registered, then the service can be optionally monitored by a heart-beat supervision mechanism, and if the registered service becomes unavailable, then it is removed and all its A1 Policies are deleted. Note that services do not need to be registered to create A1 Policies, but unregistered services are not supervised. This is a feature that is optional to use.</p>
+ <h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides a REST API for managing A1 policies. <br/>This document describes the latest API set to perform tasks for: </p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring and maintaining consistency of the SMO view of A1 Policies and the Near-RT RICs</li><li>Maintaining a view of each Near-RT RIC's supported A1 Policy Types</li><li>Supervision of registered services (rApps). When a registered service is unavailable, its policies are removed.</li></ul><h2>APIs provided or defined by the service</h2> <p>Note: parts of this API are strongly based on extracts of the O-RAN Alliance R1 Interface specification for A1 Policy Management, and those parts should be considered '© O-RAN ALLIANCE - All rights reserved.'</p> <h3>A1 Policy Management</h3> <p>This is the latest API for managing A1 Policies. This API is partially compliant with O-RAN Alliance R1 Interface specifications for A1 Policy Management:</p><ul><li>A1 Policy retrieval, creation, modification and deletion.</li><li>Retrieval of supported A1 Policy Types for a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management of configuration</h3><p>API for updating and retrieval of the component configuration. Note that there other ways to maintain the configuration.</p><h3>Service Callbacks</h3><p>These are endpoints that are invoked by this service. The callbacks are registered in this service at service registration.</p><h3>NearRT-RIC Repository (Older version)</h3> <p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy is targeted towards one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision of the A1 Policy Management Service.</p><h3>Service Registry and Supervision</h3> <p>API used for registering services/clients/rApps. Each A1 Policy can be tagged with an owner. If the owner service is registered, then the service can be optionally monitored by a heart-beat supervision mechanism, and if the registered service becomes unavailable, then it is removed and all its A1 Policies are deleted. Note that services do not need to be registered to create A1 Policies, but unregistered services are not supervised. This is a feature that is optional to use.</p>
</div>
</div>
</article>
</div>
<hr>
- <div id="api-A1PolicyManagement-getAllPolicies">
- <article id="api-A1PolicyManagement-getAllPolicies-0" data-group="User" data-name="getAllPolicies" data-version="0">
+ <div id="api-A1PolicyManagement-getPolicy">
+ <article id="api-A1PolicyManagement-getPolicy-0" data-group="User" data-name="getPolicy" data-version="0">
<div class="pull-left">
- <h1>getAllPolicies</h1>
- <p>Query for A1 Policy instances (getAllPolicies)</p>
+ <h1>getPolicy</h1>
+ <p>Get an A1 Policy's policy data (getPolicy)</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
- <p class="marked">Returns a collection of A1 Policy Instance IDs for policies that match given search criteria. If several query parameters are defined, the policies matching all conditions are returned.
-</p>
+ <p class="marked">Get an A1 Policy instance's policy data using its policy ID</p>
<p></p>
<br />
- <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/policies</span></code></pre>
+ <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/policies/{policyId}</span></code></pre>
<p>
<h3>Usage and SDK Samples</h3>
</p>
<ul class="nav nav-tabs nav-tabs-examples">
- <li class="active"><a href="#examples-A1PolicyManagement-getAllPolicies-0-curl">Curl</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-java">Java</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-dart">Dart</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-android">Android</a></li>
- <!--<li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-groovy">Groovy</a></li>-->
- <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-objc">Obj-C</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-javascript">JavaScript</a></li>
- <!--<li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-angular">Angular</a></li>-->
- <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-csharp">C#</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-php">PHP</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-perl">Perl</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-python">Python</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-rust">Rust</a></li>
+ <li class="active"><a href="#examples-A1PolicyManagement-getPolicy-0-curl">Curl</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-java">Java</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-dart">Dart</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-android">Android</a></li>
+ <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-groovy">Groovy</a></li>-->
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-objc">Obj-C</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-javascript">JavaScript</a></li>
+ <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-angular">Angular</a></li>-->
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-csharp">C#</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-php">PHP</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-perl">Perl</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-python">Python</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
- <div class="tab-pane active" id="examples-A1PolicyManagement-getAllPolicies-0-curl">
+ <div class="tab-pane active" id="examples-A1PolicyManagement-getPolicy-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X GET \
-H "Accept: application/json,application/problem+json" \
- "https://example.com/a1-policy-management/v1/policies?policyTypeId=policyTypeId_example&nearRtRicId=nearRtRicId_example&serviceId=serviceId_example&typeName=typeName_example"
+ "https://example.com/a1-policy-management/v1/policies/{policyId}"
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-java">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
// Create an instance of the API class
A1PolicyManagementApi apiInstance = new A1PolicyManagementApi();
- String policyTypeId = policyTypeId_example; // String | Select policies with a given A1 Policy Type ID.
- String nearRtRicId = nearRtRicId_example; // String | Select policies for a given Near-RT RIC identity.
- String serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered).
- String typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
+ String policyId = policyId_example; // String |
String accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
try {
- array[PolicyInformation] result = apiInstance.getAllPolicies(policyTypeId, nearRtRicId, serviceId, typeName, accept);
+ Object result = apiInstance.getPolicy(policyId, accept);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling A1PolicyManagementApi#getAllPolicies");
+ System.err.println("Exception when calling A1PolicyManagementApi#getPolicy");
e.printStackTrace();
}
}
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-dart">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-dart">
<pre class="prettyprint"><code class="language-dart">import 'package:openapi/api.dart';
final api_instance = DefaultApi();
-final String policyTypeId = new String(); // String | Select policies with a given A1 Policy Type ID.
-final String nearRtRicId = new String(); // String | Select policies for a given Near-RT RIC identity.
-final String serviceId = new String(); // String | Select policies owned by a given service (registered or unregistered).
-final String typeName = new String(); // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
+final String policyId = new String(); // String |
final String accept = new String(); // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
try {
- final result = await api_instance.getAllPolicies(policyTypeId, nearRtRicId, serviceId, typeName, accept);
+ final result = await api_instance.getPolicy(policyId, accept);
print(result);
} catch (e) {
- print('Exception when calling DefaultApi->getAllPolicies: $e\n');
+ print('Exception when calling DefaultApi->getPolicy: $e\n');
}
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-android">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.A1PolicyManagementApi;
public class A1PolicyManagementApiExample {
public static void main(String[] args) {
A1PolicyManagementApi apiInstance = new A1PolicyManagementApi();
- String policyTypeId = policyTypeId_example; // String | Select policies with a given A1 Policy Type ID.
- String nearRtRicId = nearRtRicId_example; // String | Select policies for a given Near-RT RIC identity.
- String serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered).
- String typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
+ String policyId = policyId_example; // String |
String accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
try {
- array[PolicyInformation] result = apiInstance.getAllPolicies(policyTypeId, nearRtRicId, serviceId, typeName, accept);
+ Object result = apiInstance.getPolicy(policyId, accept);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling A1PolicyManagementApi#getAllPolicies");
+ System.err.println("Exception when calling A1PolicyManagementApi#getPolicy");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
- <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-groovy">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
- <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-objc">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-objc">
<pre class="prettyprint"><code class="language-cpp">
// Create an instance of the API class
A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init];
-String *policyTypeId = policyTypeId_example; // Select policies with a given A1 Policy Type ID. (optional) (default to null)
-String *nearRtRicId = nearRtRicId_example; // Select policies for a given Near-RT RIC identity. (optional) (default to null)
-String *serviceId = serviceId_example; // Select policies owned by a given service (registered or unregistered). (optional) (default to null)
-String *typeName = typeName_example; // Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). (optional) (default to null)
+String *policyId = policyId_example; // (default to null)
String *accept = application/json; // Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. (optional) (default to null)
-// Query for A1 Policy instances (getAllPolicies)
-[apiInstance getAllPoliciesWith:policyTypeId
- nearRtRicId:nearRtRicId
- serviceId:serviceId
- typeName:typeName
+// Get an A1 Policy's policy data (getPolicy)
+[apiInstance getPolicyWith:policyId
accept:accept
- completionHandler: ^(array[PolicyInformation] output, NSError* error) {
+ completionHandler: ^(Object output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-javascript">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-javascript">
<pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api');
// Create an instance of the API class
var api = new OnapCcsdkA1PolicyManagementApi.A1PolicyManagementApi()
+var policyId = policyId_example; // {String}
var opts = {
- 'policyTypeId': policyTypeId_example, // {String} Select policies with a given A1 Policy Type ID.
- 'nearRtRicId': nearRtRicId_example, // {String} Select policies for a given Near-RT RIC identity.
- 'serviceId': serviceId_example, // {String} Select policies owned by a given service (registered or unregistered).
- 'typeName': typeName_example, // {String} Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
'accept': application/json // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
};
console.log('API called successfully. Returned data: ' + data);
}
};
-api.getAllPolicies(opts, callback);
+api.getPolicy(policyId, opts, callback);
</code></pre>
</div>
- <!--<div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-angular">
+ <!--<div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
- <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-csharp">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
namespace Example
{
- public class getAllPoliciesExample
+ public class getPolicyExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new A1PolicyManagementApi();
- var policyTypeId = policyTypeId_example; // String | Select policies with a given A1 Policy Type ID. (optional) (default to null)
- var nearRtRicId = nearRtRicId_example; // String | Select policies for a given Near-RT RIC identity. (optional) (default to null)
- var serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered). (optional) (default to null)
- var typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). (optional) (default to null)
+ var policyId = policyId_example; // String | (default to null)
var accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. (optional) (default to null)
try {
- // Query for A1 Policy instances (getAllPolicies)
- array[PolicyInformation] result = apiInstance.getAllPolicies(policyTypeId, nearRtRicId, serviceId, typeName, accept);
+ // Get an A1 Policy's policy data (getPolicy)
+ Object result = apiInstance.getPolicy(policyId, accept);
Debug.WriteLine(result);
} catch (Exception e) {
- Debug.Print("Exception when calling A1PolicyManagementApi.getAllPolicies: " + e.Message );
+ Debug.Print("Exception when calling A1PolicyManagementApi.getPolicy: " + e.Message );
}
}
}
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-php">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-php">
<pre class="prettyprint"><code class="language-php"><?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\A1PolicyManagementApi();
-$policyTypeId = policyTypeId_example; // String | Select policies with a given A1 Policy Type ID.
-$nearRtRicId = nearRtRicId_example; // String | Select policies for a given Near-RT RIC identity.
-$serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered).
-$typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
+$policyId = policyId_example; // String |
$accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
try {
- $result = $api_instance->getAllPolicies($policyTypeId, $nearRtRicId, $serviceId, $typeName, $accept);
+ $result = $api_instance->getPolicy($policyId, $accept);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling A1PolicyManagementApi->getAllPolicies: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling A1PolicyManagementApi->getPolicy: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-perl">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::A1PolicyManagementApi;
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::A1PolicyManagementApi->new();
-my $policyTypeId = policyTypeId_example; # String | Select policies with a given A1 Policy Type ID.
-my $nearRtRicId = nearRtRicId_example; # String | Select policies for a given Near-RT RIC identity.
-my $serviceId = serviceId_example; # String | Select policies owned by a given service (registered or unregistered).
-my $typeName = typeName_example; # String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
+my $policyId = policyId_example; # String |
my $accept = application/json; # String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
eval {
- my $result = $api_instance->getAllPolicies(policyTypeId => $policyTypeId, nearRtRicId => $nearRtRicId, serviceId => $serviceId, typeName => $typeName, accept => $accept);
+ my $result = $api_instance->getPolicy(policyId => $policyId, accept => $accept);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling A1PolicyManagementApi->getAllPolicies: $@\n";
+ warn "Exception when calling A1PolicyManagementApi->getPolicy: $@\n";
}</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-python">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
# Create an instance of the API class
api_instance = openapi_client.A1PolicyManagementApi()
-policyTypeId = policyTypeId_example # String | Select policies with a given A1 Policy Type ID. (optional) (default to null)
-nearRtRicId = nearRtRicId_example # String | Select policies for a given Near-RT RIC identity. (optional) (default to null)
-serviceId = serviceId_example # String | Select policies owned by a given service (registered or unregistered). (optional) (default to null)
-typeName = typeName_example # String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). (optional) (default to null)
+policyId = policyId_example # String | (default to null)
accept = application/json # String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. (optional) (default to null)
try:
- # Query for A1 Policy instances (getAllPolicies)
- api_response = api_instance.get_all_policies(policyTypeId=policyTypeId, nearRtRicId=nearRtRicId, serviceId=serviceId, typeName=typeName, accept=accept)
+ # Get an A1 Policy's policy data (getPolicy)
+ api_response = api_instance.get_policy(policyId, accept=accept)
pprint(api_response)
except ApiException as e:
- print("Exception when calling A1PolicyManagementApi->getAllPolicies: %s\n" % e)</code></pre>
+ print("Exception when calling A1PolicyManagementApi->getPolicy: %s\n" % e)</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-rust">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate A1PolicyManagementApi;
pub fn main() {
- let policyTypeId = policyTypeId_example; // String
- let nearRtRicId = nearRtRicId_example; // String
- let serviceId = serviceId_example; // String
- let typeName = typeName_example; // String
+ let policyId = policyId_example; // String
let accept = application/json; // String
let mut context = A1PolicyManagementApi::Context::default();
- let result = client.getAllPolicies(policyTypeId, nearRtRicId, serviceId, typeName, accept, &context).wait();
+ let result = client.getPolicy(policyId, accept, &context).wait();
println!("{:?}", result);
}
<h2>Parameters</h2>
-
- <div class="methodsubtabletitle">Header parameters</div>
+ <div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
- <tr>
- <th width="150px">Name</th>
- <th>Description</th>
- </tr>
- <tr><td style="width:150px;">Accept</td>
+ <tr>
+ <th width="150px">Name</th>
+ <th>Description</th>
+ </tr>
+ <tr><td style="width:150px;">policyId*</td>
<td>
- <div id="d2e199_getAllPolicies_accept">
+ <div id="d2e199_getPolicy_policyId">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
- <div class="inner description marked">
-Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
- </div>
</div>
+ <div class="inner required">
+ Required
+ </div>
</div>
</div>
</td>
</table>
-
-
- <div class="methodsubtabletitle">Query parameters</div>
+ <div class="methodsubtabletitle">Header parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
- <tr><td style="width:150px;">policyTypeId</td>
-<td>
-
-
- <div id="d2e199_getAllPolicies_policyTypeId">
- <div class="json-schema-view">
- <div class="primitive">
- <span class="type">
- String
- </span>
-
- <div class="inner description marked">
-Select policies with a given A1 Policy Type ID.
- </div>
- </div>
- </div>
- </div>
-</td>
-</tr>
-
- <tr><td style="width:150px;">nearRtRicId</td>
-<td>
-
-
- <div id="d2e199_getAllPolicies_nearRtRicId">
- <div class="json-schema-view">
- <div class="primitive">
- <span class="type">
- String
- </span>
-
- <div class="inner description marked">
-Select policies for a given Near-RT RIC identity.
- </div>
- </div>
- </div>
- </div>
-</td>
-</tr>
-
- <tr><td style="width:150px;">serviceId</td>
+ <tr><td style="width:150px;">Accept</td>
<td>
- <div id="d2e199_getAllPolicies_serviceId">
+ <div id="d2e199_getPolicy_accept">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
</span>
<div class="inner description marked">
-Select policies owned by a given service (registered or unregistered).
+Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
</div>
</div>
</div>
</td>
</tr>
- <tr><td style="width:150px;">typeName</td>
-<td>
-
+ </table>
- <div id="d2e199_getAllPolicies_typeName">
- <div class="json-schema-view">
- <div class="primitive">
- <span class="type">
- String
- </span>
- <div class="inner description marked">
-Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
- </div>
- </div>
- </div>
- </div>
-</td>
-</tr>
- </table>
<h2>Responses</h2>
- <h3 id="examples-A1PolicyManagement-getAllPolicies-title-200"></h3>
- <p id="examples-A1PolicyManagement-getAllPolicies-description-200" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicy-title-200"></h3>
+ <p id="examples-A1PolicyManagement-getPolicy-description-200" class="marked"></p>
<script>
- var responseA1PolicyManagement200_description = `OK - Policy identities`;
+ var responseA1PolicyManagement200_description = `OK - Policy found`;
var responseA1PolicyManagement200_description_break = responseA1PolicyManagement200_description.indexOf('\n');
if (responseA1PolicyManagement200_description_break == -1) {
- $("#examples-A1PolicyManagement-getAllPolicies-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description);
+ $("#examples-A1PolicyManagement-getPolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description);
} else {
- $("#examples-A1PolicyManagement-getAllPolicies-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break));
- $("#examples-A1PolicyManagement-getAllPolicies-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getAllPolicies-200" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicy-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-200-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-200-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-200-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-200-schema">
- <div id="responses-A1PolicyManagement-getAllPolicies-schema-200" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-200-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-200-schema">
+ <div id="responses-A1PolicyManagement-getPolicy-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
- "description" : "OK - Policy identities",
+ "description" : "OK - Policy found",
"content" : {
"application/json" : {
"schema" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/components/schemas/PolicyInformation"
+ "$ref" : "#/components/schemas/PolicyObject"
+ },
+ "examples" : {
+ "policyObject" : {
+ "$ref" : "#/components/examples/PolicyObject"
}
}
}
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getAllPolicies-200-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-200');
+ $('#responses-A1PolicyManagement-getPolicy-200-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicy-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getAllPolicies-200-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicy-200-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getAllPolicies-title-400"></h3>
- <p id="examples-A1PolicyManagement-getAllPolicies-description-400" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicy-title-400"></h3>
+ <p id="examples-A1PolicyManagement-getPolicy-description-400" class="marked"></p>
<script>
var responseA1PolicyManagement400_description = `Bad Request`;
var responseA1PolicyManagement400_description_break = responseA1PolicyManagement400_description.indexOf('\n');
if (responseA1PolicyManagement400_description_break == -1) {
- $("#examples-A1PolicyManagement-getAllPolicies-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description);
+ $("#examples-A1PolicyManagement-getPolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description);
} else {
- $("#examples-A1PolicyManagement-getAllPolicies-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break));
- $("#examples-A1PolicyManagement-getAllPolicies-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getAllPolicies-400" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicy-400" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-400-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-400-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-400-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-400-schema">
- <div id="responses-A1PolicyManagement-getAllPolicies-schema-400" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-400-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-400-schema">
+ <div id="responses-A1PolicyManagement-getPolicy-schema-400" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getAllPolicies-400-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-400');
+ $('#responses-A1PolicyManagement-getPolicy-400-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicy-schema-400');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getAllPolicies-400-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicy-400-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getAllPolicies-title-401"></h3>
- <p id="examples-A1PolicyManagement-getAllPolicies-description-401" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicy-title-401"></h3>
+ <p id="examples-A1PolicyManagement-getPolicy-description-401" class="marked"></p>
<script>
var responseA1PolicyManagement401_description = `Unauthorized`;
var responseA1PolicyManagement401_description_break = responseA1PolicyManagement401_description.indexOf('\n');
if (responseA1PolicyManagement401_description_break == -1) {
- $("#examples-A1PolicyManagement-getAllPolicies-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description);
+ $("#examples-A1PolicyManagement-getPolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description);
} else {
- $("#examples-A1PolicyManagement-getAllPolicies-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break));
- $("#examples-A1PolicyManagement-getAllPolicies-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getAllPolicies-401" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicy-401" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-401-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-401-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-401-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-401-schema">
- <div id="responses-A1PolicyManagement-getAllPolicies-schema-401" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-401-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-401-schema">
+ <div id="responses-A1PolicyManagement-getPolicy-schema-401" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getAllPolicies-401-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-401');
+ $('#responses-A1PolicyManagement-getPolicy-401-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicy-schema-401');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getAllPolicies-401-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicy-401-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getAllPolicies-title-403"></h3>
- <p id="examples-A1PolicyManagement-getAllPolicies-description-403" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicy-title-403"></h3>
+ <p id="examples-A1PolicyManagement-getPolicy-description-403" class="marked"></p>
<script>
var responseA1PolicyManagement403_description = `Forbidden`;
var responseA1PolicyManagement403_description_break = responseA1PolicyManagement403_description.indexOf('\n');
if (responseA1PolicyManagement403_description_break == -1) {
- $("#examples-A1PolicyManagement-getAllPolicies-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description);
+ $("#examples-A1PolicyManagement-getPolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description);
} else {
- $("#examples-A1PolicyManagement-getAllPolicies-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break));
- $("#examples-A1PolicyManagement-getAllPolicies-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getAllPolicies-403" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicy-403" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-403-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-403-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-403-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-403-schema">
- <div id="responses-A1PolicyManagement-getAllPolicies-schema-403" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-403-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-403-schema">
+ <div id="responses-A1PolicyManagement-getPolicy-schema-403" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getAllPolicies-403-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-403');
+ $('#responses-A1PolicyManagement-getPolicy-403-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicy-schema-403');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getAllPolicies-403-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicy-403-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getAllPolicies-title-404"></h3>
- <p id="examples-A1PolicyManagement-getAllPolicies-description-404" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicy-title-404"></h3>
+ <p id="examples-A1PolicyManagement-getPolicy-description-404" class="marked"></p>
<script>
var responseA1PolicyManagement404_description = `Not Found`;
var responseA1PolicyManagement404_description_break = responseA1PolicyManagement404_description.indexOf('\n');
if (responseA1PolicyManagement404_description_break == -1) {
- $("#examples-A1PolicyManagement-getAllPolicies-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description);
+ $("#examples-A1PolicyManagement-getPolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description);
} else {
- $("#examples-A1PolicyManagement-getAllPolicies-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break));
- $("#examples-A1PolicyManagement-getAllPolicies-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getAllPolicies-404" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicy-404" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-404-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-404-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-404-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-404-schema">
- <div id="responses-A1PolicyManagement-getAllPolicies-schema-404" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-404-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-404-schema">
+ <div id="responses-A1PolicyManagement-getPolicy-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getAllPolicies-404-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-404');
+ $('#responses-A1PolicyManagement-getPolicy-404-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicy-schema-404');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getAllPolicies-404-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicy-404-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getAllPolicies-title-406"></h3>
- <p id="examples-A1PolicyManagement-getAllPolicies-description-406" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicy-title-406"></h3>
+ <p id="examples-A1PolicyManagement-getPolicy-description-406" class="marked"></p>
<script>
var responseA1PolicyManagement406_description = `Not Acceptable`;
var responseA1PolicyManagement406_description_break = responseA1PolicyManagement406_description.indexOf('\n');
if (responseA1PolicyManagement406_description_break == -1) {
- $("#examples-A1PolicyManagement-getAllPolicies-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description);
+ $("#examples-A1PolicyManagement-getPolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description);
} else {
- $("#examples-A1PolicyManagement-getAllPolicies-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break));
- $("#examples-A1PolicyManagement-getAllPolicies-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getAllPolicies-406" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicy-406" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-406-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-406-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-406-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-406-schema">
- <div id="responses-A1PolicyManagement-getAllPolicies-schema-406" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-406-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-406-schema">
+ <div id="responses-A1PolicyManagement-getPolicy-schema-406" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getAllPolicies-406-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-406');
+ $('#responses-A1PolicyManagement-getPolicy-406-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicy-schema-406');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getAllPolicies-406-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicy-406-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getAllPolicies-title-429"></h3>
- <p id="examples-A1PolicyManagement-getAllPolicies-description-429" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicy-title-429"></h3>
+ <p id="examples-A1PolicyManagement-getPolicy-description-429" class="marked"></p>
<script>
var responseA1PolicyManagement429_description = `Too Many Requests`;
var responseA1PolicyManagement429_description_break = responseA1PolicyManagement429_description.indexOf('\n');
if (responseA1PolicyManagement429_description_break == -1) {
- $("#examples-A1PolicyManagement-getAllPolicies-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description);
+ $("#examples-A1PolicyManagement-getPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description);
} else {
- $("#examples-A1PolicyManagement-getAllPolicies-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break));
- $("#examples-A1PolicyManagement-getAllPolicies-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getAllPolicies-429" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicy-429" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-429-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-429-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-429-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-429-schema">
- <div id="responses-A1PolicyManagement-getAllPolicies-schema-429" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-429-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-429-schema">
+ <div id="responses-A1PolicyManagement-getPolicy-schema-429" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getAllPolicies-429-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-429');
+ $('#responses-A1PolicyManagement-getPolicy-429-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicy-schema-429');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getAllPolicies-429-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicy-429-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getAllPolicies-title-500"></h3>
- <p id="examples-A1PolicyManagement-getAllPolicies-description-500" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicy-title-500"></h3>
+ <p id="examples-A1PolicyManagement-getPolicy-description-500" class="marked"></p>
<script>
var responseA1PolicyManagement500_description = `Internal Server Error`;
var responseA1PolicyManagement500_description_break = responseA1PolicyManagement500_description.indexOf('\n');
if (responseA1PolicyManagement500_description_break == -1) {
- $("#examples-A1PolicyManagement-getAllPolicies-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description);
+ $("#examples-A1PolicyManagement-getPolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description);
} else {
- $("#examples-A1PolicyManagement-getAllPolicies-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break));
- $("#examples-A1PolicyManagement-getAllPolicies-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getAllPolicies-500" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicy-500" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-500-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-500-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-500-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-500-schema">
- <div id="responses-A1PolicyManagement-getAllPolicies-schema-500" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-500-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-500-schema">
+ <div id="responses-A1PolicyManagement-getPolicy-schema-500" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getAllPolicies-500-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-500');
+ $('#responses-A1PolicyManagement-getPolicy-500-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicy-schema-500');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getAllPolicies-500-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicy-500-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getAllPolicies-title-502"></h3>
- <p id="examples-A1PolicyManagement-getAllPolicies-description-502" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicy-title-502"></h3>
+ <p id="examples-A1PolicyManagement-getPolicy-description-502" class="marked"></p>
<script>
var responseA1PolicyManagement502_description = `Bad Gateway`;
var responseA1PolicyManagement502_description_break = responseA1PolicyManagement502_description.indexOf('\n');
if (responseA1PolicyManagement502_description_break == -1) {
- $("#examples-A1PolicyManagement-getAllPolicies-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description);
+ $("#examples-A1PolicyManagement-getPolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description);
} else {
- $("#examples-A1PolicyManagement-getAllPolicies-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break));
- $("#examples-A1PolicyManagement-getAllPolicies-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getAllPolicies-502" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicy-502" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-502-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-502-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-502-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-502-schema">
- <div id="responses-A1PolicyManagement-getAllPolicies-schema-502" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-502-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-502-schema">
+ <div id="responses-A1PolicyManagement-getPolicy-schema-502" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getAllPolicies-502-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-502');
+ $('#responses-A1PolicyManagement-getPolicy-502-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicy-schema-502');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getAllPolicies-502-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicy-502-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getAllPolicies-title-503"></h3>
- <p id="examples-A1PolicyManagement-getAllPolicies-description-503" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicy-title-503"></h3>
+ <p id="examples-A1PolicyManagement-getPolicy-description-503" class="marked"></p>
<script>
var responseA1PolicyManagement503_description = `Service Unavailable`;
var responseA1PolicyManagement503_description_break = responseA1PolicyManagement503_description.indexOf('\n');
if (responseA1PolicyManagement503_description_break == -1) {
- $("#examples-A1PolicyManagement-getAllPolicies-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description);
+ $("#examples-A1PolicyManagement-getPolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description);
} else {
- $("#examples-A1PolicyManagement-getAllPolicies-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break));
- $("#examples-A1PolicyManagement-getAllPolicies-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getAllPolicies-503" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicy-503" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-503-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-503-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-503-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-503-schema">
- <div id="responses-A1PolicyManagement-getAllPolicies-schema-503" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-503-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-503-schema">
+ <div id="responses-A1PolicyManagement-getPolicy-schema-503" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getAllPolicies-503-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-503');
+ $('#responses-A1PolicyManagement-getPolicy-503-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicy-schema-503');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getAllPolicies-503-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicy-503-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
- <div id="api-A1PolicyManagement-getPolicy">
- <article id="api-A1PolicyManagement-getPolicy-0" data-group="User" data-name="getPolicy" data-version="0">
+ <div id="api-A1PolicyManagement-getPolicyIds">
+ <article id="api-A1PolicyManagement-getPolicyIds-0" data-group="User" data-name="getPolicyIds" data-version="0">
<div class="pull-left">
- <h1>getPolicy</h1>
- <p>Get an A1 Policy's policy data (getPolicy)</p>
+ <h1>getPolicyIds</h1>
+ <p>Query for A1 Policy instances (getPolicyIds)</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
- <p class="marked">Get an A1 Policy instance's policy data using its policy ID</p>
+ <p class="marked">Returns a collection of A1 Policy Instance IDs for policies that match given search criteria. If several query parameters are defined, the policies matching all conditions are returned.
+</p>
<p></p>
<br />
- <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/policies/{policyId}</span></code></pre>
+ <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/policies</span></code></pre>
<p>
<h3>Usage and SDK Samples</h3>
</p>
<ul class="nav nav-tabs nav-tabs-examples">
- <li class="active"><a href="#examples-A1PolicyManagement-getPolicy-0-curl">Curl</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-java">Java</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-dart">Dart</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-android">Android</a></li>
- <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-groovy">Groovy</a></li>-->
- <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-objc">Obj-C</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-javascript">JavaScript</a></li>
- <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-angular">Angular</a></li>-->
- <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-csharp">C#</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-php">PHP</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-perl">Perl</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-python">Python</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-rust">Rust</a></li>
+ <li class="active"><a href="#examples-A1PolicyManagement-getPolicyIds-0-curl">Curl</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-java">Java</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-dart">Dart</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-android">Android</a></li>
+ <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-groovy">Groovy</a></li>-->
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-objc">Obj-C</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-javascript">JavaScript</a></li>
+ <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-angular">Angular</a></li>-->
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-csharp">C#</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-php">PHP</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-perl">Perl</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-python">Python</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
- <div class="tab-pane active" id="examples-A1PolicyManagement-getPolicy-0-curl">
+ <div class="tab-pane active" id="examples-A1PolicyManagement-getPolicyIds-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X GET \
-H "Accept: application/json,application/problem+json" \
- "https://example.com/a1-policy-management/v1/policies/{policyId}"
+ "https://example.com/a1-policy-management/v1/policies?policyTypeId=policyTypeId_example&nearRtRicId=nearRtRicId_example&serviceId=serviceId_example&typeName=typeName_example"
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-java">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
// Create an instance of the API class
A1PolicyManagementApi apiInstance = new A1PolicyManagementApi();
- String policyId = policyId_example; // String |
+ String policyTypeId = policyTypeId_example; // String | Select policies with a given A1 Policy Type ID.
+ String nearRtRicId = nearRtRicId_example; // String | Select policies for a given Near-RT RIC identity.
+ String serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered).
+ String typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
String accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
try {
- Object result = apiInstance.getPolicy(policyId, accept);
+ array[PolicyInformation] result = apiInstance.getPolicyIds(policyTypeId, nearRtRicId, serviceId, typeName, accept);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling A1PolicyManagementApi#getPolicy");
+ System.err.println("Exception when calling A1PolicyManagementApi#getPolicyIds");
e.printStackTrace();
}
}
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-dart">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-dart">
<pre class="prettyprint"><code class="language-dart">import 'package:openapi/api.dart';
final api_instance = DefaultApi();
-final String policyId = new String(); // String |
+final String policyTypeId = new String(); // String | Select policies with a given A1 Policy Type ID.
+final String nearRtRicId = new String(); // String | Select policies for a given Near-RT RIC identity.
+final String serviceId = new String(); // String | Select policies owned by a given service (registered or unregistered).
+final String typeName = new String(); // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
final String accept = new String(); // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
try {
- final result = await api_instance.getPolicy(policyId, accept);
+ final result = await api_instance.getPolicyIds(policyTypeId, nearRtRicId, serviceId, typeName, accept);
print(result);
} catch (e) {
- print('Exception when calling DefaultApi->getPolicy: $e\n');
+ print('Exception when calling DefaultApi->getPolicyIds: $e\n');
}
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-android">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.A1PolicyManagementApi;
public class A1PolicyManagementApiExample {
public static void main(String[] args) {
A1PolicyManagementApi apiInstance = new A1PolicyManagementApi();
- String policyId = policyId_example; // String |
+ String policyTypeId = policyTypeId_example; // String | Select policies with a given A1 Policy Type ID.
+ String nearRtRicId = nearRtRicId_example; // String | Select policies for a given Near-RT RIC identity.
+ String serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered).
+ String typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
String accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
try {
- Object result = apiInstance.getPolicy(policyId, accept);
+ array[PolicyInformation] result = apiInstance.getPolicyIds(policyTypeId, nearRtRicId, serviceId, typeName, accept);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling A1PolicyManagementApi#getPolicy");
+ System.err.println("Exception when calling A1PolicyManagementApi#getPolicyIds");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
- <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-groovy">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
- <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-objc">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-objc">
<pre class="prettyprint"><code class="language-cpp">
// Create an instance of the API class
A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init];
-String *policyId = policyId_example; // (default to null)
+String *policyTypeId = policyTypeId_example; // Select policies with a given A1 Policy Type ID. (optional) (default to null)
+String *nearRtRicId = nearRtRicId_example; // Select policies for a given Near-RT RIC identity. (optional) (default to null)
+String *serviceId = serviceId_example; // Select policies owned by a given service (registered or unregistered). (optional) (default to null)
+String *typeName = typeName_example; // Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). (optional) (default to null)
String *accept = application/json; // Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. (optional) (default to null)
-// Get an A1 Policy's policy data (getPolicy)
-[apiInstance getPolicyWith:policyId
+// Query for A1 Policy instances (getPolicyIds)
+[apiInstance getPolicyIdsWith:policyTypeId
+ nearRtRicId:nearRtRicId
+ serviceId:serviceId
+ typeName:typeName
accept:accept
- completionHandler: ^(Object output, NSError* error) {
+ completionHandler: ^(array[PolicyInformation] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-javascript">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-javascript">
<pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api');
// Create an instance of the API class
var api = new OnapCcsdkA1PolicyManagementApi.A1PolicyManagementApi()
-var policyId = policyId_example; // {String}
var opts = {
+ 'policyTypeId': policyTypeId_example, // {String} Select policies with a given A1 Policy Type ID.
+ 'nearRtRicId': nearRtRicId_example, // {String} Select policies for a given Near-RT RIC identity.
+ 'serviceId': serviceId_example, // {String} Select policies owned by a given service (registered or unregistered).
+ 'typeName': typeName_example, // {String} Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
'accept': application/json // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
};
console.log('API called successfully. Returned data: ' + data);
}
};
-api.getPolicy(policyId, opts, callback);
+api.getPolicyIds(opts, callback);
</code></pre>
</div>
- <!--<div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-angular">
+ <!--<div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
- <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-csharp">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
namespace Example
{
- public class getPolicyExample
+ public class getPolicyIdsExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new A1PolicyManagementApi();
- var policyId = policyId_example; // String | (default to null)
+ var policyTypeId = policyTypeId_example; // String | Select policies with a given A1 Policy Type ID. (optional) (default to null)
+ var nearRtRicId = nearRtRicId_example; // String | Select policies for a given Near-RT RIC identity. (optional) (default to null)
+ var serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered). (optional) (default to null)
+ var typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). (optional) (default to null)
var accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. (optional) (default to null)
try {
- // Get an A1 Policy's policy data (getPolicy)
- Object result = apiInstance.getPolicy(policyId, accept);
+ // Query for A1 Policy instances (getPolicyIds)
+ array[PolicyInformation] result = apiInstance.getPolicyIds(policyTypeId, nearRtRicId, serviceId, typeName, accept);
Debug.WriteLine(result);
} catch (Exception e) {
- Debug.Print("Exception when calling A1PolicyManagementApi.getPolicy: " + e.Message );
+ Debug.Print("Exception when calling A1PolicyManagementApi.getPolicyIds: " + e.Message );
}
}
}
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-php">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-php">
<pre class="prettyprint"><code class="language-php"><?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\A1PolicyManagementApi();
-$policyId = policyId_example; // String |
+$policyTypeId = policyTypeId_example; // String | Select policies with a given A1 Policy Type ID.
+$nearRtRicId = nearRtRicId_example; // String | Select policies for a given Near-RT RIC identity.
+$serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered).
+$typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
$accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
try {
- $result = $api_instance->getPolicy($policyId, $accept);
+ $result = $api_instance->getPolicyIds($policyTypeId, $nearRtRicId, $serviceId, $typeName, $accept);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling A1PolicyManagementApi->getPolicy: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling A1PolicyManagementApi->getPolicyIds: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-perl">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::A1PolicyManagementApi;
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::A1PolicyManagementApi->new();
-my $policyId = policyId_example; # String |
+my $policyTypeId = policyTypeId_example; # String | Select policies with a given A1 Policy Type ID.
+my $nearRtRicId = nearRtRicId_example; # String | Select policies for a given Near-RT RIC identity.
+my $serviceId = serviceId_example; # String | Select policies owned by a given service (registered or unregistered).
+my $typeName = typeName_example; # String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
my $accept = application/json; # String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
eval {
- my $result = $api_instance->getPolicy(policyId => $policyId, accept => $accept);
+ my $result = $api_instance->getPolicyIds(policyTypeId => $policyTypeId, nearRtRicId => $nearRtRicId, serviceId => $serviceId, typeName => $typeName, accept => $accept);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling A1PolicyManagementApi->getPolicy: $@\n";
+ warn "Exception when calling A1PolicyManagementApi->getPolicyIds: $@\n";
}</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-python">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
# Create an instance of the API class
api_instance = openapi_client.A1PolicyManagementApi()
-policyId = policyId_example # String | (default to null)
+policyTypeId = policyTypeId_example # String | Select policies with a given A1 Policy Type ID. (optional) (default to null)
+nearRtRicId = nearRtRicId_example # String | Select policies for a given Near-RT RIC identity. (optional) (default to null)
+serviceId = serviceId_example # String | Select policies owned by a given service (registered or unregistered). (optional) (default to null)
+typeName = typeName_example # String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). (optional) (default to null)
accept = application/json # String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. (optional) (default to null)
try:
- # Get an A1 Policy's policy data (getPolicy)
- api_response = api_instance.get_policy(policyId, accept=accept)
+ # Query for A1 Policy instances (getPolicyIds)
+ api_response = api_instance.get_policy_ids(policyTypeId=policyTypeId, nearRtRicId=nearRtRicId, serviceId=serviceId, typeName=typeName, accept=accept)
pprint(api_response)
except ApiException as e:
- print("Exception when calling A1PolicyManagementApi->getPolicy: %s\n" % e)</code></pre>
+ print("Exception when calling A1PolicyManagementApi->getPolicyIds: %s\n" % e)</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-rust">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate A1PolicyManagementApi;
pub fn main() {
- let policyId = policyId_example; // String
+ let policyTypeId = policyTypeId_example; // String
+ let nearRtRicId = nearRtRicId_example; // String
+ let serviceId = serviceId_example; // String
+ let typeName = typeName_example; // String
let accept = application/json; // String
let mut context = A1PolicyManagementApi::Context::default();
- let result = client.getPolicy(policyId, accept, &context).wait();
+ let result = client.getPolicyIds(policyTypeId, nearRtRicId, serviceId, typeName, accept, &context).wait();
println!("{:?}", result);
}
<h2>Parameters</h2>
- <div class="methodsubtabletitle">Path parameters</div>
+
+ <div class="methodsubtabletitle">Header parameters</div>
<table id="methodsubtable">
- <tr>
- <th width="150px">Name</th>
- <th>Description</th>
- </tr>
- <tr><td style="width:150px;">policyId*</td>
+ <tr>
+ <th width="150px">Name</th>
+ <th>Description</th>
+ </tr>
+ <tr><td style="width:150px;">Accept</td>
<td>
- <div id="d2e199_getPolicy_policyId">
+ <div id="d2e199_getPolicyIds_accept">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
+ <div class="inner description marked">
+Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
+ </div>
</div>
- <div class="inner required">
- Required
- </div>
</div>
</div>
</td>
</table>
- <div class="methodsubtabletitle">Header parameters</div>
+
+
+ <div class="methodsubtabletitle">Query parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
- <tr><td style="width:150px;">Accept</td>
+ <tr><td style="width:150px;">policyTypeId</td>
<td>
- <div id="d2e199_getPolicy_accept">
+ <div id="d2e199_getPolicyIds_policyTypeId">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
</span>
<div class="inner description marked">
-Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
+Select policies with a given A1 Policy Type ID.
</div>
</div>
</div>
</td>
</tr>
- </table>
+ <tr><td style="width:150px;">nearRtRicId</td>
+<td>
+
+
+ <div id="d2e199_getPolicyIds_nearRtRicId">
+ <div class="json-schema-view">
+ <div class="primitive">
+ <span class="type">
+ String
+ </span>
+
+ <div class="inner description marked">
+Select policies for a given Near-RT RIC identity.
+ </div>
+ </div>
+ </div>
+ </div>
+</td>
+</tr>
+ <tr><td style="width:150px;">serviceId</td>
+<td>
+ <div id="d2e199_getPolicyIds_serviceId">
+ <div class="json-schema-view">
+ <div class="primitive">
+ <span class="type">
+ String
+ </span>
+
+ <div class="inner description marked">
+Select policies owned by a given service (registered or unregistered).
+ </div>
+ </div>
+ </div>
+ </div>
+</td>
+</tr>
+
+ <tr><td style="width:150px;">typeName</td>
+<td>
+
+
+ <div id="d2e199_getPolicyIds_typeName">
+ <div class="json-schema-view">
+ <div class="primitive">
+ <span class="type">
+ String
+ </span>
+
+ <div class="inner description marked">
+Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
+ </div>
+ </div>
+ </div>
+ </div>
+</td>
+</tr>
+
+ </table>
<h2>Responses</h2>
- <h3 id="examples-A1PolicyManagement-getPolicy-title-200"></h3>
- <p id="examples-A1PolicyManagement-getPolicy-description-200" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicyIds-title-200"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyIds-description-200" class="marked"></p>
<script>
- var responseA1PolicyManagement200_description = `OK - Policy found`;
+ var responseA1PolicyManagement200_description = `OK - Policy identities`;
var responseA1PolicyManagement200_description_break = responseA1PolicyManagement200_description.indexOf('\n');
if (responseA1PolicyManagement200_description_break == -1) {
- $("#examples-A1PolicyManagement-getPolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description);
+ $("#examples-A1PolicyManagement-getPolicyIds-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description);
} else {
- $("#examples-A1PolicyManagement-getPolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break));
- $("#examples-A1PolicyManagement-getPolicy-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getPolicy-200" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicyIds-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-200-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-200-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-200-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-200-schema">
- <div id="responses-A1PolicyManagement-getPolicy-schema-200" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-200-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-200-schema">
+ <div id="responses-A1PolicyManagement-getPolicyIds-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
- "description" : "OK - Policy found",
+ "description" : "OK - Policy identities",
"content" : {
"application/json" : {
"schema" : {
- "$ref" : "#/components/schemas/PolicyObject"
- },
- "examples" : {
- "policyObject" : {
- "$ref" : "#/components/examples/PolicyObject"
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/PolicyInformation"
}
}
}
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getPolicy-200-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getPolicy-schema-200');
+ $('#responses-A1PolicyManagement-getPolicyIds-200-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getPolicy-200-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicyIds-200-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getPolicy-title-400"></h3>
- <p id="examples-A1PolicyManagement-getPolicy-description-400" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicyIds-title-400"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyIds-description-400" class="marked"></p>
<script>
var responseA1PolicyManagement400_description = `Bad Request`;
var responseA1PolicyManagement400_description_break = responseA1PolicyManagement400_description.indexOf('\n');
if (responseA1PolicyManagement400_description_break == -1) {
- $("#examples-A1PolicyManagement-getPolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description);
+ $("#examples-A1PolicyManagement-getPolicyIds-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description);
} else {
- $("#examples-A1PolicyManagement-getPolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break));
- $("#examples-A1PolicyManagement-getPolicy-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getPolicy-400" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicyIds-400" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-400-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-400-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-400-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-400-schema">
- <div id="responses-A1PolicyManagement-getPolicy-schema-400" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-400-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-400-schema">
+ <div id="responses-A1PolicyManagement-getPolicyIds-schema-400" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getPolicy-400-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getPolicy-schema-400');
+ $('#responses-A1PolicyManagement-getPolicyIds-400-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-400');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getPolicy-400-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicyIds-400-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getPolicy-title-401"></h3>
- <p id="examples-A1PolicyManagement-getPolicy-description-401" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicyIds-title-401"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyIds-description-401" class="marked"></p>
<script>
var responseA1PolicyManagement401_description = `Unauthorized`;
var responseA1PolicyManagement401_description_break = responseA1PolicyManagement401_description.indexOf('\n');
if (responseA1PolicyManagement401_description_break == -1) {
- $("#examples-A1PolicyManagement-getPolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description);
+ $("#examples-A1PolicyManagement-getPolicyIds-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description);
} else {
- $("#examples-A1PolicyManagement-getPolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break));
- $("#examples-A1PolicyManagement-getPolicy-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getPolicy-401" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicyIds-401" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-401-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-401-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-401-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-401-schema">
- <div id="responses-A1PolicyManagement-getPolicy-schema-401" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-401-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-401-schema">
+ <div id="responses-A1PolicyManagement-getPolicyIds-schema-401" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getPolicy-401-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getPolicy-schema-401');
+ $('#responses-A1PolicyManagement-getPolicyIds-401-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-401');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getPolicy-401-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicyIds-401-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getPolicy-title-403"></h3>
- <p id="examples-A1PolicyManagement-getPolicy-description-403" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicyIds-title-403"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyIds-description-403" class="marked"></p>
<script>
var responseA1PolicyManagement403_description = `Forbidden`;
var responseA1PolicyManagement403_description_break = responseA1PolicyManagement403_description.indexOf('\n');
if (responseA1PolicyManagement403_description_break == -1) {
- $("#examples-A1PolicyManagement-getPolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description);
+ $("#examples-A1PolicyManagement-getPolicyIds-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description);
} else {
- $("#examples-A1PolicyManagement-getPolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break));
- $("#examples-A1PolicyManagement-getPolicy-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getPolicy-403" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicyIds-403" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-403-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-403-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-403-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-403-schema">
- <div id="responses-A1PolicyManagement-getPolicy-schema-403" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-403-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-403-schema">
+ <div id="responses-A1PolicyManagement-getPolicyIds-schema-403" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getPolicy-403-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getPolicy-schema-403');
+ $('#responses-A1PolicyManagement-getPolicyIds-403-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-403');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getPolicy-403-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicyIds-403-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getPolicy-title-404"></h3>
- <p id="examples-A1PolicyManagement-getPolicy-description-404" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicyIds-title-404"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyIds-description-404" class="marked"></p>
<script>
var responseA1PolicyManagement404_description = `Not Found`;
var responseA1PolicyManagement404_description_break = responseA1PolicyManagement404_description.indexOf('\n');
if (responseA1PolicyManagement404_description_break == -1) {
- $("#examples-A1PolicyManagement-getPolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description);
+ $("#examples-A1PolicyManagement-getPolicyIds-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description);
} else {
- $("#examples-A1PolicyManagement-getPolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break));
- $("#examples-A1PolicyManagement-getPolicy-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getPolicy-404" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicyIds-404" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-404-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-404-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-404-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-404-schema">
- <div id="responses-A1PolicyManagement-getPolicy-schema-404" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-404-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-404-schema">
+ <div id="responses-A1PolicyManagement-getPolicyIds-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getPolicy-404-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getPolicy-schema-404');
+ $('#responses-A1PolicyManagement-getPolicyIds-404-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-404');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getPolicy-404-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicyIds-404-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getPolicy-title-406"></h3>
- <p id="examples-A1PolicyManagement-getPolicy-description-406" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicyIds-title-406"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyIds-description-406" class="marked"></p>
<script>
var responseA1PolicyManagement406_description = `Not Acceptable`;
var responseA1PolicyManagement406_description_break = responseA1PolicyManagement406_description.indexOf('\n');
if (responseA1PolicyManagement406_description_break == -1) {
- $("#examples-A1PolicyManagement-getPolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description);
+ $("#examples-A1PolicyManagement-getPolicyIds-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description);
} else {
- $("#examples-A1PolicyManagement-getPolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break));
- $("#examples-A1PolicyManagement-getPolicy-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getPolicy-406" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicyIds-406" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-406-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-406-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-406-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-406-schema">
- <div id="responses-A1PolicyManagement-getPolicy-schema-406" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-406-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-406-schema">
+ <div id="responses-A1PolicyManagement-getPolicyIds-schema-406" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getPolicy-406-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getPolicy-schema-406');
+ $('#responses-A1PolicyManagement-getPolicyIds-406-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-406');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getPolicy-406-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicyIds-406-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getPolicy-title-429"></h3>
- <p id="examples-A1PolicyManagement-getPolicy-description-429" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicyIds-title-429"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyIds-description-429" class="marked"></p>
<script>
var responseA1PolicyManagement429_description = `Too Many Requests`;
var responseA1PolicyManagement429_description_break = responseA1PolicyManagement429_description.indexOf('\n');
if (responseA1PolicyManagement429_description_break == -1) {
- $("#examples-A1PolicyManagement-getPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description);
+ $("#examples-A1PolicyManagement-getPolicyIds-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description);
} else {
- $("#examples-A1PolicyManagement-getPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break));
- $("#examples-A1PolicyManagement-getPolicy-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getPolicy-429" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicyIds-429" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-429-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-429-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-429-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-429-schema">
- <div id="responses-A1PolicyManagement-getPolicy-schema-429" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-429-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-429-schema">
+ <div id="responses-A1PolicyManagement-getPolicyIds-schema-429" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getPolicy-429-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getPolicy-schema-429');
+ $('#responses-A1PolicyManagement-getPolicyIds-429-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-429');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getPolicy-429-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicyIds-429-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getPolicy-title-500"></h3>
- <p id="examples-A1PolicyManagement-getPolicy-description-500" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicyIds-title-500"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyIds-description-500" class="marked"></p>
<script>
var responseA1PolicyManagement500_description = `Internal Server Error`;
var responseA1PolicyManagement500_description_break = responseA1PolicyManagement500_description.indexOf('\n');
if (responseA1PolicyManagement500_description_break == -1) {
- $("#examples-A1PolicyManagement-getPolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description);
+ $("#examples-A1PolicyManagement-getPolicyIds-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description);
} else {
- $("#examples-A1PolicyManagement-getPolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break));
- $("#examples-A1PolicyManagement-getPolicy-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getPolicy-500" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicyIds-500" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-500-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-500-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-500-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-500-schema">
- <div id="responses-A1PolicyManagement-getPolicy-schema-500" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-500-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-500-schema">
+ <div id="responses-A1PolicyManagement-getPolicyIds-schema-500" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getPolicy-500-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getPolicy-schema-500');
+ $('#responses-A1PolicyManagement-getPolicyIds-500-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-500');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getPolicy-500-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicyIds-500-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getPolicy-title-502"></h3>
- <p id="examples-A1PolicyManagement-getPolicy-description-502" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicyIds-title-502"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyIds-description-502" class="marked"></p>
<script>
var responseA1PolicyManagement502_description = `Bad Gateway`;
var responseA1PolicyManagement502_description_break = responseA1PolicyManagement502_description.indexOf('\n');
if (responseA1PolicyManagement502_description_break == -1) {
- $("#examples-A1PolicyManagement-getPolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description);
+ $("#examples-A1PolicyManagement-getPolicyIds-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description);
} else {
- $("#examples-A1PolicyManagement-getPolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break));
- $("#examples-A1PolicyManagement-getPolicy-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getPolicy-502" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicyIds-502" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-502-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-502-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-502-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-502-schema">
- <div id="responses-A1PolicyManagement-getPolicy-schema-502" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-502-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-502-schema">
+ <div id="responses-A1PolicyManagement-getPolicyIds-schema-502" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getPolicy-502-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getPolicy-schema-502');
+ $('#responses-A1PolicyManagement-getPolicyIds-502-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-502');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getPolicy-502-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicyIds-502-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getPolicy-title-503"></h3>
- <p id="examples-A1PolicyManagement-getPolicy-description-503" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicyIds-title-503"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyIds-description-503" class="marked"></p>
<script>
var responseA1PolicyManagement503_description = `Service Unavailable`;
var responseA1PolicyManagement503_description_break = responseA1PolicyManagement503_description.indexOf('\n');
if (responseA1PolicyManagement503_description_break == -1) {
- $("#examples-A1PolicyManagement-getPolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description);
+ $("#examples-A1PolicyManagement-getPolicyIds-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description);
} else {
- $("#examples-A1PolicyManagement-getPolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break));
- $("#examples-A1PolicyManagement-getPolicy-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getPolicy-503" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicyIds-503" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-503-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-503-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-503-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-503-schema">
- <div id="responses-A1PolicyManagement-getPolicy-schema-503" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-503-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-503-schema">
+ <div id="responses-A1PolicyManagement-getPolicyIds-schema-503" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getPolicy-503-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getPolicy-schema-503');
+ $('#responses-A1PolicyManagement-getPolicyIds-503-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-503');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getPolicy-503-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicyIds-503-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</article>
</div>
<hr>
- <div id="api-A1PolicyManagement-putPolicy">
- <article id="api-A1PolicyManagement-putPolicy-0" data-group="User" data-name="putPolicy" data-version="0">
+ <div id="api-A1PolicyManagement-updatePolicy">
+ <article id="api-A1PolicyManagement-updatePolicy-0" data-group="User" data-name="updatePolicy" data-version="0">
<div class="pull-left">
- <h1>putPolicy</h1>
- <p>Update an A1 Policy's policy data (putPolicy)</p>
+ <h1>updatePolicy</h1>
+ <p>Update an A1 Policy's policy data (updatePolicy)</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<h3>Usage and SDK Samples</h3>
</p>
<ul class="nav nav-tabs nav-tabs-examples">
- <li class="active"><a href="#examples-A1PolicyManagement-putPolicy-0-curl">Curl</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-java">Java</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-dart">Dart</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-android">Android</a></li>
- <!--<li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-groovy">Groovy</a></li>-->
- <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-objc">Obj-C</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-javascript">JavaScript</a></li>
- <!--<li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-angular">Angular</a></li>-->
- <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-csharp">C#</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-php">PHP</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-perl">Perl</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-python">Python</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-rust">Rust</a></li>
+ <li class="active"><a href="#examples-A1PolicyManagement-updatePolicy-0-curl">Curl</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-java">Java</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-dart">Dart</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-android">Android</a></li>
+ <!--<li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-groovy">Groovy</a></li>-->
+ <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-objc">Obj-C</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-javascript">JavaScript</a></li>
+ <!--<li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-angular">Angular</a></li>-->
+ <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-csharp">C#</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-php">PHP</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-perl">Perl</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-python">Python</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
- <div class="tab-pane active" id="examples-A1PolicyManagement-putPolicy-0-curl">
+ <div class="tab-pane active" id="examples-A1PolicyManagement-updatePolicy-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X PUT \
-H "Accept: application/json,application/problem+json" \
-H "Content-Type: application/json" \
-d ''
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-java">
+ <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
Object body = Object; // Object |
try {
- Object result = apiInstance.putPolicy(policyId, body);
+ Object result = apiInstance.updatePolicy(policyId, body);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling A1PolicyManagementApi#putPolicy");
+ System.err.println("Exception when calling A1PolicyManagementApi#updatePolicy");
e.printStackTrace();
}
}
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-dart">
+ <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-dart">
<pre class="prettyprint"><code class="language-dart">import 'package:openapi/api.dart';
final api_instance = DefaultApi();
final Object body = new Object(); // Object |
try {
- final result = await api_instance.putPolicy(policyId, body);
+ final result = await api_instance.updatePolicy(policyId, body);
print(result);
} catch (e) {
- print('Exception when calling DefaultApi->putPolicy: $e\n');
+ print('Exception when calling DefaultApi->updatePolicy: $e\n');
}
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-android">
+ <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.A1PolicyManagementApi;
public class A1PolicyManagementApiExample {
Object body = Object; // Object |
try {
- Object result = apiInstance.putPolicy(policyId, body);
+ Object result = apiInstance.updatePolicy(policyId, body);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling A1PolicyManagementApi#putPolicy");
+ System.err.println("Exception when calling A1PolicyManagementApi#updatePolicy");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
- <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-groovy">
+ <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
- <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-objc">
+ <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-objc">
<pre class="prettyprint"><code class="language-cpp">
// Create an instance of the API class
String *policyId = policyId_example; // (default to null)
Object *body = Object; //
-// Update an A1 Policy's policy data (putPolicy)
-[apiInstance putPolicyWith:policyId
+// Update an A1 Policy's policy data (updatePolicy)
+[apiInstance updatePolicyWith:policyId
body:body
completionHandler: ^(Object output, NSError* error) {
if (output) {
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-javascript">
+ <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-javascript">
<pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api');
// Create an instance of the API class
console.log('API called successfully. Returned data: ' + data);
}
};
-api.putPolicy(policyId, body, callback);
+api.updatePolicy(policyId, body, callback);
</code></pre>
</div>
- <!--<div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-angular">
+ <!--<div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
- <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-csharp">
+ <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
namespace Example
{
- public class putPolicyExample
+ public class updatePolicyExample
{
public void main()
{
var body = Object; // Object |
try {
- // Update an A1 Policy's policy data (putPolicy)
- Object result = apiInstance.putPolicy(policyId, body);
+ // Update an A1 Policy's policy data (updatePolicy)
+ Object result = apiInstance.updatePolicy(policyId, body);
Debug.WriteLine(result);
} catch (Exception e) {
- Debug.Print("Exception when calling A1PolicyManagementApi.putPolicy: " + e.Message );
+ Debug.Print("Exception when calling A1PolicyManagementApi.updatePolicy: " + e.Message );
}
}
}
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-php">
+ <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-php">
<pre class="prettyprint"><code class="language-php"><?php
require_once(__DIR__ . '/vendor/autoload.php');
$body = Object; // Object |
try {
- $result = $api_instance->putPolicy($policyId, $body);
+ $result = $api_instance->updatePolicy($policyId, $body);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling A1PolicyManagementApi->putPolicy: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling A1PolicyManagementApi->updatePolicy: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-perl">
+ <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::A1PolicyManagementApi;
my $body = WWW::OPenAPIClient::Object::Object->new(); # Object |
eval {
- my $result = $api_instance->putPolicy(policyId => $policyId, body => $body);
+ my $result = $api_instance->updatePolicy(policyId => $policyId, body => $body);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling A1PolicyManagementApi->putPolicy: $@\n";
+ warn "Exception when calling A1PolicyManagementApi->updatePolicy: $@\n";
}</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-python">
+ <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
body = Object # Object |
try:
- # Update an A1 Policy's policy data (putPolicy)
- api_response = api_instance.put_policy(policyId, body)
+ # Update an A1 Policy's policy data (updatePolicy)
+ api_response = api_instance.update_policy(policyId, body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling A1PolicyManagementApi->putPolicy: %s\n" % e)</code></pre>
+ print("Exception when calling A1PolicyManagementApi->updatePolicy: %s\n" % e)</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-rust">
+ <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate A1PolicyManagementApi;
pub fn main() {
let body = Object; // Object
let mut context = A1PolicyManagementApi::Context::default();
- let result = client.putPolicy(policyId, body, &context).wait();
+ let result = client.updatePolicy(policyId, body, &context).wait();
println!("{:?}", result);
}
<td>
- <div id="d2e199_putPolicy_policyId">
+ <div id="d2e199_updatePolicy_policyId">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
}
var view = new JSONSchemaView(schema,2,{isBodyParam: true});
- var result = $('#d2e199_putPolicy_body');
+ var result = $('#d2e199_updatePolicy_body');
result.empty();
result.append(view.render());
});
</script>
-<div id="d2e199_putPolicy_body"></div>
+<div id="d2e199_updatePolicy_body"></div>
</td>
</tr>
<h2>Responses</h2>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-200"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-200" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-200"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-200" class="marked"></p>
<script>
var responseA1PolicyManagement200_description = `OK - Policy updated`;
var responseA1PolicyManagement200_description_break = responseA1PolicyManagement200_description.indexOf('\n');
if (responseA1PolicyManagement200_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-200" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-200-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-200-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-200-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-200-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-200" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-200-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-200-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-200-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-200');
+ $('#responses-A1PolicyManagement-updatePolicy-200-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-200-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-200-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-400"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-400" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-400"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-400" class="marked"></p>
<script>
var responseA1PolicyManagement400_description = `Bad Request`;
var responseA1PolicyManagement400_description_break = responseA1PolicyManagement400_description.indexOf('\n');
if (responseA1PolicyManagement400_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-400" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-400" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-400-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-400-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-400-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-400-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-400" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-400-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-400-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-400" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-400-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-400');
+ $('#responses-A1PolicyManagement-updatePolicy-400-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-400');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-400-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-400-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-401"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-401" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-401"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-401" class="marked"></p>
<script>
var responseA1PolicyManagement401_description = `Unauthorized`;
var responseA1PolicyManagement401_description_break = responseA1PolicyManagement401_description.indexOf('\n');
if (responseA1PolicyManagement401_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-401" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-401" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-401-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-401-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-401-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-401-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-401" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-401-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-401-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-401" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-401-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-401');
+ $('#responses-A1PolicyManagement-updatePolicy-401-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-401');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-401-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-401-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-403"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-403" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-403"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-403" class="marked"></p>
<script>
var responseA1PolicyManagement403_description = `Forbidden`;
var responseA1PolicyManagement403_description_break = responseA1PolicyManagement403_description.indexOf('\n');
if (responseA1PolicyManagement403_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-403" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-403" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-403-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-403-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-403-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-403-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-403" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-403-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-403-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-403" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-403-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-403');
+ $('#responses-A1PolicyManagement-updatePolicy-403-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-403');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-403-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-403-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-404"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-404" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-404"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-404" class="marked"></p>
<script>
var responseA1PolicyManagement404_description = `Not Found`;
var responseA1PolicyManagement404_description_break = responseA1PolicyManagement404_description.indexOf('\n');
if (responseA1PolicyManagement404_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-404" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-404" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-404-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-404-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-404-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-404-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-404" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-404-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-404-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-404-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-404');
+ $('#responses-A1PolicyManagement-updatePolicy-404-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-404');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-404-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-404-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-406"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-406" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-406"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-406" class="marked"></p>
<script>
var responseA1PolicyManagement406_description = `Not Acceptable`;
var responseA1PolicyManagement406_description_break = responseA1PolicyManagement406_description.indexOf('\n');
if (responseA1PolicyManagement406_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-406" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-406" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-406-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-406-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-406-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-406-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-406" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-406-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-406-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-406" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-406-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-406');
+ $('#responses-A1PolicyManagement-updatePolicy-406-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-406');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-406-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-406-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-411"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-411" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-411"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-411" class="marked"></p>
<script>
var responseA1PolicyManagement411_description = `Length Required`;
var responseA1PolicyManagement411_description_break = responseA1PolicyManagement411_description.indexOf('\n');
if (responseA1PolicyManagement411_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-411").text("Status: 411 - " + responseA1PolicyManagement411_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-411").text("Status: 411 - " + responseA1PolicyManagement411_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-411").text("Status: 411 - " + responseA1PolicyManagement411_description.substring(0, responseA1PolicyManagement411_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-411").html(responseA1PolicyManagement411_description.substring(responseA1PolicyManagement411_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-411").text("Status: 411 - " + responseA1PolicyManagement411_description.substring(0, responseA1PolicyManagement411_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-411").html(responseA1PolicyManagement411_description.substring(responseA1PolicyManagement411_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-411" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-411" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-411-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-411-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-411-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-411-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-411" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-411-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-411-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-411" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-411-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-411');
+ $('#responses-A1PolicyManagement-updatePolicy-411-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-411');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-411-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-411-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-413"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-413" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-413"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-413" class="marked"></p>
<script>
var responseA1PolicyManagement413_description = `Payload Too Large`;
var responseA1PolicyManagement413_description_break = responseA1PolicyManagement413_description.indexOf('\n');
if (responseA1PolicyManagement413_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-413").text("Status: 413 - " + responseA1PolicyManagement413_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-413").text("Status: 413 - " + responseA1PolicyManagement413_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-413").text("Status: 413 - " + responseA1PolicyManagement413_description.substring(0, responseA1PolicyManagement413_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-413").html(responseA1PolicyManagement413_description.substring(responseA1PolicyManagement413_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-413").text("Status: 413 - " + responseA1PolicyManagement413_description.substring(0, responseA1PolicyManagement413_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-413").html(responseA1PolicyManagement413_description.substring(responseA1PolicyManagement413_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-413" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-413" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-413-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-413-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-413-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-413-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-413" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-413-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-413-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-413" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-413-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-413');
+ $('#responses-A1PolicyManagement-updatePolicy-413-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-413');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-413-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-413-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-415"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-415" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-415"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-415" class="marked"></p>
<script>
var responseA1PolicyManagement415_description = `Unsupported Media Type`;
var responseA1PolicyManagement415_description_break = responseA1PolicyManagement415_description.indexOf('\n');
if (responseA1PolicyManagement415_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-415").text("Status: 415 - " + responseA1PolicyManagement415_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-415").text("Status: 415 - " + responseA1PolicyManagement415_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-415").text("Status: 415 - " + responseA1PolicyManagement415_description.substring(0, responseA1PolicyManagement415_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-415").html(responseA1PolicyManagement415_description.substring(responseA1PolicyManagement415_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-415").text("Status: 415 - " + responseA1PolicyManagement415_description.substring(0, responseA1PolicyManagement415_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-415").html(responseA1PolicyManagement415_description.substring(responseA1PolicyManagement415_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-415" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-415" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-415-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-415-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-415-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-415-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-415" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-415-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-415-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-415" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-415-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-415');
+ $('#responses-A1PolicyManagement-updatePolicy-415-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-415');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-415-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-415-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-423"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-423" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-423"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-423" class="marked"></p>
<script>
var responseA1PolicyManagement423_description = `Locked - HTTP Status code which can be used when the state is Locked`;
var responseA1PolicyManagement423_description_break = responseA1PolicyManagement423_description.indexOf('\n');
if (responseA1PolicyManagement423_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-423").text("Status: 423 - " + responseA1PolicyManagement423_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-423").text("Status: 423 - " + responseA1PolicyManagement423_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-423").text("Status: 423 - " + responseA1PolicyManagement423_description.substring(0, responseA1PolicyManagement423_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-423").html(responseA1PolicyManagement423_description.substring(responseA1PolicyManagement423_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-423").text("Status: 423 - " + responseA1PolicyManagement423_description.substring(0, responseA1PolicyManagement423_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-423").html(responseA1PolicyManagement423_description.substring(responseA1PolicyManagement423_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-423" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-423" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-423-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-423-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-423-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-423-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-423" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-423-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-423-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-423" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-423-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-423');
+ $('#responses-A1PolicyManagement-updatePolicy-423-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-423');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-423-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-423-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-429"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-429" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-429"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-429" class="marked"></p>
<script>
var responseA1PolicyManagement429_description = `Too Many Requests`;
var responseA1PolicyManagement429_description_break = responseA1PolicyManagement429_description.indexOf('\n');
if (responseA1PolicyManagement429_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-429" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-429" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-429-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-429-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-429-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-429-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-429" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-429-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-429-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-429" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-429-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-429');
+ $('#responses-A1PolicyManagement-updatePolicy-429-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-429');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-429-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-429-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-500"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-500" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-500"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-500" class="marked"></p>
<script>
var responseA1PolicyManagement500_description = `Internal Server Error`;
var responseA1PolicyManagement500_description_break = responseA1PolicyManagement500_description.indexOf('\n');
if (responseA1PolicyManagement500_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-500" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-500" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-500-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-500-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-500-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-500-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-500" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-500-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-500-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-500" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-500-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-500');
+ $('#responses-A1PolicyManagement-updatePolicy-500-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-500');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-500-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-500-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-502"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-502" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-502"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-502" class="marked"></p>
<script>
var responseA1PolicyManagement502_description = `Bad Gateway`;
var responseA1PolicyManagement502_description_break = responseA1PolicyManagement502_description.indexOf('\n');
if (responseA1PolicyManagement502_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-502" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-502" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-502-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-502-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-502-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-502-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-502" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-502-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-502-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-502" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-502-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-502');
+ $('#responses-A1PolicyManagement-updatePolicy-502-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-502');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-502-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-502-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-503"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-503" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-503"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-503" class="marked"></p>
<script>
var responseA1PolicyManagement503_description = `Service Unavailable`;
var responseA1PolicyManagement503_description_break = responseA1PolicyManagement503_description.indexOf('\n');
if (responseA1PolicyManagement503_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-503" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-503" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-503-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-503-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-503-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-503-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-503" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-503-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-503-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-503" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-503-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-503');
+ $('#responses-A1PolicyManagement-updatePolicy-503-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-503');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-503-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-503-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
<li data-group="A1PolicyManagement" data-name="deletePolicy" class="">
<a href="#api-A1PolicyManagement-deletePolicy">deletePolicy</a>
</li>
- <li data-group="A1PolicyManagement" data-name="getAllPolicies" class="">
- <a href="#api-A1PolicyManagement-getAllPolicies">getAllPolicies</a>
- </li>
<li data-group="A1PolicyManagement" data-name="getPolicy" class="">
<a href="#api-A1PolicyManagement-getPolicy">getPolicy</a>
</li>
+ <li data-group="A1PolicyManagement" data-name="getPolicyIds" class="">
+ <a href="#api-A1PolicyManagement-getPolicyIds">getPolicyIds</a>
+ </li>
<li data-group="A1PolicyManagement" data-name="getPolicyStatus" class="">
<a href="#api-A1PolicyManagement-getPolicyStatus">getPolicyStatus</a>
</li>
<li data-group="A1PolicyManagement" data-name="getPolicyTypes" class="">
<a href="#api-A1PolicyManagement-getPolicyTypes">getPolicyTypes</a>
</li>
- <li data-group="A1PolicyManagement" data-name="putPolicy" class="">
- <a href="#api-A1PolicyManagement-putPolicy">putPolicy</a>
+ <li data-group="A1PolicyManagement" data-name="updatePolicy" class="">
+ <a href="#api-A1PolicyManagement-updatePolicy">updatePolicy</a>
</li>
<li class="nav-header" data-group="Configuration"><a href="#api-Configuration">API Methods - Configuration</a></li>
<li data-group="Configuration" data-name="getConfiguration" class="">
<div class="app-desc">Version: 1.0.0</div>
<hr>
<div id="app-description" class="app-desc">
- <h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides a REST API for managing A1 policies. <br/>This document describes the latest API set to perform tasks for: </p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring and maintaining consistency of the SMO view of A1 Policies and the Near-RT RICs</li><li>Maintaining a view of each Near-RT RIC's supported A1 Policy Types</li><li>Supervision of registered services (rApps). When a registered service is unavailable, its policies are removed.</li></ul><h2>APIs provided or defined by the service</h2> <p>Note: parts of this API are strongly based on extracts of the O-RAN Alliance R1 Interface specification for A1 Policy Management, and those parts should be considered '� O-RAN ALLIANCE - All rights reserved.'</p> <h3>A1 Policy Management</h3> <p>This is the latest API for managing A1 Policies. This API is partially compliant with O-RAN Alliance R1 Interface specifications for A1 Policy Management:</p><ul><li>A1 Policy retrieval, creation, modification and deletion.</li><li>Retrieval of supported A1 Policy Types for a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management of configuration</h3><p>API for updating and retrieval of the component configuration. Note that there other ways to maintain the configuration.</p><h3>Service Callbacks</h3><p>These are endpoints that are invoked by this service. The callbacks are registered in this service at service registration.</p><h3>NearRT-RIC Repository (Older version)</h3> <p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy is targeted towards one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision of the A1 Policy Management Service.</p><h3>Service Registry and Supervision</h3> <p>API used for registering services/clients/rApps. Each A1 Policy can be tagged with an owner. If the owner service is registered, then the service can be optionally monitored by a heart-beat supervision mechanism, and if the registered service becomes unavailable, then it is removed and all its A1 Policies are deleted. Note that services do not need to be registered to create A1 Policies, but unregistered services are not supervised. This is a feature that is optional to use.</p>
+ <h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides a REST API for managing A1 policies. <br/>This document describes the latest API set to perform tasks for: </p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring and maintaining consistency of the SMO view of A1 Policies and the Near-RT RICs</li><li>Maintaining a view of each Near-RT RIC's supported A1 Policy Types</li><li>Supervision of registered services (rApps). When a registered service is unavailable, its policies are removed.</li></ul><h2>APIs provided or defined by the service</h2> <p>Note: parts of this API are strongly based on extracts of the O-RAN Alliance R1 Interface specification for A1 Policy Management, and those parts should be considered '© O-RAN ALLIANCE - All rights reserved.'</p> <h3>A1 Policy Management</h3> <p>This is the latest API for managing A1 Policies. This API is partially compliant with O-RAN Alliance R1 Interface specifications for A1 Policy Management:</p><ul><li>A1 Policy retrieval, creation, modification and deletion.</li><li>Retrieval of supported A1 Policy Types for a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management of configuration</h3><p>API for updating and retrieval of the component configuration. Note that there other ways to maintain the configuration.</p><h3>Service Callbacks</h3><p>These are endpoints that are invoked by this service. The callbacks are registered in this service at service registration.</p><h3>NearRT-RIC Repository (Older version)</h3> <p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy is targeted towards one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision of the A1 Policy Management Service.</p><h3>Service Registry and Supervision</h3> <p>API used for registering services/clients/rApps. Each A1 Policy can be tagged with an owner. If the owner service is registered, then the service can be optionally monitored by a heart-beat supervision mechanism, and if the registered service becomes unavailable, then it is removed and all its A1 Policies are deleted. Note that services do not need to be registered to create A1 Policies, but unregistered services are not supervised. This is a feature that is optional to use.</p>
</div>
</div>
</article>
</div>
<hr>
- <div id="api-A1PolicyManagement-getAllPolicies">
- <article id="api-A1PolicyManagement-getAllPolicies-0" data-group="User" data-name="getAllPolicies" data-version="0">
+ <div id="api-A1PolicyManagement-getPolicy">
+ <article id="api-A1PolicyManagement-getPolicy-0" data-group="User" data-name="getPolicy" data-version="0">
<div class="pull-left">
- <h1>getAllPolicies</h1>
- <p>Query for A1 Policy instances (getAllPolicies)</p>
+ <h1>getPolicy</h1>
+ <p>Get an A1 Policy's policy data (getPolicy)</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
- <p class="marked">Returns a collection of A1 Policy Instance IDs for policies that match given search criteria. If several query parameters are defined, the policies matching all conditions are returned.
-</p>
+ <p class="marked">Get an A1 Policy instance's policy data using its policy ID</p>
<p></p>
<br />
- <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/policies</span></code></pre>
+ <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/policies/{policyId}</span></code></pre>
<p>
<h3>Usage and SDK Samples</h3>
</p>
<ul class="nav nav-tabs nav-tabs-examples">
- <li class="active"><a href="#examples-A1PolicyManagement-getAllPolicies-0-curl">Curl</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-java">Java</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-dart">Dart</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-android">Android</a></li>
- <!--<li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-groovy">Groovy</a></li>-->
- <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-objc">Obj-C</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-javascript">JavaScript</a></li>
- <!--<li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-angular">Angular</a></li>-->
- <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-csharp">C#</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-php">PHP</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-perl">Perl</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-python">Python</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getAllPolicies-0-rust">Rust</a></li>
+ <li class="active"><a href="#examples-A1PolicyManagement-getPolicy-0-curl">Curl</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-java">Java</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-dart">Dart</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-android">Android</a></li>
+ <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-groovy">Groovy</a></li>-->
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-objc">Obj-C</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-javascript">JavaScript</a></li>
+ <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-angular">Angular</a></li>-->
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-csharp">C#</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-php">PHP</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-perl">Perl</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-python">Python</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
- <div class="tab-pane active" id="examples-A1PolicyManagement-getAllPolicies-0-curl">
+ <div class="tab-pane active" id="examples-A1PolicyManagement-getPolicy-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X GET \
-H "Accept: application/json,application/problem+json" \
- "https://example.com/a1-policy-management/v1/policies?policyTypeId=policyTypeId_example&nearRtRicId=nearRtRicId_example&serviceId=serviceId_example&typeName=typeName_example"
+ "https://example.com/a1-policy-management/v1/policies/{policyId}"
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-java">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
// Create an instance of the API class
A1PolicyManagementApi apiInstance = new A1PolicyManagementApi();
- String policyTypeId = policyTypeId_example; // String | Select policies with a given A1 Policy Type ID.
- String nearRtRicId = nearRtRicId_example; // String | Select policies for a given Near-RT RIC identity.
- String serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered).
- String typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
+ String policyId = policyId_example; // String |
String accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
try {
- array[PolicyInformation] result = apiInstance.getAllPolicies(policyTypeId, nearRtRicId, serviceId, typeName, accept);
+ Object result = apiInstance.getPolicy(policyId, accept);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling A1PolicyManagementApi#getAllPolicies");
+ System.err.println("Exception when calling A1PolicyManagementApi#getPolicy");
e.printStackTrace();
}
}
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-dart">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-dart">
<pre class="prettyprint"><code class="language-dart">import 'package:openapi/api.dart';
final api_instance = DefaultApi();
-final String policyTypeId = new String(); // String | Select policies with a given A1 Policy Type ID.
-final String nearRtRicId = new String(); // String | Select policies for a given Near-RT RIC identity.
-final String serviceId = new String(); // String | Select policies owned by a given service (registered or unregistered).
-final String typeName = new String(); // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
+final String policyId = new String(); // String |
final String accept = new String(); // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
try {
- final result = await api_instance.getAllPolicies(policyTypeId, nearRtRicId, serviceId, typeName, accept);
+ final result = await api_instance.getPolicy(policyId, accept);
print(result);
} catch (e) {
- print('Exception when calling DefaultApi->getAllPolicies: $e\n');
+ print('Exception when calling DefaultApi->getPolicy: $e\n');
}
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-android">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.A1PolicyManagementApi;
public class A1PolicyManagementApiExample {
public static void main(String[] args) {
A1PolicyManagementApi apiInstance = new A1PolicyManagementApi();
- String policyTypeId = policyTypeId_example; // String | Select policies with a given A1 Policy Type ID.
- String nearRtRicId = nearRtRicId_example; // String | Select policies for a given Near-RT RIC identity.
- String serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered).
- String typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
+ String policyId = policyId_example; // String |
String accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
try {
- array[PolicyInformation] result = apiInstance.getAllPolicies(policyTypeId, nearRtRicId, serviceId, typeName, accept);
+ Object result = apiInstance.getPolicy(policyId, accept);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling A1PolicyManagementApi#getAllPolicies");
+ System.err.println("Exception when calling A1PolicyManagementApi#getPolicy");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
- <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-groovy">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
- <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-objc">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-objc">
<pre class="prettyprint"><code class="language-cpp">
// Create an instance of the API class
A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init];
-String *policyTypeId = policyTypeId_example; // Select policies with a given A1 Policy Type ID. (optional) (default to null)
-String *nearRtRicId = nearRtRicId_example; // Select policies for a given Near-RT RIC identity. (optional) (default to null)
-String *serviceId = serviceId_example; // Select policies owned by a given service (registered or unregistered). (optional) (default to null)
-String *typeName = typeName_example; // Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). (optional) (default to null)
+String *policyId = policyId_example; // (default to null)
String *accept = application/json; // Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. (optional) (default to null)
-// Query for A1 Policy instances (getAllPolicies)
-[apiInstance getAllPoliciesWith:policyTypeId
- nearRtRicId:nearRtRicId
- serviceId:serviceId
- typeName:typeName
+// Get an A1 Policy's policy data (getPolicy)
+[apiInstance getPolicyWith:policyId
accept:accept
- completionHandler: ^(array[PolicyInformation] output, NSError* error) {
+ completionHandler: ^(Object output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-javascript">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-javascript">
<pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api');
// Create an instance of the API class
var api = new OnapCcsdkA1PolicyManagementApi.A1PolicyManagementApi()
+var policyId = policyId_example; // {String}
var opts = {
- 'policyTypeId': policyTypeId_example, // {String} Select policies with a given A1 Policy Type ID.
- 'nearRtRicId': nearRtRicId_example, // {String} Select policies for a given Near-RT RIC identity.
- 'serviceId': serviceId_example, // {String} Select policies owned by a given service (registered or unregistered).
- 'typeName': typeName_example, // {String} Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
'accept': application/json // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
};
console.log('API called successfully. Returned data: ' + data);
}
};
-api.getAllPolicies(opts, callback);
+api.getPolicy(policyId, opts, callback);
</code></pre>
</div>
- <!--<div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-angular">
+ <!--<div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
- <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-csharp">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
namespace Example
{
- public class getAllPoliciesExample
+ public class getPolicyExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new A1PolicyManagementApi();
- var policyTypeId = policyTypeId_example; // String | Select policies with a given A1 Policy Type ID. (optional) (default to null)
- var nearRtRicId = nearRtRicId_example; // String | Select policies for a given Near-RT RIC identity. (optional) (default to null)
- var serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered). (optional) (default to null)
- var typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). (optional) (default to null)
+ var policyId = policyId_example; // String | (default to null)
var accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. (optional) (default to null)
try {
- // Query for A1 Policy instances (getAllPolicies)
- array[PolicyInformation] result = apiInstance.getAllPolicies(policyTypeId, nearRtRicId, serviceId, typeName, accept);
+ // Get an A1 Policy's policy data (getPolicy)
+ Object result = apiInstance.getPolicy(policyId, accept);
Debug.WriteLine(result);
} catch (Exception e) {
- Debug.Print("Exception when calling A1PolicyManagementApi.getAllPolicies: " + e.Message );
+ Debug.Print("Exception when calling A1PolicyManagementApi.getPolicy: " + e.Message );
}
}
}
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-php">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-php">
<pre class="prettyprint"><code class="language-php"><?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\A1PolicyManagementApi();
-$policyTypeId = policyTypeId_example; // String | Select policies with a given A1 Policy Type ID.
-$nearRtRicId = nearRtRicId_example; // String | Select policies for a given Near-RT RIC identity.
-$serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered).
-$typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
+$policyId = policyId_example; // String |
$accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
try {
- $result = $api_instance->getAllPolicies($policyTypeId, $nearRtRicId, $serviceId, $typeName, $accept);
+ $result = $api_instance->getPolicy($policyId, $accept);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling A1PolicyManagementApi->getAllPolicies: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling A1PolicyManagementApi->getPolicy: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-perl">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::A1PolicyManagementApi;
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::A1PolicyManagementApi->new();
-my $policyTypeId = policyTypeId_example; # String | Select policies with a given A1 Policy Type ID.
-my $nearRtRicId = nearRtRicId_example; # String | Select policies for a given Near-RT RIC identity.
-my $serviceId = serviceId_example; # String | Select policies owned by a given service (registered or unregistered).
-my $typeName = typeName_example; # String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
+my $policyId = policyId_example; # String |
my $accept = application/json; # String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
eval {
- my $result = $api_instance->getAllPolicies(policyTypeId => $policyTypeId, nearRtRicId => $nearRtRicId, serviceId => $serviceId, typeName => $typeName, accept => $accept);
+ my $result = $api_instance->getPolicy(policyId => $policyId, accept => $accept);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling A1PolicyManagementApi->getAllPolicies: $@\n";
+ warn "Exception when calling A1PolicyManagementApi->getPolicy: $@\n";
}</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-python">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
# Create an instance of the API class
api_instance = openapi_client.A1PolicyManagementApi()
-policyTypeId = policyTypeId_example # String | Select policies with a given A1 Policy Type ID. (optional) (default to null)
-nearRtRicId = nearRtRicId_example # String | Select policies for a given Near-RT RIC identity. (optional) (default to null)
-serviceId = serviceId_example # String | Select policies owned by a given service (registered or unregistered). (optional) (default to null)
-typeName = typeName_example # String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). (optional) (default to null)
+policyId = policyId_example # String | (default to null)
accept = application/json # String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. (optional) (default to null)
try:
- # Query for A1 Policy instances (getAllPolicies)
- api_response = api_instance.get_all_policies(policyTypeId=policyTypeId, nearRtRicId=nearRtRicId, serviceId=serviceId, typeName=typeName, accept=accept)
+ # Get an A1 Policy's policy data (getPolicy)
+ api_response = api_instance.get_policy(policyId, accept=accept)
pprint(api_response)
except ApiException as e:
- print("Exception when calling A1PolicyManagementApi->getAllPolicies: %s\n" % e)</code></pre>
+ print("Exception when calling A1PolicyManagementApi->getPolicy: %s\n" % e)</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getAllPolicies-0-rust">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate A1PolicyManagementApi;
pub fn main() {
- let policyTypeId = policyTypeId_example; // String
- let nearRtRicId = nearRtRicId_example; // String
- let serviceId = serviceId_example; // String
- let typeName = typeName_example; // String
+ let policyId = policyId_example; // String
let accept = application/json; // String
let mut context = A1PolicyManagementApi::Context::default();
- let result = client.getAllPolicies(policyTypeId, nearRtRicId, serviceId, typeName, accept, &context).wait();
+ let result = client.getPolicy(policyId, accept, &context).wait();
println!("{:?}", result);
}
<h2>Parameters</h2>
-
- <div class="methodsubtabletitle">Header parameters</div>
+ <div class="methodsubtabletitle">Path parameters</div>
<table id="methodsubtable">
- <tr>
- <th width="150px">Name</th>
- <th>Description</th>
- </tr>
- <tr><td style="width:150px;">Accept</td>
+ <tr>
+ <th width="150px">Name</th>
+ <th>Description</th>
+ </tr>
+ <tr><td style="width:150px;">policyId*</td>
<td>
- <div id="d2e199_getAllPolicies_accept">
+ <div id="d2e199_getPolicy_policyId">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
- <div class="inner description marked">
-Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
- </div>
</div>
+ <div class="inner required">
+ Required
+ </div>
</div>
</div>
</td>
</table>
-
-
- <div class="methodsubtabletitle">Query parameters</div>
+ <div class="methodsubtabletitle">Header parameters</div>
<table id="methodsubtable">
<tr>
<th width="150px">Name</th>
<th>Description</th>
</tr>
- <tr><td style="width:150px;">policyTypeId</td>
-<td>
-
-
- <div id="d2e199_getAllPolicies_policyTypeId">
- <div class="json-schema-view">
- <div class="primitive">
- <span class="type">
- String
- </span>
-
- <div class="inner description marked">
-Select policies with a given A1 Policy Type ID.
- </div>
- </div>
- </div>
- </div>
-</td>
-</tr>
-
- <tr><td style="width:150px;">nearRtRicId</td>
+ <tr><td style="width:150px;">Accept</td>
<td>
- <div id="d2e199_getAllPolicies_nearRtRicId">
+ <div id="d2e199_getPolicy_accept">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
</span>
<div class="inner description marked">
-Select policies for a given Near-RT RIC identity.
+Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
</div>
</div>
</div>
</td>
</tr>
- <tr><td style="width:150px;">serviceId</td>
-<td>
+ </table>
- <div id="d2e199_getAllPolicies_serviceId">
- <div class="json-schema-view">
- <div class="primitive">
- <span class="type">
- String
- </span>
- <div class="inner description marked">
-Select policies owned by a given service (registered or unregistered).
- </div>
- </div>
- </div>
- </div>
-</td>
-</tr>
-
- <tr><td style="width:150px;">typeName</td>
-<td>
-
-
- <div id="d2e199_getAllPolicies_typeName">
- <div class="json-schema-view">
- <div class="primitive">
- <span class="type">
- String
- </span>
-
- <div class="inner description marked">
-Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
- </div>
- </div>
- </div>
- </div>
-</td>
-</tr>
-
- </table>
<h2>Responses</h2>
- <h3 id="examples-A1PolicyManagement-getAllPolicies-title-200"></h3>
- <p id="examples-A1PolicyManagement-getAllPolicies-description-200" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicy-title-200"></h3>
+ <p id="examples-A1PolicyManagement-getPolicy-description-200" class="marked"></p>
<script>
- var responseA1PolicyManagement200_description = `OK - Policy identities`;
+ var responseA1PolicyManagement200_description = `OK - Policy found`;
var responseA1PolicyManagement200_description_break = responseA1PolicyManagement200_description.indexOf('\n');
if (responseA1PolicyManagement200_description_break == -1) {
- $("#examples-A1PolicyManagement-getAllPolicies-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description);
+ $("#examples-A1PolicyManagement-getPolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description);
} else {
- $("#examples-A1PolicyManagement-getAllPolicies-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break));
- $("#examples-A1PolicyManagement-getAllPolicies-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getAllPolicies-200" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicy-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-200-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-200-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-200-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-200-schema">
- <div id="responses-A1PolicyManagement-getAllPolicies-schema-200" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-200-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-200-schema">
+ <div id="responses-A1PolicyManagement-getPolicy-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
- "description" : "OK - Policy identities",
+ "description" : "OK - Policy found",
"content" : {
"application/json" : {
"schema" : {
- "type" : "array",
- "items" : {
- "$ref" : "#/components/schemas/PolicyInformation"
+ "$ref" : "#/components/schemas/PolicyObject"
+ },
+ "examples" : {
+ "policyObject" : {
+ "$ref" : "#/components/examples/PolicyObject"
}
}
}
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getAllPolicies-200-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-200');
+ $('#responses-A1PolicyManagement-getPolicy-200-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicy-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getAllPolicies-200-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicy-200-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getAllPolicies-title-400"></h3>
- <p id="examples-A1PolicyManagement-getAllPolicies-description-400" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicy-title-400"></h3>
+ <p id="examples-A1PolicyManagement-getPolicy-description-400" class="marked"></p>
<script>
var responseA1PolicyManagement400_description = `Bad Request`;
var responseA1PolicyManagement400_description_break = responseA1PolicyManagement400_description.indexOf('\n');
if (responseA1PolicyManagement400_description_break == -1) {
- $("#examples-A1PolicyManagement-getAllPolicies-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description);
+ $("#examples-A1PolicyManagement-getPolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description);
} else {
- $("#examples-A1PolicyManagement-getAllPolicies-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break));
- $("#examples-A1PolicyManagement-getAllPolicies-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getAllPolicies-400" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicy-400" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-400-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-400-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-400-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-400-schema">
- <div id="responses-A1PolicyManagement-getAllPolicies-schema-400" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-400-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-400-schema">
+ <div id="responses-A1PolicyManagement-getPolicy-schema-400" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getAllPolicies-400-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-400');
+ $('#responses-A1PolicyManagement-getPolicy-400-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicy-schema-400');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getAllPolicies-400-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicy-400-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getAllPolicies-title-401"></h3>
- <p id="examples-A1PolicyManagement-getAllPolicies-description-401" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicy-title-401"></h3>
+ <p id="examples-A1PolicyManagement-getPolicy-description-401" class="marked"></p>
<script>
var responseA1PolicyManagement401_description = `Unauthorized`;
var responseA1PolicyManagement401_description_break = responseA1PolicyManagement401_description.indexOf('\n');
if (responseA1PolicyManagement401_description_break == -1) {
- $("#examples-A1PolicyManagement-getAllPolicies-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description);
+ $("#examples-A1PolicyManagement-getPolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description);
} else {
- $("#examples-A1PolicyManagement-getAllPolicies-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break));
- $("#examples-A1PolicyManagement-getAllPolicies-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getAllPolicies-401" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicy-401" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-401-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-401-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-401-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-401-schema">
- <div id="responses-A1PolicyManagement-getAllPolicies-schema-401" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-401-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-401-schema">
+ <div id="responses-A1PolicyManagement-getPolicy-schema-401" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getAllPolicies-401-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-401');
+ $('#responses-A1PolicyManagement-getPolicy-401-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicy-schema-401');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getAllPolicies-401-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicy-401-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getAllPolicies-title-403"></h3>
- <p id="examples-A1PolicyManagement-getAllPolicies-description-403" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicy-title-403"></h3>
+ <p id="examples-A1PolicyManagement-getPolicy-description-403" class="marked"></p>
<script>
var responseA1PolicyManagement403_description = `Forbidden`;
var responseA1PolicyManagement403_description_break = responseA1PolicyManagement403_description.indexOf('\n');
if (responseA1PolicyManagement403_description_break == -1) {
- $("#examples-A1PolicyManagement-getAllPolicies-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description);
+ $("#examples-A1PolicyManagement-getPolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description);
} else {
- $("#examples-A1PolicyManagement-getAllPolicies-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break));
- $("#examples-A1PolicyManagement-getAllPolicies-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getAllPolicies-403" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicy-403" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-403-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-403-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-403-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-403-schema">
- <div id="responses-A1PolicyManagement-getAllPolicies-schema-403" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-403-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-403-schema">
+ <div id="responses-A1PolicyManagement-getPolicy-schema-403" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getAllPolicies-403-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-403');
+ $('#responses-A1PolicyManagement-getPolicy-403-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicy-schema-403');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getAllPolicies-403-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicy-403-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getAllPolicies-title-404"></h3>
- <p id="examples-A1PolicyManagement-getAllPolicies-description-404" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicy-title-404"></h3>
+ <p id="examples-A1PolicyManagement-getPolicy-description-404" class="marked"></p>
<script>
var responseA1PolicyManagement404_description = `Not Found`;
var responseA1PolicyManagement404_description_break = responseA1PolicyManagement404_description.indexOf('\n');
if (responseA1PolicyManagement404_description_break == -1) {
- $("#examples-A1PolicyManagement-getAllPolicies-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description);
+ $("#examples-A1PolicyManagement-getPolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description);
} else {
- $("#examples-A1PolicyManagement-getAllPolicies-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break));
- $("#examples-A1PolicyManagement-getAllPolicies-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getAllPolicies-404" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicy-404" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-404-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-404-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-404-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-404-schema">
- <div id="responses-A1PolicyManagement-getAllPolicies-schema-404" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-404-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-404-schema">
+ <div id="responses-A1PolicyManagement-getPolicy-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getAllPolicies-404-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-404');
+ $('#responses-A1PolicyManagement-getPolicy-404-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicy-schema-404');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getAllPolicies-404-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicy-404-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getAllPolicies-title-406"></h3>
- <p id="examples-A1PolicyManagement-getAllPolicies-description-406" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicy-title-406"></h3>
+ <p id="examples-A1PolicyManagement-getPolicy-description-406" class="marked"></p>
<script>
var responseA1PolicyManagement406_description = `Not Acceptable`;
var responseA1PolicyManagement406_description_break = responseA1PolicyManagement406_description.indexOf('\n');
if (responseA1PolicyManagement406_description_break == -1) {
- $("#examples-A1PolicyManagement-getAllPolicies-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description);
+ $("#examples-A1PolicyManagement-getPolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description);
} else {
- $("#examples-A1PolicyManagement-getAllPolicies-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break));
- $("#examples-A1PolicyManagement-getAllPolicies-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getAllPolicies-406" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicy-406" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-406-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-406-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-406-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-406-schema">
- <div id="responses-A1PolicyManagement-getAllPolicies-schema-406" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-406-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-406-schema">
+ <div id="responses-A1PolicyManagement-getPolicy-schema-406" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getAllPolicies-406-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-406');
+ $('#responses-A1PolicyManagement-getPolicy-406-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicy-schema-406');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getAllPolicies-406-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicy-406-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getAllPolicies-title-429"></h3>
- <p id="examples-A1PolicyManagement-getAllPolicies-description-429" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicy-title-429"></h3>
+ <p id="examples-A1PolicyManagement-getPolicy-description-429" class="marked"></p>
<script>
var responseA1PolicyManagement429_description = `Too Many Requests`;
var responseA1PolicyManagement429_description_break = responseA1PolicyManagement429_description.indexOf('\n');
if (responseA1PolicyManagement429_description_break == -1) {
- $("#examples-A1PolicyManagement-getAllPolicies-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description);
+ $("#examples-A1PolicyManagement-getPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description);
} else {
- $("#examples-A1PolicyManagement-getAllPolicies-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break));
- $("#examples-A1PolicyManagement-getAllPolicies-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getAllPolicies-429" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicy-429" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-429-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-429-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-429-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-429-schema">
- <div id="responses-A1PolicyManagement-getAllPolicies-schema-429" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-429-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-429-schema">
+ <div id="responses-A1PolicyManagement-getPolicy-schema-429" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getAllPolicies-429-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-429');
+ $('#responses-A1PolicyManagement-getPolicy-429-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicy-schema-429');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getAllPolicies-429-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicy-429-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getAllPolicies-title-500"></h3>
- <p id="examples-A1PolicyManagement-getAllPolicies-description-500" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicy-title-500"></h3>
+ <p id="examples-A1PolicyManagement-getPolicy-description-500" class="marked"></p>
<script>
var responseA1PolicyManagement500_description = `Internal Server Error`;
var responseA1PolicyManagement500_description_break = responseA1PolicyManagement500_description.indexOf('\n');
if (responseA1PolicyManagement500_description_break == -1) {
- $("#examples-A1PolicyManagement-getAllPolicies-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description);
+ $("#examples-A1PolicyManagement-getPolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description);
} else {
- $("#examples-A1PolicyManagement-getAllPolicies-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break));
- $("#examples-A1PolicyManagement-getAllPolicies-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getAllPolicies-500" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicy-500" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-500-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-500-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-500-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-500-schema">
- <div id="responses-A1PolicyManagement-getAllPolicies-schema-500" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-500-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-500-schema">
+ <div id="responses-A1PolicyManagement-getPolicy-schema-500" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getAllPolicies-500-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-500');
+ $('#responses-A1PolicyManagement-getPolicy-500-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicy-schema-500');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getAllPolicies-500-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicy-500-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getAllPolicies-title-502"></h3>
- <p id="examples-A1PolicyManagement-getAllPolicies-description-502" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicy-title-502"></h3>
+ <p id="examples-A1PolicyManagement-getPolicy-description-502" class="marked"></p>
<script>
var responseA1PolicyManagement502_description = `Bad Gateway`;
var responseA1PolicyManagement502_description_break = responseA1PolicyManagement502_description.indexOf('\n');
if (responseA1PolicyManagement502_description_break == -1) {
- $("#examples-A1PolicyManagement-getAllPolicies-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description);
+ $("#examples-A1PolicyManagement-getPolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description);
} else {
- $("#examples-A1PolicyManagement-getAllPolicies-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break));
- $("#examples-A1PolicyManagement-getAllPolicies-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getAllPolicies-502" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicy-502" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-502-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-502-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-502-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-502-schema">
- <div id="responses-A1PolicyManagement-getAllPolicies-schema-502" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-502-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-502-schema">
+ <div id="responses-A1PolicyManagement-getPolicy-schema-502" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getAllPolicies-502-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-502');
+ $('#responses-A1PolicyManagement-getPolicy-502-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicy-schema-502');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getAllPolicies-502-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicy-502-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getAllPolicies-title-503"></h3>
- <p id="examples-A1PolicyManagement-getAllPolicies-description-503" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicy-title-503"></h3>
+ <p id="examples-A1PolicyManagement-getPolicy-description-503" class="marked"></p>
<script>
var responseA1PolicyManagement503_description = `Service Unavailable`;
var responseA1PolicyManagement503_description_break = responseA1PolicyManagement503_description.indexOf('\n');
if (responseA1PolicyManagement503_description_break == -1) {
- $("#examples-A1PolicyManagement-getAllPolicies-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description);
+ $("#examples-A1PolicyManagement-getPolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description);
} else {
- $("#examples-A1PolicyManagement-getAllPolicies-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break));
- $("#examples-A1PolicyManagement-getAllPolicies-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break));
+ $("#examples-A1PolicyManagement-getPolicy-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getAllPolicies-503" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicy-503" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getAllPolicies-503-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-503-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getAllPolicies-503-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getAllPolicies-503-schema">
- <div id="responses-A1PolicyManagement-getAllPolicies-schema-503" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-503-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-503-schema">
+ <div id="responses-A1PolicyManagement-getPolicy-schema-503" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getAllPolicies-503-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getAllPolicies-schema-503');
+ $('#responses-A1PolicyManagement-getPolicy-503-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicy-schema-503');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getAllPolicies-503-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicy-503-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</div>
<hr>
- <div id="api-A1PolicyManagement-getPolicy">
- <article id="api-A1PolicyManagement-getPolicy-0" data-group="User" data-name="getPolicy" data-version="0">
+ <div id="api-A1PolicyManagement-getPolicyIds">
+ <article id="api-A1PolicyManagement-getPolicyIds-0" data-group="User" data-name="getPolicyIds" data-version="0">
<div class="pull-left">
- <h1>getPolicy</h1>
- <p>Get an A1 Policy's policy data (getPolicy)</p>
+ <h1>getPolicyIds</h1>
+ <p>Query for A1 Policy instances (getPolicyIds)</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
- <p class="marked">Get an A1 Policy instance's policy data using its policy ID</p>
+ <p class="marked">Returns a collection of A1 Policy Instance IDs for policies that match given search criteria. If several query parameters are defined, the policies matching all conditions are returned.
+</p>
<p></p>
<br />
- <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/policies/{policyId}</span></code></pre>
+ <pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/policies</span></code></pre>
<p>
<h3>Usage and SDK Samples</h3>
</p>
<ul class="nav nav-tabs nav-tabs-examples">
- <li class="active"><a href="#examples-A1PolicyManagement-getPolicy-0-curl">Curl</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-java">Java</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-dart">Dart</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-android">Android</a></li>
- <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-groovy">Groovy</a></li>-->
- <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-objc">Obj-C</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-javascript">JavaScript</a></li>
- <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-angular">Angular</a></li>-->
- <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-csharp">C#</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-php">PHP</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-perl">Perl</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-python">Python</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-getPolicy-0-rust">Rust</a></li>
+ <li class="active"><a href="#examples-A1PolicyManagement-getPolicyIds-0-curl">Curl</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-java">Java</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-dart">Dart</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-android">Android</a></li>
+ <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-groovy">Groovy</a></li>-->
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-objc">Obj-C</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-javascript">JavaScript</a></li>
+ <!--<li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-angular">Angular</a></li>-->
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-csharp">C#</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-php">PHP</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-perl">Perl</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-python">Python</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-getPolicyIds-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
- <div class="tab-pane active" id="examples-A1PolicyManagement-getPolicy-0-curl">
+ <div class="tab-pane active" id="examples-A1PolicyManagement-getPolicyIds-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X GET \
-H "Accept: application/json,application/problem+json" \
- "https://example.com/a1-policy-management/v1/policies/{policyId}"
+ "https://example.com/a1-policy-management/v1/policies?policyTypeId=policyTypeId_example&nearRtRicId=nearRtRicId_example&serviceId=serviceId_example&typeName=typeName_example"
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-java">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
// Create an instance of the API class
A1PolicyManagementApi apiInstance = new A1PolicyManagementApi();
- String policyId = policyId_example; // String |
+ String policyTypeId = policyTypeId_example; // String | Select policies with a given A1 Policy Type ID.
+ String nearRtRicId = nearRtRicId_example; // String | Select policies for a given Near-RT RIC identity.
+ String serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered).
+ String typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
String accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
try {
- Object result = apiInstance.getPolicy(policyId, accept);
+ array[PolicyInformation] result = apiInstance.getPolicyIds(policyTypeId, nearRtRicId, serviceId, typeName, accept);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling A1PolicyManagementApi#getPolicy");
+ System.err.println("Exception when calling A1PolicyManagementApi#getPolicyIds");
e.printStackTrace();
}
}
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-dart">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-dart">
<pre class="prettyprint"><code class="language-dart">import 'package:openapi/api.dart';
final api_instance = DefaultApi();
-final String policyId = new String(); // String |
+final String policyTypeId = new String(); // String | Select policies with a given A1 Policy Type ID.
+final String nearRtRicId = new String(); // String | Select policies for a given Near-RT RIC identity.
+final String serviceId = new String(); // String | Select policies owned by a given service (registered or unregistered).
+final String typeName = new String(); // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
final String accept = new String(); // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
try {
- final result = await api_instance.getPolicy(policyId, accept);
+ final result = await api_instance.getPolicyIds(policyTypeId, nearRtRicId, serviceId, typeName, accept);
print(result);
} catch (e) {
- print('Exception when calling DefaultApi->getPolicy: $e\n');
+ print('Exception when calling DefaultApi->getPolicyIds: $e\n');
}
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-android">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.A1PolicyManagementApi;
public class A1PolicyManagementApiExample {
public static void main(String[] args) {
A1PolicyManagementApi apiInstance = new A1PolicyManagementApi();
- String policyId = policyId_example; // String |
+ String policyTypeId = policyTypeId_example; // String | Select policies with a given A1 Policy Type ID.
+ String nearRtRicId = nearRtRicId_example; // String | Select policies for a given Near-RT RIC identity.
+ String serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered).
+ String typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
String accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
try {
- Object result = apiInstance.getPolicy(policyId, accept);
+ array[PolicyInformation] result = apiInstance.getPolicyIds(policyTypeId, nearRtRicId, serviceId, typeName, accept);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling A1PolicyManagementApi#getPolicy");
+ System.err.println("Exception when calling A1PolicyManagementApi#getPolicyIds");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
- <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-groovy">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
- <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-objc">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-objc">
<pre class="prettyprint"><code class="language-cpp">
// Create an instance of the API class
A1PolicyManagementApi *apiInstance = [[A1PolicyManagementApi alloc] init];
-String *policyId = policyId_example; // (default to null)
+String *policyTypeId = policyTypeId_example; // Select policies with a given A1 Policy Type ID. (optional) (default to null)
+String *nearRtRicId = nearRtRicId_example; // Select policies for a given Near-RT RIC identity. (optional) (default to null)
+String *serviceId = serviceId_example; // Select policies owned by a given service (registered or unregistered). (optional) (default to null)
+String *typeName = typeName_example; // Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). (optional) (default to null)
String *accept = application/json; // Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. (optional) (default to null)
-// Get an A1 Policy's policy data (getPolicy)
-[apiInstance getPolicyWith:policyId
+// Query for A1 Policy instances (getPolicyIds)
+[apiInstance getPolicyIdsWith:policyTypeId
+ nearRtRicId:nearRtRicId
+ serviceId:serviceId
+ typeName:typeName
accept:accept
- completionHandler: ^(Object output, NSError* error) {
+ completionHandler: ^(array[PolicyInformation] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-javascript">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-javascript">
<pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api');
// Create an instance of the API class
var api = new OnapCcsdkA1PolicyManagementApi.A1PolicyManagementApi()
-var policyId = policyId_example; // {String}
var opts = {
+ 'policyTypeId': policyTypeId_example, // {String} Select policies with a given A1 Policy Type ID.
+ 'nearRtRicId': nearRtRicId_example, // {String} Select policies for a given Near-RT RIC identity.
+ 'serviceId': serviceId_example, // {String} Select policies owned by a given service (registered or unregistered).
+ 'typeName': typeName_example, // {String} Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
'accept': application/json // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
};
console.log('API called successfully. Returned data: ' + data);
}
};
-api.getPolicy(policyId, opts, callback);
+api.getPolicyIds(opts, callback);
</code></pre>
</div>
- <!--<div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-angular">
+ <!--<div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
- <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-csharp">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
namespace Example
{
- public class getPolicyExample
+ public class getPolicyIdsExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new A1PolicyManagementApi();
- var policyId = policyId_example; // String | (default to null)
+ var policyTypeId = policyTypeId_example; // String | Select policies with a given A1 Policy Type ID. (optional) (default to null)
+ var nearRtRicId = nearRtRicId_example; // String | Select policies for a given Near-RT RIC identity. (optional) (default to null)
+ var serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered). (optional) (default to null)
+ var typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). (optional) (default to null)
var accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. (optional) (default to null)
try {
- // Get an A1 Policy's policy data (getPolicy)
- Object result = apiInstance.getPolicy(policyId, accept);
+ // Query for A1 Policy instances (getPolicyIds)
+ array[PolicyInformation] result = apiInstance.getPolicyIds(policyTypeId, nearRtRicId, serviceId, typeName, accept);
Debug.WriteLine(result);
} catch (Exception e) {
- Debug.Print("Exception when calling A1PolicyManagementApi.getPolicy: " + e.Message );
+ Debug.Print("Exception when calling A1PolicyManagementApi.getPolicyIds: " + e.Message );
}
}
}
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-php">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-php">
<pre class="prettyprint"><code class="language-php"><?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\A1PolicyManagementApi();
-$policyId = policyId_example; // String |
+$policyTypeId = policyTypeId_example; // String | Select policies with a given A1 Policy Type ID.
+$nearRtRicId = nearRtRicId_example; // String | Select policies for a given Near-RT RIC identity.
+$serviceId = serviceId_example; // String | Select policies owned by a given service (registered or unregistered).
+$typeName = typeName_example; // String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
$accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
try {
- $result = $api_instance->getPolicy($policyId, $accept);
+ $result = $api_instance->getPolicyIds($policyTypeId, $nearRtRicId, $serviceId, $typeName, $accept);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling A1PolicyManagementApi->getPolicy: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling A1PolicyManagementApi->getPolicyIds: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-perl">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::A1PolicyManagementApi;
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::A1PolicyManagementApi->new();
-my $policyId = policyId_example; # String |
+my $policyTypeId = policyTypeId_example; # String | Select policies with a given A1 Policy Type ID.
+my $nearRtRicId = nearRtRicId_example; # String | Select policies for a given Near-RT RIC identity.
+my $serviceId = serviceId_example; # String | Select policies owned by a given service (registered or unregistered).
+my $typeName = typeName_example; # String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
my $accept = application/json; # String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
eval {
- my $result = $api_instance->getPolicy(policyId => $policyId, accept => $accept);
+ my $result = $api_instance->getPolicyIds(policyTypeId => $policyTypeId, nearRtRicId => $nearRtRicId, serviceId => $serviceId, typeName => $typeName, accept => $accept);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling A1PolicyManagementApi->getPolicy: $@\n";
+ warn "Exception when calling A1PolicyManagementApi->getPolicyIds: $@\n";
}</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-python">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
# Create an instance of the API class
api_instance = openapi_client.A1PolicyManagementApi()
-policyId = policyId_example # String | (default to null)
+policyTypeId = policyTypeId_example # String | Select policies with a given A1 Policy Type ID. (optional) (default to null)
+nearRtRicId = nearRtRicId_example # String | Select policies for a given Near-RT RIC identity. (optional) (default to null)
+serviceId = serviceId_example # String | Select policies owned by a given service (registered or unregistered). (optional) (default to null)
+typeName = typeName_example # String | Select policies of a given A1 Policy Type name (type identity has the format 'typename_version'). (optional) (default to null)
accept = application/json # String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. (optional) (default to null)
try:
- # Get an A1 Policy's policy data (getPolicy)
- api_response = api_instance.get_policy(policyId, accept=accept)
+ # Query for A1 Policy instances (getPolicyIds)
+ api_response = api_instance.get_policy_ids(policyTypeId=policyTypeId, nearRtRicId=nearRtRicId, serviceId=serviceId, typeName=typeName, accept=accept)
pprint(api_response)
except ApiException as e:
- print("Exception when calling A1PolicyManagementApi->getPolicy: %s\n" % e)</code></pre>
+ print("Exception when calling A1PolicyManagementApi->getPolicyIds: %s\n" % e)</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-getPolicy-0-rust">
+ <div class="tab-pane" id="examples-A1PolicyManagement-getPolicyIds-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate A1PolicyManagementApi;
pub fn main() {
- let policyId = policyId_example; // String
+ let policyTypeId = policyTypeId_example; // String
+ let nearRtRicId = nearRtRicId_example; // String
+ let serviceId = serviceId_example; // String
+ let typeName = typeName_example; // String
let accept = application/json; // String
let mut context = A1PolicyManagementApi::Context::default();
- let result = client.getPolicy(policyId, accept, &context).wait();
+ let result = client.getPolicyIds(policyTypeId, nearRtRicId, serviceId, typeName, accept, &context).wait();
println!("{:?}", result);
}
</div>
</div>
- <h2>Scopes</h2>
- <table>
-
- </table>
+ <h2>Scopes</h2>
+ <table>
+
+ </table>
+
+ <h2>Parameters</h2>
+
+
+ <div class="methodsubtabletitle">Header parameters</div>
+ <table id="methodsubtable">
+ <tr>
+ <th width="150px">Name</th>
+ <th>Description</th>
+ </tr>
+ <tr><td style="width:150px;">Accept</td>
+<td>
+
+
+ <div id="d2e199_getPolicyIds_accept">
+ <div class="json-schema-view">
+ <div class="primitive">
+ <span class="type">
+ String
+ </span>
+
+ <div class="inner description marked">
+Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
+ </div>
+ </div>
+ </div>
+ </div>
+</td>
+</tr>
+
+ </table>
+
+
+
+ <div class="methodsubtabletitle">Query parameters</div>
+ <table id="methodsubtable">
+ <tr>
+ <th width="150px">Name</th>
+ <th>Description</th>
+ </tr>
+ <tr><td style="width:150px;">policyTypeId</td>
+<td>
+
- <h2>Parameters</h2>
+ <div id="d2e199_getPolicyIds_policyTypeId">
+ <div class="json-schema-view">
+ <div class="primitive">
+ <span class="type">
+ String
+ </span>
- <div class="methodsubtabletitle">Path parameters</div>
- <table id="methodsubtable">
- <tr>
- <th width="150px">Name</th>
- <th>Description</th>
- </tr>
- <tr><td style="width:150px;">policyId*</td>
+ <div class="inner description marked">
+Select policies with a given A1 Policy Type ID.
+ </div>
+ </div>
+ </div>
+ </div>
+</td>
+</tr>
+
+ <tr><td style="width:150px;">nearRtRicId</td>
<td>
- <div id="d2e199_getPolicy_policyId">
+ <div id="d2e199_getPolicyIds_nearRtRicId">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>
+ <div class="inner description marked">
+Select policies for a given Near-RT RIC identity.
+ </div>
</div>
- <div class="inner required">
- Required
- </div>
</div>
</div>
</td>
</tr>
- </table>
-
- <div class="methodsubtabletitle">Header parameters</div>
- <table id="methodsubtable">
- <tr>
- <th width="150px">Name</th>
- <th>Description</th>
- </tr>
- <tr><td style="width:150px;">Accept</td>
+ <tr><td style="width:150px;">serviceId</td>
<td>
- <div id="d2e199_getPolicy_accept">
+ <div id="d2e199_getPolicyIds_serviceId">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
</span>
<div class="inner description marked">
-Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
+Select policies owned by a given service (registered or unregistered).
</div>
</div>
</div>
</td>
</tr>
- </table>
+ <tr><td style="width:150px;">typeName</td>
+<td>
+
+ <div id="d2e199_getPolicyIds_typeName">
+ <div class="json-schema-view">
+ <div class="primitive">
+ <span class="type">
+ String
+ </span>
+ <div class="inner description marked">
+Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
+ </div>
+ </div>
+ </div>
+ </div>
+</td>
+</tr>
+ </table>
<h2>Responses</h2>
- <h3 id="examples-A1PolicyManagement-getPolicy-title-200"></h3>
- <p id="examples-A1PolicyManagement-getPolicy-description-200" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicyIds-title-200"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyIds-description-200" class="marked"></p>
<script>
- var responseA1PolicyManagement200_description = `OK - Policy found`;
+ var responseA1PolicyManagement200_description = `OK - Policy identities`;
var responseA1PolicyManagement200_description_break = responseA1PolicyManagement200_description.indexOf('\n');
if (responseA1PolicyManagement200_description_break == -1) {
- $("#examples-A1PolicyManagement-getPolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description);
+ $("#examples-A1PolicyManagement-getPolicyIds-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description);
} else {
- $("#examples-A1PolicyManagement-getPolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break));
- $("#examples-A1PolicyManagement-getPolicy-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getPolicy-200" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicyIds-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-200-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-200-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-200-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-200-schema">
- <div id="responses-A1PolicyManagement-getPolicy-schema-200" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-200-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-200-schema">
+ <div id="responses-A1PolicyManagement-getPolicyIds-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
- "description" : "OK - Policy found",
+ "description" : "OK - Policy identities",
"content" : {
"application/json" : {
"schema" : {
- "$ref" : "#/components/schemas/PolicyObject"
- },
- "examples" : {
- "policyObject" : {
- "$ref" : "#/components/examples/PolicyObject"
+ "type" : "array",
+ "items" : {
+ "$ref" : "#/components/schemas/PolicyInformation"
}
}
}
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getPolicy-200-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getPolicy-schema-200');
+ $('#responses-A1PolicyManagement-getPolicyIds-200-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getPolicy-200-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicyIds-200-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getPolicy-title-400"></h3>
- <p id="examples-A1PolicyManagement-getPolicy-description-400" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicyIds-title-400"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyIds-description-400" class="marked"></p>
<script>
var responseA1PolicyManagement400_description = `Bad Request`;
var responseA1PolicyManagement400_description_break = responseA1PolicyManagement400_description.indexOf('\n');
if (responseA1PolicyManagement400_description_break == -1) {
- $("#examples-A1PolicyManagement-getPolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description);
+ $("#examples-A1PolicyManagement-getPolicyIds-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description);
} else {
- $("#examples-A1PolicyManagement-getPolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break));
- $("#examples-A1PolicyManagement-getPolicy-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getPolicy-400" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicyIds-400" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-400-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-400-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-400-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-400-schema">
- <div id="responses-A1PolicyManagement-getPolicy-schema-400" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-400-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-400-schema">
+ <div id="responses-A1PolicyManagement-getPolicyIds-schema-400" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getPolicy-400-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getPolicy-schema-400');
+ $('#responses-A1PolicyManagement-getPolicyIds-400-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-400');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getPolicy-400-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicyIds-400-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getPolicy-title-401"></h3>
- <p id="examples-A1PolicyManagement-getPolicy-description-401" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicyIds-title-401"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyIds-description-401" class="marked"></p>
<script>
var responseA1PolicyManagement401_description = `Unauthorized`;
var responseA1PolicyManagement401_description_break = responseA1PolicyManagement401_description.indexOf('\n');
if (responseA1PolicyManagement401_description_break == -1) {
- $("#examples-A1PolicyManagement-getPolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description);
+ $("#examples-A1PolicyManagement-getPolicyIds-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description);
} else {
- $("#examples-A1PolicyManagement-getPolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break));
- $("#examples-A1PolicyManagement-getPolicy-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getPolicy-401" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicyIds-401" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-401-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-401-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-401-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-401-schema">
- <div id="responses-A1PolicyManagement-getPolicy-schema-401" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-401-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-401-schema">
+ <div id="responses-A1PolicyManagement-getPolicyIds-schema-401" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getPolicy-401-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getPolicy-schema-401');
+ $('#responses-A1PolicyManagement-getPolicyIds-401-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-401');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getPolicy-401-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicyIds-401-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getPolicy-title-403"></h3>
- <p id="examples-A1PolicyManagement-getPolicy-description-403" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicyIds-title-403"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyIds-description-403" class="marked"></p>
<script>
var responseA1PolicyManagement403_description = `Forbidden`;
var responseA1PolicyManagement403_description_break = responseA1PolicyManagement403_description.indexOf('\n');
if (responseA1PolicyManagement403_description_break == -1) {
- $("#examples-A1PolicyManagement-getPolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description);
+ $("#examples-A1PolicyManagement-getPolicyIds-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description);
} else {
- $("#examples-A1PolicyManagement-getPolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break));
- $("#examples-A1PolicyManagement-getPolicy-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getPolicy-403" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicyIds-403" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-403-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-403-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-403-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-403-schema">
- <div id="responses-A1PolicyManagement-getPolicy-schema-403" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-403-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-403-schema">
+ <div id="responses-A1PolicyManagement-getPolicyIds-schema-403" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getPolicy-403-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getPolicy-schema-403');
+ $('#responses-A1PolicyManagement-getPolicyIds-403-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-403');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getPolicy-403-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicyIds-403-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getPolicy-title-404"></h3>
- <p id="examples-A1PolicyManagement-getPolicy-description-404" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicyIds-title-404"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyIds-description-404" class="marked"></p>
<script>
var responseA1PolicyManagement404_description = `Not Found`;
var responseA1PolicyManagement404_description_break = responseA1PolicyManagement404_description.indexOf('\n');
if (responseA1PolicyManagement404_description_break == -1) {
- $("#examples-A1PolicyManagement-getPolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description);
+ $("#examples-A1PolicyManagement-getPolicyIds-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description);
} else {
- $("#examples-A1PolicyManagement-getPolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break));
- $("#examples-A1PolicyManagement-getPolicy-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getPolicy-404" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicyIds-404" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-404-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-404-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-404-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-404-schema">
- <div id="responses-A1PolicyManagement-getPolicy-schema-404" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-404-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-404-schema">
+ <div id="responses-A1PolicyManagement-getPolicyIds-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getPolicy-404-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getPolicy-schema-404');
+ $('#responses-A1PolicyManagement-getPolicyIds-404-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-404');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getPolicy-404-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicyIds-404-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getPolicy-title-406"></h3>
- <p id="examples-A1PolicyManagement-getPolicy-description-406" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicyIds-title-406"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyIds-description-406" class="marked"></p>
<script>
var responseA1PolicyManagement406_description = `Not Acceptable`;
var responseA1PolicyManagement406_description_break = responseA1PolicyManagement406_description.indexOf('\n');
if (responseA1PolicyManagement406_description_break == -1) {
- $("#examples-A1PolicyManagement-getPolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description);
+ $("#examples-A1PolicyManagement-getPolicyIds-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description);
} else {
- $("#examples-A1PolicyManagement-getPolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break));
- $("#examples-A1PolicyManagement-getPolicy-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getPolicy-406" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicyIds-406" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-406-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-406-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-406-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-406-schema">
- <div id="responses-A1PolicyManagement-getPolicy-schema-406" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-406-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-406-schema">
+ <div id="responses-A1PolicyManagement-getPolicyIds-schema-406" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getPolicy-406-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getPolicy-schema-406');
+ $('#responses-A1PolicyManagement-getPolicyIds-406-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-406');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getPolicy-406-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicyIds-406-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getPolicy-title-429"></h3>
- <p id="examples-A1PolicyManagement-getPolicy-description-429" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicyIds-title-429"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyIds-description-429" class="marked"></p>
<script>
var responseA1PolicyManagement429_description = `Too Many Requests`;
var responseA1PolicyManagement429_description_break = responseA1PolicyManagement429_description.indexOf('\n');
if (responseA1PolicyManagement429_description_break == -1) {
- $("#examples-A1PolicyManagement-getPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description);
+ $("#examples-A1PolicyManagement-getPolicyIds-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description);
} else {
- $("#examples-A1PolicyManagement-getPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break));
- $("#examples-A1PolicyManagement-getPolicy-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getPolicy-429" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicyIds-429" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-429-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-429-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-429-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-429-schema">
- <div id="responses-A1PolicyManagement-getPolicy-schema-429" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-429-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-429-schema">
+ <div id="responses-A1PolicyManagement-getPolicyIds-schema-429" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getPolicy-429-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getPolicy-schema-429');
+ $('#responses-A1PolicyManagement-getPolicyIds-429-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-429');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getPolicy-429-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicyIds-429-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getPolicy-title-500"></h3>
- <p id="examples-A1PolicyManagement-getPolicy-description-500" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicyIds-title-500"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyIds-description-500" class="marked"></p>
<script>
var responseA1PolicyManagement500_description = `Internal Server Error`;
var responseA1PolicyManagement500_description_break = responseA1PolicyManagement500_description.indexOf('\n');
if (responseA1PolicyManagement500_description_break == -1) {
- $("#examples-A1PolicyManagement-getPolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description);
+ $("#examples-A1PolicyManagement-getPolicyIds-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description);
} else {
- $("#examples-A1PolicyManagement-getPolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break));
- $("#examples-A1PolicyManagement-getPolicy-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getPolicy-500" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicyIds-500" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-500-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-500-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-500-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-500-schema">
- <div id="responses-A1PolicyManagement-getPolicy-schema-500" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-500-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-500-schema">
+ <div id="responses-A1PolicyManagement-getPolicyIds-schema-500" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getPolicy-500-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getPolicy-schema-500');
+ $('#responses-A1PolicyManagement-getPolicyIds-500-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-500');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getPolicy-500-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicyIds-500-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getPolicy-title-502"></h3>
- <p id="examples-A1PolicyManagement-getPolicy-description-502" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicyIds-title-502"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyIds-description-502" class="marked"></p>
<script>
var responseA1PolicyManagement502_description = `Bad Gateway`;
var responseA1PolicyManagement502_description_break = responseA1PolicyManagement502_description.indexOf('\n');
if (responseA1PolicyManagement502_description_break == -1) {
- $("#examples-A1PolicyManagement-getPolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description);
+ $("#examples-A1PolicyManagement-getPolicyIds-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description);
} else {
- $("#examples-A1PolicyManagement-getPolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break));
- $("#examples-A1PolicyManagement-getPolicy-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getPolicy-502" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicyIds-502" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-502-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-502-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-502-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-502-schema">
- <div id="responses-A1PolicyManagement-getPolicy-schema-502" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-502-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-502-schema">
+ <div id="responses-A1PolicyManagement-getPolicyIds-schema-502" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getPolicy-502-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getPolicy-schema-502');
+ $('#responses-A1PolicyManagement-getPolicyIds-502-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-502');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getPolicy-502-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicyIds-502-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-getPolicy-title-503"></h3>
- <p id="examples-A1PolicyManagement-getPolicy-description-503" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-getPolicyIds-title-503"></h3>
+ <p id="examples-A1PolicyManagement-getPolicyIds-description-503" class="marked"></p>
<script>
var responseA1PolicyManagement503_description = `Service Unavailable`;
var responseA1PolicyManagement503_description_break = responseA1PolicyManagement503_description.indexOf('\n');
if (responseA1PolicyManagement503_description_break == -1) {
- $("#examples-A1PolicyManagement-getPolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description);
+ $("#examples-A1PolicyManagement-getPolicyIds-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description);
} else {
- $("#examples-A1PolicyManagement-getPolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break));
- $("#examples-A1PolicyManagement-getPolicy-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break));
+ $("#examples-A1PolicyManagement-getPolicyIds-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-getPolicy-503" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-getPolicyIds-503" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicy-503-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-getPolicyIds-503-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-getPolicy-503-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicy-503-schema">
- <div id="responses-A1PolicyManagement-getPolicy-schema-503" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-getPolicyIds-503-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-getPolicyIds-503-schema">
+ <div id="responses-A1PolicyManagement-getPolicyIds-schema-503" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-getPolicy-503-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-getPolicy-schema-503');
+ $('#responses-A1PolicyManagement-getPolicyIds-503-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-getPolicyIds-schema-503');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-getPolicy-503-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-getPolicyIds-503-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
</article>
</div>
<hr>
- <div id="api-A1PolicyManagement-putPolicy">
- <article id="api-A1PolicyManagement-putPolicy-0" data-group="User" data-name="putPolicy" data-version="0">
+ <div id="api-A1PolicyManagement-updatePolicy">
+ <article id="api-A1PolicyManagement-updatePolicy-0" data-group="User" data-name="updatePolicy" data-version="0">
<div class="pull-left">
- <h1>putPolicy</h1>
- <p>Update an A1 Policy's policy data (putPolicy)</p>
+ <h1>updatePolicy</h1>
+ <p>Update an A1 Policy's policy data (updatePolicy)</p>
</div>
<div class="pull-right"></div>
<div class="clearfix"></div>
<h3>Usage and SDK Samples</h3>
</p>
<ul class="nav nav-tabs nav-tabs-examples">
- <li class="active"><a href="#examples-A1PolicyManagement-putPolicy-0-curl">Curl</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-java">Java</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-dart">Dart</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-android">Android</a></li>
- <!--<li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-groovy">Groovy</a></li>-->
- <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-objc">Obj-C</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-javascript">JavaScript</a></li>
- <!--<li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-angular">Angular</a></li>-->
- <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-csharp">C#</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-php">PHP</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-perl">Perl</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-python">Python</a></li>
- <li class=""><a href="#examples-A1PolicyManagement-putPolicy-0-rust">Rust</a></li>
+ <li class="active"><a href="#examples-A1PolicyManagement-updatePolicy-0-curl">Curl</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-java">Java</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-dart">Dart</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-android">Android</a></li>
+ <!--<li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-groovy">Groovy</a></li>-->
+ <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-objc">Obj-C</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-javascript">JavaScript</a></li>
+ <!--<li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-angular">Angular</a></li>-->
+ <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-csharp">C#</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-php">PHP</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-perl">Perl</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-python">Python</a></li>
+ <li class=""><a href="#examples-A1PolicyManagement-updatePolicy-0-rust">Rust</a></li>
</ul>
<div class="tab-content">
- <div class="tab-pane active" id="examples-A1PolicyManagement-putPolicy-0-curl">
+ <div class="tab-pane active" id="examples-A1PolicyManagement-updatePolicy-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X PUT \
-H "Accept: application/json,application/problem+json" \
-H "Content-Type: application/json" \
-d ''
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-java">
+ <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-java">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
Object body = Object; // Object |
try {
- Object result = apiInstance.putPolicy(policyId, body);
+ Object result = apiInstance.updatePolicy(policyId, body);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling A1PolicyManagementApi#putPolicy");
+ System.err.println("Exception when calling A1PolicyManagementApi#updatePolicy");
e.printStackTrace();
}
}
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-dart">
+ <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-dart">
<pre class="prettyprint"><code class="language-dart">import 'package:openapi/api.dart';
final api_instance = DefaultApi();
final Object body = new Object(); // Object |
try {
- final result = await api_instance.putPolicy(policyId, body);
+ final result = await api_instance.updatePolicy(policyId, body);
print(result);
} catch (e) {
- print('Exception when calling DefaultApi->putPolicy: $e\n');
+ print('Exception when calling DefaultApi->updatePolicy: $e\n');
}
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-android">
+ <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-android">
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.A1PolicyManagementApi;
public class A1PolicyManagementApiExample {
Object body = Object; // Object |
try {
- Object result = apiInstance.putPolicy(policyId, body);
+ Object result = apiInstance.updatePolicy(policyId, body);
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling A1PolicyManagementApi#putPolicy");
+ System.err.println("Exception when calling A1PolicyManagementApi#updatePolicy");
e.printStackTrace();
}
}
}</code></pre>
</div>
<!--
- <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-groovy">
+ <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-groovy">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div> -->
- <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-objc">
+ <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-objc">
<pre class="prettyprint"><code class="language-cpp">
// Create an instance of the API class
String *policyId = policyId_example; // (default to null)
Object *body = Object; //
-// Update an A1 Policy's policy data (putPolicy)
-[apiInstance putPolicyWith:policyId
+// Update an A1 Policy's policy data (updatePolicy)
+[apiInstance updatePolicyWith:policyId
body:body
completionHandler: ^(Object output, NSError* error) {
if (output) {
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-javascript">
+ <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-javascript">
<pre class="prettyprint"><code class="language-js">var OnapCcsdkA1PolicyManagementApi = require('onap_ccsdk_a1_policy_management_api');
// Create an instance of the API class
console.log('API called successfully. Returned data: ' + data);
}
};
-api.putPolicy(policyId, body, callback);
+api.updatePolicy(policyId, body, callback);
</code></pre>
</div>
- <!--<div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-angular">
+ <!--<div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-angular">
<pre class="prettyprint language-json prettyprinted" data-type="json"><code>Coming Soon!</code></pre>
</div>-->
- <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-csharp">
+ <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-csharp">
<pre class="prettyprint"><code class="language-cs">using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
namespace Example
{
- public class putPolicyExample
+ public class updatePolicyExample
{
public void main()
{
var body = Object; // Object |
try {
- // Update an A1 Policy's policy data (putPolicy)
- Object result = apiInstance.putPolicy(policyId, body);
+ // Update an A1 Policy's policy data (updatePolicy)
+ Object result = apiInstance.updatePolicy(policyId, body);
Debug.WriteLine(result);
} catch (Exception e) {
- Debug.Print("Exception when calling A1PolicyManagementApi.putPolicy: " + e.Message );
+ Debug.Print("Exception when calling A1PolicyManagementApi.updatePolicy: " + e.Message );
}
}
}
</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-php">
+ <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-php">
<pre class="prettyprint"><code class="language-php"><?php
require_once(__DIR__ . '/vendor/autoload.php');
$body = Object; // Object |
try {
- $result = $api_instance->putPolicy($policyId, $body);
+ $result = $api_instance->updatePolicy($policyId, $body);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling A1PolicyManagementApi->putPolicy: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling A1PolicyManagementApi->updatePolicy: ', $e->getMessage(), PHP_EOL;
}
?></code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-perl">
+ <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::A1PolicyManagementApi;
my $body = WWW::OPenAPIClient::Object::Object->new(); # Object |
eval {
- my $result = $api_instance->putPolicy(policyId => $policyId, body => $body);
+ my $result = $api_instance->updatePolicy(policyId => $policyId, body => $body);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling A1PolicyManagementApi->putPolicy: $@\n";
+ warn "Exception when calling A1PolicyManagementApi->updatePolicy: $@\n";
}</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-python">
+ <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time
import openapi_client
body = Object # Object |
try:
- # Update an A1 Policy's policy data (putPolicy)
- api_response = api_instance.put_policy(policyId, body)
+ # Update an A1 Policy's policy data (updatePolicy)
+ api_response = api_instance.update_policy(policyId, body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling A1PolicyManagementApi->putPolicy: %s\n" % e)</code></pre>
+ print("Exception when calling A1PolicyManagementApi->updatePolicy: %s\n" % e)</code></pre>
</div>
- <div class="tab-pane" id="examples-A1PolicyManagement-putPolicy-0-rust">
+ <div class="tab-pane" id="examples-A1PolicyManagement-updatePolicy-0-rust">
<pre class="prettyprint"><code class="language-rust">extern crate A1PolicyManagementApi;
pub fn main() {
let body = Object; // Object
let mut context = A1PolicyManagementApi::Context::default();
- let result = client.putPolicy(policyId, body, &context).wait();
+ let result = client.updatePolicy(policyId, body, &context).wait();
println!("{:?}", result);
}
<td>
- <div id="d2e199_putPolicy_policyId">
+ <div id="d2e199_updatePolicy_policyId">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
}
var view = new JSONSchemaView(schema,2,{isBodyParam: true});
- var result = $('#d2e199_putPolicy_body');
+ var result = $('#d2e199_updatePolicy_body');
result.empty();
result.append(view.render());
});
</script>
-<div id="d2e199_putPolicy_body"></div>
+<div id="d2e199_updatePolicy_body"></div>
</td>
</tr>
<h2>Responses</h2>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-200"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-200" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-200"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-200" class="marked"></p>
<script>
var responseA1PolicyManagement200_description = `OK - Policy updated`;
var responseA1PolicyManagement200_description_break = responseA1PolicyManagement200_description.indexOf('\n');
if (responseA1PolicyManagement200_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-200").text("Status: 200 - " + responseA1PolicyManagement200_description.substring(0, responseA1PolicyManagement200_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-200").html(responseA1PolicyManagement200_description.substring(responseA1PolicyManagement200_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-200" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-200" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-200-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-200-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-200-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-200-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-200" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-200-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-200-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-200" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-200-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-200');
+ $('#responses-A1PolicyManagement-updatePolicy-200-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-200');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-200-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-200-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-400"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-400" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-400"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-400" class="marked"></p>
<script>
var responseA1PolicyManagement400_description = `Bad Request`;
var responseA1PolicyManagement400_description_break = responseA1PolicyManagement400_description.indexOf('\n');
if (responseA1PolicyManagement400_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-400").text("Status: 400 - " + responseA1PolicyManagement400_description.substring(0, responseA1PolicyManagement400_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-400").html(responseA1PolicyManagement400_description.substring(responseA1PolicyManagement400_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-400" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-400" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-400-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-400-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-400-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-400-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-400" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-400-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-400-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-400" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-400-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-400');
+ $('#responses-A1PolicyManagement-updatePolicy-400-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-400');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-400-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-400-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-401"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-401" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-401"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-401" class="marked"></p>
<script>
var responseA1PolicyManagement401_description = `Unauthorized`;
var responseA1PolicyManagement401_description_break = responseA1PolicyManagement401_description.indexOf('\n');
if (responseA1PolicyManagement401_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-401").text("Status: 401 - " + responseA1PolicyManagement401_description.substring(0, responseA1PolicyManagement401_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-401").html(responseA1PolicyManagement401_description.substring(responseA1PolicyManagement401_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-401" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-401" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-401-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-401-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-401-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-401-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-401" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-401-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-401-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-401" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-401-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-401');
+ $('#responses-A1PolicyManagement-updatePolicy-401-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-401');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-401-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-401-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-403"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-403" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-403"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-403" class="marked"></p>
<script>
var responseA1PolicyManagement403_description = `Forbidden`;
var responseA1PolicyManagement403_description_break = responseA1PolicyManagement403_description.indexOf('\n');
if (responseA1PolicyManagement403_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-403").text("Status: 403 - " + responseA1PolicyManagement403_description.substring(0, responseA1PolicyManagement403_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-403").html(responseA1PolicyManagement403_description.substring(responseA1PolicyManagement403_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-403" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-403" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-403-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-403-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-403-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-403-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-403" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-403-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-403-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-403" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-403-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-403');
+ $('#responses-A1PolicyManagement-updatePolicy-403-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-403');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-403-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-403-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-404"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-404" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-404"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-404" class="marked"></p>
<script>
var responseA1PolicyManagement404_description = `Not Found`;
var responseA1PolicyManagement404_description_break = responseA1PolicyManagement404_description.indexOf('\n');
if (responseA1PolicyManagement404_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-404").text("Status: 404 - " + responseA1PolicyManagement404_description.substring(0, responseA1PolicyManagement404_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-404").html(responseA1PolicyManagement404_description.substring(responseA1PolicyManagement404_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-404" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-404" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-404-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-404-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-404-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-404-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-404" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-404-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-404-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-404" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-404-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-404');
+ $('#responses-A1PolicyManagement-updatePolicy-404-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-404');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-404-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-404-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-406"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-406" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-406"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-406" class="marked"></p>
<script>
var responseA1PolicyManagement406_description = `Not Acceptable`;
var responseA1PolicyManagement406_description_break = responseA1PolicyManagement406_description.indexOf('\n');
if (responseA1PolicyManagement406_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-406").text("Status: 406 - " + responseA1PolicyManagement406_description.substring(0, responseA1PolicyManagement406_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-406").html(responseA1PolicyManagement406_description.substring(responseA1PolicyManagement406_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-406" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-406" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-406-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-406-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-406-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-406-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-406" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-406-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-406-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-406" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-406-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-406');
+ $('#responses-A1PolicyManagement-updatePolicy-406-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-406');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-406-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-406-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-411"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-411" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-411"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-411" class="marked"></p>
<script>
var responseA1PolicyManagement411_description = `Length Required`;
var responseA1PolicyManagement411_description_break = responseA1PolicyManagement411_description.indexOf('\n');
if (responseA1PolicyManagement411_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-411").text("Status: 411 - " + responseA1PolicyManagement411_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-411").text("Status: 411 - " + responseA1PolicyManagement411_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-411").text("Status: 411 - " + responseA1PolicyManagement411_description.substring(0, responseA1PolicyManagement411_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-411").html(responseA1PolicyManagement411_description.substring(responseA1PolicyManagement411_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-411").text("Status: 411 - " + responseA1PolicyManagement411_description.substring(0, responseA1PolicyManagement411_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-411").html(responseA1PolicyManagement411_description.substring(responseA1PolicyManagement411_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-411" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-411" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-411-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-411-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-411-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-411-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-411" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-411-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-411-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-411" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-411-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-411');
+ $('#responses-A1PolicyManagement-updatePolicy-411-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-411');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-411-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-411-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-413"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-413" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-413"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-413" class="marked"></p>
<script>
var responseA1PolicyManagement413_description = `Payload Too Large`;
var responseA1PolicyManagement413_description_break = responseA1PolicyManagement413_description.indexOf('\n');
if (responseA1PolicyManagement413_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-413").text("Status: 413 - " + responseA1PolicyManagement413_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-413").text("Status: 413 - " + responseA1PolicyManagement413_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-413").text("Status: 413 - " + responseA1PolicyManagement413_description.substring(0, responseA1PolicyManagement413_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-413").html(responseA1PolicyManagement413_description.substring(responseA1PolicyManagement413_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-413").text("Status: 413 - " + responseA1PolicyManagement413_description.substring(0, responseA1PolicyManagement413_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-413").html(responseA1PolicyManagement413_description.substring(responseA1PolicyManagement413_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-413" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-413" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-413-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-413-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-413-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-413-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-413" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-413-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-413-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-413" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-413-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-413');
+ $('#responses-A1PolicyManagement-updatePolicy-413-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-413');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-413-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-413-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-415"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-415" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-415"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-415" class="marked"></p>
<script>
var responseA1PolicyManagement415_description = `Unsupported Media Type`;
var responseA1PolicyManagement415_description_break = responseA1PolicyManagement415_description.indexOf('\n');
if (responseA1PolicyManagement415_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-415").text("Status: 415 - " + responseA1PolicyManagement415_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-415").text("Status: 415 - " + responseA1PolicyManagement415_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-415").text("Status: 415 - " + responseA1PolicyManagement415_description.substring(0, responseA1PolicyManagement415_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-415").html(responseA1PolicyManagement415_description.substring(responseA1PolicyManagement415_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-415").text("Status: 415 - " + responseA1PolicyManagement415_description.substring(0, responseA1PolicyManagement415_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-415").html(responseA1PolicyManagement415_description.substring(responseA1PolicyManagement415_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-415" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-415" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-415-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-415-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-415-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-415-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-415" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-415-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-415-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-415" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-415-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-415');
+ $('#responses-A1PolicyManagement-updatePolicy-415-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-415');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-415-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-415-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-423"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-423" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-423"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-423" class="marked"></p>
<script>
var responseA1PolicyManagement423_description = `Locked - HTTP Status code which can be used when the state is Locked`;
var responseA1PolicyManagement423_description_break = responseA1PolicyManagement423_description.indexOf('\n');
if (responseA1PolicyManagement423_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-423").text("Status: 423 - " + responseA1PolicyManagement423_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-423").text("Status: 423 - " + responseA1PolicyManagement423_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-423").text("Status: 423 - " + responseA1PolicyManagement423_description.substring(0, responseA1PolicyManagement423_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-423").html(responseA1PolicyManagement423_description.substring(responseA1PolicyManagement423_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-423").text("Status: 423 - " + responseA1PolicyManagement423_description.substring(0, responseA1PolicyManagement423_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-423").html(responseA1PolicyManagement423_description.substring(responseA1PolicyManagement423_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-423" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-423" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-423-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-423-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-423-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-423-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-423" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-423-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-423-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-423" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-423-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-423');
+ $('#responses-A1PolicyManagement-updatePolicy-423-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-423');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-423-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-423-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-429"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-429" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-429"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-429" class="marked"></p>
<script>
var responseA1PolicyManagement429_description = `Too Many Requests`;
var responseA1PolicyManagement429_description_break = responseA1PolicyManagement429_description.indexOf('\n');
if (responseA1PolicyManagement429_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-429").text("Status: 429 - " + responseA1PolicyManagement429_description.substring(0, responseA1PolicyManagement429_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-429").html(responseA1PolicyManagement429_description.substring(responseA1PolicyManagement429_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-429" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-429" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-429-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-429-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-429-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-429-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-429" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-429-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-429-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-429" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-429-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-429');
+ $('#responses-A1PolicyManagement-updatePolicy-429-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-429');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-429-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-429-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-500"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-500" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-500"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-500" class="marked"></p>
<script>
var responseA1PolicyManagement500_description = `Internal Server Error`;
var responseA1PolicyManagement500_description_break = responseA1PolicyManagement500_description.indexOf('\n');
if (responseA1PolicyManagement500_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-500").text("Status: 500 - " + responseA1PolicyManagement500_description.substring(0, responseA1PolicyManagement500_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-500").html(responseA1PolicyManagement500_description.substring(responseA1PolicyManagement500_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-500" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-500" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-500-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-500-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-500-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-500-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-500" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-500-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-500-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-500" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-500-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-500');
+ $('#responses-A1PolicyManagement-updatePolicy-500-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-500');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-500-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-500-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-502"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-502" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-502"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-502" class="marked"></p>
<script>
var responseA1PolicyManagement502_description = `Bad Gateway`;
var responseA1PolicyManagement502_description_break = responseA1PolicyManagement502_description.indexOf('\n');
if (responseA1PolicyManagement502_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-502").text("Status: 502 - " + responseA1PolicyManagement502_description.substring(0, responseA1PolicyManagement502_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-502").html(responseA1PolicyManagement502_description.substring(responseA1PolicyManagement502_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-502" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-502" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-502-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-502-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-502-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-502-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-502" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-502-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-502-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-502" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-502-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-502');
+ $('#responses-A1PolicyManagement-updatePolicy-502-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-502');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-502-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-502-schema-data' type='hidden' value=''></input>
</div>
</div>
- <h3 id="examples-A1PolicyManagement-putPolicy-title-503"></h3>
- <p id="examples-A1PolicyManagement-putPolicy-description-503" class="marked"></p>
+ <h3 id="examples-A1PolicyManagement-updatePolicy-title-503"></h3>
+ <p id="examples-A1PolicyManagement-updatePolicy-description-503" class="marked"></p>
<script>
var responseA1PolicyManagement503_description = `Service Unavailable`;
var responseA1PolicyManagement503_description_break = responseA1PolicyManagement503_description.indexOf('\n');
if (responseA1PolicyManagement503_description_break == -1) {
- $("#examples-A1PolicyManagement-putPolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description);
+ $("#examples-A1PolicyManagement-updatePolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description);
} else {
- $("#examples-A1PolicyManagement-putPolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break));
- $("#examples-A1PolicyManagement-putPolicy-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-title-503").text("Status: 503 - " + responseA1PolicyManagement503_description.substring(0, responseA1PolicyManagement503_description_break));
+ $("#examples-A1PolicyManagement-updatePolicy-description-503").html(responseA1PolicyManagement503_description.substring(responseA1PolicyManagement503_description_break));
}
</script>
- <ul id="responses-detail-A1PolicyManagement-putPolicy-503" class="nav nav-tabs nav-tabs-examples" >
+ <ul id="responses-detail-A1PolicyManagement-updatePolicy-503" class="nav nav-tabs nav-tabs-examples" >
<li class="active">
- <a data-toggle="tab" href="#responses-A1PolicyManagement-putPolicy-503-schema">Schema</a>
+ <a data-toggle="tab" href="#responses-A1PolicyManagement-updatePolicy-503-schema">Schema</a>
</li>
</ul>
- <div class="tab-content" id="responses-A1PolicyManagement-putPolicy-503-wrapper" style='margin-bottom: 10px;'>
- <div class="tab-pane active" id="responses-A1PolicyManagement-putPolicy-503-schema">
- <div id="responses-A1PolicyManagement-putPolicy-schema-503" class="exampleStyle">
+ <div class="tab-content" id="responses-A1PolicyManagement-updatePolicy-503-wrapper" style='margin-bottom: 10px;'>
+ <div class="tab-pane active" id="responses-A1PolicyManagement-updatePolicy-503-schema">
+ <div id="responses-A1PolicyManagement-updatePolicy-schema-503" class="exampleStyle">
<script>
$(document).ready(function() {
var schemaWrapper = {
}
var view = new JSONSchemaView(schema, 3);
- $('#responses-A1PolicyManagement-putPolicy-503-schema-data').val(JSON.stringify(schema));
- var result = $('#responses-A1PolicyManagement-putPolicy-schema-503');
+ $('#responses-A1PolicyManagement-updatePolicy-503-schema-data').val(JSON.stringify(schema));
+ var result = $('#responses-A1PolicyManagement-updatePolicy-schema-503');
result.empty();
result.append(view.render());
});
</script>
</div>
- <input id='responses-A1PolicyManagement-putPolicy-503-schema-data' type='hidden' value=''></input>
+ <input id='responses-A1PolicyManagement-updatePolicy-503-schema-data' type='hidden' value=''></input>
</div>
</div>
</article>
<div class="pull-right"></div>
<div class="clearfix"></div>
<p></p>
- <p class="marked">Replace the current Application Configuration with a new configuration. The new configuration, if accepted, will take effect after a short delay. The new configuration must comply with the Application Configuration schema, which can be found from the the Application Documentation (Developer Guide)
+ <p class="marked">Replace the current Application Configuration with a new configuration. The new configuration, if accepted, will take effect after a short delay. The new configuration must comply with the Application Configuration schema, which can be found from the the Application Documentation (Developer Guide)
</p>
<p></p>
<br />
<div class="tab-pane active" id="examples-ServiceRegistryAndSupervision-keepAliveService-0-curl">
<pre class="prettyprint"><code class="language-bsh">curl -X PUT \
-H "Accept: application/json,application/problem+json" \
- -H "Content-Type: application/json" \
- "https://example.com/a1-policy-management/v1/services/{serviceId}/keepalive" \
- -d ''
+ "https://example.com/a1-policy-management/v1/services/{serviceId}/keepalive"
</code></pre>
</div>
<div class="tab-pane" id="examples-ServiceRegistryAndSupervision-keepAliveService-0-java">
ServiceRegistryAndSupervisionApi apiInstance = new ServiceRegistryAndSupervisionApi();
String serviceId = serviceId_example; // String |
String accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
- String body = body_example; // String |
try {
- Object result = apiInstance.keepAliveService(serviceId, accept, body);
+ Object result = apiInstance.keepAliveService(serviceId, accept);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ServiceRegistryAndSupervisionApi#keepAliveService");
final String serviceId = new String(); // String |
final String accept = new String(); // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
-final String body = new String(); // String |
try {
- final result = await api_instance.keepAliveService(serviceId, accept, body);
+ final result = await api_instance.keepAliveService(serviceId, accept);
print(result);
} catch (e) {
print('Exception when calling DefaultApi->keepAliveService: $e\n');
ServiceRegistryAndSupervisionApi apiInstance = new ServiceRegistryAndSupervisionApi();
String serviceId = serviceId_example; // String |
String accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
- String body = body_example; // String |
try {
- Object result = apiInstance.keepAliveService(serviceId, accept, body);
+ Object result = apiInstance.keepAliveService(serviceId, accept);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ServiceRegistryAndSupervisionApi#keepAliveService");
ServiceRegistryAndSupervisionApi *apiInstance = [[ServiceRegistryAndSupervisionApi alloc] init];
String *serviceId = serviceId_example; // (default to null)
String *accept = application/json; // Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. (optional) (default to null)
-String *body = body_example; // (optional)
// Heartbeat message from a service (keepAliveService)
[apiInstance keepAliveServiceWith:serviceId
accept:accept
- body:body
completionHandler: ^(Object output, NSError* error) {
if (output) {
NSLog(@"%@", output);
var api = new OnapCcsdkA1PolicyManagementApi.ServiceRegistryAndSupervisionApi()
var serviceId = serviceId_example; // {String}
var opts = {
- 'accept': application/json, // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
- 'body': body_example // {String}
+ 'accept': application/json // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
};
var callback = function(error, data, response) {
var apiInstance = new ServiceRegistryAndSupervisionApi();
var serviceId = serviceId_example; // String | (default to null)
var accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. (optional) (default to null)
- var body = body_example; // String | (optional)
try {
// Heartbeat message from a service (keepAliveService)
- Object result = apiInstance.keepAliveService(serviceId, accept, body);
+ Object result = apiInstance.keepAliveService(serviceId, accept);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling ServiceRegistryAndSupervisionApi.keepAliveService: " + e.Message );
$api_instance = new OpenAPITools\Client\Api\ServiceRegistryAndSupervisionApi();
$serviceId = serviceId_example; // String |
$accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
-$body = body_example; // String |
try {
- $result = $api_instance->keepAliveService($serviceId, $accept, $body);
+ $result = $api_instance->keepAliveService($serviceId, $accept);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ServiceRegistryAndSupervisionApi->keepAliveService: ', $e->getMessage(), PHP_EOL;
my $api_instance = WWW::OPenAPIClient::ServiceRegistryAndSupervisionApi->new();
my $serviceId = serviceId_example; # String |
my $accept = application/json; # String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.
-my $body = WWW::OPenAPIClient::Object::String->new(); # String |
eval {
- my $result = $api_instance->keepAliveService(serviceId => $serviceId, accept => $accept, body => $body);
+ my $result = $api_instance->keepAliveService(serviceId => $serviceId, accept => $accept);
print Dumper($result);
};
if ($@) {
api_instance = openapi_client.ServiceRegistryAndSupervisionApi()
serviceId = serviceId_example # String | (default to null)
accept = application/json # String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. (optional) (default to null)
-body = body_example # String | (optional)
try:
# Heartbeat message from a service (keepAliveService)
- api_response = api_instance.keep_alive_service(serviceId, accept=accept, body=body)
+ api_response = api_instance.keep_alive_service(serviceId, accept=accept)
pprint(api_response)
except ApiException as e:
print("Exception when calling ServiceRegistryAndSupervisionApi->keepAliveService: %s\n" % e)</code></pre>
pub fn main() {
let serviceId = serviceId_example; // String
let accept = application/json; // String
- let body = body_example; // String
let mut context = ServiceRegistryAndSupervisionApi::Context::default();
- let result = client.keepAliveService(serviceId, accept, body, &context).wait();
+ let result = client.keepAliveService(serviceId, accept, &context).wait();
println!("{:?}", result);
}
</table>
- <div class="methodsubtabletitle">Body parameters</div>
- <table id="methodsubtable">
- <tr>
- <th width="150px">Name</th>
- <th>Description</th>
- </tr>
- <tr><td style="width:150px;">body </td>
-<td>
-<p class="marked"></p>
-<script>
-$(document).ready(function() {
- var schemaWrapper = {
- "content" : {
- "application/json" : {
- "schema" : {
- "type" : "string"
- }
- }
- },
- "required" : false
-};
-
- var schema = findNode('schema',schemaWrapper).schema;
- if (!schema) {
- schema = schemaWrapper.schema;
- }
- if (schema.$ref != null) {
- schema = defsParser.$refs.get(schema.$ref);
- } else if (schema.items != null && schema.items.$ref != null) {
- schema.items = defsParser.$refs.get(schema.items.$ref);
- } else {
- schemaWrapper.definitions = Object.assign({}, defs);
- $RefParser.dereference(schemaWrapper).catch(function(err) {
- console.log(err);
- });
- }
-
- var view = new JSONSchemaView(schema,2,{isBodyParam: true});
- var result = $('#d2e199_keepAliveService_body');
- result.empty();
- result.append(view.render());
-});
-</script>
-<div id="d2e199_keepAliveService_body"></div>
-</td>
-</tr>
-
- </table>
"email" : "discuss-list@onap.com",
"url" : "https://www.onap.org/"
},
- "description" : "<h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides a REST API for managing A1 policies. <br/>This document describes the latest API set to perform tasks for: </p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring and maintaining consistency of the SMO view of A1 Policies and the Near-RT RICs</li><li>Maintaining a view of each Near-RT RIC's supported A1 Policy Types</li><li>Supervision of registered services (rApps). When a registered service is unavailable, its policies are removed.</li></ul><h2>APIs provided or defined by the service</h2> <p>Note: parts of this API are strongly based on extracts of the O-RAN Alliance R1 Interface specification for A1 Policy Management, and those parts should be considered '� O-RAN ALLIANCE - All rights reserved.'</p> <h3>A1 Policy Management</h3> <p>This is the latest API for managing A1 Policies. This API is partially compliant with O-RAN Alliance R1 Interface specifications for A1 Policy Management:</p><ul><li>A1 Policy retrieval, creation, modification and deletion.</li><li>Retrieval of supported A1 Policy Types for a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management of configuration</h3><p>API for updating and retrieval of the component configuration. Note that there other ways to maintain the configuration.</p><h3>Service Callbacks</h3><p>These are endpoints that are invoked by this service. The callbacks are registered in this service at service registration.</p><h3>NearRT-RIC Repository (Older version)</h3> <p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy is targeted towards one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision of the A1 Policy Management Service.</p><h3>Service Registry and Supervision</h3> <p>API used for registering services/clients/rApps. Each A1 Policy can be tagged with an owner. If the owner service is registered, then the service can be optionally monitored by a heart-beat supervision mechanism, and if the registered service becomes unavailable, then it is removed and all its A1 Policies are deleted. Note that services do not need to be registered to create A1 Policies, but unregistered services are not supervised. This is a feature that is optional to use.</p>",
+ "description" : "<h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides a REST API for managing A1 policies. <br/>This document describes the latest API set to perform tasks for: </p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring and maintaining consistency of the SMO view of A1 Policies and the Near-RT RICs</li><li>Maintaining a view of each Near-RT RIC's supported A1 Policy Types</li><li>Supervision of registered services (rApps). When a registered service is unavailable, its policies are removed.</li></ul><h2>APIs provided or defined by the service</h2> <p>Note: parts of this API are strongly based on extracts of the O-RAN Alliance R1 Interface specification for A1 Policy Management, and those parts should be considered '© O-RAN ALLIANCE - All rights reserved.'</p> <h3>A1 Policy Management</h3> <p>This is the latest API for managing A1 Policies. This API is partially compliant with O-RAN Alliance R1 Interface specifications for A1 Policy Management:</p><ul><li>A1 Policy retrieval, creation, modification and deletion.</li><li>Retrieval of supported A1 Policy Types for a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management of configuration</h3><p>API for updating and retrieval of the component configuration. Note that there other ways to maintain the configuration.</p><h3>Service Callbacks</h3><p>These are endpoints that are invoked by this service. The callbacks are registered in this service at service registration.</p><h3>NearRT-RIC Repository (Older version)</h3> <p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy is targeted towards one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision of the A1 Policy Management Service.</p><h3>Service Registry and Supervision</h3> <p>API used for registering services/clients/rApps. Each A1 Policy can be tagged with an owner. If the owner service is registered, then the service can be optionally monitored by a heart-beat supervision mechanism, and if the registered service becomes unavailable, then it is removed and all its A1 Policies are deleted. Note that services do not need to be registered to create A1 Policies, but unregistered services are not supervised. This is a feature that is optional to use.</p>",
"license" : {
"name" : "Copyright (C) 2024 - 2025 OpenInfra Foundation Europe. Licensed under the Apache 2 License.",
"url" : "http://www.apache.org/licenses/LICENSE-2.0"
"schema" : {
"nullable" : false,
"type" : "string"
- },
- "style" : "simple"
+ }
}, {
"description" : "Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.",
- "explode" : false,
"in" : "header",
"name" : "Accept",
- "required" : false,
"schema" : {
"example" : "application/json",
"type" : "string"
- },
- "style" : "simple"
+ }
} ],
"responses" : {
"200" : {
"style" : "form"
}, {
"description" : "Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.",
- "explode" : false,
"in" : "header",
"name" : "Accept",
- "required" : false,
"schema" : {
"example" : "application/json",
"type" : "string"
- },
- "style" : "simple"
+ }
} ],
"responses" : {
"200" : {
"style" : "form"
}, {
"description" : "Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.",
- "explode" : false,
"in" : "header",
"name" : "Accept",
- "required" : false,
"schema" : {
"example" : "application/json",
"type" : "string"
- },
- "style" : "simple"
+ }
} ],
"responses" : {
"200" : {
"style" : "simple"
}, {
"description" : "Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.",
- "explode" : false,
"in" : "header",
"name" : "Accept",
- "required" : false,
"schema" : {
"example" : "application/json",
"type" : "string"
- },
- "style" : "simple"
+ }
} ],
"responses" : {
"200" : {
"style" : "simple"
}, {
"description" : "Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.",
- "explode" : false,
"in" : "header",
"name" : "Accept",
- "required" : false,
"schema" : {
"example" : "application/json",
"type" : "string"
- },
- "style" : "simple"
+ }
} ],
"responses" : {
"204" : {
"style" : "simple"
}, {
"description" : "Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.",
- "explode" : false,
"in" : "header",
"name" : "Accept",
- "required" : false,
"schema" : {
"example" : "application/json",
"type" : "string"
- },
- "style" : "simple"
+ }
} ],
"responses" : {
"200" : {
},
"put" : {
"description" : "Update an existing A1 Policy instance's policy data using its policy ID.",
- "operationId" : "putPolicy",
+ "operationId" : "updatePolicy",
"parameters" : [ {
- "explode" : false,
"in" : "path",
"name" : "policyId",
"required" : true,
"schema" : {
"type" : "string"
- },
- "style" : "simple"
+ }
} ],
"requestBody" : {
"content" : {
"description" : "Service Unavailable"
}
},
- "summary" : "Update an A1 Policy's policy data (putPolicy)",
+ "summary" : "Update an A1 Policy's policy data (updatePolicy)",
"tags" : [ "A1 Policy Management" ]
}
},
"style" : "simple"
}, {
"description" : "Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.",
- "explode" : false,
"in" : "header",
"name" : "Accept",
- "required" : false,
"schema" : {
"example" : "application/json",
"type" : "string"
- },
- "style" : "simple"
+ }
} ],
"responses" : {
"200" : {
"/policies" : {
"get" : {
"description" : "Returns a collection of A1 Policy Instance IDs for policies that match given search criteria. If several query parameters are defined, the policies matching all conditions are returned.\n",
- "operationId" : "getAllPolicies",
+ "operationId" : "getPolicyIds",
"parameters" : [ {
"description" : "Select policies with a given A1 Policy Type ID.",
"explode" : true,
"style" : "form"
}, {
"description" : "Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.",
- "explode" : false,
"in" : "header",
"name" : "Accept",
- "required" : false,
"schema" : {
"example" : "application/json",
"type" : "string"
- },
- "style" : "simple"
+ }
} ],
"responses" : {
"200" : {
"description" : "Service Unavailable"
}
},
- "summary" : "Query for A1 Policy instances (getAllPolicies)",
+ "summary" : "Query for A1 Policy instances (getPolicyIds)",
"tags" : [ "A1 Policy Management" ]
},
"post" : {
"headers" : {
"Location" : {
"description" : "Contains the URI of the newly created A1 Policy Instances. This URI includes the A1 Policy Instance ID for the newly created policy instance.\n",
- "explode" : false,
"required" : true,
"schema" : {
"type" : "string"
- },
- "style" : "simple"
+ }
},
"Content-Type" : {
"description" : "Media Type of the response",
- "explode" : false,
"schema" : {
"example" : "application/json",
"type" : "string"
- },
- "style" : "simple"
+ }
}
}
},
"tags" : [ "Configuration" ]
},
"put" : {
- "description" : "Replace the current Application Configuration with a new configuration. The new configuration, if accepted, will take effect after a short delay. The new configuration must comply with the Application Configuration schema, which can be found from the the Application Documentation (Developer Guide) \n",
+ "description" : "Replace the current Application Configuration with a new configuration. The new configuration, if accepted, will take effect after a short delay. The new configuration must comply with the Application Configuration schema, which can be found from the the Application Documentation (Developer Guide)\n",
"operationId" : "putConfiguration",
"requestBody" : {
"content" : {
"style" : "simple"
}, {
"description" : "Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.",
- "explode" : false,
"in" : "header",
"name" : "Accept",
- "required" : false,
"schema" : {
"example" : "application/json",
"type" : "string"
- },
- "style" : "simple"
+ }
} ],
- "requestBody" : {
- "content" : {
- "application/json" : {
- "schema" : {
- "type" : "string"
- }
- }
- },
- "required" : false
- },
"responses" : {
"200" : {
"content" : {
"style" : "form"
}, {
"description" : "Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.",
- "explode" : false,
"in" : "header",
"name" : "Accept",
- "required" : false,
"schema" : {
"example" : "application/json",
"type" : "string"
- },
- "style" : "simple"
+ }
} ],
"responses" : {
"200" : {
"style" : "simple"
}, {
"description" : "Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.",
- "explode" : false,
"in" : "header",
"name" : "Accept",
- "required" : false,
"schema" : {
"example" : "application/json",
"type" : "string"
- },
- "style" : "simple"
+ }
} ],
"responses" : {
"204" : {
},
"components" : {
"examples" : {
- "ServiceStatusList" : {
- "description" : "List of service information",
- "value" : {
- "serviceList" : [ {
- "callbackUrl" : "http://callback.url",
- "serviceId" : "serviceId1",
- "keepAliveIntervalSeconds" : 0,
- "timeSinceLastActivitySeconds" : 6
- }, {
- "callbackUrl" : "http://callback.url",
- "serviceId" : "serviceId2",
- "keepAliveIntervalSeconds" : 500,
- "timeSinceLastActivitySeconds" : 401
- } ]
- }
- },
"StatusInfo" : {
"value" : {
"status" : "success"
} ]
}
},
- "PolicyObject" : {
- "value" : {
- "scope" : {
- "ueId" : {
- "guRanUeId" : {
- "globalGnbId" : {
- "plmnId" : {
- "mcc" : "123",
- "mnc" : "45"
- },
- "gnbId" : {
- "gnbIdLength" : 24,
- "gnbIdValue" : 12345678
- }
- },
- "RanUeId" : "a31c510b20e64a74"
- }
- },
- "groupId" : {
- "spId" : 123
- },
- "qosId" : {
- "5qI" : 1
- },
- "cellId" : {
- "plmnId" : {
- "mcc" : "123",
- "mnc" : "45"
- },
- "cId" : {
- "ncI" : 123
- }
- }
- },
- "qosObjectives" : {
- "gfbr" : 100,
- "mfbr" : 200,
- "priorityLevel" : 3,
- "pdb" : 50
- }
- }
- },
"PolicyTypeInformation" : {
"value" : [ {
"policyTypeId" : "STD_QOS2_0.1.0",
}
}
}
+ },
+ "PolicyObject" : {
+ "value" : {
+ "scope" : {
+ "ueId" : {
+ "guRanUeId" : {
+ "globalGnbId" : {
+ "plmnId" : {
+ "mcc" : "123",
+ "mnc" : "45"
+ },
+ "gnbId" : {
+ "gnbIdLength" : 24,
+ "gnbIdValue" : 12345678
+ }
+ },
+ "RanUeId" : "a31c510b20e64a74"
+ }
+ },
+ "groupId" : {
+ "spId" : 123
+ },
+ "qosId" : {
+ "5qI" : 1
+ },
+ "cellId" : {
+ "plmnId" : {
+ "mcc" : "123",
+ "mnc" : "45"
+ },
+ "cId" : {
+ "ncI" : 123
+ }
+ }
+ },
+ "qosObjectives" : {
+ "gfbr" : 100,
+ "mfbr" : 200,
+ "priorityLevel" : 3,
+ "pdb" : 50
+ }
+ }
+ },
+ "ServiceStatusList" : {
+ "description" : "List of service information",
+ "value" : {
+ "serviceList" : [ {
+ "callbackUrl" : "http://callback.url",
+ "serviceId" : "serviceId1",
+ "keepAliveIntervalSeconds" : 0,
+ "timeSinceLastActivitySeconds" : 6
+ }, {
+ "callbackUrl" : "http://callback.url",
+ "serviceId" : "serviceId2",
+ "keepAliveIntervalSeconds" : 500,
+ "timeSinceLastActivitySeconds" : 401
+ } ]
+ }
}
},
"responses" : {
+ "404" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Not Found"
+ },
"400" : {
"content" : {
"application/problem+json" : {
},
"description" : "Forbidden"
},
- "404" : {
+ "406" : {
"content" : {
"application/problem+json" : {
"schema" : {
}
}
},
- "description" : "Not Found"
+ "description" : "Not Acceptable"
},
- "405" : {
+ "429" : {
"content" : {
"application/problem+json" : {
"schema" : {
}
}
},
- "description" : "Method Not Allowed"
+ "description" : "Too Many Requests"
},
- "406" : {
+ "500" : {
"content" : {
"application/problem+json" : {
"schema" : {
}
}
},
- "description" : "Not Acceptable"
+ "description" : "Internal Server Error"
},
- "409" : {
+ "502" : {
"content" : {
"application/problem+json" : {
"schema" : {
}
}
},
- "description" : "Conflict"
+ "description" : "Bad Gateway"
},
- "411" : {
+ "503" : {
"content" : {
"application/problem+json" : {
"schema" : {
}
}
},
- "description" : "Length Required"
+ "description" : "Service Unavailable"
},
- "413" : {
+ "411" : {
"content" : {
"application/problem+json" : {
"schema" : {
}
}
},
- "description" : "Payload Too Large"
+ "description" : "Length Required"
},
- "415" : {
+ "413" : {
"content" : {
"application/problem+json" : {
"schema" : {
}
}
},
- "description" : "Unsupported Media Type"
+ "description" : "Payload Too Large"
},
- "429" : {
+ "415" : {
"content" : {
"application/problem+json" : {
"schema" : {
}
}
},
- "description" : "Too Many Requests"
+ "description" : "Unsupported Media Type"
},
- "500" : {
+ "Locked" : {
"content" : {
"application/problem+json" : {
+ "example" : {
+ "status" : 423,
+ "title" : "Locked",
+ "detail" : "State is Locked in the provided request."
+ },
"schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
+ "$ref" : "#/components/schemas/ErrorInformation"
}
}
},
- "description" : "Internal Server Error"
+ "description" : "Locked - HTTP Status code which can be used when the state is Locked"
},
- "502" : {
+ "405" : {
"content" : {
"application/problem+json" : {
"schema" : {
}
}
},
- "description" : "Bad Gateway"
+ "description" : "Method Not Allowed"
},
- "503" : {
+ "409" : {
"content" : {
"application/problem+json" : {
"schema" : {
}
}
},
- "description" : "Service Unavailable"
- },
- "Locked" : {
- "content" : {
- "application/problem+json" : {
- "example" : {
- "status" : 423,
- "title" : "Locked",
- "detail" : "State is Locked in the provided request."
- },
- "schema" : {
- "$ref" : "#/components/schemas/ErrorInformation"
- }
- }
- },
- "description" : "Locked - HTTP Status code which can be used when the state is Locked"
+ "description" : "Conflict"
}
},
"schemas" : {
- "PolicyTypeInformation" : {
- "description" : "A data tuple to indicate that an identified A1 Policy Type is supported at an identified Near-RT RIC.",
- "example" : {
- "policyTypeId" : "STD_QOS2_0.1.0",
- "nearRtRicId" : "ric_g3_2"
- },
+ "StatusInfo" : {
"properties" : {
- "policyTypeId" : {
- "description" : "A1 Policy Type identifier",
+ "status" : {
+ "description" : "Status text",
"type" : "string"
- },
- "nearRtRicId" : {
- "$ref" : "#/components/schemas/NearRtRicId"
}
},
- "required" : [ "nearRtRicId", "policyTypeId" ],
"type" : "object"
},
- "PolicyObjectInformation" : {
- "description" : "Information to create an A1 Policy Instance",
+ "ProblemDetails" : {
+ "description" : "Object to carry details about a problem in an HTTP response according to IETF RFC 7807",
"properties" : {
- "nearRtRicId" : {
- "description" : "Identity of the target Near-RT RIC",
- "example" : "Near-RT-Ric-ID1",
+ "type" : {
+ "description" : "URI reference according to IETF RFC 3986 that identifies the problem type",
"type" : "string"
},
- "transient" : {
- "default" : false,
- "description" : "If true, the policy is automatically deleted if the targeted Near-RT RIC restarts or recovers. If false, the A1 Policy Instance remains, and is re-pushed to the targeted Near-RT RIC after a restart or recovery. If false, the A1 Policy Instance is maintained and must be deleted separately in the event of Near-RT RIC restart or recovery. Default is false.\n",
- "nullable" : false,
- "type" : "boolean"
- },
- "policyId" : {
- "description" : "An optional identity to be used for the new A1 Policy Instance. If this value is present, it must be unique. If not present the new A1 Policy Instance will be assigned a newly generated unique ID, and the new ID can be extracted from the 'Location' header in the response.\n",
- "example" : "POLICY-ID1",
+ "title" : {
+ "description" : "Human-readable summary of the problem type",
"type" : "string"
},
- "serviceId" : {
- "default" : "",
- "description" : "the identity of the service owning the policy. This can be used to group the policies (it is possible to get all policies associated to a service). Note that the service does not need to be registered. If the service is registered, the newly created A1 Policy Instance will be subject to the same supervision rules as the the service's other policies.",
- "example" : "rApp 1",
- "type" : "string"
+ "status" : {
+ "description" : "HTTP status code",
+ "type" : "number"
},
- "policyObject" : {
- "$ref" : "#/components/schemas/PolicyObject"
+ "detail" : {
+ "description" : "Human-readable explanation",
+ "type" : "string"
},
- "policyTypeId" : {
- "description" : "A1 Policy Type identity",
- "example" : "ORAN_QOS_1.0.0 '(typeName_SemVersion)'",
+ "instance" : {
+ "description" : "URI reference that identifies the specific occurrence of the problem",
"type" : "string"
}
},
- "required" : [ "nearRtRicId", "policyObject", "policyTypeId" ],
"type" : "object"
},
- "ErrorInformation" : {
- "description" : "Problem as defined in https://tools.ietf.org/html/rfc7807",
+ "RicInfo" : {
+ "description" : "Information for a Near-RT RIC",
"properties" : {
- "detail" : {
- "description" : "A human-readable explanation specific to this occurrence of the problem.",
- "example" : "Policy type not found",
+ "ricId" : {
+ "description" : "Identity of the Near-RT RIC",
"type" : "string"
},
- "title" : {
- "description" : "A specific error name",
- "example" : "Not Found",
+ "managedElementIds" : {
+ "description" : "Identities for managed entities",
+ "items" : {
+ "description" : "Identity for a managed entity",
+ "type" : "string"
+ },
+ "type" : "array"
+ },
+ "state" : {
+ "description" : "Represents the state of a Near-RT RIC",
+ "enum" : [ "UNAVAILABLE", "AVAILABLE", "SYNCHRONIZING", "CONSISTENCY_CHECK" ],
"type" : "string"
},
- "status" : {
- "description" : "The HTTP status code generated by the origin server for this occurrence of the problem.\n",
- "example" : 404,
- "format" : "int32",
- "type" : "integer"
+ "policyTypeIds" : {
+ "description" : "Supported A1 Policy Types",
+ "items" : {
+ "description" : "Supported A1 Policy Type ID",
+ "type" : "string"
+ },
+ "type" : "array"
}
},
"type" : "object"
},
- "PolicyObject" : {
- "description" : "Policy Object is a JSON representation policy data for an A1 Policy Instance. The schema for this policy data is defined in the corresponding A1 Policy Type. \n",
+ "RicInfoList" : {
+ "description" : "Collection of Near-RT RIC information objects",
+ "properties" : {
+ "rics" : {
+ "description" : "List of Near-RT RIC information objects",
+ "items" : {
+ "$ref" : "#/components/schemas/RicInfo"
+ },
+ "type" : "array"
+ }
+ },
"type" : "object"
},
+ "PolicyTypeInformation" : {
+ "description" : "A data tuple to indicate that an identified A1 Policy Type is supported at an identified Near-RT RIC.",
+ "example" : {
+ "policyTypeId" : "STD_QOS2_0.1.0",
+ "nearRtRicId" : "ric_g3_2"
+ },
+ "properties" : {
+ "policyTypeId" : {
+ "description" : "A1 Policy Type identifier",
+ "type" : "string"
+ },
+ "nearRtRicId" : {
+ "$ref" : "#/components/schemas/NearRtRicId"
+ }
+ },
+ "required" : [ "nearRtRicId", "policyTypeId" ],
+ "type" : "object"
+ },
+ "NearRtRicId" : {
+ "description" : "Identity of the Near-RT RIC",
+ "type" : "string"
+ },
"PolicyTypeObject" : {
"description" : "An A1 Policy Type, as defined in O-RAN Alliance A1TD",
"example" : {
"description" : "A schema to define the contents of the status information for A1 Policy Instances. Status schemas are Policy Type specific. All status information for all A1 Policy Instances of an A1 Policy Type should comply with the type's status schema.\n",
"type" : "object"
},
- "PolicyStatusObject" : {
- "description" : "A generic policy status object that can be used to transport any policy status. Additionally, a schema for policy status can be defined in the corresponding A1 Policy Type.\n",
- "type" : "object"
- },
- "void" : {
- "description" : "Void/empty",
+ "PolicyObject" : {
+ "description" : "Policy Object is a JSON representation policy data for an A1 Policy Instance. The schema for this policy data is defined in the corresponding A1 Policy Type.\n",
"type" : "object"
},
- "StatusInfo" : {
+ "ErrorInformation" : {
+ "description" : "Problem as defined in https://tools.ietf.org/html/rfc7807",
"properties" : {
- "status" : {
- "description" : "Status text",
+ "detail" : {
+ "description" : "A human-readable explanation specific to this occurrence of the problem.",
+ "example" : "Policy type not found",
+ "type" : "string"
+ },
+ "title" : {
+ "description" : "A specific error name",
+ "example" : "Not Found",
"type" : "string"
+ },
+ "status" : {
+ "description" : "The HTTP status code generated by the origin server for this occurrence of the problem.\n",
+ "example" : 404,
+ "format" : "int32",
+ "type" : "integer"
}
},
"type" : "object"
},
- "RicInfo" : {
- "description" : "Information for a Near-RT RIC",
+ "PolicyStatusObject" : {
+ "description" : "A generic policy status object that can be used to transport any policy status. Additionally, a schema for policy status can be defined in the corresponding A1 Policy Type.\n",
+ "type" : "object"
+ },
+ "PolicyInformation" : {
+ "description" : "Information tuple for a single A1 Policy Instance. Contains the A1 Policy Instance ID, and the ID of the Near-RT RIC where the policy is created.\n",
"properties" : {
- "ricId" : {
- "description" : "Identity of the Near-RT RIC",
- "type" : "string"
- },
- "managedElementIds" : {
- "description" : "Identities for managed entities",
- "items" : {
- "description" : "Identity for a managed entity",
- "type" : "string"
- },
- "type" : "array"
- },
- "state" : {
- "description" : "Represents the state of a Near-RT RIC",
- "enum" : [ "UNAVAILABLE", "AVAILABLE", "SYNCHRONIZING", "CONSISTENCY_CHECK" ],
+ "policyId" : {
+ "description" : "Identity of the A1 Policy Instance",
"type" : "string"
},
- "policyTypeIds" : {
- "description" : "Supported A1 Policy Types",
- "items" : {
- "description" : "Supported A1 Policy Type ID",
- "type" : "string"
- },
- "type" : "array"
+ "nearRtRicId" : {
+ "$ref" : "#/components/schemas/NearRtRicId"
}
},
+ "required" : [ "nearRtRicId", "policyId" ],
"type" : "object"
},
- "ServiceRegistrationInfo" : {
- "description" : "Information for a service to be registered",
+ "PolicyObjectInformation" : {
+ "description" : "Information to create an A1 Policy Instance",
"properties" : {
- "callbackUrl" : {
- "description" : "Callback URL for notifying of Near-RT RIC state changes",
+ "nearRtRicId" : {
+ "description" : "Identity of the target Near-RT RIC",
+ "example" : "Near-RT-Ric-ID1",
+ "type" : "string"
+ },
+ "transient" : {
+ "default" : false,
+ "description" : "If true, the policy is automatically deleted if the targeted Near-RT RIC restarts or recovers. If false, the A1 Policy Instance remains, and is re-pushed to the targeted Near-RT RIC after a restart or recovery. If false, the A1 Policy Instance is maintained and must be deleted separately in the event of Near-RT RIC restart or recovery. Default is false.\n",
+ "nullable" : false,
+ "type" : "boolean"
+ },
+ "policyId" : {
+ "description" : "An optional identity to be used for the new A1 Policy Instance. If this value is present, it must be unique. If not present the new A1 Policy Instance will be assigned a newly generated unique ID, and the new ID can be extracted from the 'Location' header in the response.\n",
+ "example" : "POLICY-ID1",
"type" : "string"
},
"serviceId" : {
- "description" : "Identity of the service",
+ "default" : "",
+ "description" : "the identity of the service owning the policy. This can be used to group the policies (it is possible to get all policies associated to a service). Note that the service does not need to be registered. If the service is registered, the newly created A1 Policy Instance will be subject to the same supervision rules as the the service's other policies.",
+ "example" : "rApp 1",
"type" : "string"
},
- "keepAliveIntervalSeconds" : {
- "description" : "Keep alive interval for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.\n",
- "format" : "int64",
- "type" : "integer"
+ "policyObject" : {
+ "$ref" : "#/components/schemas/PolicyObject"
+ },
+ "policyTypeId" : {
+ "description" : "A1 Policy Type identity",
+ "example" : "ORAN_QOS_1.0.0 '(typeName_SemVersion)'",
+ "type" : "string"
+ }
+ },
+ "required" : [ "nearRtRicId", "policyObject", "policyTypeId" ],
+ "type" : "object"
+ },
+ "void" : {
+ "description" : "Void/empty",
+ "type" : "object"
+ },
+ "ServiceStatusList" : {
+ "properties" : {
+ "serviceList" : {
+ "description" : "List of Service Status objects, describing a collection of registered services.",
+ "items" : {
+ "$ref" : "#/components/schemas/ServiceStatus"
+ },
+ "type" : "array"
}
},
- "required" : [ "serviceId" ],
"type" : "object"
},
"ServiceStatus" : {
},
"type" : "object"
},
- "RicInfoList" : {
- "description" : "Collection of Near-RT RIC information objects",
- "properties" : {
- "rics" : {
- "description" : "List of Near-RT RIC information objects",
- "items" : {
- "$ref" : "#/components/schemas/RicInfo"
- },
- "type" : "array"
- }
- },
- "type" : "object"
- },
- "NearRtRicId" : {
- "description" : "Identity of the Near-RT RIC",
- "type" : "string"
- },
- "PolicyInformation" : {
- "description" : "Information tuple for a single A1 Policy Instance. Contains the A1 Policy Instance ID, and the ID of the Near-RT RIC where the policy is created.\n",
+ "ServiceRegistrationInfo" : {
+ "description" : "Information for a service to be registered",
"properties" : {
- "policyId" : {
- "description" : "Identity of the A1 Policy Instance",
+ "callbackUrl" : {
+ "description" : "Callback URL for notifying of Near-RT RIC state changes",
"type" : "string"
},
- "nearRtRicId" : {
- "$ref" : "#/components/schemas/NearRtRicId"
- }
- },
- "required" : [ "nearRtRicId", "policyId" ],
- "type" : "object"
- },
- "ServiceStatusList" : {
- "properties" : {
- "serviceList" : {
- "description" : "List of Service Status objects, describing a collection of registered services.",
- "items" : {
- "$ref" : "#/components/schemas/ServiceStatus"
- },
- "type" : "array"
+ "serviceId" : {
+ "description" : "Identity of the service",
+ "type" : "string"
+ },
+ "keepAliveIntervalSeconds" : {
+ "description" : "Keep alive interval for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.\n",
+ "format" : "int64",
+ "type" : "integer"
}
},
+ "required" : [ "serviceId" ],
"type" : "object"
},
"ServiceCallbackInfo" : {
},
"required" : [ "eventType", "ricId" ],
"type" : "object"
- },
- "ProblemDetails" : {
- "description" : "Object to carry details about a problem in an HTTP response according to IETF RFC 7807",
- "properties" : {
- "type" : {
- "description" : "URI reference according to IETF RFC 3986 that identifies the problem type",
- "type" : "string"
- },
- "title" : {
- "description" : "Human-readable summary of the problem type",
- "type" : "string"
- },
- "status" : {
- "description" : "HTTP status code",
- "type" : "number"
- },
- "detail" : {
- "description" : "Human-readable explanation",
- "type" : "string"
- },
- "instance" : {
- "description" : "URI reference that identifies the specific occurrence of the problem",
- "type" : "string"
- }
- },
- "type" : "object"
}
}
}
"email" : "discuss-list@onap.com",
"url" : "https://www.onap.org/"
},
- "description" : "<h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides a REST API for managing A1 policies. <br/>This document describes the latest API set to perform tasks for: </p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring and maintaining consistency of the SMO view of A1 Policies and the Near-RT RICs</li><li>Maintaining a view of each Near-RT RIC's supported A1 Policy Types</li><li>Supervision of registered services (rApps). When a registered service is unavailable, its policies are removed.</li></ul><h2>APIs provided or defined by the service</h2> <p>Note: parts of this API are strongly based on extracts of the O-RAN Alliance R1 Interface specification for A1 Policy Management, and those parts should be considered '� O-RAN ALLIANCE - All rights reserved.'</p> <h3>A1 Policy Management</h3> <p>This is the latest API for managing A1 Policies. This API is partially compliant with O-RAN Alliance R1 Interface specifications for A1 Policy Management:</p><ul><li>A1 Policy retrieval, creation, modification and deletion.</li><li>Retrieval of supported A1 Policy Types for a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management of configuration</h3><p>API for updating and retrieval of the component configuration. Note that there other ways to maintain the configuration.</p><h3>Service Callbacks</h3><p>These are endpoints that are invoked by this service. The callbacks are registered in this service at service registration.</p><h3>NearRT-RIC Repository (Older version)</h3> <p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy is targeted towards one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision of the A1 Policy Management Service.</p><h3>Service Registry and Supervision</h3> <p>API used for registering services/clients/rApps. Each A1 Policy can be tagged with an owner. If the owner service is registered, then the service can be optionally monitored by a heart-beat supervision mechanism, and if the registered service becomes unavailable, then it is removed and all its A1 Policies are deleted. Note that services do not need to be registered to create A1 Policies, but unregistered services are not supervised. This is a feature that is optional to use.</p>",
+ "description" : "<h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides a REST API for managing A1 policies. <br/>This document describes the latest API set to perform tasks for: </p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring and maintaining consistency of the SMO view of A1 Policies and the Near-RT RICs</li><li>Maintaining a view of each Near-RT RIC's supported A1 Policy Types</li><li>Supervision of registered services (rApps). When a registered service is unavailable, its policies are removed.</li></ul><h2>APIs provided or defined by the service</h2> <p>Note: parts of this API are strongly based on extracts of the O-RAN Alliance R1 Interface specification for A1 Policy Management, and those parts should be considered '© O-RAN ALLIANCE - All rights reserved.'</p> <h3>A1 Policy Management</h3> <p>This is the latest API for managing A1 Policies. This API is partially compliant with O-RAN Alliance R1 Interface specifications for A1 Policy Management:</p><ul><li>A1 Policy retrieval, creation, modification and deletion.</li><li>Retrieval of supported A1 Policy Types for a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management of configuration</h3><p>API for updating and retrieval of the component configuration. Note that there other ways to maintain the configuration.</p><h3>Service Callbacks</h3><p>These are endpoints that are invoked by this service. The callbacks are registered in this service at service registration.</p><h3>NearRT-RIC Repository (Older version)</h3> <p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy is targeted towards one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision of the A1 Policy Management Service.</p><h3>Service Registry and Supervision</h3> <p>API used for registering services/clients/rApps. Each A1 Policy can be tagged with an owner. If the owner service is registered, then the service can be optionally monitored by a heart-beat supervision mechanism, and if the registered service becomes unavailable, then it is removed and all its A1 Policies are deleted. Note that services do not need to be registered to create A1 Policies, but unregistered services are not supervised. This is a feature that is optional to use.</p>",
"license" : {
"name" : "Copyright (C) 2024 - 2025 OpenInfra Foundation Europe. Licensed under the Apache 2 License.",
"url" : "http://www.apache.org/licenses/LICENSE-2.0"
"schema" : {
"nullable" : false,
"type" : "string"
- },
- "style" : "simple"
+ }
}, {
"description" : "Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.",
- "explode" : false,
"in" : "header",
"name" : "Accept",
- "required" : false,
"schema" : {
"example" : "application/json",
"type" : "string"
- },
- "style" : "simple"
+ }
} ],
"responses" : {
"200" : {
"style" : "form"
}, {
"description" : "Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.",
- "explode" : false,
"in" : "header",
"name" : "Accept",
- "required" : false,
"schema" : {
"example" : "application/json",
"type" : "string"
- },
- "style" : "simple"
+ }
} ],
"responses" : {
"200" : {
"style" : "form"
}, {
"description" : "Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.",
- "explode" : false,
"in" : "header",
"name" : "Accept",
- "required" : false,
"schema" : {
"example" : "application/json",
"type" : "string"
- },
- "style" : "simple"
+ }
} ],
"responses" : {
"200" : {
"style" : "simple"
}, {
"description" : "Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.",
- "explode" : false,
"in" : "header",
"name" : "Accept",
- "required" : false,
"schema" : {
"example" : "application/json",
"type" : "string"
- },
- "style" : "simple"
+ }
} ],
"responses" : {
"200" : {
"style" : "simple"
}, {
"description" : "Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.",
- "explode" : false,
"in" : "header",
"name" : "Accept",
- "required" : false,
"schema" : {
"example" : "application/json",
"type" : "string"
- },
- "style" : "simple"
+ }
} ],
"responses" : {
"204" : {
"style" : "simple"
}, {
"description" : "Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.",
- "explode" : false,
"in" : "header",
"name" : "Accept",
- "required" : false,
"schema" : {
"example" : "application/json",
"type" : "string"
- },
- "style" : "simple"
+ }
} ],
"responses" : {
"200" : {
},
"put" : {
"description" : "Update an existing A1 Policy instance's policy data using its policy ID.",
- "operationId" : "putPolicy",
+ "operationId" : "updatePolicy",
"parameters" : [ {
- "explode" : false,
"in" : "path",
"name" : "policyId",
"required" : true,
"schema" : {
"type" : "string"
- },
- "style" : "simple"
+ }
} ],
"requestBody" : {
"content" : {
"description" : "Service Unavailable"
}
},
- "summary" : "Update an A1 Policy's policy data (putPolicy)",
+ "summary" : "Update an A1 Policy's policy data (updatePolicy)",
"tags" : [ "A1 Policy Management" ]
}
},
"style" : "simple"
}, {
"description" : "Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.",
- "explode" : false,
"in" : "header",
"name" : "Accept",
- "required" : false,
"schema" : {
"example" : "application/json",
"type" : "string"
- },
- "style" : "simple"
+ }
} ],
"responses" : {
"200" : {
"/policies" : {
"get" : {
"description" : "Returns a collection of A1 Policy Instance IDs for policies that match given search criteria. If several query parameters are defined, the policies matching all conditions are returned.\n",
- "operationId" : "getAllPolicies",
+ "operationId" : "getPolicyIds",
"parameters" : [ {
"description" : "Select policies with a given A1 Policy Type ID.",
"explode" : true,
"style" : "form"
}, {
"description" : "Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.",
- "explode" : false,
"in" : "header",
"name" : "Accept",
- "required" : false,
"schema" : {
"example" : "application/json",
"type" : "string"
- },
- "style" : "simple"
+ }
} ],
"responses" : {
"200" : {
"description" : "Service Unavailable"
}
},
- "summary" : "Query for A1 Policy instances (getAllPolicies)",
+ "summary" : "Query for A1 Policy instances (getPolicyIds)",
"tags" : [ "A1 Policy Management" ]
},
"post" : {
"headers" : {
"Location" : {
"description" : "Contains the URI of the newly created A1 Policy Instances. This URI includes the A1 Policy Instance ID for the newly created policy instance.\n",
- "explode" : false,
"required" : true,
"schema" : {
"type" : "string"
- },
- "style" : "simple"
+ }
},
"Content-Type" : {
"description" : "Media Type of the response",
- "explode" : false,
"schema" : {
"example" : "application/json",
"type" : "string"
- },
- "style" : "simple"
+ }
}
}
},
"tags" : [ "Configuration" ]
},
"put" : {
- "description" : "Replace the current Application Configuration with a new configuration. The new configuration, if accepted, will take effect after a short delay. The new configuration must comply with the Application Configuration schema, which can be found from the the Application Documentation (Developer Guide) \n",
+ "description" : "Replace the current Application Configuration with a new configuration. The new configuration, if accepted, will take effect after a short delay. The new configuration must comply with the Application Configuration schema, which can be found from the the Application Documentation (Developer Guide)\n",
"operationId" : "putConfiguration",
"requestBody" : {
"content" : {
"style" : "simple"
}, {
"description" : "Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.",
- "explode" : false,
"in" : "header",
"name" : "Accept",
- "required" : false,
"schema" : {
"example" : "application/json",
"type" : "string"
- },
- "style" : "simple"
+ }
} ],
- "requestBody" : {
- "content" : {
- "application/json" : {
- "schema" : {
- "type" : "string"
- }
- }
- },
- "required" : false
- },
"responses" : {
"200" : {
"content" : {
"style" : "form"
}, {
"description" : "Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.",
- "explode" : false,
"in" : "header",
"name" : "Accept",
- "required" : false,
"schema" : {
"example" : "application/json",
"type" : "string"
- },
- "style" : "simple"
+ }
} ],
"responses" : {
"200" : {
"style" : "simple"
}, {
"description" : "Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed.",
- "explode" : false,
"in" : "header",
"name" : "Accept",
- "required" : false,
"schema" : {
"example" : "application/json",
"type" : "string"
- },
- "style" : "simple"
+ }
} ],
"responses" : {
"204" : {
},
"components" : {
"examples" : {
- "ServiceStatusList" : {
- "description" : "List of service information",
- "value" : {
- "serviceList" : [ {
- "callbackUrl" : "http://callback.url",
- "serviceId" : "serviceId1",
- "keepAliveIntervalSeconds" : 0,
- "timeSinceLastActivitySeconds" : 6
- }, {
- "callbackUrl" : "http://callback.url",
- "serviceId" : "serviceId2",
- "keepAliveIntervalSeconds" : 500,
- "timeSinceLastActivitySeconds" : 401
- } ]
- }
- },
"StatusInfo" : {
"value" : {
"status" : "success"
} ]
}
},
- "PolicyObject" : {
- "value" : {
- "scope" : {
- "ueId" : {
- "guRanUeId" : {
- "globalGnbId" : {
- "plmnId" : {
- "mcc" : "123",
- "mnc" : "45"
- },
- "gnbId" : {
- "gnbIdLength" : 24,
- "gnbIdValue" : 12345678
- }
- },
- "RanUeId" : "a31c510b20e64a74"
- }
- },
- "groupId" : {
- "spId" : 123
- },
- "qosId" : {
- "5qI" : 1
- },
- "cellId" : {
- "plmnId" : {
- "mcc" : "123",
- "mnc" : "45"
- },
- "cId" : {
- "ncI" : 123
- }
- }
- },
- "qosObjectives" : {
- "gfbr" : 100,
- "mfbr" : 200,
- "priorityLevel" : 3,
- "pdb" : 50
- }
- }
- },
"PolicyTypeInformation" : {
"value" : [ {
"policyTypeId" : "STD_QOS2_0.1.0",
}
}
}
+ },
+ "PolicyObject" : {
+ "value" : {
+ "scope" : {
+ "ueId" : {
+ "guRanUeId" : {
+ "globalGnbId" : {
+ "plmnId" : {
+ "mcc" : "123",
+ "mnc" : "45"
+ },
+ "gnbId" : {
+ "gnbIdLength" : 24,
+ "gnbIdValue" : 12345678
+ }
+ },
+ "RanUeId" : "a31c510b20e64a74"
+ }
+ },
+ "groupId" : {
+ "spId" : 123
+ },
+ "qosId" : {
+ "5qI" : 1
+ },
+ "cellId" : {
+ "plmnId" : {
+ "mcc" : "123",
+ "mnc" : "45"
+ },
+ "cId" : {
+ "ncI" : 123
+ }
+ }
+ },
+ "qosObjectives" : {
+ "gfbr" : 100,
+ "mfbr" : 200,
+ "priorityLevel" : 3,
+ "pdb" : 50
+ }
+ }
+ },
+ "ServiceStatusList" : {
+ "description" : "List of service information",
+ "value" : {
+ "serviceList" : [ {
+ "callbackUrl" : "http://callback.url",
+ "serviceId" : "serviceId1",
+ "keepAliveIntervalSeconds" : 0,
+ "timeSinceLastActivitySeconds" : 6
+ }, {
+ "callbackUrl" : "http://callback.url",
+ "serviceId" : "serviceId2",
+ "keepAliveIntervalSeconds" : 500,
+ "timeSinceLastActivitySeconds" : 401
+ } ]
+ }
}
},
"responses" : {
+ "404" : {
+ "content" : {
+ "application/problem+json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/ProblemDetails"
+ }
+ }
+ },
+ "description" : "Not Found"
+ },
"400" : {
"content" : {
"application/problem+json" : {
},
"description" : "Forbidden"
},
- "404" : {
+ "406" : {
"content" : {
"application/problem+json" : {
"schema" : {
}
}
},
- "description" : "Not Found"
+ "description" : "Not Acceptable"
},
- "405" : {
+ "429" : {
"content" : {
"application/problem+json" : {
"schema" : {
}
}
},
- "description" : "Method Not Allowed"
+ "description" : "Too Many Requests"
},
- "406" : {
+ "500" : {
"content" : {
"application/problem+json" : {
"schema" : {
}
}
},
- "description" : "Not Acceptable"
+ "description" : "Internal Server Error"
},
- "409" : {
+ "502" : {
"content" : {
"application/problem+json" : {
"schema" : {
}
}
},
- "description" : "Conflict"
+ "description" : "Bad Gateway"
},
- "411" : {
+ "503" : {
"content" : {
"application/problem+json" : {
"schema" : {
}
}
},
- "description" : "Length Required"
+ "description" : "Service Unavailable"
},
- "413" : {
+ "411" : {
"content" : {
"application/problem+json" : {
"schema" : {
}
}
},
- "description" : "Payload Too Large"
+ "description" : "Length Required"
},
- "415" : {
+ "413" : {
"content" : {
"application/problem+json" : {
"schema" : {
}
}
},
- "description" : "Unsupported Media Type"
+ "description" : "Payload Too Large"
},
- "429" : {
+ "415" : {
"content" : {
"application/problem+json" : {
"schema" : {
}
}
},
- "description" : "Too Many Requests"
+ "description" : "Unsupported Media Type"
},
- "500" : {
+ "Locked" : {
"content" : {
"application/problem+json" : {
+ "example" : {
+ "status" : 423,
+ "title" : "Locked",
+ "detail" : "State is Locked in the provided request."
+ },
"schema" : {
- "$ref" : "#/components/schemas/ProblemDetails"
+ "$ref" : "#/components/schemas/ErrorInformation"
}
}
},
- "description" : "Internal Server Error"
+ "description" : "Locked - HTTP Status code which can be used when the state is Locked"
},
- "502" : {
+ "405" : {
"content" : {
"application/problem+json" : {
"schema" : {
}
}
},
- "description" : "Bad Gateway"
+ "description" : "Method Not Allowed"
},
- "503" : {
+ "409" : {
"content" : {
"application/problem+json" : {
"schema" : {
}
}
},
- "description" : "Service Unavailable"
- },
- "Locked" : {
- "content" : {
- "application/problem+json" : {
- "example" : {
- "status" : 423,
- "title" : "Locked",
- "detail" : "State is Locked in the provided request."
- },
- "schema" : {
- "$ref" : "#/components/schemas/ErrorInformation"
- }
- }
- },
- "description" : "Locked - HTTP Status code which can be used when the state is Locked"
+ "description" : "Conflict"
}
},
"schemas" : {
- "PolicyTypeInformation" : {
- "description" : "A data tuple to indicate that an identified A1 Policy Type is supported at an identified Near-RT RIC.",
- "example" : {
- "policyTypeId" : "STD_QOS2_0.1.0",
- "nearRtRicId" : "ric_g3_2"
- },
+ "StatusInfo" : {
"properties" : {
- "policyTypeId" : {
- "description" : "A1 Policy Type identifier",
+ "status" : {
+ "description" : "Status text",
"type" : "string"
- },
- "nearRtRicId" : {
- "$ref" : "#/components/schemas/NearRtRicId"
}
},
- "required" : [ "nearRtRicId", "policyTypeId" ],
"type" : "object"
},
- "PolicyObjectInformation" : {
- "description" : "Information to create an A1 Policy Instance",
+ "ProblemDetails" : {
+ "description" : "Object to carry details about a problem in an HTTP response according to IETF RFC 7807",
"properties" : {
- "nearRtRicId" : {
- "description" : "Identity of the target Near-RT RIC",
- "example" : "Near-RT-Ric-ID1",
+ "type" : {
+ "description" : "URI reference according to IETF RFC 3986 that identifies the problem type",
"type" : "string"
},
- "transient" : {
- "default" : false,
- "description" : "If true, the policy is automatically deleted if the targeted Near-RT RIC restarts or recovers. If false, the A1 Policy Instance remains, and is re-pushed to the targeted Near-RT RIC after a restart or recovery. If false, the A1 Policy Instance is maintained and must be deleted separately in the event of Near-RT RIC restart or recovery. Default is false.\n",
- "nullable" : false,
- "type" : "boolean"
- },
- "policyId" : {
- "description" : "An optional identity to be used for the new A1 Policy Instance. If this value is present, it must be unique. If not present the new A1 Policy Instance will be assigned a newly generated unique ID, and the new ID can be extracted from the 'Location' header in the response.\n",
- "example" : "POLICY-ID1",
+ "title" : {
+ "description" : "Human-readable summary of the problem type",
"type" : "string"
},
- "serviceId" : {
- "default" : "",
- "description" : "the identity of the service owning the policy. This can be used to group the policies (it is possible to get all policies associated to a service). Note that the service does not need to be registered. If the service is registered, the newly created A1 Policy Instance will be subject to the same supervision rules as the the service's other policies.",
- "example" : "rApp 1",
- "type" : "string"
+ "status" : {
+ "description" : "HTTP status code",
+ "type" : "number"
},
- "policyObject" : {
- "$ref" : "#/components/schemas/PolicyObject"
+ "detail" : {
+ "description" : "Human-readable explanation",
+ "type" : "string"
},
- "policyTypeId" : {
- "description" : "A1 Policy Type identity",
- "example" : "ORAN_QOS_1.0.0 '(typeName_SemVersion)'",
+ "instance" : {
+ "description" : "URI reference that identifies the specific occurrence of the problem",
"type" : "string"
}
},
- "required" : [ "nearRtRicId", "policyObject", "policyTypeId" ],
"type" : "object"
},
- "ErrorInformation" : {
- "description" : "Problem as defined in https://tools.ietf.org/html/rfc7807",
+ "RicInfo" : {
+ "description" : "Information for a Near-RT RIC",
"properties" : {
- "detail" : {
- "description" : "A human-readable explanation specific to this occurrence of the problem.",
- "example" : "Policy type not found",
+ "ricId" : {
+ "description" : "Identity of the Near-RT RIC",
"type" : "string"
},
- "title" : {
- "description" : "A specific error name",
- "example" : "Not Found",
+ "managedElementIds" : {
+ "description" : "Identities for managed entities",
+ "items" : {
+ "description" : "Identity for a managed entity",
+ "type" : "string"
+ },
+ "type" : "array"
+ },
+ "state" : {
+ "description" : "Represents the state of a Near-RT RIC",
+ "enum" : [ "UNAVAILABLE", "AVAILABLE", "SYNCHRONIZING", "CONSISTENCY_CHECK" ],
"type" : "string"
},
- "status" : {
- "description" : "The HTTP status code generated by the origin server for this occurrence of the problem.\n",
- "example" : 404,
- "format" : "int32",
- "type" : "integer"
+ "policyTypeIds" : {
+ "description" : "Supported A1 Policy Types",
+ "items" : {
+ "description" : "Supported A1 Policy Type ID",
+ "type" : "string"
+ },
+ "type" : "array"
}
},
"type" : "object"
},
- "PolicyObject" : {
- "description" : "Policy Object is a JSON representation policy data for an A1 Policy Instance. The schema for this policy data is defined in the corresponding A1 Policy Type. \n",
+ "RicInfoList" : {
+ "description" : "Collection of Near-RT RIC information objects",
+ "properties" : {
+ "rics" : {
+ "description" : "List of Near-RT RIC information objects",
+ "items" : {
+ "$ref" : "#/components/schemas/RicInfo"
+ },
+ "type" : "array"
+ }
+ },
"type" : "object"
},
+ "PolicyTypeInformation" : {
+ "description" : "A data tuple to indicate that an identified A1 Policy Type is supported at an identified Near-RT RIC.",
+ "example" : {
+ "policyTypeId" : "STD_QOS2_0.1.0",
+ "nearRtRicId" : "ric_g3_2"
+ },
+ "properties" : {
+ "policyTypeId" : {
+ "description" : "A1 Policy Type identifier",
+ "type" : "string"
+ },
+ "nearRtRicId" : {
+ "$ref" : "#/components/schemas/NearRtRicId"
+ }
+ },
+ "required" : [ "nearRtRicId", "policyTypeId" ],
+ "type" : "object"
+ },
+ "NearRtRicId" : {
+ "description" : "Identity of the Near-RT RIC",
+ "type" : "string"
+ },
"PolicyTypeObject" : {
"description" : "An A1 Policy Type, as defined in O-RAN Alliance A1TD",
"example" : {
"description" : "A schema to define the contents of the status information for A1 Policy Instances. Status schemas are Policy Type specific. All status information for all A1 Policy Instances of an A1 Policy Type should comply with the type's status schema.\n",
"type" : "object"
},
- "PolicyStatusObject" : {
- "description" : "A generic policy status object that can be used to transport any policy status. Additionally, a schema for policy status can be defined in the corresponding A1 Policy Type.\n",
- "type" : "object"
- },
- "void" : {
- "description" : "Void/empty",
+ "PolicyObject" : {
+ "description" : "Policy Object is a JSON representation policy data for an A1 Policy Instance. The schema for this policy data is defined in the corresponding A1 Policy Type.\n",
"type" : "object"
},
- "StatusInfo" : {
+ "ErrorInformation" : {
+ "description" : "Problem as defined in https://tools.ietf.org/html/rfc7807",
"properties" : {
- "status" : {
- "description" : "Status text",
+ "detail" : {
+ "description" : "A human-readable explanation specific to this occurrence of the problem.",
+ "example" : "Policy type not found",
+ "type" : "string"
+ },
+ "title" : {
+ "description" : "A specific error name",
+ "example" : "Not Found",
"type" : "string"
+ },
+ "status" : {
+ "description" : "The HTTP status code generated by the origin server for this occurrence of the problem.\n",
+ "example" : 404,
+ "format" : "int32",
+ "type" : "integer"
}
},
"type" : "object"
},
- "RicInfo" : {
- "description" : "Information for a Near-RT RIC",
+ "PolicyStatusObject" : {
+ "description" : "A generic policy status object that can be used to transport any policy status. Additionally, a schema for policy status can be defined in the corresponding A1 Policy Type.\n",
+ "type" : "object"
+ },
+ "PolicyInformation" : {
+ "description" : "Information tuple for a single A1 Policy Instance. Contains the A1 Policy Instance ID, and the ID of the Near-RT RIC where the policy is created.\n",
"properties" : {
- "ricId" : {
- "description" : "Identity of the Near-RT RIC",
- "type" : "string"
- },
- "managedElementIds" : {
- "description" : "Identities for managed entities",
- "items" : {
- "description" : "Identity for a managed entity",
- "type" : "string"
- },
- "type" : "array"
- },
- "state" : {
- "description" : "Represents the state of a Near-RT RIC",
- "enum" : [ "UNAVAILABLE", "AVAILABLE", "SYNCHRONIZING", "CONSISTENCY_CHECK" ],
+ "policyId" : {
+ "description" : "Identity of the A1 Policy Instance",
"type" : "string"
},
- "policyTypeIds" : {
- "description" : "Supported A1 Policy Types",
- "items" : {
- "description" : "Supported A1 Policy Type ID",
- "type" : "string"
- },
- "type" : "array"
+ "nearRtRicId" : {
+ "$ref" : "#/components/schemas/NearRtRicId"
}
},
+ "required" : [ "nearRtRicId", "policyId" ],
"type" : "object"
},
- "ServiceRegistrationInfo" : {
- "description" : "Information for a service to be registered",
+ "PolicyObjectInformation" : {
+ "description" : "Information to create an A1 Policy Instance",
"properties" : {
- "callbackUrl" : {
- "description" : "Callback URL for notifying of Near-RT RIC state changes",
+ "nearRtRicId" : {
+ "description" : "Identity of the target Near-RT RIC",
+ "example" : "Near-RT-Ric-ID1",
+ "type" : "string"
+ },
+ "transient" : {
+ "default" : false,
+ "description" : "If true, the policy is automatically deleted if the targeted Near-RT RIC restarts or recovers. If false, the A1 Policy Instance remains, and is re-pushed to the targeted Near-RT RIC after a restart or recovery. If false, the A1 Policy Instance is maintained and must be deleted separately in the event of Near-RT RIC restart or recovery. Default is false.\n",
+ "nullable" : false,
+ "type" : "boolean"
+ },
+ "policyId" : {
+ "description" : "An optional identity to be used for the new A1 Policy Instance. If this value is present, it must be unique. If not present the new A1 Policy Instance will be assigned a newly generated unique ID, and the new ID can be extracted from the 'Location' header in the response.\n",
+ "example" : "POLICY-ID1",
"type" : "string"
},
"serviceId" : {
- "description" : "Identity of the service",
+ "default" : "",
+ "description" : "the identity of the service owning the policy. This can be used to group the policies (it is possible to get all policies associated to a service). Note that the service does not need to be registered. If the service is registered, the newly created A1 Policy Instance will be subject to the same supervision rules as the the service's other policies.",
+ "example" : "rApp 1",
"type" : "string"
},
- "keepAliveIntervalSeconds" : {
- "description" : "Keep alive interval for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.\n",
- "format" : "int64",
- "type" : "integer"
+ "policyObject" : {
+ "$ref" : "#/components/schemas/PolicyObject"
+ },
+ "policyTypeId" : {
+ "description" : "A1 Policy Type identity",
+ "example" : "ORAN_QOS_1.0.0 '(typeName_SemVersion)'",
+ "type" : "string"
+ }
+ },
+ "required" : [ "nearRtRicId", "policyObject", "policyTypeId" ],
+ "type" : "object"
+ },
+ "void" : {
+ "description" : "Void/empty",
+ "type" : "object"
+ },
+ "ServiceStatusList" : {
+ "properties" : {
+ "serviceList" : {
+ "description" : "List of Service Status objects, describing a collection of registered services.",
+ "items" : {
+ "$ref" : "#/components/schemas/ServiceStatus"
+ },
+ "type" : "array"
}
},
- "required" : [ "serviceId" ],
"type" : "object"
},
"ServiceStatus" : {
},
"type" : "object"
},
- "RicInfoList" : {
- "description" : "Collection of Near-RT RIC information objects",
- "properties" : {
- "rics" : {
- "description" : "List of Near-RT RIC information objects",
- "items" : {
- "$ref" : "#/components/schemas/RicInfo"
- },
- "type" : "array"
- }
- },
- "type" : "object"
- },
- "NearRtRicId" : {
- "description" : "Identity of the Near-RT RIC",
- "type" : "string"
- },
- "PolicyInformation" : {
- "description" : "Information tuple for a single A1 Policy Instance. Contains the A1 Policy Instance ID, and the ID of the Near-RT RIC where the policy is created.\n",
+ "ServiceRegistrationInfo" : {
+ "description" : "Information for a service to be registered",
"properties" : {
- "policyId" : {
- "description" : "Identity of the A1 Policy Instance",
+ "callbackUrl" : {
+ "description" : "Callback URL for notifying of Near-RT RIC state changes",
"type" : "string"
},
- "nearRtRicId" : {
- "$ref" : "#/components/schemas/NearRtRicId"
- }
- },
- "required" : [ "nearRtRicId", "policyId" ],
- "type" : "object"
- },
- "ServiceStatusList" : {
- "properties" : {
- "serviceList" : {
- "description" : "List of Service Status objects, describing a collection of registered services.",
- "items" : {
- "$ref" : "#/components/schemas/ServiceStatus"
- },
- "type" : "array"
+ "serviceId" : {
+ "description" : "Identity of the service",
+ "type" : "string"
+ },
+ "keepAliveIntervalSeconds" : {
+ "description" : "Keep alive interval for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.\n",
+ "format" : "int64",
+ "type" : "integer"
}
},
+ "required" : [ "serviceId" ],
"type" : "object"
},
"ServiceCallbackInfo" : {
},
"required" : [ "eventType", "ricId" ],
"type" : "object"
- },
- "ProblemDetails" : {
- "description" : "Object to carry details about a problem in an HTTP response according to IETF RFC 7807",
- "properties" : {
- "type" : {
- "description" : "URI reference according to IETF RFC 3986 that identifies the problem type",
- "type" : "string"
- },
- "title" : {
- "description" : "Human-readable summary of the problem type",
- "type" : "string"
- },
- "status" : {
- "description" : "HTTP status code",
- "type" : "number"
- },
- "detail" : {
- "description" : "Human-readable explanation",
- "type" : "string"
- },
- "instance" : {
- "description" : "URI reference that identifies the specific occurrence of the problem",
- "type" : "string"
- }
- },
- "type" : "object"
}
}
}
openapi: 3.0.3
info:
- title: ONAP CCSDK - A1 Policy Management API
- version: 1.0.0
- x-api-id: e9776a07-0813-4fca-9801-6f892f0a7c13
- x-audience: external-public
- description: "<h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service\
- \ provides a REST API for managing A1 policies. <br/>This document describes the latest API set
- \ to perform tasks for: </p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring\
- \ and maintaining consistency of the SMO view of A1 Policies and the Near-RT RICs</li><li>Maintaining\
- \ a view of each Near-RT RIC's supported A1 Policy Types</li><li>Supervision of registered services\
- \ (rApps). When a registered service is unavailable, its policies are removed.</li></ul><h2>APIs\
- \ provided or defined by the service</h2>\
- \ <p>Note: parts of this API are strongly based on extracts of the O-RAN Alliance R1 Interface specification\
- \ for A1 Policy Management, and those parts should be considered '© O-RAN ALLIANCE - All rights reserved.'</p>\
- \ <h3>A1 Policy Management</h3>\
- \ <p>This is the latest API for managing A1 Policies. This API is partially compliant with O-RAN\
- \ Alliance R1 Interface specifications for A1 Policy Management:</p><ul><li>A1 Policy retrieval, creation,\
+ contact:
+ email: discuss-list@onap.com
+ url: https://www.onap.org/
+ description: "<h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides\
+ \ a REST API for managing A1 policies. <br/>This document describes the latest\
+ \ API set to perform tasks for: </p><ul><li>A1 Policy creation, modification\
+ \ and deletion.</li><li>Monitoring and maintaining consistency of the SMO view\
+ \ of A1 Policies and the Near-RT RICs</li><li>Maintaining a view of each Near-RT\
+ \ RIC's supported A1 Policy Types</li><li>Supervision of registered services (rApps).\
+ \ When a registered service is unavailable, its policies are removed.</li></ul><h2>APIs\
+ \ provided or defined by the service</h2> <p>Note: parts of this API are strongly\
+ \ based on extracts of the O-RAN Alliance R1 Interface specification for A1 Policy\
+ \ Management, and those parts should be considered '© O-RAN ALLIANCE - All rights\
+ \ reserved.'</p> <h3>A1 Policy Management</h3> <p>This is the latest API for managing\
+ \ A1 Policies. This API is partially compliant with O-RAN Alliance R1 Interface\
+ \ specifications for A1 Policy Management:</p><ul><li>A1 Policy retrieval, creation,\
\ modification and deletion.</li><li>Retrieval of supported A1 Policy Types for\
\ a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management\
\ of configuration</h3><p>API for updating and retrieval of the component configuration.\
\ Note that there other ways to maintain the configuration.</p><h3>Service Callbacks</h3><p>These\
\ are endpoints that are invoked by this service. The callbacks are registered\
- \ in this service at service registration.</p><h3>NearRT-RIC Repository (Older version)</h3>\
- \ <p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy\
- \ is targeted towards one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision\
- \ of the A1 Policy Management Service.</p><h3>Service Registry and Supervision</h3>\
- \ <p>API used for registering services/clients/rApps. Each A1 Policy can be tagged with an owner.\
- \ If the owner service is registered, then the service can be optionally monitored by a heart-beat supervision\
- \ mechanism, and if the registered service becomes unavailable, then it is removed and all its A1 Policies are \
- \ deleted. Note that services do not need to be registered to create A1 Policies, but unregistered \
- \ services are not supervised. This is a feature that is optional to use.</p>"
+ \ in this service at service registration.</p><h3>NearRT-RIC Repository (Older\
+ \ version)</h3> <p>This is an API that provides support for looking up a NearRT-RIC.\
+ \ Each A1 policy is targeted towards one Near-RT RIC.</p><h3>Health Check</h3><p>API\
+ \ used for supervision of the A1 Policy Management Service.</p><h3>Service Registry\
+ \ and Supervision</h3> <p>API used for registering services/clients/rApps. Each\
+ \ A1 Policy can be tagged with an owner. If the owner service is registered, then\
+ \ the service can be optionally monitored by a heart-beat supervision mechanism,\
+ \ and if the registered service becomes unavailable, then it is removed and all\
+ \ its A1 Policies are deleted. Note that services do not need to be registered\
+ \ to create A1 Policies, but unregistered services are not supervised. This\
+ \ is a feature that is optional to use.</p>"
license:
- name: Copyright (C) 2024 - 2025 OpenInfra Foundation Europe. Licensed under the Apache 2 License.
+ name: Copyright (C) 2024 - 2025 OpenInfra Foundation Europe. Licensed under the
+ Apache 2 License.
url: http://www.apache.org/licenses/LICENSE-2.0
- contact:
- url: https://www.onap.org/
- email: discuss-list@onap.com
+ title: ONAP CCSDK - A1 Policy Management API
+ version: 1.0.0
+ x-api-id: e9776a07-0813-4fca-9801-6f892f0a7c13
+ x-audience: external-public
externalDocs:
- description: 'Based on parts of O-RAN ALLIANCE specification: O-RAN.WG2.R1AP-v07.00'
- url: 'https://www.o-ran.org/specifications'
+ description: "Based on parts of O-RAN ALLIANCE specification: O-RAN.WG2.R1AP-v07.00"
+ url: https://www.o-ran.org/specifications
servers:
- - url: '{apiRoot}/a1-policy-management/v1'
- variables:
- apiRoot:
- default: 'https://example.com'
- description: 'This is the Host:Port or Address where the A1-Policy Management Service can be accessed.
- Note: This URL path format aligns with the O-RAN Alliance R1-AP specifications for A1 Policy Management'
+- url: "{apiRoot}/a1-policy-management/v1"
+ variables:
+ apiRoot:
+ default: https://example.com
+ description: "This is the Host:Port or Address where the A1-Policy Management\
+ \ Service can be accessed. Note: This URL path format aligns with the O-RAN\
+ \ Alliance R1-AP specifications for A1 Policy Management"
tags:
- - name: A1 Policy Management
- description: >
- API used to get, create, update and delete A1 Policy Instances. Also used to query A1 Policy Types.
- - name: NearRT-RIC Repository
- description: >
- API used to get information about registered Near-RT RICs.
- - name: Service Registry and Supervision
- description: >
- API used to manage registered services, and control their keep-alive status via heart-beat messages.
- - name: Health Check
- description: >
- API used to get the health status and statistics of this service.
- - name: Configuration
- description: >
- API used to create or fetch the application configuration.
+- description: |
+ API used to get, create, update and delete A1 Policy Instances. Also used to query A1 Policy Types.
+ name: A1 Policy Management
+- description: |
+ API used to get information about registered Near-RT RICs.
+ name: NearRT-RIC Repository
+- description: |
+ API used to manage registered services, and control their keep-alive status via heart-beat messages.
+ name: Service Registry and Supervision
+- description: |
+ API used to get the health status and statistics of this service.
+ name: Health Check
+- description: |
+ API used to create or fetch the application configuration.
+ name: Configuration
paths:
/status:
get:
- operationId: getStatus
description: Returns status and statistics of this service
- summary: Get Status (getStatus)
- tags:
- - Health Check
+ operationId: getStatus
responses:
"200":
content:
application/json:
- schema:
- $ref: '#/components/schemas/StatusInfo'
examples:
status_info:
$ref: '#/components/examples/StatusInfo'
+ schema:
+ $ref: '#/components/schemas/StatusInfo'
description: OK- Service is living Ok
"404":
- $ref: '#/components/responses/404'
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Found
+ summary: Get Status (getStatus)
+ tags:
+ - Health Check
/rics/{ricId}:
get:
- operationId: getRic
description: Get information about a Near-RT RIC
- summary: Get a Near-RT RIC (getRic)
- tags:
- - NearRT-RIC Repository
+ operationId: getRic
parameters:
- - description: The identity of a Near-RT RIC to get information for.
- explode: true
- in: path
- name: ricId
- required: true
- schema:
- type: string
- nullable: false
- - description: Specifies the content type that the client expects to receive in response to the request.
- Only application/json is allowed.
- in: header
- name: Accept
- schema:
- type: string
- example: application/json
+ - description: The identity of a Near-RT RIC to get information for.
+ explode: true
+ in: path
+ name: ricId
+ required: true
+ schema:
+ nullable: false
+ type: string
+ - description: Specifies the content type that the client expects to receive
+ in response to the request. Only application/json is allowed.
+ in: header
+ name: Accept
+ schema:
+ example: application/json
+ type: string
responses:
"200":
content:
application/json:
- schema:
- $ref: '#/components/schemas/RicInfo'
examples:
ric_info:
$ref: '#/components/examples/RicInfo'
+ schema:
+ $ref: '#/components/schemas/RicInfo'
description: OK - Near-RT RIC is found OK
"404":
- $ref: '#/components/responses/404'
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Found
+ summary: Get a Near-RT RIC (getRic)
+ tags:
+ - NearRT-RIC Repository
/rics:
get:
- operationId: getRics
description: Get all Near-RT RICs that supports a given A1 Policy Type ID
- summary: Get Near-RT RICs for A1 Policy Type (getRics)
- tags:
- - NearRT-RIC Repository
+ operationId: getRics
parameters:
- - description: >
- The identity of an A1 Policy Type. If given, all Near-RT RICs supporting
- the A1 Policy Type are returned.
- explode: true
- in: query
- name: policyTypeId
- required: false
- schema:
- type: string
- style: form
- - description: Specifies the content type that the client expects to receive in response to the request.
- Only application/json is allowed.
- in: header
- name: Accept
- schema:
- type: string
- example: application/json
+ - description: |
+ The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned.
+ explode: true
+ in: query
+ name: policyTypeId
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: Specifies the content type that the client expects to receive
+ in response to the request. Only application/json is allowed.
+ in: header
+ name: Accept
+ schema:
+ example: application/json
+ type: string
responses:
"200":
content:
application/json:
- schema:
- $ref: '#/components/schemas/RicInfoList'
examples:
ric_info_list:
$ref: '#/components/examples/RicInfoList'
+ schema:
+ $ref: '#/components/schemas/RicInfoList'
description: OK
"404":
- $ref: '#/components/responses/404'
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Found
+ summary: Get Near-RT RICs for A1 Policy Type (getRics)
+ tags:
+ - NearRT-RIC Repository
/policy-types:
get:
description: Query A1 Policy Type identities using query parameters
operationId: getPolicyTypes
- summary: Get A1 Policy Types (getPolicyTypes)
- tags:
- - A1 Policy Management
parameters:
- - description: Select types for the given Near-RT RIC identity.
- explode: true
- in: query
- name: nearRtRicId
- required: false
- schema:
- type: string
- style: form
- - description: Select types compatible with the given type name (type identity has the format 'typename_version')
- explode: true
- in: query
- name: typeName
- required: false
- schema:
- type: string
- style: form
- - description: >
- Select types that are compatible with the given version. This
- parameter is only applicable in conjunction with typeName. As an example
- version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching
- types will be returned sorted in ascending order.
- explode: true
- in: query
- name: compatibleWithVersion
- required: false
- schema:
- type: string
- style: form
- - description: Specifies the content type that the client expects to receive in response to the request.
- Only application/json is allowed.
- in: header
- name: Accept
- schema:
- type: string
- example: application/json
+ - description: Select types for the given Near-RT RIC identity.
+ explode: true
+ in: query
+ name: nearRtRicId
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: Select types compatible with the given type name (type identity
+ has the format 'typename_version')
+ explode: true
+ in: query
+ name: typeName
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: |
+ Select types that are compatible with the given version. This parameter is only applicable in conjunction with typeName. As an example version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching types will be returned sorted in ascending order.
+ explode: true
+ in: query
+ name: compatibleWithVersion
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: Specifies the content type that the client expects to receive
+ in response to the request. Only application/json is allowed.
+ in: header
+ name: Accept
+ schema:
+ example: application/json
+ type: string
responses:
- '200':
+ "200":
content:
application/json:
+ examples:
+ PolicyTypeInformation:
+ $ref: '#/components/examples/PolicyTypeInformation'
schema:
items:
$ref: '#/components/schemas/PolicyTypeInformation'
type: array
- examples:
- PolicyTypeInformation:
- $ref: '#/components/examples/PolicyTypeInformation'
description: OK - Policy Type IDs found Ok
- '400':
- $ref: '#/components/responses/400'
- '401':
- $ref: '#/components/responses/401'
- '403':
- $ref: '#/components/responses/403'
- '404':
- $ref: '#/components/responses/404'
- '406':
- $ref: '#/components/responses/406'
- '429':
- $ref: '#/components/responses/429'
- '500':
- $ref: '#/components/responses/500'
- '502':
- $ref: '#/components/responses/502'
- '503':
- $ref: '#/components/responses/503'
+ "400":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Bad Request
+ "401":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Unauthorized
+ "403":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Forbidden
+ "404":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Found
+ "406":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Acceptable
+ "429":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Too Many Requests
+ "500":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Internal Server Error
+ "502":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Bad Gateway
+ "503":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Service Unavailable
+ summary: Get A1 Policy Types (getPolicyTypes)
+ tags:
+ - A1 Policy Management
/policy-types/{policyTypeId}:
get:
- operationId: getPolicyTypeDefinition
description: Get an A1 Policy Type definition using its policy type ID
- summary: Get an A1 Policy Type definition (getPolicyTypeDefinition)
- tags:
- - A1 Policy Management
+ operationId: getPolicyTypeDefinition
parameters:
- - explode: false
- in: path
- name: policyTypeId
- required: true
- schema:
- type: string
- style: simple
- - description: Specifies the content type that the client expects to receive in response to the request.
- Only application/json is allowed.
- in: header
- name: Accept
- schema:
- type: string
- example: application/json
+ - explode: false
+ in: path
+ name: policyTypeId
+ required: true
+ schema:
+ type: string
+ style: simple
+ - description: Specifies the content type that the client expects to receive
+ in response to the request. Only application/json is allowed.
+ in: header
+ name: Accept
+ schema:
+ example: application/json
+ type: string
responses:
- '200':
+ "200":
content:
application/json:
- schema:
- $ref: '#/components/schemas/PolicyTypeObject'
examples:
PolicyTypeObject:
$ref: '#/components/examples/PolicyTypeObject'
+ schema:
+ $ref: '#/components/schemas/PolicyTypeObject'
description: OK - details and schema of the requested A1 Policy Type
- '400':
- $ref: '#/components/responses/400'
- '401':
- $ref: '#/components/responses/401'
- '403':
- $ref: '#/components/responses/403'
- '404':
- $ref: '#/components/responses/404'
- '406':
- $ref: '#/components/responses/406'
- '429':
- $ref: '#/components/responses/429'
- '500':
- $ref: '#/components/responses/500'
- '502':
- $ref: '#/components/responses/502'
- '503':
- $ref: '#/components/responses/503'
- /policies/{policyId}:
- put:
- operationId: putPolicy
- description: Update an existing A1 Policy instance's policy data using its policy ID.
- summary: Update an A1 Policy's policy data (putPolicy)
+ "400":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Bad Request
+ "401":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Unauthorized
+ "403":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Forbidden
+ "404":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Found
+ "406":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Acceptable
+ "429":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Too Many Requests
+ "500":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Internal Server Error
+ "502":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Bad Gateway
+ "503":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Service Unavailable
+ summary: Get an A1 Policy Type definition (getPolicyTypeDefinition)
tags:
- - A1 Policy Management
+ - A1 Policy Management
+ /policies/{policyId}:
+ delete:
+ description: Delete an existing A1 Policy instance using its policy ID.
+ operationId: deletePolicy
parameters:
- - name: policyId
- in: path
- required: true
- schema:
- type: string
- requestBody:
+ - explode: false
+ in: path
+ name: policyId
required: true
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/PolicyObject'
- examples:
- policyObject:
- $ref: '#/components/examples/PolicyObject'
+ schema:
+ type: string
+ style: simple
+ - description: Specifies the content type that the client expects to receive
+ in response to the request. Only application/json is allowed.
+ in: header
+ name: Accept
+ schema:
+ example: application/json
+ type: string
responses:
- '200':
+ "204":
+ description: No Content
+ "400":
content:
- application/json:
+ application/problem+json:
schema:
- $ref: '#/components/schemas/PolicyObject'
- description: OK - Policy updated
- '400':
- $ref: '#/components/responses/400'
- '401':
- $ref: '#/components/responses/401'
- '403':
- $ref: '#/components/responses/403'
- '404':
- $ref: '#/components/responses/404'
- '406':
- $ref: '#/components/responses/406'
- '411':
- $ref: '#/components/responses/411'
- '413':
- $ref: '#/components/responses/413'
- '415':
- $ref: '#/components/responses/415'
- '423':
- $ref: '#/components/responses/Locked'
- '429':
- $ref: '#/components/responses/429'
- '500':
- $ref: '#/components/responses/500'
- '502':
- $ref: '#/components/responses/502'
- '503':
- $ref: '#/components/responses/503'
- delete:
- operationId: deletePolicy
- description: Delete an existing A1 Policy instance using its policy ID.
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Bad Request
+ "401":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Unauthorized
+ "403":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Forbidden
+ "404":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Found
+ "405":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Method Not Allowed
+ "406":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Acceptable
+ "423":
+ content:
+ application/problem+json:
+ example:
+ status: 423
+ title: Locked
+ detail: State is Locked in the provided request.
+ schema:
+ $ref: '#/components/schemas/ErrorInformation'
+ description: Locked - HTTP Status code which can be used when the state
+ is Locked
+ "429":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Too Many Requests
+ "500":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Internal Server Error
+ "502":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Bad Gateway
+ "503":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Service Unavailable
summary: Delete an A1 Policy instance (deletePolicy)
tags:
- - A1 Policy Management
- parameters:
- - explode: false
- in: path
- name: policyId
- required: true
- schema:
- type: string
- style: simple
- - description: Specifies the content type that the client expects to receive in response to the request.
- Only application/json is allowed.
- in: header
- name: Accept
- schema:
- type: string
- example: application/json
- responses:
- '204':
- description: 'No Content'
- '400':
- $ref: '#/components/responses/400'
- '401':
- $ref: '#/components/responses/401'
- '403':
- $ref: '#/components/responses/403'
- '404':
- $ref: '#/components/responses/404'
- '405':
- $ref: '#/components/responses/405'
- '406':
- $ref: '#/components/responses/406'
- '423':
- $ref: '#/components/responses/Locked'
- '429':
- $ref: '#/components/responses/429'
- '500':
- $ref: '#/components/responses/500'
- '502':
- $ref: '#/components/responses/502'
- '503':
- $ref: '#/components/responses/503'
+ - A1 Policy Management
get:
- operationId: getPolicy
description: Get an A1 Policy instance's policy data using its policy ID
- summary: Get an A1 Policy's policy data (getPolicy)
- tags:
- - A1 Policy Management
+ operationId: getPolicy
parameters:
- - explode: false
- in: path
- name: policyId
- required: true
- schema:
- type: string
- style: simple
- - description: Specifies the content type that the client expects to receive in response to the request.
- Only application/json is allowed.
- in: header
- name: Accept
- schema:
- type: string
- example: application/json
+ - explode: false
+ in: path
+ name: policyId
+ required: true
+ schema:
+ type: string
+ style: simple
+ - description: Specifies the content type that the client expects to receive
+ in response to the request. Only application/json is allowed.
+ in: header
+ name: Accept
+ schema:
+ example: application/json
+ type: string
responses:
- '200':
+ "200":
content:
application/json:
- schema:
- $ref: '#/components/schemas/PolicyObject'
examples:
policyObject:
$ref: '#/components/examples/PolicyObject'
+ schema:
+ $ref: '#/components/schemas/PolicyObject'
description: OK - Policy found
- '400':
- $ref: '#/components/responses/400'
- '401':
- $ref: '#/components/responses/401'
- '403':
- $ref: '#/components/responses/403'
- '404':
- $ref: '#/components/responses/404'
- '406':
- $ref: '#/components/responses/406'
- '429':
- $ref: '#/components/responses/429'
- '500':
- $ref: '#/components/responses/500'
- '502':
- $ref: '#/components/responses/502'
- '503':
- $ref: '#/components/responses/503'
- /policies/{policyId}/status:
- get:
- operationId: getPolicyStatus
- description: Retrieve the status information for an A1 Policy Instance using its policy ID.
- summary: Get an A1 Policy Instance's status (getPolicyStatus)
- tags:
- - A1 Policy Management
- parameters:
- - explode: false
- in: path
- name: policyId
- required: true
- schema:
- type: string
- style: simple
- - description: Specifies the content type that the client expects to receive in response to the request.
- Only application/json is allowed.
- in: header
- name: Accept
- schema:
- type: string
- example: application/json
- responses:
- '200':
+ "400":
content:
- application/json:
+ application/problem+json:
schema:
- $ref: '#/components/schemas/PolicyStatusObject'
- description: OK
- '400':
- $ref: '#/components/responses/400'
- '401':
- $ref: '#/components/responses/401'
- '403':
- $ref: '#/components/responses/403'
- '404':
- $ref: '#/components/responses/404'
- '406':
- $ref: '#/components/responses/406'
- '429':
- $ref: '#/components/responses/429'
- '500':
- $ref: '#/components/responses/500'
- '502':
- $ref: '#/components/responses/502'
- '503':
- $ref: '#/components/responses/503'
- /policies:
- get:
- operationId: getAllPolicies
- description: >
- Returns a collection of A1 Policy Instance IDs for policies that match given search criteria.
- If several query parameters are defined, the policies matching all conditions are returned.
- summary: Query for A1 Policy instances (getAllPolicies)
- tags:
- - A1 Policy Management
- parameters:
- - description: Select policies with a given A1 Policy Type ID.
- explode: true
- in: query
- name: policyTypeId
- required: false
- schema:
- type: string
- style: form
- - description: Select policies for a given Near-RT RIC identity.
- explode: true
- in: query
- name: nearRtRicId
- required: false
- schema:
- type: string
- style: form
- - description: Select policies owned by a given service (registered or unregistered).
- explode: true
- in: query
- name: serviceId
- required: false
- schema:
- type: string
- style: form
- - description: Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').
- explode: true
- in: query
- name: typeName
- required: false
- schema:
- type: string
- style: form
- - description: Specifies the content type that the client expects to receive in response to the request.
- Only application/json is allowed.
- in: header
- name: Accept
- schema:
- type: string
- example: application/json
- responses:
- '200':
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Bad Request
+ "401":
content:
- application/json:
+ application/problem+json:
schema:
- items:
- $ref: '#/components/schemas/PolicyInformation'
- type: array
- description: OK - Policy identities
- '400':
- $ref: '#/components/responses/400'
- '401':
- $ref: '#/components/responses/401'
- '403':
- $ref: '#/components/responses/403'
- '404':
- $ref: '#/components/responses/404'
- '406':
- $ref: '#/components/responses/406'
- '429':
- $ref: '#/components/responses/429'
- '500':
- $ref: '#/components/responses/500'
- '502':
- $ref: '#/components/responses/502'
- '503':
- $ref: '#/components/responses/503'
- post:
- operationId: createPolicy
- description: Create an A1 Policy Instance
- summary: Create an A1 Policy Instance (createPolicy)
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Unauthorized
+ "403":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Forbidden
+ "404":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Found
+ "406":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Acceptable
+ "429":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Too Many Requests
+ "500":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Internal Server Error
+ "502":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Bad Gateway
+ "503":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Service Unavailable
+ summary: Get an A1 Policy's policy data (getPolicy)
tags:
- - A1 Policy Management
+ - A1 Policy Management
+ put:
+ description: Update an existing A1 Policy instance's policy data using its policy
+ ID.
+ operationId: updatePolicy
+ parameters:
+ - in: path
+ name: policyId
+ required: true
+ schema:
+ type: string
requestBody:
+ content:
+ application/json:
+ examples:
+ policyObject:
+ $ref: '#/components/examples/PolicyObject'
+ schema:
+ $ref: '#/components/schemas/PolicyObject'
+ required: true
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PolicyObject'
+ description: OK - Policy updated
+ "400":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Bad Request
+ "401":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Unauthorized
+ "403":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Forbidden
+ "404":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Found
+ "406":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Acceptable
+ "411":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Length Required
+ "413":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Payload Too Large
+ "415":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Unsupported Media Type
+ "423":
+ content:
+ application/problem+json:
+ example:
+ status: 423
+ title: Locked
+ detail: State is Locked in the provided request.
+ schema:
+ $ref: '#/components/schemas/ErrorInformation'
+ description: Locked - HTTP Status code which can be used when the state
+ is Locked
+ "429":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Too Many Requests
+ "500":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Internal Server Error
+ "502":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Bad Gateway
+ "503":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Service Unavailable
+ summary: Update an A1 Policy's policy data (updatePolicy)
+ tags:
+ - A1 Policy Management
+ /policies/{policyId}/status:
+ get:
+ description: Retrieve the status information for an A1 Policy Instance using
+ its policy ID.
+ operationId: getPolicyStatus
+ parameters:
+ - explode: false
+ in: path
+ name: policyId
required: true
+ schema:
+ type: string
+ style: simple
+ - description: Specifies the content type that the client expects to receive
+ in response to the request. Only application/json is allowed.
+ in: header
+ name: Accept
+ schema:
+ example: application/json
+ type: string
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PolicyStatusObject'
+ description: OK
+ "400":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Bad Request
+ "401":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Unauthorized
+ "403":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Forbidden
+ "404":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Found
+ "406":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Acceptable
+ "429":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Too Many Requests
+ "500":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Internal Server Error
+ "502":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Bad Gateway
+ "503":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Service Unavailable
+ summary: Get an A1 Policy Instance's status (getPolicyStatus)
+ tags:
+ - A1 Policy Management
+ /policies:
+ get:
+ description: |
+ Returns a collection of A1 Policy Instance IDs for policies that match given search criteria. If several query parameters are defined, the policies matching all conditions are returned.
+ operationId: getPolicyIds
+ parameters:
+ - description: Select policies with a given A1 Policy Type ID.
+ explode: true
+ in: query
+ name: policyTypeId
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: Select policies for a given Near-RT RIC identity.
+ explode: true
+ in: query
+ name: nearRtRicId
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: Select policies owned by a given service (registered or unregistered).
+ explode: true
+ in: query
+ name: serviceId
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: Select policies of a given A1 Policy Type name (type identity
+ has the format 'typename_version').
+ explode: true
+ in: query
+ name: typeName
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: Specifies the content type that the client expects to receive
+ in response to the request. Only application/json is allowed.
+ in: header
+ name: Accept
+ schema:
+ example: application/json
+ type: string
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ items:
+ $ref: '#/components/schemas/PolicyInformation'
+ type: array
+ description: OK - Policy identities
+ "400":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Bad Request
+ "401":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Unauthorized
+ "403":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Forbidden
+ "404":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Found
+ "406":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Acceptable
+ "429":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Too Many Requests
+ "500":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Internal Server Error
+ "502":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Bad Gateway
+ "503":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Service Unavailable
+ summary: Query for A1 Policy instances (getPolicyIds)
+ tags:
+ - A1 Policy Management
+ post:
+ description: Create an A1 Policy Instance
+ operationId: createPolicy
+ requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PolicyObjectInformation'
+ required: true
responses:
- '201':
- description: 'Created'
+ "201":
content:
application/json:
schema:
$ref: '#/components/schemas/PolicyObjectInformation'
+ description: Created
headers:
Location:
- description: >
- Contains the URI of the newly created A1 Policy Instances.
- This URI includes the A1 Policy Instance ID for the newly
- created policy instance.
+ description: |
+ Contains the URI of the newly created A1 Policy Instances. This URI includes the A1 Policy Instance ID for the newly created policy instance.
required: true
schema:
type: string
Content-Type:
- description: 'Media Type of the response'
+ description: Media Type of the response
schema:
- type: string
example: application/json
-
- '400':
- $ref: '#/components/responses/400'
- '401':
- $ref: '#/components/responses/401'
- '403':
- $ref: '#/components/responses/403'
- '404':
- $ref: '#/components/responses/404'
- '405':
- $ref: '#/components/responses/405'
- '406':
- $ref: '#/components/responses/406'
- '409':
- $ref: '#/components/responses/409'
- '413':
- $ref: '#/components/responses/413'
- '415':
- $ref: '#/components/responses/415'
- '423':
- $ref: '#/components/responses/Locked'
- '429':
- $ref: '#/components/responses/429'
- '500':
- $ref: '#/components/responses/500'
- '502':
- $ref: '#/components/responses/502'
- '503':
- $ref: '#/components/responses/503'
+ type: string
+ "400":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Bad Request
+ "401":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Unauthorized
+ "403":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Forbidden
+ "404":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Found
+ "405":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Method Not Allowed
+ "406":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Acceptable
+ "409":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Conflict
+ "413":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Payload Too Large
+ "415":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Unsupported Media Type
+ "423":
+ content:
+ application/problem+json:
+ example:
+ status: 423
+ title: Locked
+ detail: State is Locked in the provided request.
+ schema:
+ $ref: '#/components/schemas/ErrorInformation'
+ description: Locked - HTTP Status code which can be used when the state
+ is Locked
+ "429":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Too Many Requests
+ "500":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Internal Server Error
+ "502":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Bad Gateway
+ "503":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Service Unavailable
+ summary: Create an A1 Policy Instance (createPolicy)
+ tags:
+ - A1 Policy Management
/configuration:
get:
- operationId: getConfiguration
description: Returns the entire contents of the Application Configuration.
- tags:
- - Configuration
- summary: Get the Application Configuration (getConfiguration)
+ operationId: getConfiguration
responses:
"200":
content:
type: string
description: OK - Application configuration received
"404":
- $ref: '#/components/responses/404'
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Found
+ summary: Get the Application Configuration (getConfiguration)
+ tags:
+ - Configuration
put:
+ description: |
+ Replace the current Application Configuration with a new configuration. The new configuration, if accepted, will take effect after a short delay. The new configuration must comply with the Application Configuration schema, which can be found from the the Application Documentation (Developer Guide)
operationId: putConfiguration
- description: >
- Replace the current Application Configuration with a new configuration.
- The new configuration, if accepted, will take effect after a short delay.
- The new configuration must comply with the Application Configuration schema,
- which can be found from the the Application Documentation (Developer Guide)
- tags:
- - Configuration
- summary: Set/Replace the Application Configuration (putConfiguration)
requestBody:
content:
application/json:
responses:
"200":
content:
- 'application/json':
+ application/json:
schema:
$ref: '#/components/schemas/void'
description: OK - Configuration updated
"400":
- $ref: '#/components/responses/400'
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Bad Request
+ summary: Set/Replace the Application Configuration (putConfiguration)
+ tags:
+ - Configuration
/services/{serviceId}/keepalive:
put:
+ description: "A registered service should invoke this operation regularly to\
+ \ indicate that it is still alive. If a registered service fails to invoke\
+ \ some operation, or this operation, before the end of a timeout period the\
+ \ service will be deregistered and all its A1 policies wil be removed and\
+ \ the service is deleted. This operation is only intended for registered services.\
+ \ (This timeout can be set or disabled when each service is initially registered).\
+ \ Unregistered services do not need to invoke this operation, since the optional\
+ \ keep-alive monitoring feature can only be enabled for registered services."
operationId: keepAliveService
- description: A registered service should invoke this operation regularly to
- indicate that it is still alive. If a registered service fails to invoke some operation,
- or this operation, before the end of a timeout period the service will be deregistered
- and all its A1 policies wil be removed and the service is deleted.
- This operation is only intended for registered services. (This timeout can be set or disabled when
- each service is initially registered). Unregistered services do not need to invoke this operation,
- since the optional keep-alive monitoring feature can only be enabled for registered services.
- summary: Heartbeat message from a service (keepAliveService)
- tags:
- - Service Registry and Supervision
parameters:
- - explode: false
- in: path
- name: serviceId
- required: true
- schema:
- type: string
- style: simple
- - description: Specifies the content type that the client expects to receive in response to the request.
- Only application/json is allowed.
- in: header
- name: Accept
- schema:
- type: string
- example: application/json
- requestBody:
- required: false
- content:
- application/json:
- schema:
- type: string
+ - explode: false
+ in: path
+ name: serviceId
+ required: true
+ schema:
+ type: string
+ style: simple
+ - description: Specifies the content type that the client expects to receive
+ in response to the request. Only application/json is allowed.
+ in: header
+ name: Accept
+ schema:
+ example: application/json
+ type: string
responses:
"200":
content:
- 'application/json':
+ application/json:
schema:
type: object
- description: OK - Service supervision timer refreshed, OK
+ description: "OK - Service supervision timer refreshed, OK"
"404":
- $ref: '#/components/responses/404'
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Found
+ summary: Heartbeat message from a service (keepAliveService)
+ tags:
+ - Service Registry and Supervision
/services:
get:
+ description: |
+ Get information about all registered services, or a single registered service. If the service ID of a registered service is included in the query, information about that service is returned. Otherwise Information about all registered is returned. This operation does not retrieve information about unregistered services.
operationId: getServices
- description: >
- Get information about all registered services, or a single registered service.
- If the service ID of a registered service is included in the query, information about that
- service is returned. Otherwise Information about all registered is returned.
- This operation does not retrieve information about unregistered services.
- summary: Get Services (getServices)
- tags:
- - Service Registry and Supervision
parameters:
- - description: The identity of the registered service
- explode: true
- in: query
- name: serviceId
- required: false
- schema:
- type: string
- style: form
- - description: Specifies the content type that the client expects to receive in response to the request.
- Only application/json is allowed.
- in: header
- name: Accept
- schema:
- type: string
- example: application/json
+ - description: The identity of the registered service
+ explode: true
+ in: query
+ name: serviceId
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: Specifies the content type that the client expects to receive
+ in response to the request. Only application/json is allowed.
+ in: header
+ name: Accept
+ schema:
+ example: application/json
+ type: string
responses:
"200":
content:
application/json:
- schema:
- $ref: '#/components/schemas/ServiceStatusList'
examples:
service_status_list:
$ref: '#/components/examples/ServiceStatusList'
+ schema:
+ $ref: '#/components/schemas/ServiceStatusList'
description: OK
"404":
- $ref: '#/components/responses/404'
- put:
- operationId: putService
- description: >
- Register a single service, or update a previous registration.
- Service registration is required to get callbacks about available NearRT RICs
- and to enable supervision of the service's active status. If a registered
- service becomes inactive, its policies can be automatically deleted.
- A1 Policy instances can also be created for unregistered services.
- If an unregistered service is later registered, the service's policies are
- retained when the service becomes registered. This feature is optional to use.
- summary: Register or update a Service (putService)
- tags:
- - Service Registry and Supervision
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/ServiceRegistrationInfo'
- required: true
- responses:
- "200":
- content:
- 'application/json':
- schema:
- type: object
- description: OK - Service updated
- "201":
content:
- 'application/json':
+ application/problem+json:
schema:
- type: object
- description: Created - Service created
- "400":
- $ref: '#/components/responses/400'
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Found
+ summary: Get Services (getServices)
+ tags:
+ - Service Registry and Supervision
+ put:
callbacks:
RICStatus:
- "{$request.body#/callback_url}":
+ '{$request.body#/callback_url}':
post:
+ description: "Callouts to indicate Near-RT RIC status changes relevant\
+ \ for Services. \nThe URL invoked by this callback is provided at\
+ \ Service registration.\n"
operationId: serviceCallback
- description: |
- Callouts to indicate Near-RT RIC status changes relevant for Services.
- The URL invoked by this callback is provided at Service registration.
- summary: Callback for Near-RT RIC status (serviceCallback)
- tags:
- - Service Registry and Supervision
requestBody:
content:
application/json:
$ref: '#/components/schemas/void'
description: OK
"404":
- $ref: '#/components/responses/404'
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Found
+ summary: Callback for Near-RT RIC status (serviceCallback)
+ tags:
+ - Service Registry and Supervision
+ x-callback-request: true
+ description: |
+ Register a single service, or update a previous registration. Service registration is required to get callbacks about available NearRT RICs and to enable supervision of the service's active status. If a registered service becomes inactive, its policies can be automatically deleted. A1 Policy instances can also be created for unregistered services. If an unregistered service is later registered, the service's policies are retained when the service becomes registered. This feature is optional to use.
+ operationId: putService
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ServiceRegistrationInfo'
+ required: true
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ type: object
+ description: OK - Service updated
+ "201":
+ content:
+ application/json:
+ schema:
+ type: object
+ description: Created - Service created
+ "400":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Bad Request
+ summary: Register or update a Service (putService)
+ tags:
+ - Service Registry and Supervision
/services/{serviceId}:
delete:
+ description: |
+ Unregister a registered Service using its service ID. Only registered services can be unregistered. All A1 Policy Instances for the previously registered service will be removed.
operationId: deleteService
- description: >
- Unregister a registered Service using its service ID.
- Only registered services can be unregistered. All A1 Policy Instances
- for the previously registered service will be removed.
- tags:
- - Service Registry and Supervision
- summary: Unregister a Service (deleteService)
parameters:
- - explode: false
- in: path
- name: serviceId
- required: true
- schema:
- type: string
- style: simple
- - description: Specifies the content type that the client expects to receive in response to the request.
- Only application/json is allowed.
- in: header
- name: Accept
- schema:
- type: string
- example: application/json
+ - explode: false
+ in: path
+ name: serviceId
+ required: true
+ schema:
+ type: string
+ style: simple
+ - description: Specifies the content type that the client expects to receive
+ in response to the request. Only application/json is allowed.
+ in: header
+ name: Accept
+ schema:
+ example: application/json
+ type: string
responses:
"204":
content:
- 'application/json':
+ application/json:
schema:
type: object
description: No Content - Service unregistered
"404":
- $ref: '#/components/responses/404'
-
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Found
+ summary: Unregister a Service (deleteService)
+ tags:
+ - Service Registry and Supervision
components:
-
examples:
- ServiceStatusList:
- description: List of service information
- value:
- serviceList:
- - callbackUrl: http://callback.url
- serviceId: serviceId1
- keepAliveIntervalSeconds: 0
- timeSinceLastActivitySeconds: 6
- - callbackUrl: http://callback.url
- serviceId: serviceId2
- keepAliveIntervalSeconds: 500
- timeSinceLastActivitySeconds: 401
StatusInfo:
value:
status: success
value:
ricId: ricId1
managedElementIds:
- - "Note #1"
- - "Athlone small cells"
- - "Some optional string"
+ - "Note #1"
+ - Athlone small cells
+ - Some optional string
state: UNAVAILABLE
policyTypeIds:
- - policyTypeId1
- - policyTypeId2
+ - policyTypeId1
+ - policyTypeId2
RicInfoList:
value:
rics:
- - ricId: ricId1
- managedElementIds:
- - "Note #1"
- - "Athlone small cells"
- - "Fake Cells"
- state: UNAVAILABLE
- policyTypeIds:
- - policyTypeId1
- - policyTypeId2
- - ricId: ricId2
- managedElementIds:
- - "My test element"
- - "Another test element"
- state: UNAVAILABLE
- policyTypeIds:
- - policyTypeId3
- - policyTypeId4
- PolicyObject:
- value:
- scope:
- ueId:
- guRanUeId:
- globalGnbId:
- plmnId:
- mcc: "123"
- mnc: "45"
- gnbId:
- gnbIdLength: 24
- gnbIdValue: 12345678
- RanUeId: 'a31c510b20e64a74'
- groupId:
- spId: 123
- qosId:
- 5qI: 1
- cellId:
- plmnId:
- mcc: "123"
- mnc: "45"
- cId:
- ncI: 123
- qosObjectives:
- gfbr: 100
- mfbr: 200
- priorityLevel: 3
- pdb: 50
+ - ricId: ricId1
+ managedElementIds:
+ - "Note #1"
+ - Athlone small cells
+ - Fake Cells
+ state: UNAVAILABLE
+ policyTypeIds:
+ - policyTypeId1
+ - policyTypeId2
+ - ricId: ricId2
+ managedElementIds:
+ - My test element
+ - Another test element
+ state: UNAVAILABLE
+ policyTypeIds:
+ - policyTypeId3
+ - policyTypeId4
PolicyTypeInformation:
value:
- policyTypeId: STD_QOS2_0.1.0
PolicyTypeObject:
value:
policySchema:
- "$schema": http://json-schema.org/draft-07/schema#
+ $schema: http://json-schema.org/draft-07/schema#
title: STD_QOS_0_2_0
description: STD QOS2 policy type
type: object
type: string
additionalProperties: false
required:
- - ueId
- - qosId
+ - ueId
+ - qosId
qosObjectives:
type: object
properties:
type: number
additionalProperties: false
required:
- - priorityLevel
-
+ - priorityLevel
+ PolicyObject:
+ value:
+ scope:
+ ueId:
+ guRanUeId:
+ globalGnbId:
+ plmnId:
+ mcc: "123"
+ mnc: "45"
+ gnbId:
+ gnbIdLength: 24
+ gnbIdValue: 12345678
+ RanUeId: a31c510b20e64a74
+ groupId:
+ spId: 123
+ qosId:
+ "5qI": 1
+ cellId:
+ plmnId:
+ mcc: "123"
+ mnc: "45"
+ cId:
+ ncI: 123
+ qosObjectives:
+ gfbr: 100
+ mfbr: 200
+ priorityLevel: 3
+ pdb: 50
+ ServiceStatusList:
+ description: List of service information
+ value:
+ serviceList:
+ - callbackUrl: http://callback.url
+ serviceId: serviceId1
+ keepAliveIntervalSeconds: 0
+ timeSinceLastActivitySeconds: 6
+ - callbackUrl: http://callback.url
+ serviceId: serviceId2
+ keepAliveIntervalSeconds: 500
+ timeSinceLastActivitySeconds: 401
+ responses:
+ "404":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Found
+ "400":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Bad Request
+ "401":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Unauthorized
+ "403":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Forbidden
+ "406":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Not Acceptable
+ "429":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Too Many Requests
+ "500":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Internal Server Error
+ "502":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Bad Gateway
+ "503":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Service Unavailable
+ "411":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Length Required
+ "413":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Payload Too Large
+ "415":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Unsupported Media Type
+ Locked:
+ content:
+ application/problem+json:
+ example:
+ status: 423
+ title: Locked
+ detail: State is Locked in the provided request.
+ schema:
+ $ref: '#/components/schemas/ErrorInformation'
+ description: Locked - HTTP Status code which can be used when the state is Locked
+ "405":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Method Not Allowed
+ "409":
+ content:
+ application/problem+json:
+ schema:
+ $ref: '#/components/schemas/ProblemDetails'
+ description: Conflict
schemas:
- PolicyTypeInformation:
- description: >-
- A data tuple to indicate that an identified A1 Policy Type is supported at an identified Near-RT RIC.
- type: object
+ StatusInfo:
+ example:
+ status: status
properties:
- policyTypeId:
- description: A1 Policy Type identifier
+ status:
+ description: Status text
type: string
- nearRtRicId:
- $ref: '#/components/schemas/NearRtRicId'
- required:
- - policyTypeId
- - nearRtRicId
- example:
- policyTypeId: STD_QOS2_0.1.0
- nearRtRicId: ric_g3_2
- PolicyObjectInformation:
- description: Information to create an A1 Policy Instance
type: object
+ ProblemDetails:
+ description: Object to carry details about a problem in an HTTP response according
+ to IETF RFC 7807
properties:
- nearRtRicId:
- description: Identity of the target Near-RT RIC
- type: string
- example:
- 'Near-RT-Ric-ID1'
- transient:
- default: false
- description: >
- If true, the policy is automatically deleted if the targeted Near-RT RIC restarts
- or recovers. If false, the A1 Policy Instance remains, and is re-pushed to the targeted
- Near-RT RIC after a restart or recovery. If false, the A1 Policy Instance is maintained and
- must be deleted separately in the event of Near-RT RIC restart or recovery. Default is false.
- nullable: false
- type: boolean
- policyId:
- description: >
- An optional identity to be used for the new A1 Policy Instance.
- If this value is present, it must be unique. If not present the new A1
- Policy Instance will be assigned a newly generated unique ID, and the
- new ID can be extracted from the 'Location' header in the response.
- type: string
- example:
- 'POLICY-ID1'
- serviceId:
- description: the identity of the service owning the policy. This can be
- used to group the policies (it is possible to get all policies associated
- to a service). Note that the service does not need to be registered.
- If the service is registered, the newly created A1 Policy Instance will be
- subject to the same supervision rules as the the service's other policies.
+ type:
+ description: URI reference according to IETF RFC 3986 that identifies the
+ problem type
type: string
- example:
- 'rApp 1'
- default: ""
- policyObject:
- $ref: '#/components/schemas/PolicyObject'
- policyTypeId:
- description: A1 Policy Type identity
+ title:
+ description: Human-readable summary of the problem type
type: string
- example: ORAN_QOS_1.0.0 '(typeName_SemVersion)'
- required:
- - nearRtRicId
- - policyObject
- - policyTypeId
- ErrorInformation:
- description: Problem as defined in https://tools.ietf.org/html/rfc7807
- properties:
+ status:
+ description: HTTP status code
+ type: number
detail:
- description: A human-readable explanation specific to this occurrence of the problem.
- example: Policy type not found
+ description: Human-readable explanation
type: string
- title:
- description: A specific error name
- type: string
- example: Not Found
- status:
- description: |
- The HTTP status code generated by the origin server for this occurrence of the problem.
- example: 404
- format: int32
- type: integer
- type: object
- PolicyObject:
- description: >
- Policy Object is a JSON representation policy data for an A1 Policy Instance.
- The schema for this policy data is defined in the corresponding A1 Policy Type.
- type: object
- PolicyTypeObject:
- description: An A1 Policy Type, as defined in O-RAN Alliance A1TD
- type: object
- properties:
- policySchema:
- $ref: '#/components/schemas/PolicySchema'
- statusSchema:
- $ref: '#/components/schemas/StatusSchema'
- required:
- - policySchema
- example:
- policySchema:
- "$schema": http://json-schema.org/draft-07/schema#
- title: STD_QOS_0_2_0
- description: Policy data schema for STD_QOS_0.2.0 A1 Policy Instances.
- type: object
- properties:
- scope:
- type: object
- properties:
- ueId:
- type: string
- qosId:
- type: string
- additionalProperties: false
- required:
- - ueId
- - qosId
- qosObjectives:
- type: object
- properties:
- priorityLevel:
- type: number
- additionalProperties: false
- required:
- - priorityLevel
- statusSchema:
- "$schema": http://json-schema.org/draft-07/schema#
- title: STD_QOS_0.2.0
- description: Status schema for STD_QOS_0.2.0 A1 Policy Instances.
- type: object
- properties:
- enforceStatus:
- type: string
- enforceReason:
- type: string
- additionalProperties: false
- required:
- - enforceStatus
- PolicySchema:
- description: >
- A schema to define the policy data contents of A1 Policy Instances.
- Policy data schemas are Policy Type specific.
- All A1 Policy Instances of an A1 Policy Type should comply with the type's policy data schema.
- type: object
- StatusSchema:
- description: >
- A schema to define the contents of the status information for A1 Policy Instances.
- Status schemas are Policy Type specific.
- All status information for all A1 Policy Instances of an A1 Policy Type should comply
- with the type's status schema.
- type: object
- PolicyStatusObject:
- description: >
- A generic policy status object that can be used to transport any policy status.
- Additionally, a schema for policy status can be defined in the corresponding A1 Policy Type.
- type: object
- void:
- description: Void/empty
- type: object
- StatusInfo:
- properties:
- status:
- description: Status text
+ instance:
+ description: URI reference that identifies the specific occurrence of the
+ problem
type: string
type: object
RicInfo:
description: Information for a Near-RT RIC
+ example:
+ ricId: ricId
+ policyTypeIds:
+ - policyTypeIds
+ - policyTypeIds
+ managedElementIds:
+ - managedElementIds
+ - managedElementIds
+ state: UNAVAILABLE
properties:
ricId:
description: Identity of the Near-RT RIC
state:
description: Represents the state of a Near-RT RIC
enum:
- - UNAVAILABLE
- - AVAILABLE
- - SYNCHRONIZING
- - CONSISTENCY_CHECK
+ - UNAVAILABLE
+ - AVAILABLE
+ - SYNCHRONIZING
+ - CONSISTENCY_CHECK
type: string
policyTypeIds:
description: Supported A1 Policy Types
type: string
type: array
type: object
- ServiceRegistrationInfo:
- description: Information for a service to be registered
+ RicInfoList:
+ description: Collection of Near-RT RIC information objects
+ example:
+ rics:
+ - ricId: ricId
+ policyTypeIds:
+ - policyTypeIds
+ - policyTypeIds
+ managedElementIds:
+ - managedElementIds
+ - managedElementIds
+ state: UNAVAILABLE
+ - ricId: ricId
+ policyTypeIds:
+ - policyTypeIds
+ - policyTypeIds
+ managedElementIds:
+ - managedElementIds
+ - managedElementIds
+ state: UNAVAILABLE
properties:
- callbackUrl:
- description: Callback URL for notifying of Near-RT RIC state changes
+ rics:
+ description: List of Near-RT RIC information objects
+ items:
+ $ref: '#/components/schemas/RicInfo'
+ type: array
+ type: object
+ PolicyTypeInformation:
+ description: A data tuple to indicate that an identified A1 Policy Type is supported
+ at an identified Near-RT RIC.
+ example:
+ policyTypeId: STD_QOS2_0.1.0
+ nearRtRicId: ric_g3_2
+ properties:
+ policyTypeId:
+ description: A1 Policy Type identifier
type: string
- serviceId:
- description: Identity of the service
+ nearRtRicId:
+ description: Identity of the Near-RT RIC
type: string
- keepAliveIntervalSeconds:
- description: >
- Keep alive interval for the service. This is used to enable
- optional heartbeat supervision of the service. If set (> 0) the registered
- service should regularly invoke a 'keepalive' REST call. When a service
- fails to invoke this 'keepalive' call within the configured time, the
- service is considered unavailable. An unavailable service will be automatically
- deregistered and its policies will be deleted. Value 0 means timeout
- supervision is disabled.
- format: int64
+ required:
+ - nearRtRicId
+ - policyTypeId
+ type: object
+ NearRtRicId:
+ description: Identity of the Near-RT RIC
+ type: string
+ PolicyTypeObject:
+ description: "An A1 Policy Type, as defined in O-RAN Alliance A1TD"
+ example:
+ policySchema:
+ $schema: http://json-schema.org/draft-07/schema#
+ title: STD_QOS_0_2_0
+ description: Policy data schema for STD_QOS_0.2.0 A1 Policy Instances.
+ type: object
+ properties:
+ scope:
+ type: object
+ properties:
+ ueId:
+ type: string
+ qosId:
+ type: string
+ additionalProperties: false
+ required:
+ - ueId
+ - qosId
+ qosObjectives:
+ type: object
+ properties:
+ priorityLevel:
+ type: number
+ additionalProperties: false
+ required:
+ - priorityLevel
+ statusSchema:
+ $schema: http://json-schema.org/draft-07/schema#
+ title: STD_QOS_0.2.0
+ description: Status schema for STD_QOS_0.2.0 A1 Policy Instances.
+ type: object
+ properties:
+ enforceStatus:
+ type: string
+ enforceReason:
+ type: string
+ additionalProperties: false
+ required:
+ - enforceStatus
+ properties:
+ policySchema:
+ description: |
+ A schema to define the policy data contents of A1 Policy Instances. Policy data schemas are Policy Type specific. All A1 Policy Instances of an A1 Policy Type should comply with the type's policy data schema.
+ type: object
+ statusSchema:
+ description: |
+ A schema to define the contents of the status information for A1 Policy Instances. Status schemas are Policy Type specific. All status information for all A1 Policy Instances of an A1 Policy Type should comply with the type's status schema.
+ type: object
+ required:
+ - policySchema
+ type: object
+ PolicySchema:
+ description: |
+ A schema to define the policy data contents of A1 Policy Instances. Policy data schemas are Policy Type specific. All A1 Policy Instances of an A1 Policy Type should comply with the type's policy data schema.
+ type: object
+ StatusSchema:
+ description: |
+ A schema to define the contents of the status information for A1 Policy Instances. Status schemas are Policy Type specific. All status information for all A1 Policy Instances of an A1 Policy Type should comply with the type's status schema.
+ type: object
+ PolicyObject:
+ description: |
+ Policy Object is a JSON representation policy data for an A1 Policy Instance. The schema for this policy data is defined in the corresponding A1 Policy Type.
+ type: object
+ ErrorInformation:
+ description: Problem as defined in https://tools.ietf.org/html/rfc7807
+ properties:
+ detail:
+ description: A human-readable explanation specific to this occurrence of
+ the problem.
+ example: Policy type not found
+ type: string
+ title:
+ description: A specific error name
+ example: Not Found
+ type: string
+ status:
+ description: |
+ The HTTP status code generated by the origin server for this occurrence of the problem.
+ example: 404
+ format: int32
type: integer
+ type: object
+ PolicyStatusObject:
+ description: |
+ A generic policy status object that can be used to transport any policy status. Additionally, a schema for policy status can be defined in the corresponding A1 Policy Type.
+ type: object
+ PolicyInformation:
+ description: |
+ Information tuple for a single A1 Policy Instance. Contains the A1 Policy Instance ID, and the ID of the Near-RT RIC where the policy is created.
+ example:
+ policyId: policyId
+ nearRtRicId: nearRtRicId
+ properties:
+ policyId:
+ description: Identity of the A1 Policy Instance
+ type: string
+ nearRtRicId:
+ description: Identity of the Near-RT RIC
+ type: string
+ required:
+ - nearRtRicId
+ - policyId
+ type: object
+ PolicyObjectInformation:
+ description: Information to create an A1 Policy Instance
+ example:
+ policyId: POLICY-ID1
+ nearRtRicId: Near-RT-Ric-ID1
+ transient: false
+ policyObject: "{}"
+ serviceId: rApp 1
+ policyTypeId: ORAN_QOS_1.0.0 '(typeName_SemVersion)'
+ properties:
+ nearRtRicId:
+ description: Identity of the target Near-RT RIC
+ example: Near-RT-Ric-ID1
+ type: string
+ transient:
+ default: false
+ description: |
+ If true, the policy is automatically deleted if the targeted Near-RT RIC restarts or recovers. If false, the A1 Policy Instance remains, and is re-pushed to the targeted Near-RT RIC after a restart or recovery. If false, the A1 Policy Instance is maintained and must be deleted separately in the event of Near-RT RIC restart or recovery. Default is false.
+ nullable: false
+ type: boolean
+ policyId:
+ description: |
+ An optional identity to be used for the new A1 Policy Instance. If this value is present, it must be unique. If not present the new A1 Policy Instance will be assigned a newly generated unique ID, and the new ID can be extracted from the 'Location' header in the response.
+ example: POLICY-ID1
+ type: string
+ serviceId:
+ default: ""
+ description: "the identity of the service owning the policy. This can be\
+ \ used to group the policies (it is possible to get all policies associated\
+ \ to a service). Note that the service does not need to be registered.\
+ \ If the service is registered, the newly created A1 Policy Instance will\
+ \ be subject to the same supervision rules as the the service's other\
+ \ policies."
+ example: rApp 1
+ type: string
+ policyObject:
+ description: |
+ Policy Object is a JSON representation policy data for an A1 Policy Instance. The schema for this policy data is defined in the corresponding A1 Policy Type.
+ type: object
+ policyTypeId:
+ description: A1 Policy Type identity
+ example: ORAN_QOS_1.0.0 '(typeName_SemVersion)'
+ type: string
required:
- - serviceId
+ - nearRtRicId
+ - policyObject
+ - policyTypeId
+ type: object
+ void:
+ description: Void/empty
+ type: object
+ ServiceStatusList:
+ example:
+ serviceList:
+ - keepAliveIntervalSeconds: 0
+ callbackUrl: callbackUrl
+ timeSinceLastActivitySeconds: 6
+ serviceId: serviceId
+ - keepAliveIntervalSeconds: 0
+ callbackUrl: callbackUrl
+ timeSinceLastActivitySeconds: 6
+ serviceId: serviceId
+ properties:
+ serviceList:
+ description: "List of Service Status objects, describing a collection of\
+ \ registered services."
+ items:
+ $ref: '#/components/schemas/ServiceStatus'
+ type: array
type: object
ServiceStatus:
description: Information about a previously registered service
+ example:
+ keepAliveIntervalSeconds: 0
+ callbackUrl: callbackUrl
+ timeSinceLastActivitySeconds: 6
+ serviceId: serviceId
properties:
callbackUrl:
description: Callback URL for notifying of Near-RT RIC state changes
description: Identity of the service
type: string
keepAliveIntervalSeconds:
- description: >
- Keep alive interval (seconds) for the service. This is used to enable
- optional heartbeat supervision of the service. If set (> 0) the registered
- service should regularly invoke a 'keepalive' REST call. When a service
- fails to invoke this 'keepalive' call within the configured time, the
- service is considered unavailable. An unavailable service will be automatically
- deregistered and its policies will be deleted. Value 0 means timeout
- supervision is disabled.
+ description: |
+ Keep alive interval (seconds) for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.
format: int64
type: integer
timeSinceLastActivitySeconds:
format: int64
type: integer
type: object
- RicInfoList:
- description: Collection of Near-RT RIC information objects
- properties:
- rics:
- description: List of Near-RT RIC information objects
- items:
- $ref: '#/components/schemas/RicInfo'
- type: array
- type: object
- NearRtRicId:
- description: Identity of the Near-RT RIC
- type: string
- PolicyInformation:
- description: >
- Information tuple for a single A1 Policy Instance.
- Contains the A1 Policy Instance ID, and the ID of the Near-RT RIC where the policy is created.
- type: object
+ ServiceRegistrationInfo:
+ description: Information for a service to be registered
+ example:
+ keepAliveIntervalSeconds: 0
+ callbackUrl: callbackUrl
+ serviceId: serviceId
properties:
- policyId:
- description: Identity of the A1 Policy Instance
+ callbackUrl:
+ description: Callback URL for notifying of Near-RT RIC state changes
type: string
- nearRtRicId:
- $ref: '#/components/schemas/NearRtRicId'
+ serviceId:
+ description: Identity of the service
+ type: string
+ keepAliveIntervalSeconds:
+ description: |
+ Keep alive interval for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.
+ format: int64
+ type: integer
required:
- - policyId
- - nearRtRicId
- ServiceStatusList:
- properties:
- serviceList:
- description: List of Service Status objects, describing a collection of registered services.
- items:
- $ref: '#/components/schemas/ServiceStatus'
- type: array
+ - serviceId
type: object
ServiceCallbackInfo:
- description: |
- Information transferred in Service callbacks,
- if a callback URL was provided for a registered service
+ description: "Information transferred in Service callbacks, \nif a callback\
+ \ URL was provided for a registered service\n"
+ example:
+ ricId: ricId
+ eventType: AVAILABLE
properties:
ricId:
description: Identity of a Near-RT RIC
type: string
eventType:
- description: >
- values:
- AVAILABLE: the Near-RT RIC has become available for A1 Policy management
+ description: "values: \n AVAILABLE: the Near-RT RIC has become available\
+ \ for A1 Policy management\n"
enum:
- - AVAILABLE
+ - AVAILABLE
type: string
required:
- - eventType
- - ricId
- type: object
- ProblemDetails:
- description: Object to carry details about a problem in an HTTP response according to IETF RFC 7807
+ - eventType
+ - ricId
type: object
- properties:
- type:
- description: URI reference according to IETF RFC 3986 that identifies the problem type
- type: string
- title:
- description: Human-readable summary of the problem type
- type: string
- status:
- description: HTTP status code
- type: number
- detail:
- description: Human-readable explanation
- type: string
- instance:
- description: URI reference that identifies the specific occurrence of the problem
- type: string
-
- responses:
- '400':
- description: Bad Request
- content:
- application/problem+json:
- schema:
- $ref: '#/components/schemas/ProblemDetails'
- '401':
- description: Unauthorized
- content:
- application/problem+json:
- schema:
- $ref: '#/components/schemas/ProblemDetails'
- '403':
- description: Forbidden
- content:
- application/problem+json:
- schema:
- $ref: '#/components/schemas/ProblemDetails'
- '404':
- description: Not Found
- content:
- application/problem+json:
- schema:
- $ref: '#/components/schemas/ProblemDetails'
- '405':
- description: Method Not Allowed
- content:
- application/problem+json:
- schema:
- $ref: '#/components/schemas/ProblemDetails'
- '406':
- description: Not Acceptable
- content:
- application/problem+json:
- schema:
- $ref: '#/components/schemas/ProblemDetails'
- '409':
- description: Conflict
- content:
- application/problem+json:
- schema:
- $ref: '#/components/schemas/ProblemDetails'
- '411':
- description: Length Required
- content:
- application/problem+json:
- schema:
- $ref: '#/components/schemas/ProblemDetails'
- '413':
- description: Payload Too Large
- content:
- application/problem+json:
- schema:
- $ref: '#/components/schemas/ProblemDetails'
- '415':
- description: Unsupported Media Type
- content:
- application/problem+json:
- schema:
- $ref: '#/components/schemas/ProblemDetails'
- '429':
- description: Too Many Requests
- content:
- application/problem+json:
- schema:
- $ref: '#/components/schemas/ProblemDetails'
- '500':
- description: Internal Server Error
- content:
- application/problem+json:
- schema:
- $ref: '#/components/schemas/ProblemDetails'
- '502':
- description: Bad Gateway
- content:
- application/problem+json:
- schema:
- $ref: '#/components/schemas/ProblemDetails'
- '503':
- description: Service Unavailable
- content:
- application/problem+json:
- schema:
- $ref: '#/components/schemas/ProblemDetails'
- Locked:
- description: Locked - HTTP Status code which can be used when the state is Locked
- content:
- application/problem+json:
- schema:
- $ref: '#/components/schemas/ErrorInformation'
- example:
- status: 423
- title: Locked
- detail: State is Locked in the provided request.
"info" : {
"contact" : {
"email" : "discuss-list@onap.com",
+ "name" : "ONAP CCSDK Project",
"url" : "https://www.onap.org/"
},
- "description" : "<h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides a REST API for managemecnt of A1 policies. <br/>The main tasks of the service are:</p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring and maintaining consistency of the SMO view of A1 policies and the Near-RT RICs</li><li>Maintaining a view of supported Near-RT RIC policy types</li><li>Supervision of using services (R-APPs). When a service is unavailable, its policies are removed.</li></ul><h2>APIs provided or defined by the service</h2><h3>A1 Policy Management</h3><p>This is an API for management of A1 Policies.</p><ul><li>A1 Policy retrieval, creation, modification and deletion.</li><li>Retrieval of supported A1 Policy types for a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management of configuration</h3><p>API for updating and retrieval of the component configuration. Note that there other ways to maintain the configuration.</p><h3>Service callbacks</h3><p>These are endpoints that are invoked by this service. The callbacks are registered in this service at service registration.</p><h3>NearRT-RIC Repository</h3><p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy is targeted for one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision of the PMS component.</p><h3>Service Registry and Supervision</h3><p>API used for registering services that uses PMS. Each A1 policy is optionally owned by a service. PMS can supervise each registered service by a heart-beat supervision and will automatically remove policies for unavailable services. Note that a service does not need to be registered in order to create A1 Policies. This is a feature that is optional to use.</p><h3>Authorization API</h3><p>API used for access control of A1 Policy access. If configured, an external authorization provider is requested to grant access to the A1 Policy type.</p><h3>Spring Boot Actuator</h3><p>Provides generic functions used to monitor and manage the Spring web application.</p>",
+ "description" : "<h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides a REST API for managing A1 policies. <br/>This document describes an older pre-spec API set to perform tasks for: </p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring and maintaining consistency of the SMO view of A1 Policies and the Near-RT RICs</li><li>Maintaining a view of each Near-RT RIC's supported A1 Policy Types</li><li>Supervision of registered services (rApps). When a registered service is unavailable, its policies are removed.</li></ul><h2>APIs provided or defined by the service</h2><h3>A1 Policy Management (Older pre-spec version) </h3> <p>This is an older API for managing A1 Policies:</p><ul><li>A1 Policy retrieval, creation, modification and deletion.</li><li>Retrieval of supported A1 Policy Types for a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management of configuration</h3><p>API for updating and retrieval of the component configuration. Note that there other ways to maintain the configuration.</p><h3>Service Callbacks</h3><p>These are endpoints that are invoked by this service. The callbacks are registered in this service at service registration.</p><h3>NearRT-RIC Repository (Older version)</h3> <p>This is an API that provides support for looking up a NearRT-RIC. Each A1 policy is targeted towards one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision of the A1 Policy Management Service .</p><h3>Service Registry and Supervision</h3> <p>API used for registering services/clients/rApps. Each A1 Policy can be tagged with an owner. If the owner service is registered, then the service can be monitored by a heart-beat supervision mechanism, and if the registered service becomes unavailable, then its A1 Policies are removed. Note that services do not need to be registered to create A1 Policies, but unregistered services are not supervised. This is a feature that is optional to use.</p><h3>Authorization API</h3><p>API used for access control of A1 Policy access. If configured, an external authorization provider is requested to grant access to the A1 Policy Type.</p><h3>Spring Boot Actuator</h3><p>Provides built-in functions used to monitor and configure the Spring web application hosting the service.</p>",
"license" : {
- "name" : "Copyright (C) 2020-2023 Nordix Foundation, and Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved. Licensed under the Apache 2 License.",
+ "name" : "Copyright (C) 2020-2023 Nordix Foundation, and Copyright (C) 2024-2025 OpenInfra Foundation Europe. \nAll rights reserved. Licensed under the Apache 2 License.\n",
"url" : "http://www.apache.org/licenses/LICENSE-2.0"
},
- "title" : "ONAP CCSDK A1 Policy Management Service",
+ "title" : "ONAP CCSDK - Pre-Spec A1 Policy Management API",
"version" : "1.3.0",
"x-api-id" : "a31c510b-20e6-4a08-af16-368c44d7fba8",
"x-audience" : "external-public"
"url" : "/"
} ],
"tags" : [ {
- "description" : "Older API used to create polices, Policy Instances and get them as individual using an ID or get all policies/Instances.",
- "name" : "A1 Policy Management (Older version)"
+ "description" : "Older pre-spec API used to get, create, update and delete A1 Policy Instances. Also used to query A1 Policy Types.\n",
+ "name" : "A1 Policy Management"
}, {
- "description" : "API used to get the NearRT-RIC for the managed element.",
+ "description" : "Older API used to get information about registered Near-RT RICs.\n",
"name" : "NearRT-RIC Repository"
}, {
- "description" : "API used to keep the service Alive with in the timeout period",
+ "description" : "Older API used to manage registered services, and control their keep-alive status via heart-beat messages.\n",
"name" : "Service Registry and Supervision"
}, {
- "description" : "API used to get the health status and statistics of this service",
+ "description" : "API used to get the health status and statistics of this service\n",
"name" : "Health Check"
}, {
- "description" : "Callouts to indicate status schanges relevant for Services. <br> Note that these calls are called by A1-PMS, not provided.",
- "name" : "Service callbacks"
+ "description" : "Callout to registered services to indicate a status changes for a Near-RT RIC. Note that these operations are called by the A1 Policy Management Service, not provided.\n",
+ "name" : "Service Callbacks"
}, {
- "description" : "API used for authorization of information A1 policy access (this is provided by an authorization producer such as OPA). <br> Note that this API is called by A1-PMS, it is not provided.",
+ "description" : "API used for authorization of information A1 policy access (this is provided by an authorization producer such as OPA). Note that these operations are called by the A1 Policy Management Service, not provided.\n",
"name" : "Authorization API"
}, {
- "description" : "API used to create or fetch the application configuration.",
+ "description" : "API used to create or fetch the application configuration.\n",
"name" : "Configuration"
}, {
- "description" : "Monitor and interact",
+ "description" : "API used to monitor and configure the A1-PMS Springboot Service.\n",
"externalDocs" : {
"description" : "Spring Boot Actuator Web API Documentation",
- "url" : "https://docs.spring.io/spring-boot/docs/current/actuator-api/html/"
+ "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html"
},
- "name" : "Actuator"
+ "name" : "Actuator API"
} ],
"paths" : {
- "/a1-policy/v2/policy-instances" : {
- "get" : {
- "description" : "Returns a list of A1 policies matching given search criteria. <br>If several query parameters are defined, the policies matching all conditions are returned.",
- "operationId" : "getPolicyInstances",
- "parameters" : [ {
- "description" : "Select policies with a given type identity.",
- "explode" : true,
- "in" : "query",
- "name" : "policytype_id",
- "required" : false,
- "schema" : {
- "type" : "string"
- },
- "style" : "form"
- }, {
- "description" : "Select policies for a given Near-RT RIC identity.",
- "explode" : true,
- "in" : "query",
- "name" : "ric_id",
- "required" : false,
- "schema" : {
- "type" : "string"
- },
- "style" : "form"
- }, {
- "description" : "Select policies owned by a given service.",
- "explode" : true,
- "in" : "query",
- "name" : "service_id",
- "required" : false,
- "schema" : {
- "type" : "string"
- },
- "style" : "form"
- }, {
- "description" : "Select policies of a given type name (type identity has the format <typename_version>)",
- "explode" : true,
- "in" : "query",
- "name" : "type_name",
- "required" : false,
- "schema" : {
- "type" : "string"
- },
- "style" : "form"
- } ],
- "responses" : {
- "200" : {
- "content" : {
- "application/json" : {
- "examples" : {
- "policy_info_list" : {
- "$ref" : "#/components/examples/policy_info_list"
- }
- },
- "schema" : {
- "$ref" : "#/components/schemas/policy_info_list"
- }
- }
- },
- "description" : "OK - Returns A1 Policies which matches the criteria"
- },
- "404" : {
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/error_information"
- }
- }
- },
- "description" : "Not Found - Near-RT RIC, policy type or service not found"
- }
- },
- "summary" : "Query for A1 policy instances",
- "tags" : [ "A1 Policy Management" ]
- }
- },
- "/example-authz-check" : {
- "post" : {
- "description" : "The authorization function decides if access is granted.",
- "operationId" : "performAccessControl",
- "requestBody" : {
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/policy_authorization"
- }
- }
- },
- "required" : true
- },
- "responses" : {
- "200" : {
- "content" : {
- "application/json" : {
- "schema" : {
- "$ref" : "#/components/schemas/authorization_result"
- }
- }
- },
- "description" : "OK"
- },
- "403" : {
- "content" : {
- "application/problem+json" : {
- "example" : {
- "status" : 403,
- "title" : "Forbidden",
- "detail" : "Your role does not allow to perform this action. Contact System Administrator to change your access rights."
- },
- "schema" : {
- "$ref" : "#/components/schemas/error_information"
- }
- }
- },
- "description" : "Forbidden"
- }
- },
- "summary" : "Request for access authorization.",
- "tags" : [ "Authorization API" ]
- }
- },
- "/actuator/threaddump" : {
+ "/status" : {
"get" : {
- "operationId" : "threaddump",
+ "description" : "Returns status and statistics of this service",
+ "operationId" : "getStatusV1",
"responses" : {
"200" : {
"content" : {
- "text/plain;charset=UTF-8" : {
- "schema" : {
- "type" : "object"
- }
- },
- "application/vnd.spring-boot.actuator.v3+json" : {
- "schema" : {
- "type" : "object"
- }
- },
- "application/json" : {
- "schema" : {
- "type" : "object"
- }
- },
- "application/vnd.spring-boot.actuator.v2+json" : {
+ "*/*" : {
"schema" : {
- "type" : "object"
+ "type" : "string"
}
}
},
- "description" : "OK"
+ "description" : "OK - Service is living"
}
},
- "summary" : "Actuator web endpoint 'threaddump'",
- "tags" : [ "Actuator" ],
- "x-internal" : true
+ "summary" : "Get Status (getStatusV1)",
+ "tags" : [ "Health Check" ]
}
},
"/a1-policy/v2/status" : {
"description" : "OK- Service is living Ok"
}
},
+ "summary" : "Get Status (getStatus)",
"tags" : [ "Health Check" ]
}
},
- "/actuator/loggers" : {
- "get" : {
- "operationId" : "loggers",
- "responses" : {
- "200" : {
- "content" : {
- "application/vnd.spring-boot.actuator.v3+json" : {
- "schema" : {
- "type" : "object"
- }
- },
- "application/json" : {
- "schema" : {
- "type" : "object"
- }
- },
- "application/vnd.spring-boot.actuator.v2+json" : {
- "schema" : {
- "type" : "object"
- }
- }
- },
- "description" : "OK"
- }
- },
- "summary" : "Actuator web endpoint 'loggers'",
- "tags" : [ "Actuator" ],
- "x-internal" : true
- }
- },
- "/actuator/health/**" : {
- "get" : {
- "operationId" : "health-path",
- "responses" : {
- "200" : {
- "content" : {
- "application/vnd.spring-boot.actuator.v3+json" : {
- "schema" : {
- "type" : "object"
- }
- },
- "application/json" : {
- "schema" : {
- "type" : "object"
- }
- },
- "application/vnd.spring-boot.actuator.v2+json" : {
- "schema" : {
- "type" : "object"
- }
- }
- },
- "description" : "OK"
- }
- },
- "summary" : "Actuator web endpoint 'health-path'",
- "tags" : [ "Actuator" ],
- "x-internal" : true
- }
- },
"/a1-policy/v2/rics/ric" : {
"get" : {
- "description" : "Either a Near-RT RIC identity or a Managed Element identity can be specified.<br>The intention with Managed Element identity is the ID used in O1 for accessing the traffical element (such as the ID of CU).",
+ "description" : "Query information about a Near-RT RIC. Either a Near-RT RIC identity or a Managed Element identity can be specified. The intention with Managed Element identity is the ID used in O1 for accessing the traffical element (such as the ID of CU).\n",
"operationId" : "getRic",
"parameters" : [ {
- "description" : "The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned.",
+ "description" : "The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned.\n",
"explode" : true,
"in" : "query",
"name" : "managed_element_id",
"description" : "Not Found"
}
},
- "summary" : "Returns info of Near-RT RIC queried by the ric-id and managed-element-id",
+ "summary" : "Get a Near-RT RIC (getRic)",
"tags" : [ "NearRT-RIC Repository" ]
}
},
- "/actuator/shutdown" : {
- "post" : {
- "operationId" : "shutdown",
- "responses" : {
- "200" : {
- "content" : {
- "application/vnd.spring-boot.actuator.v3+json" : {
- "schema" : {
- "type" : "object"
- }
- },
- "application/json" : {
- "schema" : {
- "type" : "object"
- }
- },
- "application/vnd.spring-boot.actuator.v2+json" : {
- "schema" : {
- "type" : "object"
- }
- }
- },
- "description" : "OK"
- }
- },
- "summary" : "Actuator web endpoint 'shutdown'",
- "tags" : [ "Actuator" ],
- "x-internal" : true
- }
- },
"/a1-policy/v2/policy-types" : {
"get" : {
- "description" : "Query policy type identities",
+ "description" : "Query A1 Policy Type identities using query parameters",
"operationId" : "getPolicyTypes",
"parameters" : [ {
"description" : "Select types for the given Near-RT RIC identity.",
},
"style" : "form"
}, {
- "description" : "Select types with the given type name (type identity has the format <typename_version>)",
+ "description" : "Select types compatible with the given type name (type identity has the format 'typename_version')",
"explode" : true,
"in" : "query",
"name" : "type_name",
"description" : "Not Found"
}
},
+ "summary" : "Get A1 Policy Types (getPolicyTypes)",
"tags" : [ "A1 Policy Management" ]
}
},
"/a1-policy/v2/policies/{policy_id}" : {
"delete" : {
- "description" : "Deleting the policy using the Policy's Policy ID.",
+ "description" : "Delete an A1 Policy instance using its policy ID.",
"operationId" : "deletePolicy",
"parameters" : [ {
"explode" : false,
"description" : "Locked - HTTP Status code which can be used when the state is Locked"
}
},
- "summary" : "Delete a policy",
+ "summary" : "Delete an A1 Policy instance (deletePolicy)",
"tags" : [ "A1 Policy Management" ]
},
"get" : {
- "description" : "Returns a policy",
+ "description" : "Get an A1 Policy instance using its policy ID",
"operationId" : "getPolicy",
"parameters" : [ {
"explode" : false,
"description" : "Not Found"
}
},
+ "summary" : "Get an A1 Policy instance (getPolicy)",
"tags" : [ "A1 Policy Management" ]
}
},
- "/actuator/metrics/{requiredMetricName}" : {
- "get" : {
- "operationId" : "metrics-requiredMetricName",
+ "/a1-policy/v2/services/{service_id}/keepalive" : {
+ "put" : {
+ "description" : "A registered service should invoke this operation regularly to indicate that it is still alive. If a registered service fails to invoke some operation, or this operation, before the end of a timeout period the service will be deregistered and all its A1 policies wil be removed. This operation is only intended for registered services. (This timeout can be set or disabled when each service is initially registered)",
+ "operationId" : "keepAliveService",
"parameters" : [ {
"explode" : false,
"in" : "path",
- "name" : "requiredMetricName",
+ "name" : "service_id",
"required" : true,
"schema" : {
"type" : "string"
"responses" : {
"200" : {
"content" : {
- "application/vnd.spring-boot.actuator.v3+json" : {
- "schema" : {
- "type" : "object"
- }
- },
- "application/json" : {
- "schema" : {
- "type" : "object"
- }
- },
- "application/vnd.spring-boot.actuator.v2+json" : {
+ "*/*" : {
"schema" : {
"type" : "object"
}
}
},
- "description" : "OK"
+ "description" : "OK - Service supervision timer refreshed, OK"
+ },
+ "404" : {
+ "content" : {
+ "application/problem+json" : {
+ "example" : [ ]
+ }
+ },
+ "description" : "Not Found"
}
},
- "summary" : "Actuator web endpoint 'metrics-requiredMetricName'",
- "tags" : [ "Actuator" ],
- "x-internal" : true
+ "summary" : "Heartbeat message from a service (keepAliveService)",
+ "tags" : [ "Service Registry and Supervision" ]
}
},
- "/a1-policy/v2/configuration" : {
+ "/a1-policy/v2/rics" : {
"get" : {
- "description" : "Returns the contents of the application configuration file",
- "operationId" : "getConfiguration",
- "responses" : {
- "200" : {
- "content" : {
- "application/json" : {
- "schema" : {
- "type" : "string"
- }
- }
- },
- "description" : "OK - Configuration"
- },
- "404" : {
- "content" : {
- "application/problem+json" : {
- "example" : [ ]
- }
- },
- "description" : "Not Found"
- }
- },
- "tags" : [ "Configuration" ]
- },
- "put" : {
- "description" : "Replace the current configuration with the given configuration",
- "operationId" : "putConfiguration",
- "requestBody" : {
- "content" : {
- "application/json" : {
- "schema" : {
- "type" : "object"
- }
- }
- },
- "required" : true
- },
- "responses" : {
- "200" : {
- "content" : {
- "*/*" : {
- "schema" : {
- "$ref" : "#/components/schemas/void"
- }
- }
- },
- "description" : "OK - Configuration updated"
- },
- "400" : {
- "content" : {
- "application/problem+json" : {
- "example" : {
- "status" : 400,
- "title" : "Bad Request",
- "detail" : "The provided request is not valid."
- },
- "schema" : {
- "$ref" : "#/components/schemas/error_information"
- }
- }
- },
- "description" : "Bad Request"
- }
- },
- "tags" : [ "Configuration" ]
- }
- },
- "/actuator" : {
- "get" : {
- "operationId" : "links",
- "responses" : {
- "200" : {
- "content" : {
- "application/vnd.spring-boot.actuator.v3+json" : {
- "schema" : {
- "additionalProperties" : {
- "additionalProperties" : {
- "$ref" : "#/components/schemas/Link"
- },
- "type" : "object"
- },
- "type" : "object"
- }
- },
- "application/json" : {
- "schema" : {
- "additionalProperties" : {
- "additionalProperties" : {
- "$ref" : "#/components/schemas/Link"
- },
- "type" : "object"
- },
- "type" : "object"
- }
- },
- "application/vnd.spring-boot.actuator.v2+json" : {
- "schema" : {
- "additionalProperties" : {
- "additionalProperties" : {
- "$ref" : "#/components/schemas/Link"
- },
- "type" : "object"
- },
- "type" : "object"
- }
- }
- },
- "description" : "OK"
- }
- },
- "summary" : "Actuator root web endpoint",
- "tags" : [ "Actuator" ],
- "x-internal" : true
- }
- },
- "/actuator/loggers/{name}" : {
- "get" : {
- "operationId" : "loggers-name",
- "parameters" : [ {
- "explode" : false,
- "in" : "path",
- "name" : "name",
- "required" : true,
- "schema" : {
- "type" : "string"
- },
- "style" : "simple"
- } ],
- "responses" : {
- "200" : {
- "content" : {
- "application/vnd.spring-boot.actuator.v3+json" : {
- "schema" : {
- "type" : "object"
- }
- },
- "application/json" : {
- "schema" : {
- "type" : "object"
- }
- },
- "application/vnd.spring-boot.actuator.v2+json" : {
- "schema" : {
- "type" : "object"
- }
- }
- },
- "description" : "OK"
- }
- },
- "summary" : "Actuator web endpoint 'loggers-name'",
- "tags" : [ "Actuator" ],
- "x-internal" : true
- },
- "post" : {
- "operationId" : "loggers-name_2",
- "parameters" : [ {
- "explode" : false,
- "in" : "path",
- "name" : "name",
- "required" : true,
- "schema" : {
- "type" : "string"
- },
- "style" : "simple"
- } ],
- "requestBody" : {
- "content" : {
- "application/json" : {
- "schema" : {
- "enum" : [ "TRACE", "DEBUG", "INFO", "WARN", "ERROR", "FATAL", "OFF" ],
- "type" : "string"
- }
- }
- }
- },
- "responses" : {
- "200" : {
- "content" : {
- "*/*" : {
- "schema" : {
- "type" : "object"
- }
- }
- },
- "description" : "OK"
- }
- },
- "summary" : "Actuator web endpoint 'loggers-name'",
- "tags" : [ "Actuator" ],
- "x-internal" : true
- }
- },
- "/a1-policy/v2/services/{service_id}/keepalive" : {
- "put" : {
- "description" : "A registered service should invoke this operation regularly to indicate that it is still alive. If a registered service fails to invoke this operation before the end of a timeout period the service will be deregistered and all its A1 policies wil be removed. (This timeout can be set or disabled when each service is initially registered)",
- "operationId" : "keepAliveService",
- "parameters" : [ {
- "explode" : false,
- "in" : "path",
- "name" : "service_id",
- "required" : true,
- "schema" : {
- "type" : "string"
- },
- "style" : "simple"
- } ],
- "responses" : {
- "200" : {
- "content" : {
- "*/*" : {
- "schema" : {
- "type" : "object"
- }
- }
- },
- "description" : "OK - Service supervision timer refreshed, OK"
- },
- "404" : {
- "content" : {
- "application/problem+json" : {
- "example" : [ ]
- }
- },
- "description" : "Not Found"
- }
- },
- "summary" : "Heartbeat indicates that the service is running",
- "tags" : [ "Service Registry and Supervision" ]
- }
- },
- "/actuator/metrics" : {
- "get" : {
- "operationId" : "metrics",
- "responses" : {
- "200" : {
- "content" : {
- "application/vnd.spring-boot.actuator.v3+json" : {
- "schema" : {
- "type" : "object"
- }
- },
- "application/json" : {
- "schema" : {
- "type" : "object"
- }
- },
- "application/vnd.spring-boot.actuator.v2+json" : {
- "schema" : {
- "type" : "object"
- }
- }
- },
- "description" : "OK"
- }
- },
- "summary" : "Actuator web endpoint 'metrics'",
- "tags" : [ "Actuator" ],
- "x-internal" : true
- }
- },
- "/a1-policy/v2/rics" : {
- "get" : {
- "description" : "The call returns all Near-RT RICs that supports a given policy type identity",
+ "description" : "Get all Near-RT RICs that supports a given A1 Policy Type ID",
"operationId" : "getRics",
"parameters" : [ {
- "description" : "The identity of a policy type. If given, all Near-RT RICs supporting the policy type are returned",
+ "description" : "The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned.\n",
"explode" : true,
"in" : "query",
"name" : "policytype_id",
"description" : "Not Found"
}
},
- "summary" : "Query Near-RT RIC information",
+ "summary" : "Get Near-RT RICs for A1 Policy Type (getRics)",
"tags" : [ "NearRT-RIC Repository" ]
}
},
"/a1-policy/v2/services" : {
"get" : {
- "description" : "Either information about a registered service with given identity or all registered services are returned.",
+ "description" : "Get information about all registered services, or a single registered service. If the service ID of a registered service is included in the query, information about that service is returned. Otherwise Information about all registered is returned. This operation does not retrieve information about unregistered services.\n",
"operationId" : "getServices",
"parameters" : [ {
- "description" : "The identity of the service",
+ "description" : "The identity of the registered service",
"explode" : true,
"in" : "query",
"name" : "service_id",
"description" : "Not Found"
}
},
- "summary" : "Returns service information",
+ "summary" : "Get Services (getServices)",
"tags" : [ "Service Registry and Supervision" ]
},
"put" : {
"RICStatus" : {
"{$request.body#/callback_url}" : {
"post" : {
- "description" : "The URL to this call is registered at Service registration.",
+ "description" : "Callouts to indicate Near-RT RIC status changes relevant for Services. \nThe URL invoked by this callback is provided at Service registration.\n",
"operationId" : "serviceCallback",
"requestBody" : {
"content" : {
"description" : "Not Found"
}
},
- "summary" : "Callback for Near-RT RIC status",
- "tags" : [ "Service callbacks" ]
+ "summary" : "Callback for Near-RT RIC status (serviceCallback)",
+ "tags" : [ "Service Registry and Supervision", "Service Callbacks" ]
}
}
}
},
- "description" : "Registering a service is needed to:<ul><li>Get callbacks about available NearRT RICs.</li><li>Activate supervision of the service. If a service is inactive, its policies will automatically be deleted.</li></ul>Policies can be created even if the service is not registerred. This is a feature which it is optional to use.",
+ "description" : "Register a single service, or update a previous registtration. Service registration is required to get callbacks about available NearRT RICs and to enable supervision of the service's active status. If a registered service becomes inactive, its policies can be automatically deleted. A1 Policy instances can also be created for unregistered services. If an unregistered service is later registered, the service's policies are retained when the service becomes registered. This feature is optional to use.\n",
"operationId" : "putService",
"requestBody" : {
"content" : {
"description" : "Bad Request"
}
},
- "summary" : "Register a service",
+ "summary" : "Register or update a Service (putService)",
"tags" : [ "Service Registry and Supervision" ]
}
},
- "/actuator/info" : {
+ "/a1-policy/v2/policy-types/{policytype_id}" : {
"get" : {
- "operationId" : "info",
- "responses" : {
- "200" : {
- "content" : {
- "application/vnd.spring-boot.actuator.v3+json" : {
- "schema" : {
- "type" : "object"
- }
- },
- "application/json" : {
- "schema" : {
- "type" : "object"
- }
- },
- "application/vnd.spring-boot.actuator.v2+json" : {
- "schema" : {
- "type" : "object"
- }
- }
- },
- "description" : "OK"
- }
- },
- "summary" : "Actuator web endpoint 'info'",
- "tags" : [ "Actuator" ],
- "x-internal" : true
- }
- },
- "/status" : {
- "get" : {
- "description" : "Returns status and statistics of this service",
- "operationId" : "getStatusV1",
- "responses" : {
- "200" : {
- "content" : {
- "*/*" : {
- "schema" : {
- "type" : "string"
- }
- }
- },
- "description" : "OK - Service is living"
- }
- },
- "tags" : [ "Health Check" ]
- }
- },
- "/a1-policy/v2/policy-types/{policytype_id}" : {
- "get" : {
- "description" : "Returns a policy type definition",
+ "description" : "Get an A1 Policy Type definition using its policy type ID",
"operationId" : "getPolicyTypeDefinition",
"parameters" : [ {
"explode" : false,
}
}
},
- "description" : "OK - schema of the given policy type"
+ "description" : "OK - schema of the requested A1 Policy Type"
},
"404" : {
"content" : {
"description" : "Not Found"
}
},
+ "summary" : "Get an A1 Policy Type definition (getPolicyTypeDefinition)",
"tags" : [ "A1 Policy Management" ]
}
},
- "/actuator/logfile" : {
- "get" : {
- "operationId" : "logfile",
- "responses" : {
- "200" : {
- "content" : {
- "text/plain;charset=UTF-8" : {
- "schema" : {
- "type" : "object"
- }
- }
- },
- "description" : "OK"
- }
- },
- "summary" : "Actuator web endpoint 'logfile'",
- "tags" : [ "Actuator" ],
- "x-internal" : true
- }
- },
- "/actuator/health" : {
- "get" : {
- "operationId" : "health",
- "responses" : {
- "200" : {
- "content" : {
- "application/vnd.spring-boot.actuator.v3+json" : {
- "schema" : {
- "type" : "object"
- }
- },
- "application/json" : {
- "schema" : {
- "type" : "object"
- }
- },
- "application/vnd.spring-boot.actuator.v2+json" : {
- "schema" : {
- "type" : "object"
- }
- }
- },
- "description" : "OK"
- }
- },
- "summary" : "Actuator web endpoint 'health'",
- "tags" : [ "Actuator" ],
- "x-internal" : true
- }
- },
"/a1-policy/v2/policies" : {
"get" : {
- "description" : "Returns a list of A1 policies matching given search criteria. <br>If several query parameters are defined, the policies matching all conditions are returned.",
+ "description" : "Retrieve a list of A1 Policy Instance IDs for policies that match given search criteria. If multiple query parameters are given, the policies matching all conditions are returned.\n",
"operationId" : "getPolicyIds",
"parameters" : [ {
- "description" : "Select policies of a given policy type identity.",
+ "description" : "Select policies of a given A1 Policy Type ID.",
"explode" : true,
"in" : "query",
"name" : "policytype_id",
},
"style" : "form"
}, {
- "description" : "Select policies owned by a given service.",
+ "description" : "Select policies owned by a given service. (Both registered and unregistered services)",
"explode" : true,
"in" : "query",
"name" : "service_id",
},
"style" : "form"
}, {
- "description" : "Select policies of types with the given type name (type identity has the format <typename_version>)",
+ "description" : "Select policies of types with the given A1 Policy Type name (type names have the format 'typename_version')\n",
"explode" : true,
"in" : "query",
"name" : "type_name",
"description" : "Not Found"
}
},
- "summary" : "Query policy identities",
+ "summary" : "Query A1 Policy Instances (getPolicyIds)",
"tags" : [ "A1 Policy Management" ]
},
"put" : {
- "description" : "Create or update a policy",
+ "description" : "Create or Update an A1 Policy Instance",
"operationId" : "putPolicy",
"requestBody" : {
"content" : {
"description" : "Locked - HTTP Status code which can be used when the state is Locked"
}
},
+ "summary" : "Create or Update an A1 Policy Instance (putPolicy)",
+ "tags" : [ "A1 Policy Management" ]
+ }
+ },
+ "/a1-policy/v2/policy-instances" : {
+ "get" : {
+ "description" : "Returns a collection of A1 Policy Instance information for policies that match given search criteria. If several query parameters are defined, the policies matching all conditions are returned.\n",
+ "operationId" : "getPolicyInstances",
+ "parameters" : [ {
+ "description" : "Select policies with a given A1 Policy Type ID.",
+ "explode" : true,
+ "in" : "query",
+ "name" : "policytype_id",
+ "required" : false,
+ "schema" : {
+ "type" : "string"
+ },
+ "style" : "form"
+ }, {
+ "description" : "Select policies for a given Near-RT RIC identity.",
+ "explode" : true,
+ "in" : "query",
+ "name" : "ric_id",
+ "required" : false,
+ "schema" : {
+ "type" : "string"
+ },
+ "style" : "form"
+ }, {
+ "description" : "Select policies owned by a given service (registered or unregistered).",
+ "explode" : true,
+ "in" : "query",
+ "name" : "service_id",
+ "required" : false,
+ "schema" : {
+ "type" : "string"
+ },
+ "style" : "form"
+ }, {
+ "description" : "Select policies of a given A1 Policy Type name (type identity has the format 'typename_version').",
+ "explode" : true,
+ "in" : "query",
+ "name" : "type_name",
+ "required" : false,
+ "schema" : {
+ "type" : "string"
+ },
+ "style" : "form"
+ } ],
+ "responses" : {
+ "200" : {
+ "content" : {
+ "application/json" : {
+ "examples" : {
+ "policy_info_list" : {
+ "$ref" : "#/components/examples/policy_info_list"
+ }
+ },
+ "schema" : {
+ "$ref" : "#/components/schemas/policy_info_list"
+ }
+ }
+ },
+ "description" : "OK - Returns A1 Policy Instances which match the criteria"
+ },
+ "404" : {
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/error_information"
+ }
+ }
+ },
+ "description" : "Not Found - Near-RT RIC, A1 Policy Type or service was not found"
+ }
+ },
+ "summary" : "Query for A1 Policy instances (getPolicyInstances)",
"tags" : [ "A1 Policy Management" ]
}
},
"/a1-policy/v2/services/{service_id}" : {
"delete" : {
- "description" : "Unregister a service",
+ "description" : "Unregister a registered Service using its service ID. Only registered services can be unregistered. All A1 Policy Instances for the previously registered service will be removed.\n",
"operationId" : "deleteService",
"parameters" : [ {
"explode" : false,
"description" : "Not Found"
}
},
+ "summary" : "Unregister a Service (deleteService)",
"tags" : [ "Service Registry and Supervision" ]
}
},
- "/actuator/heapdump" : {
- "get" : {
- "operationId" : "heapdump",
- "responses" : {
- "200" : {
- "content" : {
- "application/octet-stream" : {
- "schema" : {
- "type" : "object"
- }
- }
- },
- "description" : "OK"
- }
- },
- "summary" : "Actuator web endpoint 'heapdump'",
- "tags" : [ "Actuator" ],
- "x-internal" : true
- }
- },
"/a1-policy/v2/policies/{policy_id}/status" : {
"get" : {
- "description" : "Returns a policy status",
+ "description" : "Retrieve the status information for an A1 Policy Instance.",
"operationId" : "getPolicyStatus",
"parameters" : [ {
"explode" : false,
"description" : "Not Found"
}
},
+ "summary" : "Get an A1 Policy Instance's status (getPolicyStatus)",
"tags" : [ "A1 Policy Management" ]
}
- }
- },
- "components" : {
- "examples" : {
- "service_status" : {
- "description" : "List of service information",
- "value" : {
- "callback_url" : "callback_url",
- "service_id" : "service_id",
- "keep_alive_interval_seconds" : 0,
- "time_since_last_activity_seconds" : 6
- }
- },
- "service_status_list" : {
- "description" : "List of service information",
- "value" : {
- "service_list" : [ {
- "callback_url" : "callback_url",
- "service_id" : "service_id",
- "keep_alive_interval_seconds" : 0,
- "time_since_last_activity_seconds" : 6
- }, {
- "callback_url" : "callback_url",
- "service_id" : "service_id",
- "keep_alive_interval_seconds" : 0,
- "time_since_last_activity_seconds" : 6
- } ]
- }
- },
- "policy_type_definition" : {
- "description" : "Schema of the given Policy type",
- "value" : {
- "policy_schema" : "{}"
- }
- },
- "policy_type_id_list" : {
- "description" : "Array of policy type id's",
- "value" : {
- "policy_type_id_list" : [ "policytype_id", "policytype_id" ]
- }
- },
- "policy_info" : {
- "description" : "Policy information of one A1-P policy",
- "value" : {
- "ric_id" : "ric_id",
- "policy_id" : "policy_id",
- "transient" : false,
- "service_id" : "service_id",
- "policy_data" : "{}",
- "status_notification_uri" : "status_notification_uri",
- "policytype_id" : "policytype_id"
- }
- },
- "policy_info_list" : {
- "description" : "List of policy information",
- "value" : {
- "policies" : [ {
- "ric_id" : "ric_id",
- "policy_id" : "policy_id",
- "transient" : false,
- "service_id" : "service_id",
- "policy_data" : "{}",
- "status_notification_uri" : "status_notification_uri",
- "policytype_id" : "policytype_id"
- }, {
- "ric_id" : "ric_id",
- "policy_id" : "policy_id",
- "transient" : false,
- "service_id" : "service_id",
- "policy_data" : "{}",
- "status_notification_uri" : "status_notification_uri",
- "policytype_id" : "policytype_id"
- } ]
- }
+ },
+ "/a1-policy/v2/configuration" : {
+ "get" : {
+ "description" : "Returns the entire contents of the Application Configuration.",
+ "operationId" : "getConfiguration",
+ "responses" : {
+ "200" : {
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "type" : "string"
+ }
+ }
+ },
+ "description" : "OK - Configuration"
+ },
+ "404" : {
+ "content" : {
+ "application/problem+json" : {
+ "example" : [ ]
+ }
+ },
+ "description" : "Not Found"
+ }
+ },
+ "summary" : "Get the Application Configuration (getConfiguration)",
+ "tags" : [ "Configuration" ]
},
- "policy_id_list" : {
- "description" : "A list of policy identities",
- "value" : {
- "policy_ids" : [ "some_policy_id", "some_policy_id" ]
- }
+ "put" : {
+ "description" : "Replace the current Application Configuration with a new configuration. The new configuration, if accepted, will take effect after a short delay. The new configuration must comply with the Application Configuration schema, which can be found from the the Application Documentation (Developer Guide)\n",
+ "operationId" : "putConfiguration",
+ "requestBody" : {
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ }
+ },
+ "required" : true
+ },
+ "responses" : {
+ "200" : {
+ "content" : {
+ "*/*" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/void"
+ }
+ }
+ },
+ "description" : "OK - Configuration updated"
+ },
+ "400" : {
+ "content" : {
+ "application/problem+json" : {
+ "example" : {
+ "status" : 400,
+ "title" : "Bad Request",
+ "detail" : "The provided request is not valid."
+ },
+ "schema" : {
+ "$ref" : "#/components/schemas/error_information"
+ }
+ }
+ },
+ "description" : "Bad Request"
+ }
+ },
+ "summary" : "Set/Replace the Application Configuration (putConfiguration)",
+ "tags" : [ "Configuration" ]
+ }
+ },
+ "/example-authz-check" : {
+ "post" : {
+ "description" : "A template endpoint for callout requests to an external authorization function. The authorization function, if enabled, decides if individual operations are permitted.\n",
+ "operationId" : "performAccessControl",
+ "requestBody" : {
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/policy_authorization"
+ }
+ }
+ },
+ "required" : true
+ },
+ "responses" : {
+ "200" : {
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "$ref" : "#/components/schemas/authorization_result"
+ }
+ }
+ },
+ "description" : "OK"
+ },
+ "403" : {
+ "content" : {
+ "application/problem+json" : {
+ "example" : {
+ "status" : 403,
+ "title" : "Forbidden",
+ "detail" : "Your role does not allow to perform this action. Contact System Administrator to change your access rights."
+ },
+ "schema" : {
+ "$ref" : "#/components/schemas/error_information"
+ }
+ }
+ },
+ "description" : "Forbidden"
+ }
+ },
+ "summary" : "Callout request for access authorization (performAccessControl)",
+ "tags" : [ "Authorization API" ]
+ }
+ },
+ "/actuator" : {
+ "get" : {
+ "description" : "A1-PMS Springboot Service Actuator web endpoint. Returns a set of links to available/enabled actuator endpoints.\n",
+ "externalDocs" : {
+ "description" : "Spring Boot Actuator Web API Documentation",
+ "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html"
+ },
+ "operationId" : "actuatorLinks",
+ "responses" : {
+ "200" : {
+ "content" : {
+ "application/vnd.spring-boot.actuator.v3+json" : {
+ "schema" : {
+ "additionalProperties" : {
+ "additionalProperties" : {
+ "$ref" : "#/components/schemas/Link"
+ },
+ "type" : "object"
+ },
+ "type" : "object"
+ }
+ },
+ "application/json" : {
+ "schema" : {
+ "additionalProperties" : {
+ "additionalProperties" : {
+ "$ref" : "#/components/schemas/Link"
+ },
+ "type" : "object"
+ },
+ "type" : "object"
+ }
+ },
+ "application/vnd.spring-boot.actuator.v2+json" : {
+ "schema" : {
+ "additionalProperties" : {
+ "additionalProperties" : {
+ "$ref" : "#/components/schemas/Link"
+ },
+ "type" : "object"
+ },
+ "type" : "object"
+ }
+ }
+ },
+ "description" : "OK"
+ }
+ },
+ "summary" : "Actuator endpoint - Root (actuatorLinks)",
+ "tags" : [ "Actuator API" ],
+ "x-internal" : true
+ }
+ },
+ "/actuator/heapdump" : {
+ "get" : {
+ "description" : "A1-PMS Springboot Service Actuator web endpoint - HeapDump.\n",
+ "externalDocs" : {
+ "description" : "Spring Boot Actuator Web API Documentation",
+ "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html"
+ },
+ "operationId" : "actuatorHeapdump",
+ "responses" : {
+ "200" : {
+ "content" : {
+ "application/octet-stream" : {
+ "schema" : {
+ "type" : "object"
+ }
+ }
+ },
+ "description" : "OK"
+ }
+ },
+ "summary" : "Actuator endpoint - Heapdump (actuatorHeapdump)",
+ "tags" : [ "Actuator API" ],
+ "x-internal" : true
+ }
+ },
+ "/actuator/info" : {
+ "get" : {
+ "description" : "A1-PMS Springboot Service Actuator web endpoint - Info.\n",
+ "externalDocs" : {
+ "description" : "Spring Boot Actuator Web API Documentation",
+ "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html"
+ },
+ "operationId" : "actuatorInfo",
+ "responses" : {
+ "200" : {
+ "content" : {
+ "application/vnd.spring-boot.actuator.v3+json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ },
+ "application/json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ },
+ "application/vnd.spring-boot.actuator.v2+json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ }
+ },
+ "description" : "OK"
+ }
+ },
+ "summary" : "Actuator endpoint - Info (actuatorInfo)",
+ "tags" : [ "Actuator API" ],
+ "x-internal" : true
+ }
+ },
+ "/actuator/threaddump" : {
+ "get" : {
+ "description" : "A1-PMS Springboot Service Actuator web endpoint - ThreadDump.\n",
+ "externalDocs" : {
+ "description" : "Spring Boot Actuator Web API Documentation",
+ "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html"
+ },
+ "operationId" : "actuatorThreaddump",
+ "responses" : {
+ "200" : {
+ "content" : {
+ "text/plain;charset=UTF-8" : {
+ "schema" : {
+ "type" : "object"
+ }
+ },
+ "application/vnd.spring-boot.actuator.v3+json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ },
+ "application/json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ },
+ "application/vnd.spring-boot.actuator.v2+json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ }
+ },
+ "description" : "OK"
+ }
+ },
+ "summary" : "Actuator endpoint - Threaddump (actuatorThreaddump)",
+ "tags" : [ "Actuator API" ],
+ "x-internal" : true
+ }
+ },
+ "/actuator/loggers" : {
+ "get" : {
+ "description" : "A1-PMS Springboot Service Actuator web endpoint - Get a list of Loggers.\n",
+ "externalDocs" : {
+ "description" : "Spring Boot Actuator Web API Documentation",
+ "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html"
+ },
+ "operationId" : "actuatorLoggers",
+ "responses" : {
+ "200" : {
+ "content" : {
+ "application/vnd.spring-boot.actuator.v3+json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ },
+ "application/json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ },
+ "application/vnd.spring-boot.actuator.v2+json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ }
+ },
+ "description" : "OK"
+ }
+ },
+ "summary" : "Actuator endpoint - Get Loggers (actuatorLoggers)",
+ "tags" : [ "Actuator API" ],
+ "x-internal" : true
+ }
+ },
+ "/actuator/loggers/{name}" : {
+ "get" : {
+ "description" : "A1-PMS Springboot Service Actuator web endpoint - Get a single named Logger.\n",
+ "externalDocs" : {
+ "description" : "Spring Boot Actuator Web API Documentation",
+ "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html"
+ },
+ "operationId" : "actuatorGetLogger",
+ "parameters" : [ {
+ "explode" : false,
+ "in" : "path",
+ "name" : "name",
+ "required" : true,
+ "schema" : {
+ "type" : "string"
+ },
+ "style" : "simple"
+ } ],
+ "responses" : {
+ "200" : {
+ "content" : {
+ "application/vnd.spring-boot.actuator.v3+json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ },
+ "application/json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ },
+ "application/vnd.spring-boot.actuator.v2+json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ }
+ },
+ "description" : "OK"
+ }
+ },
+ "summary" : "Actuator endpoint - Get Logger (actuatorGetLogger)",
+ "tags" : [ "Actuator API" ],
+ "x-internal" : true
},
- "policy_status_info" : {
- "description" : "Status for one A1-P Policy",
- "value" : {
- "last_modified" : "last_modified",
- "status" : {
- "value" : {
- "status" : "status"
+ "post" : {
+ "description" : "A1-PMS Springboot Service Actuator web endpoint - Create or Update single named Logger.\n",
+ "externalDocs" : {
+ "description" : "Spring Boot Actuator Web API Documentation",
+ "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html"
+ },
+ "operationId" : "actuatorSetlogger",
+ "parameters" : [ {
+ "explode" : false,
+ "in" : "path",
+ "name" : "name",
+ "required" : true,
+ "schema" : {
+ "type" : "string"
+ },
+ "style" : "simple"
+ } ],
+ "requestBody" : {
+ "content" : {
+ "application/json" : {
+ "schema" : {
+ "enum" : [ "TRACE", "DEBUG", "INFO", "WARN", "ERROR", "FATAL", "OFF" ],
+ "type" : "string"
+ }
}
}
- }
- },
+ },
+ "responses" : {
+ "200" : {
+ "content" : {
+ "*/*" : {
+ "schema" : {
+ "type" : "object"
+ }
+ }
+ },
+ "description" : "OK"
+ }
+ },
+ "summary" : "Actuator endpoint - Set Logger (actuatorSetlogger)",
+ "tags" : [ "Actuator API" ],
+ "x-internal" : true
+ }
+ },
+ "/actuator/logfile" : {
+ "get" : {
+ "description" : "A1-PMS Springboot Service Actuator web endpoint - Get the Log file.\n",
+ "externalDocs" : {
+ "description" : "Spring Boot Actuator Web API Documentation",
+ "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html"
+ },
+ "operationId" : "actuatorGetLogFile",
+ "responses" : {
+ "200" : {
+ "content" : {
+ "text/plain;charset=UTF-8" : {
+ "schema" : {
+ "type" : "object"
+ }
+ }
+ },
+ "description" : "OK"
+ }
+ },
+ "summary" : "Actuator endpoint - Log File (actuatorGetLogFile)",
+ "tags" : [ "Actuator API" ],
+ "x-internal" : true
+ }
+ },
+ "/actuator/health" : {
+ "get" : {
+ "description" : "A1-PMS Springboot Service Actuator web endpoint - Health Check.\n",
+ "externalDocs" : {
+ "description" : "Spring Boot Actuator Web API Documentation",
+ "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html"
+ },
+ "operationId" : "actuatorHealth",
+ "responses" : {
+ "200" : {
+ "content" : {
+ "application/vnd.spring-boot.actuator.v3+json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ },
+ "application/json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ },
+ "application/vnd.spring-boot.actuator.v2+json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ }
+ },
+ "description" : "OK"
+ }
+ },
+ "summary" : "Actuator endpoint - Health (actuatorHealth)",
+ "tags" : [ "Actuator API" ],
+ "x-internal" : true
+ }
+ },
+ "/actuator/health/**" : {
+ "get" : {
+ "description" : "A1-PMS Springboot Service Actuator web endpoint - Health Status for an Application Component.\n",
+ "externalDocs" : {
+ "description" : "Spring Boot Actuator Web API Documentation",
+ "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html"
+ },
+ "operationId" : "actuatorHealthComponent",
+ "responses" : {
+ "200" : {
+ "content" : {
+ "application/vnd.spring-boot.actuator.v3+json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ },
+ "application/json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ },
+ "application/vnd.spring-boot.actuator.v2+json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ }
+ },
+ "description" : "OK"
+ }
+ },
+ "summary" : "Actuator endpoint - Component Health (actuatorHealthComponent)",
+ "tags" : [ "Actuator API" ],
+ "x-internal" : true
+ }
+ },
+ "/actuator/shutdown" : {
+ "post" : {
+ "description" : "A1-PMS Springboot Service Actuator web endpoint - Shutdown the Application.\n",
+ "externalDocs" : {
+ "description" : "Spring Boot Actuator Web API Documentation",
+ "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html"
+ },
+ "operationId" : "actuatorShutdown",
+ "responses" : {
+ "200" : {
+ "content" : {
+ "application/vnd.spring-boot.actuator.v3+json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ },
+ "application/json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ },
+ "application/vnd.spring-boot.actuator.v2+json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ }
+ },
+ "description" : "OK"
+ }
+ },
+ "summary" : "Actuator endpoint - Shutdown (actuatorShutdown)",
+ "tags" : [ "Actuator API" ],
+ "x-internal" : true
+ }
+ },
+ "/actuator/metrics" : {
+ "get" : {
+ "description" : "A1-PMS Springboot Service Actuator web endpoint - Get a list of Application metrics names.\n",
+ "externalDocs" : {
+ "description" : "Spring Boot Actuator Web API Documentation",
+ "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html"
+ },
+ "operationId" : "actuatorMetrics",
+ "responses" : {
+ "200" : {
+ "content" : {
+ "application/vnd.spring-boot.actuator.v3+json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ },
+ "application/json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ },
+ "application/vnd.spring-boot.actuator.v2+json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ }
+ },
+ "description" : "OK"
+ }
+ },
+ "summary" : "Actuator endpoint - Metrics (actuatorMetrics)",
+ "tags" : [ "Actuator API" ],
+ "x-internal" : true
+ }
+ },
+ "/actuator/metrics/{requiredMetricName}" : {
+ "get" : {
+ "description" : "A1-PMS Springboot Service Actuator web endpoint - Get the value for a named Application metric.\n",
+ "externalDocs" : {
+ "description" : "Spring Boot Actuator Web API Documentation",
+ "url" : "https://docs.spring.io/spring-boot/reference/actuator/endpoints.html"
+ },
+ "operationId" : "actuatorGetMetric",
+ "parameters" : [ {
+ "explode" : false,
+ "in" : "path",
+ "name" : "requiredMetricName",
+ "required" : true,
+ "schema" : {
+ "type" : "string"
+ },
+ "style" : "simple"
+ } ],
+ "responses" : {
+ "200" : {
+ "content" : {
+ "application/vnd.spring-boot.actuator.v3+json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ },
+ "application/json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ },
+ "application/vnd.spring-boot.actuator.v2+json" : {
+ "schema" : {
+ "type" : "object"
+ }
+ }
+ },
+ "description" : "OK"
+ }
+ },
+ "summary" : "Actuator endpoint - Get Metric (actuatorGetMetric)",
+ "x-internal" : true
+ }
+ }
+ },
+ "components" : {
+ "examples" : {
"status_info" : {
"value" : {
"status" : "status"
"policytype_ids" : [ "some_policytype_id", "some_policytype_id" ]
}
},
+ "policy_type_id_list" : {
+ "description" : "Array of A1 Policy Type id's",
+ "value" : {
+ "policy_type_id_list" : [ "policytype_id", "policytype_id" ]
+ }
+ },
+ "policy_info" : {
+ "description" : "Information for an A1 Policy Instance",
+ "value" : {
+ "ric_id" : "ric_id1",
+ "policy_id" : "policy_id1",
+ "transient" : false,
+ "service_id" : "service_id1",
+ "policy_data" : "{}",
+ "status_notification_uri" : "status_notification_uri",
+ "policytype_id" : "policytype_id1"
+ }
+ },
"ric_info_list" : {
"value" : {
"rics" : [ {
"policytype_ids" : [ "policytype_ids", "policytype_ids" ]
} ]
}
+ },
+ "service_status_list" : {
+ "description" : "List of service information",
+ "value" : {
+ "service_list" : [ {
+ "callback_url" : "callback_url",
+ "service_id" : "service_id",
+ "keep_alive_interval_seconds" : 0,
+ "time_since_last_activity_seconds" : 6
+ }, {
+ "callback_url" : "callback_url",
+ "service_id" : "service_id",
+ "keep_alive_interval_seconds" : 0,
+ "time_since_last_activity_seconds" : 6
+ } ]
+ }
+ },
+ "policy_type_definition" : {
+ "description" : "Schema of the given A1 Policy Type",
+ "value" : {
+ "policy_schema" : "{}"
+ }
+ },
+ "policy_id_list" : {
+ "description" : "A list of policy identities",
+ "value" : {
+ "policy_ids" : [ "some_policy_id", "some_policy_id" ]
+ }
+ },
+ "policy_info_list" : {
+ "description" : "List of policy information",
+ "value" : {
+ "policies" : [ {
+ "ric_id" : "ric_id1",
+ "policy_id" : "policy_id1",
+ "transient" : false,
+ "service_id" : "service_id1",
+ "policy_data" : "{}",
+ "status_notification_uri" : "status_notification_uri",
+ "policytype_id" : "policytype_id1"
+ }, {
+ "ric_id" : "ric_id2",
+ "policy_id" : "policy_id2",
+ "transient" : true,
+ "service_id" : "service_id2",
+ "policy_data" : "{}",
+ "status_notification_uri" : "status_notification_uri",
+ "policytype_id" : "policytype_id2"
+ } ]
+ }
+ },
+ "policy_status_info" : {
+ "description" : "Status for one A1-P Policy",
+ "value" : {
+ "last_modified" : "last_modified",
+ "status" : {
+ "value" : {
+ "status" : "status"
+ }
+ }
+ }
}
},
"responses" : {
+ "NotFound" : {
+ "content" : {
+ "application/problem+json" : {
+ "example" : [ ]
+ }
+ },
+ "description" : "Not Found"
+ },
"Locked" : {
"content" : {
"application/problem+json" : {
}
},
"description" : "Forbidden"
- },
- "NotFound" : {
- "content" : {
- "application/problem+json" : {
- "example" : [ ]
- }
- },
- "description" : "Not Found"
}
},
- "schemas" : {
- "policy_type_definition" : {
- "description" : "Contains policy type schema definition",
- "properties" : {
- "policy_schema" : {
- "description" : "Policy type json schema. The schema is a json object following http://json-schema.org/draft-07/schema",
- "type" : "object"
- }
- },
- "type" : "object"
- },
- "error_information" : {
- "description" : "Problem as defined in https://tools.ietf.org/html/rfc7807",
- "properties" : {
- "detail" : {
- "description" : " A human-readable explanation specific to this occurrence of the problem.",
- "example" : "Policy type not found",
- "type" : "string"
- },
- "title" : {
- "description" : "A specific error name",
- "example" : "Not Found",
- "type" : "string"
- },
- "status" : {
- "description" : "The HTTP status code generated by the origin server for this occurrence of the problem. ",
- "example" : 404,
- "format" : "int32",
- "type" : "integer"
- }
- },
- "type" : "object"
- },
- "void" : {
- "description" : "Void/empty",
- "type" : "object"
- },
- "status_info" : {
- "properties" : {
- "status" : {
- "description" : "status text",
- "type" : "string"
- }
- },
- "type" : "object"
- },
- "authorization_result" : {
- "description" : "Result of authorization",
- "example" : {
- "result" : true
- },
+ "schemas" : {
+ "status_info" : {
"properties" : {
- "result" : {
- "description" : "If true, the access is granted",
- "type" : "boolean"
+ "status" : {
+ "description" : "status text",
+ "type" : "string"
}
},
- "required" : [ "result" ],
"type" : "object"
},
"ric_info" : {
"type" : "string"
},
"policytype_ids" : {
- "description" : "supported policy types",
+ "description" : "supported A1 Policy Types",
"items" : {
- "description" : "supported policy types",
+ "description" : "supported A1 Policy Types",
"type" : "string"
},
"type" : "array"
},
"type" : "object"
},
- "service_registration_info" : {
- "description" : "Information for one service",
+ "policy_type_id_list" : {
+ "description" : "Information about A1 Policy Types",
"properties" : {
- "callback_url" : {
- "description" : "callback for notifying of Near-RT RIC state changes",
+ "policytype_ids" : {
+ "description" : "A1 Policy Type identities",
+ "items" : {
+ "description" : "A1 Policy Type identities",
+ "type" : "string"
+ },
+ "type" : "array"
+ }
+ },
+ "type" : "object"
+ },
+ "policy_info" : {
+ "description" : "Information for one A1-P Policy",
+ "properties" : {
+ "ric_id" : {
+ "description" : "identity of the target Near-RT RIC",
+ "type" : "string"
+ },
+ "policy_id" : {
+ "description" : "identity of the policy",
"type" : "string"
},
+ "transient" : {
+ "default" : false,
+ "description" : "If true, the policy is automatically deleted if the targeted Near-RT RIC restarts or recovers. If false, the A1 Policy Instance remains, and is re-pushed to the targeted Near-RT RIC after a restart or recovery. If false, the A1 Policy Instance is maintained and must be deleted separately in the event of Near-RT RIC restart or recovery. Default is false.\n",
+ "example" : false,
+ "nullable" : false,
+ "type" : "boolean"
+ },
"service_id" : {
- "description" : "identity of the service",
+ "default" : "",
+ "description" : "The identity of the service owning the policy. This can be used to group the policies (it is possible to get all policies associated to a service). Note that the service does not need to be registered. If the service is registered, the A1 Policy Instance will be subject to the same supervision rules as the the service's other policies.\n",
"type" : "string"
},
- "keep_alive_interval_seconds" : {
- "description" : "keep alive interval for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.",
- "format" : "int64",
+ "policy_data" : {
+ "description" : "the configuration of the policy",
+ "type" : "object"
+ },
+ "status_notification_uri" : {
+ "description" : "Callback URI for policy status updates",
+ "type" : "string"
+ },
+ "policytype_id" : {
+ "description" : "identity of the A1 Policy Type",
+ "type" : "string"
+ }
+ },
+ "required" : [ "policy_data", "policy_id", "policytype_id", "ric_id" ],
+ "type" : "object"
+ },
+ "void" : {
+ "description" : "Void/empty",
+ "type" : "object"
+ },
+ "error_information" : {
+ "description" : "Problem as defined in https://tools.ietf.org/html/rfc7807",
+ "properties" : {
+ "detail" : {
+ "description" : " A human-readable explanation specific to this occurrence of the problem.",
+ "example" : "A1 Policy Type not found",
+ "type" : "string"
+ },
+ "title" : {
+ "description" : "A specific error name",
+ "example" : "Not Found",
+ "type" : "string"
+ },
+ "status" : {
+ "description" : "The HTTP status code generated by the origin server for this occurrence of the problem. ",
+ "example" : 404,
+ "format" : "int32",
"type" : "integer"
}
},
- "required" : [ "service_id" ],
"type" : "object"
},
- "policy_info_list" : {
- "description" : "List of policy information",
+ "ric_info_list" : {
+ "description" : "List of Near-RT RIC information",
"properties" : {
- "policies" : {
- "description" : "List of policy information",
+ "rics" : {
+ "description" : "List of Near-RT RIC information",
"items" : {
- "$ref" : "#/components/schemas/policy_info"
+ "$ref" : "#/components/schemas/ric_info"
},
"type" : "array"
}
},
"type" : "object"
},
- "policy_status_info" : {
- "description" : "Status for one A1-P Policy",
+ "service_status_list" : {
"properties" : {
- "last_modified" : {
- "description" : "timestamp, last modification time",
- "type" : "string"
- },
- "status" : {
- "description" : "the Policy status",
- "type" : "object"
+ "service_list" : {
+ "description" : "List of service information",
+ "items" : {
+ "$ref" : "#/components/schemas/service_status"
+ },
+ "type" : "array"
}
},
"type" : "object"
},
"type" : "object"
},
- "ric_info_list" : {
- "description" : "List of Near-RT RIC information",
- "properties" : {
- "rics" : {
- "description" : "List of Near-RT RIC information",
- "items" : {
- "$ref" : "#/components/schemas/ric_info"
- },
- "type" : "array"
- }
- },
- "type" : "object"
- },
- "input" : {
- "description" : "input",
+ "service_registration_info" : {
+ "description" : "Information for one service",
"properties" : {
- "access_type" : {
- "description" : "Access type",
- "enum" : [ "READ", "WRITE", "DELETE" ],
+ "callback_url" : {
+ "description" : "Callback for notifying of Near-RT RIC state changes",
"type" : "string"
},
- "auth_token" : {
- "description" : "Authorization token",
+ "service_id" : {
+ "description" : "identity of the service",
"type" : "string"
},
- "policy_type_id" : {
- "description" : "Policy type identifier",
- "type" : "string"
- }
- },
- "required" : [ "access_type", "auth_token", "policy_type_id" ],
- "type" : "object"
- },
- "policy_authorization" : {
- "description" : "Authorization request for A1 policy requests",
- "properties" : {
- "input" : {
- "$ref" : "#/components/schemas/input"
+ "keep_alive_interval_seconds" : {
+ "description" : "Keep alive interval for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.\n",
+ "format" : "int64",
+ "type" : "integer"
}
},
- "required" : [ "input" ],
+ "required" : [ "service_id" ],
"type" : "object"
},
- "policy_type_id_list" : {
- "description" : "Information about policy types",
+ "service_callback_info_v2" : {
+ "description" : "Information transferred in Service callbacks, \nif a callback URL was provided for a registered service\n",
"properties" : {
- "policytype_ids" : {
- "description" : "Policy type identities",
- "items" : {
- "description" : "Policy type identities",
- "type" : "string"
- },
- "type" : "array"
+ "ric_id" : {
+ "description" : "identity of a Near-RT RIC",
+ "type" : "string"
+ },
+ "event_type" : {
+ "description" : "values: \n AVAILABLE: the Near-RT RIC has become available for A1 Policy management\n",
+ "enum" : [ "AVAILABLE" ],
+ "type" : "string"
}
},
+ "required" : [ "event_type", "ric_id" ],
"type" : "object"
},
- "policy_info" : {
- "description" : "Information for one A1-P Policy",
+ "policy_type_definition" : {
+ "description" : "Contains A1 Policy Type schema definition",
"properties" : {
- "ric_id" : {
- "description" : "identity of the target Near-RT RIC",
- "type" : "string"
- },
- "policy_id" : {
- "description" : "identity of the policy",
- "type" : "string"
- },
- "transient" : {
- "default" : false,
- "description" : "if true, the policy is deleted at RIC restart. If false, its value is maintained by this service until explicitly deleted. Default false.",
- "example" : false,
- "nullable" : false,
- "type" : "boolean"
- },
- "service_id" : {
- "default" : "",
- "description" : "the identity of the service owning the policy. This can be used to group the policies (it is possible to get all policies associated to a service). Note that the service does not need to be registered.",
- "type" : "string"
- },
- "policy_data" : {
- "description" : "the configuration of the policy",
+ "policy_schema" : {
+ "description" : "A1 Policy Type json schema. The schema is a json object following http://json-schema.org/draft-07/schema",
"type" : "object"
- },
- "status_notification_uri" : {
- "description" : "Callback URI for policy status updates",
- "type" : "string"
- },
- "policytype_id" : {
- "description" : "identity of the policy type",
- "type" : "string"
}
},
- "required" : [ "policy_data", "policy_id", "policytype_id", "ric_id" ],
"type" : "object"
},
"policy_id_list" : {
},
"type" : "object"
},
- "service_status_list" : {
+ "policy_info_list" : {
+ "description" : "List of policy information",
"properties" : {
- "service_list" : {
- "description" : "List of service information",
+ "policies" : {
+ "description" : "List of policy information",
"items" : {
- "$ref" : "#/components/schemas/service_status"
+ "$ref" : "#/components/schemas/policy_info"
},
"type" : "array"
}
},
"type" : "object"
},
- "service_callback_info_v2" : {
- "description" : "Information transferred as in Service callbacks (callback_url)",
+ "policy_status_info" : {
+ "description" : "Status for one A1-P Policy",
"properties" : {
- "ric_id" : {
- "description" : "identity of a Near-RT RIC",
+ "last_modified" : {
+ "description" : "timestamp, last modification time",
"type" : "string"
},
- "event_type" : {
- "description" : "values:\nAVAILABLE: the Near-RT RIC has become available for A1 Policy management",
- "enum" : [ "AVAILABLE" ],
+ "status" : {
+ "description" : "the Policy status",
+ "type" : "object"
+ }
+ },
+ "type" : "object"
+ },
+ "policy_authorization" : {
+ "description" : "Authorization request for A1 policy requests",
+ "properties" : {
+ "input" : {
+ "$ref" : "#/components/schemas/input"
+ }
+ },
+ "required" : [ "input" ],
+ "type" : "object"
+ },
+ "input" : {
+ "description" : "input",
+ "properties" : {
+ "access_type" : {
+ "description" : "Access type",
+ "enum" : [ "READ", "WRITE", "DELETE" ],
+ "type" : "string"
+ },
+ "auth_token" : {
+ "description" : "Authorization token",
+ "type" : "string"
+ },
+ "policy_type_id" : {
+ "description" : "A1 Policy Type identifier",
"type" : "string"
}
},
- "required" : [ "event_type", "ric_id" ],
+ "required" : [ "access_type", "auth_token", "policy_type_id" ],
+ "type" : "object"
+ },
+ "authorization_result" : {
+ "description" : "Result of authorization",
+ "example" : {
+ "result" : true
+ },
+ "properties" : {
+ "result" : {
+ "description" : "If true, the access is granted",
+ "type" : "boolean"
+ }
+ },
+ "required" : [ "result" ],
"type" : "object"
},
"Link" : {
+# ============LICENSE_START=======================================================
+# Copyright (C) 2020-2023 Nordix Foundation. All rights reserved.
# Copyright (C) 2023-2025 OpenInfra Foundation Europe. All rights reserved.
-# Modifications Copyright (C) 2021 Pantheon.tech
-# Modifications Copyright (C) 2021 Bell Canada
# ================================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
openapi: 3.0.3
info:
- x-api-id: a31c510b-20e6-4a08-af16-368c44d7fba8
- x-audience: external-public
- description: "<h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service\
- \ provides a REST API for managemecnt of A1 policies. <br/>The main tasks of the\
- \ service are:</p><ul><li>A1 Policy creation, modification and deletion.</li><li>Monitoring\
- \ and maintaining consistency of the SMO view of A1 policies and the Near-RT RICs</li><li>Maintaining\
- \ a view of supported Near-RT RIC policy types</li><li>Supervision of using services\
- \ (R-APPs). When a service is unavailable, its policies are removed.</li></ul><h2>APIs\
- \ provided or defined by the service</h2><h3>A1 Policy Management</h3><p>This\
- \ is an API for management of A1 Policies.</p><ul><li>A1 Policy retrieval, creation,\
- \ modification and deletion.</li><li>Retrieval of supported A1 Policy types for\
- \ a Near-RT RIC</li><li>Retrieval of status for existing A1 policies</li></ul><h3>Management\
- \ of configuration</h3><p>API for updating and retrieval of the component configuration.\
- \ Note that there other ways to maintain the configuration.</p><h3>Service callbacks</h3><p>These\
- \ are endpoints that are invoked by this service. The callbacks are registered\
- \ in this service at service registration.</p><h3>NearRT-RIC Repository</h3><p>This\
- \ is an API that provides support for looking up a NearRT-RIC. Each A1 policy\
- \ is targeted for one Near-RT RIC.</p><h3>Health Check</h3><p>API used for supervision\
- \ of the PMS component.</p><h3>Service Registry and Supervision</h3><p>API used\
- \ for registering services that uses PMS. Each A1 policy is optionally owned by\
- \ a service. PMS can supervise each registered service by a heart-beat supervision\
- \ and will automatically remove policies for unavailable services. Note that a\
- \ service does not need to be registered in order to create A1 Policies. This\
- \ is a feature that is optional to use.</p><h3>Authorization API</h3><p>API used\
- \ for access control of A1 Policy access. If configured, an external authorization\
- \ provider is requested to grant access to the A1 Policy type.</p><h3>Spring Boot\
- \ Actuator</h3><p>Provides generic functions used to monitor and manage the Spring\
- \ web application.</p>"
+ contact:
+ email: discuss-list@onap.com
+ name: ONAP CCSDK Project
+ url: https://www.onap.org/
+ description: "<h2>General</h2><p>The ONAP CCSDK A1 Policy Management Service provides\
+ \ a REST API for managing A1 policies. <br/>This document describes an older pre-spec\
+ \ API set to perform tasks for: </p><ul><li>A1 Policy creation, modification\
+ \ and deletion.</li><li>Monitoring and maintaining consistency of the SMO view\
+ \ of A1 Policies and the Near-RT RICs</li><li>Maintaining a view of each Near-RT\
+ \ RIC's supported A1 Policy Types</li><li>Supervision of registered services (rApps).\
+ \ When a registered service is unavailable, its policies are removed.</li></ul><h2>APIs\
+ \ provided or defined by the service</h2><h3>A1 Policy Management (Older pre-spec\
+ \ version) </h3> <p>This is an older API for managing A1 Policies:</p><ul><li>A1\
+ \ Policy retrieval, creation, modification and deletion.</li><li>Retrieval of\
+ \ supported A1 Policy Types for a Near-RT RIC</li><li>Retrieval of status for\
+ \ existing A1 policies</li></ul><h3>Management of configuration</h3><p>API for\
+ \ updating and retrieval of the component configuration. Note that there other\
+ \ ways to maintain the configuration.</p><h3>Service Callbacks</h3><p>These are\
+ \ endpoints that are invoked by this service. The callbacks are registered in\
+ \ this service at service registration.</p><h3>NearRT-RIC Repository (Older version)</h3>\
+ \ <p>This is an API that provides support for looking up a NearRT-RIC. Each A1\
+ \ policy is targeted towards one Near-RT RIC.</p><h3>Health Check</h3><p>API used\
+ \ for supervision of the A1 Policy Management Service .</p><h3>Service Registry\
+ \ and Supervision</h3> <p>API used for registering services/clients/rApps. Each\
+ \ A1 Policy can be tagged with an owner. If the owner service is registered, then\
+ \ the service can be monitored by a heart-beat supervision mechanism, and if the\
+ \ registered service becomes unavailable, then its A1 Policies are removed. Note\
+ \ that services do not need to be registered to create A1 Policies, but unregistered\
+ \ services are not supervised. This is a feature that is optional to use.</p><h3>Authorization\
+ \ API</h3><p>API used for access control of A1 Policy access. If configured, an\
+ \ external authorization provider is requested to grant access to the A1 Policy\
+ \ Type.</p><h3>Spring Boot Actuator</h3><p>Provides built-in functions used to\
+ \ monitor and configure the Spring web application hosting the service.</p>"
license:
- name: Copyright (C) 2020-2023 Nordix Foundation, and Copyright (C) 2024-2025 OpenInfra Foundation Europe.
- All rights reserved. Licensed under the Apache 2 License.
+ name: "Copyright (C) 2020-2023 Nordix Foundation, and Copyright (C) 2024-2025\
+ \ OpenInfra Foundation Europe. \nAll rights reserved. Licensed under the Apache\
+ \ 2 License.\n"
url: http://www.apache.org/licenses/LICENSE-2.0
- title: ONAP CCSDK A1 Policy Management Service
+ title: ONAP CCSDK - Pre-Spec A1 Policy Management API
version: 1.3.0
- contact:
- url: https://www.onap.org/
- email: discuss-list@onap.com
+ x-api-id: a31c510b-20e6-4a08-af16-368c44d7fba8
+ x-audience: external-public
servers:
- - url: /
+- url: /
tags:
- - name: A1 Policy Management (Older version)
- description: "Older API used to create polices, Policy Instances and get them as individual
- using an ID or get all policies/Instances."
- - name: NearRT-RIC Repository
- description: "API used to get the NearRT-RIC for the managed element."
- - name: Service Registry and Supervision
- description: "API used to keep the service Alive with in the timeout period"
- - name: Health Check
- description: "API used to get the health status and statistics of this service"
- - name: Service callbacks
- description: "Callouts to indicate status schanges relevant for Services.
- <br> Note that these calls are called by A1-PMS, not provided."
- - name: Authorization API
- description: "API used for authorization of information A1 policy access (this is
- provided by an authorization producer such as OPA). <br> Note that this API is called
- by A1-PMS, it is not provided."
- - name: Configuration
- description: "API used to create or fetch the application configuration."
- - name: Actuator
- description: Monitor and interact
- externalDocs:
- description: Spring Boot Actuator Web API Documentation
- url: https://docs.spring.io/spring-boot/docs/current/actuator-api/html/
+- description: |
+ Older pre-spec API used to get, create, update and delete A1 Policy Instances. Also used to query A1 Policy Types.
+ name: A1 Policy Management
+- description: |
+ Older API used to get information about registered Near-RT RICs.
+ name: NearRT-RIC Repository
+- description: |
+ Older API used to manage registered services, and control their keep-alive status via heart-beat messages.
+ name: Service Registry and Supervision
+- description: |
+ API used to get the health status and statistics of this service
+ name: Health Check
+- description: |
+ Callout to registered services to indicate a status changes for a Near-RT RIC. Note that these operations are called by the A1 Policy Management Service, not provided.
+ name: Service Callbacks
+- description: |
+ API used for authorization of information A1 policy access (this is provided by an authorization producer such as OPA). Note that these operations are called by the A1 Policy Management Service, not provided.
+ name: Authorization API
+- description: |
+ API used to create or fetch the application configuration.
+ name: Configuration
+- description: |
+ API used to monitor and configure the A1-PMS Springboot Service.
+ externalDocs:
+ description: Spring Boot Actuator Web API Documentation
+ url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html
+ name: Actuator API
paths:
- /a1-policy/v2/policy-instances:
- get:
- description: "Returns a list of A1 policies matching given search criteria.\
- \ <br>If several query parameters are defined, the policies matching all conditions\
- \ are returned."
- operationId: getPolicyInstances
- parameters:
- - description: Select policies with a given type identity.
- explode: true
- in: query
- name: policytype_id
- required: false
- schema:
- type: string
- style: form
- - description: Select policies for a given Near-RT RIC identity.
- explode: true
- in: query
- name: ric_id
- required: false
- schema:
- type: string
- style: form
- - description: Select policies owned by a given service.
- explode: true
- in: query
- name: service_id
- required: false
- schema:
- type: string
- style: form
- - description: Select policies of a given type name (type identity has the format
- <typename_version>)
- explode: true
- in: query
- name: type_name
- required: false
- schema:
- type: string
- style: form
- responses:
- "200":
- content:
- application/json:
- examples:
- policy_info_list:
- $ref: '#/components/examples/policy_info_list'
- schema:
- $ref: '#/components/schemas/policy_info_list'
- description: OK - Returns A1 Policies which matches the criteria
- "404":
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/error_information'
- description: "Not Found - Near-RT RIC, policy type or service not found"
- summary: Query for A1 policy instances
- tags:
- - A1 Policy Management
- /example-authz-check:
- post:
- description: The authorization function decides if access is granted.
- operationId: performAccessControl
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/policy_authorization'
- required: true
- responses:
- "200":
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/authorization_result'
- description: OK
- "403":
- $ref: '#/components/responses/Forbidden'
- summary: Request for access authorization.
- tags:
- - Authorization API
- /actuator/threaddump:
+ /status:
get:
- x-internal: true
- operationId: threaddump
+ description: Returns status and statistics of this service
+ operationId: getStatusV1
responses:
"200":
content:
- text/plain;charset=UTF-8:
- schema:
- type: object
- application/vnd.spring-boot.actuator.v3+json:
- schema:
- type: object
- application/json:
- schema:
- type: object
- application/vnd.spring-boot.actuator.v2+json:
+ '*/*':
schema:
- type: object
- description: OK
- summary: Actuator web endpoint 'threaddump'
+ type: string
+ description: OK - Service is living
+ summary: Get Status (getStatusV1)
tags:
- - Actuator
+ - Health Check
/a1-policy/v2/status:
get:
+ description: Returns status and statistics of this service
operationId: getStatus
responses:
"200":
content:
application/json:
- schema:
- $ref: '#/components/schemas/status_info'
examples:
status_info:
$ref: '#/components/examples/status_info'
- description: OK- Service is living Ok
- description: Returns status and statistics of this service
- tags:
- - Health Check
- /actuator/loggers:
- get:
- x-internal: true
- operationId: loggers
- responses:
- "200":
- content:
- application/vnd.spring-boot.actuator.v3+json:
- schema:
- type: object
- application/json:
- schema:
- type: object
- application/vnd.spring-boot.actuator.v2+json:
- schema:
- type: object
- description: OK
- summary: Actuator web endpoint 'loggers'
- tags:
- - Actuator
- /actuator/health/**:
- get:
- x-internal: true
- operationId: health-path
- responses:
- "200":
- content:
- application/vnd.spring-boot.actuator.v3+json:
- schema:
- type: object
- application/json:
schema:
- type: object
- application/vnd.spring-boot.actuator.v2+json:
- schema:
- type: object
- description: OK
- summary: Actuator web endpoint 'health-path'
+ $ref: '#/components/schemas/status_info'
+ description: OK- Service is living Ok
+ summary: Get Status (getStatus)
tags:
- - Actuator
+ - Health Check
/a1-policy/v2/rics/ric:
get:
- description: Either a Near-RT RIC identity or a Managed Element identity can
- be specified.<br>The intention with Managed Element identity is the ID used
- in O1 for accessing the traffical element (such as the ID of CU).
+ description: |
+ Query information about a Near-RT RIC. Either a Near-RT RIC identity or a Managed Element identity can be specified. The intention with Managed Element identity is the ID used in O1 for accessing the traffical element (such as the ID of CU).
operationId: getRic
parameters:
- - description: "The identity of a Managed Element. If given, the Near-RT RIC\
- \ managing the ME is returned."
- explode: true
- in: query
- name: managed_element_id
- required: false
- schema:
- type: string
- style: form
- - description: The identity of a Near-RT RIC to get information for.
- explode: true
- in: query
- name: ric_id
- required: false
- schema:
- type: string
- style: form
+ - description: |
+ The identity of a Managed Element. If given, the Near-RT RIC managing the ME is returned.
+ explode: true
+ in: query
+ name: managed_element_id
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: The identity of a Near-RT RIC to get information for.
+ explode: true
+ in: query
+ name: ric_id
+ required: false
+ schema:
+ type: string
+ style: form
responses:
"200":
content:
application/json:
- schema:
- $ref: '#/components/schemas/ric_info'
examples:
ric_info:
$ref: '#/components/examples/ric_info'
+ schema:
+ $ref: '#/components/schemas/ric_info'
description: OK - Near-RT RIC is found
"404":
- $ref: '#/components/responses/NotFound'
- description: NotFound - Requested NearRT-RIC Not Found
- summary: Returns info of Near-RT RIC queried by the ric-id and managed-element-id
- tags:
- - NearRT-RIC Repository
- /actuator/shutdown:
- post:
- x-internal: true
- operationId: shutdown
- responses:
- "200":
content:
- application/vnd.spring-boot.actuator.v3+json:
- schema:
- type: object
- application/json:
- schema:
- type: object
- application/vnd.spring-boot.actuator.v2+json:
- schema:
- type: object
- description: OK
- summary: Actuator web endpoint 'shutdown'
+ application/problem+json:
+ example: []
+ description: Not Found
+ summary: Get a Near-RT RIC (getRic)
tags:
- - Actuator
+ - NearRT-RIC Repository
/a1-policy/v2/policy-types:
get:
+ description: Query A1 Policy Type identities using query parameters
operationId: getPolicyTypes
parameters:
- - description: Select types for the given Near-RT RIC identity.
- explode: true
- in: query
- name: ric_id
- required: false
- schema:
- type: string
- style: form
- - description: Select types with the given type name (type identity has the
- format <typename_version>)
- explode: true
- in: query
- name: type_name
- required: false
- schema:
- type: string
- style: form
- - description: Select types that are compatible with the given version. This
- parameter is only applicable in conjunction with type_name. As an example
- version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching
- types will be returned sorted in ascending order.
- explode: true
- in: query
- name: compatible_with_version
- required: false
- schema:
- type: string
- style: form
+ - description: Select types for the given Near-RT RIC identity.
+ explode: true
+ in: query
+ name: ric_id
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: Select types compatible with the given type name (type identity
+ has the format 'typename_version')
+ explode: true
+ in: query
+ name: type_name
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: Select types that are compatible with the given version. This
+ parameter is only applicable in conjunction with type_name. As an example
+ version 1.9.1 is compatible with 1.0.0 but not the other way around. Matching
+ types will be returned sorted in ascending order.
+ explode: true
+ in: query
+ name: compatible_with_version
+ required: false
+ schema:
+ type: string
+ style: form
responses:
"200":
content:
$ref: '#/components/schemas/policy_type_id_list'
description: OK - Policy Type IDs Found
"404":
- $ref: '#/components/responses/NotFound'
- description: 'Not Found - Requested Policy Type IDs Not Found'
- description: Query policy type identities
+ content:
+ application/problem+json:
+ example: []
+ description: Not Found
+ summary: Get A1 Policy Types (getPolicyTypes)
tags:
- - A1 Policy Management
+ - A1 Policy Management
/a1-policy/v2/policies/{policy_id}:
delete:
- description: Deleting the policy using the Policy's Policy ID.
+ description: Delete an A1 Policy instance using its policy ID.
operationId: deletePolicy
parameters:
- - explode: false
- in: path
- name: policy_id
- required: true
- schema:
- type: string
- style: simple
+ - explode: false
+ in: path
+ name: policy_id
+ required: true
+ schema:
+ type: string
+ style: simple
responses:
"200":
content:
$ref: '#/components/schemas/void'
description: OK - Policy deleted
"423":
- $ref: '#/components/responses/Locked'
- description: 'The requested policy using policy_id is Locked'
- summary: Delete a policy
+ content:
+ application/problem+json:
+ example:
+ status: 423
+ title: Locked
+ detail: Requested resource is in a locked state.
+ schema:
+ $ref: '#/components/schemas/error_information'
+ description: Locked - HTTP Status code which can be used when the state
+ is Locked
+ summary: Delete an A1 Policy instance (deletePolicy)
tags:
- - A1 Policy Management
+ - A1 Policy Management
get:
+ description: Get an A1 Policy instance using its policy ID
operationId: getPolicy
parameters:
- - explode: false
- in: path
- name: policy_id
- required: true
- schema:
- type: string
- style: simple
+ - explode: false
+ in: path
+ name: policy_id
+ required: true
+ schema:
+ type: string
+ style: simple
responses:
"200":
content:
application/json:
- schema:
- $ref: '#/components/schemas/policy_info'
examples:
policy_info:
$ref: '#/components/examples/policy_info'
+ schema:
+ $ref: '#/components/schemas/policy_info'
description: OK - Policy found
"404":
- $ref: '#/components/responses/NotFound'
- description: 'Not Found - Requested Policy using policy_id is not found'
- description: Returns a policy
+ content:
+ application/problem+json:
+ example: []
+ description: Not Found
+ summary: Get an A1 Policy instance (getPolicy)
tags:
- - A1 Policy Management
- /actuator/metrics/{requiredMetricName}:
- get:
- x-internal: true
- operationId: metrics-requiredMetricName
+ - A1 Policy Management
+ /a1-policy/v2/services/{service_id}/keepalive:
+ put:
+ description: "A registered service should invoke this operation regularly to\
+ \ indicate that it is still alive. If a registered service fails to invoke\
+ \ some operation, or this operation, before the end of a timeout period the\
+ \ service will be deregistered and all its A1 policies wil be removed. This\
+ \ operation is only intended for registered services. (This timeout can be\
+ \ set or disabled when each service is initially registered)"
+ operationId: keepAliveService
parameters:
- - explode: false
- in: path
- name: requiredMetricName
- required: true
- schema:
- type: string
- style: simple
+ - explode: false
+ in: path
+ name: service_id
+ required: true
+ schema:
+ type: string
+ style: simple
responses:
"200":
content:
- application/vnd.spring-boot.actuator.v3+json:
+ '*/*':
schema:
type: object
+ description: "OK - Service supervision timer refreshed, OK"
+ "404":
+ content:
+ application/problem+json:
+ example: []
+ description: Not Found
+ summary: Heartbeat message from a service (keepAliveService)
+ tags:
+ - Service Registry and Supervision
+ /a1-policy/v2/rics:
+ get:
+ description: Get all Near-RT RICs that supports a given A1 Policy Type ID
+ operationId: getRics
+ parameters:
+ - description: |
+ The identity of an A1 Policy Type. If given, all Near-RT RICs supporting the A1 Policy Type are returned.
+ explode: true
+ in: query
+ name: policytype_id
+ required: false
+ schema:
+ type: string
+ style: form
+ responses:
+ "200":
+ content:
application/json:
+ examples:
+ ric_info_list:
+ $ref: '#/components/examples/ric_info_list'
schema:
- type: object
- application/vnd.spring-boot.actuator.v2+json:
- schema:
- type: object
+ $ref: '#/components/schemas/ric_info_list'
description: OK
- summary: Actuator web endpoint 'metrics-requiredMetricName'
+ "404":
+ content:
+ application/problem+json:
+ example: []
+ description: Not Found
+ summary: Get Near-RT RICs for A1 Policy Type (getRics)
tags:
- - Actuator
- /a1-policy/v2/configuration:
+ - NearRT-RIC Repository
+ /a1-policy/v2/services:
get:
- operationId: getConfiguration
+ description: |
+ Get information about all registered services, or a single registered service. If the service ID of a registered service is included in the query, information about that service is returned. Otherwise Information about all registered is returned. This operation does not retrieve information about unregistered services.
+ operationId: getServices
+ parameters:
+ - description: The identity of the registered service
+ explode: true
+ in: query
+ name: service_id
+ required: false
+ schema:
+ type: string
+ style: form
responses:
"200":
content:
application/json:
+ examples:
+ service_status_list:
+ $ref: '#/components/examples/service_status_list'
schema:
- type: string
- description: OK - Configuration
+ $ref: '#/components/schemas/service_status_list'
+ description: OK
"404":
- $ref: '#/components/responses/NotFound'
- description: Not Found - Configuration is not found or readable
- description: Returns the contents of the application configuration file
+ content:
+ application/problem+json:
+ example: []
+ description: Not Found
+ summary: Get Services (getServices)
tags:
- - Configuration
+ - Service Registry and Supervision
put:
- operationId: putConfiguration
+ callbacks:
+ RICStatus:
+ '{$request.body#/callback_url}':
+ post:
+ description: "Callouts to indicate Near-RT RIC status changes relevant\
+ \ for Services. \nThe URL invoked by this callback is provided at\
+ \ Service registration.\n"
+ operationId: serviceCallback
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/service_callback_info_v2'
+ required: true
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/void'
+ description: OK
+ "404":
+ content:
+ application/problem+json:
+ example: []
+ description: Not Found
+ summary: Callback for Near-RT RIC status (serviceCallback)
+ tags:
+ - Service Registry and Supervision
+ - Service Callbacks
+ x-callback-request: true
+ description: |
+ Register a single service, or update a previous registtration. Service registration is required to get callbacks about available NearRT RICs and to enable supervision of the service's active status. If a registered service becomes inactive, its policies can be automatically deleted. A1 Policy instances can also be created for unregistered services. If an unregistered service is later registered, the service's policies are retained when the service becomes registered. This feature is optional to use.
+ operationId: putService
requestBody:
content:
application/json:
schema:
- type: object
+ $ref: '#/components/schemas/service_registration_info'
required: true
responses:
"200":
content:
'*/*':
schema:
- $ref: '#/components/schemas/void'
- description: OK - Configuration updated
+ type: object
+ description: OK - Service updated
+ "201":
+ content:
+ '*/*':
+ schema:
+ type: object
+ description: Created - Service created
"400":
- $ref: '#/components/responses/BadRequest'
- description: Replace the current configuration with the given configuration
- tags:
- - Configuration
- /actuator:
- get:
- x-internal: true
- operationId: links
- responses:
- "200":
content:
- application/vnd.spring-boot.actuator.v3+json:
+ application/problem+json:
+ example:
+ status: 400
+ title: Bad Request
+ detail: The provided request is not valid.
schema:
- additionalProperties:
- additionalProperties:
- $ref: '#/components/schemas/Link'
- type: object
- type: object
+ $ref: '#/components/schemas/error_information'
+ description: Bad Request
+ summary: Register or update a Service (putService)
+ tags:
+ - Service Registry and Supervision
+ /a1-policy/v2/policy-types/{policytype_id}:
+ get:
+ description: Get an A1 Policy Type definition using its policy type ID
+ operationId: getPolicyTypeDefinition
+ parameters:
+ - explode: false
+ in: path
+ name: policytype_id
+ required: true
+ schema:
+ type: string
+ style: simple
+ responses:
+ "200":
+ content:
application/json:
+ examples:
+ policy_type_definition:
+ $ref: '#/components/examples/policy_type_definition'
schema:
- additionalProperties:
- additionalProperties:
- $ref: '#/components/schemas/Link'
- type: object
- type: object
- application/vnd.spring-boot.actuator.v2+json:
- schema:
- additionalProperties:
- additionalProperties:
- $ref: '#/components/schemas/Link'
- type: object
- type: object
- description: OK
- summary: Actuator root web endpoint
+ $ref: '#/components/schemas/policy_type_definition'
+ description: OK - schema of the requested A1 Policy Type
+ "404":
+ content:
+ application/problem+json:
+ example: []
+ description: Not Found
+ summary: Get an A1 Policy Type definition (getPolicyTypeDefinition)
tags:
- - Actuator
- /actuator/loggers/{name}:
+ - A1 Policy Management
+ /a1-policy/v2/policies:
get:
- x-internal: true
- operationId: loggers-name
+ description: |
+ Retrieve a list of A1 Policy Instance IDs for policies that match given search criteria. If multiple query parameters are given, the policies matching all conditions are returned.
+ operationId: getPolicyIds
parameters:
- - explode: false
- in: path
- name: name
- required: true
- schema:
- type: string
- style: simple
+ - description: Select policies of a given A1 Policy Type ID.
+ explode: true
+ in: query
+ name: policytype_id
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: Select policies of a given Near-RT RIC identity.
+ explode: true
+ in: query
+ name: ric_id
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: Select policies owned by a given service. (Both registered and
+ unregistered services)
+ explode: true
+ in: query
+ name: service_id
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: |
+ Select policies of types with the given A1 Policy Type name (type names have the format 'typename_version')
+ explode: true
+ in: query
+ name: type_name
+ required: false
+ schema:
+ type: string
+ style: form
responses:
"200":
content:
- application/vnd.spring-boot.actuator.v3+json:
- schema:
- type: object
application/json:
+ examples:
+ policy_id_list:
+ $ref: '#/components/examples/policy_id_list'
schema:
- type: object
- application/vnd.spring-boot.actuator.v2+json:
- schema:
- type: object
- description: OK
- summary: Actuator web endpoint 'loggers-name'
+ $ref: '#/components/schemas/policy_id_list'
+ description: OK - Policy identities
+ "404":
+ content:
+ application/problem+json:
+ example: []
+ description: Not Found
+ summary: Query A1 Policy Instances (getPolicyIds)
tags:
- - Actuator
- post:
- x-internal: true
- operationId: loggers-name_2
- parameters:
- - explode: false
- in: path
- name: name
- required: true
- schema:
- type: string
- style: simple
+ - A1 Policy Management
+ put:
+ description: Create or Update an A1 Policy Instance
+ operationId: putPolicy
requestBody:
content:
application/json:
schema:
- enum:
- - TRACE
- - DEBUG
- - INFO
- - WARN
- - ERROR
- - FATAL
- - "OFF"
- type: string
+ $ref: '#/components/schemas/policy_info'
+ required: true
responses:
"200":
content:
- '*/*':
+ application/json:
schema:
- type: object
- description: OK
- summary: Actuator web endpoint 'loggers-name'
- tags:
- - Actuator
- /a1-policy/v2/services/{service_id}/keepalive:
- put:
- description: A registered service should invoke this operation regularly to
- indicate that it is still alive. If a registered service fails to invoke this
- operation before the end of a timeout period the service will be deregistered
- and all its A1 policies wil be removed. (This timeout can be set or disabled
- when each service is initially registered)
- operationId: keepAliveService
- parameters:
- - explode: false
- in: path
- name: service_id
- required: true
- schema:
- type: string
- style: simple
- responses:
- "200":
+ $ref: '#/components/schemas/void'
+ description: OK - Policy updated
+ "201":
content:
- '*/*':
+ application/json:
schema:
- type: object
- description: "OK - Service supervision timer refreshed, OK"
- "404":
- $ref: '#/components/responses/NotFound'
- summary: Heartbeat indicates that the service is running
+ $ref: '#/components/schemas/void'
+ description: Created - Policy created
+ "423":
+ content:
+ application/problem+json:
+ example:
+ status: 423
+ title: Locked
+ detail: Requested resource is in a locked state.
+ schema:
+ $ref: '#/components/schemas/error_information'
+ description: Locked - HTTP Status code which can be used when the state
+ is Locked
+ summary: Create or Update an A1 Policy Instance (putPolicy)
tags:
- - Service Registry and Supervision
- /actuator/metrics:
+ - A1 Policy Management
+ /a1-policy/v2/policy-instances:
get:
- x-internal: true
- operationId: metrics
+ description: |
+ Returns a collection of A1 Policy Instance information for policies that match given search criteria. If several query parameters are defined, the policies matching all conditions are returned.
+ operationId: getPolicyInstances
+ parameters:
+ - description: Select policies with a given A1 Policy Type ID.
+ explode: true
+ in: query
+ name: policytype_id
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: Select policies for a given Near-RT RIC identity.
+ explode: true
+ in: query
+ name: ric_id
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: Select policies owned by a given service (registered or unregistered).
+ explode: true
+ in: query
+ name: service_id
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: Select policies of a given A1 Policy Type name (type identity
+ has the format 'typename_version').
+ explode: true
+ in: query
+ name: type_name
+ required: false
+ schema:
+ type: string
+ style: form
responses:
"200":
content:
- application/vnd.spring-boot.actuator.v3+json:
+ application/json:
+ examples:
+ policy_info_list:
+ $ref: '#/components/examples/policy_info_list'
schema:
- type: object
+ $ref: '#/components/schemas/policy_info_list'
+ description: OK - Returns A1 Policy Instances which match the criteria
+ "404":
+ content:
application/json:
schema:
- type: object
- application/vnd.spring-boot.actuator.v2+json:
+ $ref: '#/components/schemas/error_information'
+ description: "Not Found - Near-RT RIC, A1 Policy Type or service was not\
+ \ found"
+ summary: Query for A1 Policy instances (getPolicyInstances)
+ tags:
+ - A1 Policy Management
+ /a1-policy/v2/services/{service_id}:
+ delete:
+ description: |
+ Unregister a registered Service using its service ID. Only registered services can be unregistered. All A1 Policy Instances for the previously registered service will be removed.
+ operationId: deleteService
+ parameters:
+ - explode: false
+ in: path
+ name: service_id
+ required: true
+ schema:
+ type: string
+ style: simple
+ responses:
+ "204":
+ content:
+ '*/*':
schema:
type: object
- description: OK
- summary: Actuator web endpoint 'metrics'
+ description: No Content - Service unregistered
+ "404":
+ content:
+ application/problem+json:
+ example: []
+ description: Not Found
+ summary: Unregister a Service (deleteService)
tags:
- - Actuator
- /a1-policy/v2/rics:
+ - Service Registry and Supervision
+ /a1-policy/v2/policies/{policy_id}/status:
get:
- description: The call returns all Near-RT RICs that supports a given policy
- type identity
- operationId: getRics
+ description: Retrieve the status information for an A1 Policy Instance.
+ operationId: getPolicyStatus
parameters:
- - description: "The identity of a policy type. If given, all Near-RT RICs supporting\
- \ the policy type are returned"
- explode: true
- in: query
- name: policytype_id
- required: false
- schema:
- type: string
- style: form
+ - explode: false
+ in: path
+ name: policy_id
+ required: true
+ schema:
+ type: string
+ style: simple
responses:
"200":
content:
application/json:
- schema:
- $ref: '#/components/schemas/ric_info_list'
examples:
- ric_info_list:
- $ref: '#/components/examples/ric_info_list'
- description: OK
+ policy_status_info:
+ $ref: '#/components/examples/policy_status_info'
+ schema:
+ $ref: '#/components/schemas/policy_status_info'
+ description: OK - Policy status
"404":
- $ref: '#/components/responses/NotFound'
- summary: Query Near-RT RIC information
+ content:
+ application/problem+json:
+ example: []
+ description: Not Found
+ summary: Get an A1 Policy Instance's status (getPolicyStatus)
tags:
- - NearRT-RIC Repository
- /a1-policy/v2/services:
+ - A1 Policy Management
+ /a1-policy/v2/configuration:
get:
- description: Either information about a registered service with given identity
- or all registered services are returned.
- operationId: getServices
- parameters:
- - description: The identity of the service
- explode: true
- in: query
- name: service_id
- required: false
- schema:
- type: string
- style: form
+ description: Returns the entire contents of the Application Configuration.
+ operationId: getConfiguration
responses:
"200":
content:
application/json:
schema:
- $ref: '#/components/schemas/service_status_list'
- examples:
- service_status_list:
- $ref: '#/components/examples/service_status_list'
- description: OK
+ type: string
+ description: OK - Configuration
"404":
- $ref: '#/components/responses/NotFound'
- summary: Returns service information
+ content:
+ application/problem+json:
+ example: []
+ description: Not Found
+ summary: Get the Application Configuration (getConfiguration)
tags:
- - Service Registry and Supervision
+ - Configuration
put:
- description: "Registering a service is needed to:<ul><li>Get callbacks about\
- \ available NearRT RICs.</li><li>Activate supervision of the service. If a\
- \ service is inactive, its policies will automatically be deleted.</li></ul>Policies\
- \ can be created even if the service is not registerred. This is a feature\
- \ which it is optional to use."
- operationId: putService
+ description: |
+ Replace the current Application Configuration with a new configuration. The new configuration, if accepted, will take effect after a short delay. The new configuration must comply with the Application Configuration schema, which can be found from the the Application Documentation (Developer Guide)
+ operationId: putConfiguration
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/service_registration_info'
+ type: object
required: true
responses:
"200":
content:
'*/*':
schema:
- type: object
- description: OK - Service updated
- "201":
+ $ref: '#/components/schemas/void'
+ description: OK - Configuration updated
+ "400":
content:
- '*/*':
+ application/problem+json:
+ example:
+ status: 400
+ title: Bad Request
+ detail: The provided request is not valid.
schema:
- type: object
- description: Created - Service created
- "400":
- $ref: '#/components/responses/BadRequest'
- summary: Register a service
+ $ref: '#/components/schemas/error_information'
+ description: Bad Request
+ summary: Set/Replace the Application Configuration (putConfiguration)
tags:
- - Service Registry and Supervision
- callbacks:
- RICStatus:
- "{$request.body#/callback_url}":
- post:
- description: The URL to this call is registered at Service registration.
- operationId: serviceCallback
- requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/service_callback_info_v2'
- required: true
- responses:
- "200":
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/void'
- description: OK
- "404":
- $ref: '#/components/responses/NotFound'
- summary: Callback for Near-RT RIC status
- tags:
- - Service callbacks
- /actuator/info:
+ - Configuration
+ /example-authz-check:
+ post:
+ description: |
+ A template endpoint for callout requests to an external authorization function. The authorization function, if enabled, decides if individual operations are permitted.
+ operationId: performAccessControl
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/policy_authorization'
+ required: true
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/authorization_result'
+ description: OK
+ "403":
+ content:
+ application/problem+json:
+ example:
+ status: 403
+ title: Forbidden
+ detail: Your role does not allow to perform this action. Contact System
+ Administrator to change your access rights.
+ schema:
+ $ref: '#/components/schemas/error_information'
+ description: Forbidden
+ summary: Callout request for access authorization (performAccessControl)
+ tags:
+ - Authorization API
+ /actuator:
get:
- x-internal: true
- operationId: info
+ description: |
+ A1-PMS Springboot Service Actuator web endpoint. Returns a set of links to available/enabled actuator endpoints.
+ externalDocs:
+ description: Spring Boot Actuator Web API Documentation
+ url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html
+ operationId: actuatorLinks
responses:
"200":
content:
application/vnd.spring-boot.actuator.v3+json:
schema:
+ additionalProperties:
+ additionalProperties:
+ $ref: '#/components/schemas/Link'
+ type: object
type: object
application/json:
schema:
+ additionalProperties:
+ additionalProperties:
+ $ref: '#/components/schemas/Link'
+ type: object
type: object
application/vnd.spring-boot.actuator.v2+json:
schema:
+ additionalProperties:
+ additionalProperties:
+ $ref: '#/components/schemas/Link'
+ type: object
type: object
description: OK
- summary: Actuator web endpoint 'info'
+ summary: Actuator endpoint - Root (actuatorLinks)
tags:
- - Actuator
- /status:
+ - Actuator API
+ x-internal: true
+ /actuator/heapdump:
get:
- operationId: getStatusV1
+ description: |
+ A1-PMS Springboot Service Actuator web endpoint - HeapDump.
+ externalDocs:
+ description: Spring Boot Actuator Web API Documentation
+ url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html
+ operationId: actuatorHeapdump
responses:
"200":
content:
- '*/*':
+ application/octet-stream:
schema:
- type: string
- description: OK - Service is living
- description: Returns status and statistics of this service
+ type: object
+ description: OK
+ summary: Actuator endpoint - Heapdump (actuatorHeapdump)
tags:
- - Health Check
- /a1-policy/v2/policy-types/{policytype_id}:
+ - Actuator API
+ x-internal: true
+ /actuator/info:
get:
- operationId: getPolicyTypeDefinition
- parameters:
- - explode: false
- in: path
- name: policytype_id
- required: true
- schema:
- type: string
- style: simple
+ description: |
+ A1-PMS Springboot Service Actuator web endpoint - Info.
+ externalDocs:
+ description: Spring Boot Actuator Web API Documentation
+ url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html
+ operationId: actuatorInfo
responses:
"200":
content:
+ application/vnd.spring-boot.actuator.v3+json:
+ schema:
+ type: object
application/json:
schema:
- $ref: '#/components/schemas/policy_type_definition'
- examples:
- policy_type_definition:
- $ref: '#/components/examples/policy_type_definition'
- description: OK - schema of the given policy type
- "404":
- $ref: '#/components/responses/NotFound'
- description: Returns a policy type definition
+ type: object
+ application/vnd.spring-boot.actuator.v2+json:
+ schema:
+ type: object
+ description: OK
+ summary: Actuator endpoint - Info (actuatorInfo)
tags:
- - A1 Policy Management
- /actuator/logfile:
- get:
+ - Actuator API
x-internal: true
- operationId: logfile
+ /actuator/threaddump:
+ get:
+ description: |
+ A1-PMS Springboot Service Actuator web endpoint - ThreadDump.
+ externalDocs:
+ description: Spring Boot Actuator Web API Documentation
+ url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html
+ operationId: actuatorThreaddump
responses:
"200":
content:
text/plain;charset=UTF-8:
schema:
type: object
+ application/vnd.spring-boot.actuator.v3+json:
+ schema:
+ type: object
+ application/json:
+ schema:
+ type: object
+ application/vnd.spring-boot.actuator.v2+json:
+ schema:
+ type: object
description: OK
- summary: Actuator web endpoint 'logfile'
+ summary: Actuator endpoint - Threaddump (actuatorThreaddump)
tags:
- - Actuator
- /actuator/health:
- get:
+ - Actuator API
x-internal: true
- operationId: health
+ /actuator/loggers:
+ get:
+ description: |
+ A1-PMS Springboot Service Actuator web endpoint - Get a list of Loggers.
+ externalDocs:
+ description: Spring Boot Actuator Web API Documentation
+ url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html
+ operationId: actuatorLoggers
responses:
"200":
content:
schema:
type: object
description: OK
- summary: Actuator web endpoint 'health'
+ summary: Actuator endpoint - Get Loggers (actuatorLoggers)
tags:
- - Actuator
- /a1-policy/v2/policies:
+ - Actuator API
+ x-internal: true
+ /actuator/loggers/{name}:
get:
- description: "Returns a list of A1 policies matching given search criteria.\
- \ <br>If several query parameters are defined, the policies matching all conditions\
- \ are returned."
- operationId: getPolicyIds
+ description: |
+ A1-PMS Springboot Service Actuator web endpoint - Get a single named Logger.
+ externalDocs:
+ description: Spring Boot Actuator Web API Documentation
+ url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html
+ operationId: actuatorGetLogger
parameters:
- - description: Select policies of a given policy type identity.
- explode: true
- in: query
- name: policytype_id
- required: false
- schema:
- type: string
- style: form
- - description: Select policies of a given Near-RT RIC identity.
- explode: true
- in: query
- name: ric_id
- required: false
- schema:
- type: string
- style: form
- - description: Select policies owned by a given service.
- explode: true
- in: query
- name: service_id
- required: false
- schema:
- type: string
- style: form
- - description: Select policies of types with the given type name (type identity
- has the format <typename_version>)
- explode: true
- in: query
- name: type_name
- required: false
- schema:
- type: string
- style: form
+ - explode: false
+ in: path
+ name: name
+ required: true
+ schema:
+ type: string
+ style: simple
responses:
"200":
content:
+ application/vnd.spring-boot.actuator.v3+json:
+ schema:
+ type: object
application/json:
- examples:
- policy_id_list:
- $ref: '#/components/examples/policy_id_list'
schema:
- $ref: '#/components/schemas/policy_id_list'
- description: OK - Policy identities
- "404":
- $ref: '#/components/responses/NotFound'
- summary: Query policy identities
+ type: object
+ application/vnd.spring-boot.actuator.v2+json:
+ schema:
+ type: object
+ description: OK
+ summary: Actuator endpoint - Get Logger (actuatorGetLogger)
tags:
- - A1 Policy Management
- put:
- operationId: putPolicy
+ - Actuator API
+ x-internal: true
+ post:
+ description: |
+ A1-PMS Springboot Service Actuator web endpoint - Create or Update single named Logger.
+ externalDocs:
+ description: Spring Boot Actuator Web API Documentation
+ url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html
+ operationId: actuatorSetlogger
+ parameters:
+ - explode: false
+ in: path
+ name: name
+ required: true
+ schema:
+ type: string
+ style: simple
requestBody:
content:
application/json:
schema:
- $ref: '#/components/schemas/policy_info'
- required: true
+ enum:
+ - TRACE
+ - DEBUG
+ - INFO
+ - WARN
+ - ERROR
+ - FATAL
+ - "OFF"
+ type: string
+ responses:
+ "200":
+ content:
+ '*/*':
+ schema:
+ type: object
+ description: OK
+ summary: Actuator endpoint - Set Logger (actuatorSetlogger)
+ tags:
+ - Actuator API
+ x-internal: true
+ /actuator/logfile:
+ get:
+ description: |
+ A1-PMS Springboot Service Actuator web endpoint - Get the Log file.
+ externalDocs:
+ description: Spring Boot Actuator Web API Documentation
+ url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html
+ operationId: actuatorGetLogFile
responses:
"200":
content:
+ text/plain;charset=UTF-8:
+ schema:
+ type: object
+ description: OK
+ summary: Actuator endpoint - Log File (actuatorGetLogFile)
+ tags:
+ - Actuator API
+ x-internal: true
+ /actuator/health:
+ get:
+ description: |
+ A1-PMS Springboot Service Actuator web endpoint - Health Check.
+ externalDocs:
+ description: Spring Boot Actuator Web API Documentation
+ url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html
+ operationId: actuatorHealth
+ responses:
+ "200":
+ content:
+ application/vnd.spring-boot.actuator.v3+json:
+ schema:
+ type: object
application/json:
schema:
- $ref: '#/components/schemas/void'
- description: OK - Policy updated
- "201":
+ type: object
+ application/vnd.spring-boot.actuator.v2+json:
+ schema:
+ type: object
+ description: OK
+ summary: Actuator endpoint - Health (actuatorHealth)
+ tags:
+ - Actuator API
+ x-internal: true
+ /actuator/health/**:
+ get:
+ description: |
+ A1-PMS Springboot Service Actuator web endpoint - Health Status for an Application Component.
+ externalDocs:
+ description: Spring Boot Actuator Web API Documentation
+ url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html
+ operationId: actuatorHealthComponent
+ responses:
+ "200":
content:
+ application/vnd.spring-boot.actuator.v3+json:
+ schema:
+ type: object
application/json:
schema:
- $ref: '#/components/schemas/void'
- description: Created - Policy created
- "423":
- $ref: '#/components/responses/Locked'
- description: Create or update a policy
+ type: object
+ application/vnd.spring-boot.actuator.v2+json:
+ schema:
+ type: object
+ description: OK
+ summary: Actuator endpoint - Component Health (actuatorHealthComponent)
tags:
- - A1 Policy Management
- /a1-policy/v2/services/{service_id}:
- delete:
- operationId: deleteService
- parameters:
- - explode: false
- in: path
- name: service_id
- required: true
- schema:
- type: string
- style: simple
+ - Actuator API
+ x-internal: true
+ /actuator/shutdown:
+ post:
+ description: |
+ A1-PMS Springboot Service Actuator web endpoint - Shutdown the Application.
+ externalDocs:
+ description: Spring Boot Actuator Web API Documentation
+ url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html
+ operationId: actuatorShutdown
responses:
- "204":
+ "200":
content:
- '*/*':
+ application/vnd.spring-boot.actuator.v3+json:
schema:
type: object
- description: No Content - Service unregistered
- "404":
- $ref: '#/components/responses/NotFound'
- description: Unregister a service
+ application/json:
+ schema:
+ type: object
+ application/vnd.spring-boot.actuator.v2+json:
+ schema:
+ type: object
+ description: OK
+ summary: Actuator endpoint - Shutdown (actuatorShutdown)
tags:
- - Service Registry and Supervision
- /actuator/heapdump:
- get:
+ - Actuator API
x-internal: true
- operationId: heapdump
+ /actuator/metrics:
+ get:
+ description: |
+ A1-PMS Springboot Service Actuator web endpoint - Get a list of Application metrics names.
+ externalDocs:
+ description: Spring Boot Actuator Web API Documentation
+ url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html
+ operationId: actuatorMetrics
responses:
"200":
content:
- application/octet-stream:
+ application/vnd.spring-boot.actuator.v3+json:
+ schema:
+ type: object
+ application/json:
+ schema:
+ type: object
+ application/vnd.spring-boot.actuator.v2+json:
schema:
type: object
description: OK
- summary: Actuator web endpoint 'heapdump'
+ summary: Actuator endpoint - Metrics (actuatorMetrics)
tags:
- - Actuator
- /a1-policy/v2/policies/{policy_id}/status:
+ - Actuator API
+ x-internal: true
+ /actuator/metrics/{requiredMetricName}:
get:
- operationId: getPolicyStatus
+ description: |
+ A1-PMS Springboot Service Actuator web endpoint - Get the value for a named Application metric.
+ externalDocs:
+ description: Spring Boot Actuator Web API Documentation
+ url: https://docs.spring.io/spring-boot/reference/actuator/endpoints.html
+ operationId: actuatorGetMetric
parameters:
- - explode: false
- in: path
- name: policy_id
- required: true
- schema:
- type: string
- style: simple
+ - explode: false
+ in: path
+ name: requiredMetricName
+ required: true
+ schema:
+ type: string
+ style: simple
responses:
"200":
content:
+ application/vnd.spring-boot.actuator.v3+json:
+ schema:
+ type: object
application/json:
schema:
- $ref: '#/components/schemas/policy_status_info'
- examples:
- policy_status_info:
- $ref: '#/components/examples/policy_status_info'
- description: OK - Policy status
- "404":
- $ref: '#/components/responses/NotFound'
- description: Returns a policy status
- tags:
- - A1 Policy Management
+ type: object
+ application/vnd.spring-boot.actuator.v2+json:
+ schema:
+ type: object
+ description: OK
+ summary: Actuator endpoint - Get Metric (actuatorGetMetric)
+ x-internal: true
components:
- responses:
- Locked:
- description: "Locked - HTTP Status code which can be used when the state is Locked"
- content:
- application/problem+json:
- schema:
- $ref: '#/components/schemas/error_information'
- example:
- status: 423
- title: Locked
- detail: Requested resource is in a locked state.
- BadRequest:
- description: Bad Request
- content:
- application/problem+json:
- schema:
- $ref: '#/components/schemas/error_information'
- example:
- status: 400
- title: Bad Request
- detail: The provided request is not valid.
- Forbidden:
- description: Forbidden
- content:
- application/problem+json:
- schema:
- $ref: '#/components/schemas/error_information'
- example:
- status: 403
- title: Forbidden
- detail: Your role does not allow to perform this action. Contact System Administrator to change your access rights.
- NotFound:
- description: Not Found
- content:
- application/problem+json:
- example:
- [ ]
-
examples:
- service_status:
- description: List of service information
- value:
- callback_url: callback_url
- service_id: service_id
- keep_alive_interval_seconds: 0
- time_since_last_activity_seconds: 6
-
- service_status_list:
- description: List of service information
+ status_info:
value:
- service_list:
- - callback_url: callback_url
- service_id: service_id
- keep_alive_interval_seconds: 0
- time_since_last_activity_seconds: 6
- - callback_url: callback_url
- service_id: service_id
- keep_alive_interval_seconds: 0
- time_since_last_activity_seconds: 6
- policy_type_definition:
- description: Schema of the given Policy type
+ status: status
+ ric_info:
value:
- policy_schema: "{}"
+ ric_id: ric_id
+ managed_element_ids:
+ - some_managed_element_id
+ - some_managed_element_id
+ state: UNAVAILABLE
+ policytype_ids:
+ - some_policytype_id
+ - some_policytype_id
policy_type_id_list:
- description: Array of policy type id's
+ description: Array of A1 Policy Type id's
value:
policy_type_id_list:
- - policytype_id
- - policytype_id
+ - policytype_id
+ - policytype_id
policy_info:
- description: Policy information of one A1-P policy
+ description: Information for an A1 Policy Instance
value:
- ric_id: ric_id
- policy_id: policy_id
+ ric_id: ric_id1
+ policy_id: policy_id1
transient: false
- service_id: service_id
+ service_id: service_id1
policy_data: "{}"
status_notification_uri: status_notification_uri
- policytype_id: policytype_id
- policy_info_list:
- description: List of policy information
+ policytype_id: policytype_id1
+ ric_info_list:
value:
- policies:
- - ric_id: ric_id
- policy_id: policy_id
- transient: false
- service_id: service_id
- policy_data: "{}"
- status_notification_uri: status_notification_uri
- policytype_id: policytype_id
- - ric_id: ric_id
- policy_id: policy_id
- transient: false
- service_id: service_id
- policy_data: "{}"
- status_notification_uri: status_notification_uri
- policytype_id: policytype_id
+ rics:
+ - ric_id: ric_id
+ managed_element_ids:
+ - some_managed_element_id
+ - some_managed_element_id
+ state: UNAVAILABLE
+ policytype_ids:
+ - policytype_id
+ - policytype_id
+ - ric_id: ric_id
+ managed_element_ids:
+ - managed_element_ids
+ - managed_element_ids
+ state: UNAVAILABLE
+ policytype_ids:
+ - policytype_ids
+ - policytype_ids
+ service_status_list:
+ description: List of service information
+ value:
+ service_list:
+ - callback_url: callback_url
+ service_id: service_id
+ keep_alive_interval_seconds: 0
+ time_since_last_activity_seconds: 6
+ - callback_url: callback_url
+ service_id: service_id
+ keep_alive_interval_seconds: 0
+ time_since_last_activity_seconds: 6
+ policy_type_definition:
+ description: Schema of the given A1 Policy Type
+ value:
+ policy_schema: "{}"
policy_id_list:
description: A list of policy identities
value:
policy_ids:
- - some_policy_id
- - some_policy_id
+ - some_policy_id
+ - some_policy_id
+ policy_info_list:
+ description: List of policy information
+ value:
+ policies:
+ - ric_id: ric_id1
+ policy_id: policy_id1
+ transient: false
+ service_id: service_id1
+ policy_data: "{}"
+ status_notification_uri: status_notification_uri
+ policytype_id: policytype_id1
+ - ric_id: ric_id2
+ policy_id: policy_id2
+ transient: true
+ service_id: service_id2
+ policy_data: "{}"
+ status_notification_uri: status_notification_uri
+ policytype_id: policytype_id2
policy_status_info:
description: Status for one A1-P Policy
value:
status:
value:
status: status
+ responses:
+ NotFound:
+ content:
+ application/problem+json:
+ example: []
+ description: Not Found
+ Locked:
+ content:
+ application/problem+json:
+ example:
+ status: 423
+ title: Locked
+ detail: Requested resource is in a locked state.
+ schema:
+ $ref: '#/components/schemas/error_information'
+ description: Locked - HTTP Status code which can be used when the state is Locked
+ BadRequest:
+ content:
+ application/problem+json:
+ example:
+ status: 400
+ title: Bad Request
+ detail: The provided request is not valid.
+ schema:
+ $ref: '#/components/schemas/error_information'
+ description: Bad Request
+ Forbidden:
+ content:
+ application/problem+json:
+ example:
+ status: 403
+ title: Forbidden
+ detail: Your role does not allow to perform this action. Contact System
+ Administrator to change your access rights.
+ schema:
+ $ref: '#/components/schemas/error_information'
+ description: Forbidden
+ schemas:
status_info:
- value:
- status: status
- ric_info:
- value:
- ric_id: ric_id
- managed_element_ids:
- - some_managed_element_id
- - some_managed_element_id
- state: UNAVAILABLE
- policytype_ids:
- - some_policytype_id
- - some_policytype_id
- ric_info_list:
- value:
- rics:
- - ric_id: ric_id
- managed_element_ids:
- - some_managed_element_id
- - some_managed_element_id
- state: UNAVAILABLE
- policytype_ids:
- - policytype_id
- - policytype_id
- - ric_id: ric_id
- managed_element_ids:
- - managed_element_ids
- - managed_element_ids
- state: UNAVAILABLE
- policytype_ids:
- - policytype_ids
- - policytype_ids
-
- schemas:
- policy_type_definition:
- description: Contains policy type schema definition
- type: object
- properties:
- policy_schema:
- description: Policy type json schema. The schema is a json object following
- http://json-schema.org/draft-07/schema
- type: object
- error_information:
- description: Problem as defined in https://tools.ietf.org/html/rfc7807
- properties:
- detail:
- description: ' A human-readable explanation specific to this occurrence
- of the problem.'
- example: Policy type not found
- type: string
- title:
- description: 'A specific error name'
- type: string
- example: Not Found
- status:
- description: 'The HTTP status code generated by the origin server for this
- occurrence of the problem. '
- example: 404
- format: int32
- type: integer
- type: object
- void:
- description: Void/empty
- type: object
- status_info:
+ example:
+ status: status
properties:
status:
description: status text
type: string
type: object
- authorization_result:
- description: Result of authorization
- example:
- result: true
- properties:
- result:
- description: "If true, the access is granted"
- type: boolean
- required:
- - result
- type: object
ric_info:
description: Information for a Near-RT RIC
+ example:
+ ric_id: ric_id
+ managed_element_ids:
+ - managed_element_ids
+ - managed_element_ids
+ state: UNAVAILABLE
+ policytype_ids:
+ - policytype_ids
+ - policytype_ids
properties:
ric_id:
description: identity of the Near-RT RIC
state:
description: Represents the states for a Near-RT RIC
enum:
- - UNAVAILABLE
- - AVAILABLE
- - SYNCHRONIZING
- - CONSISTENCY_CHECK
+ - UNAVAILABLE
+ - AVAILABLE
+ - SYNCHRONIZING
+ - CONSISTENCY_CHECK
type: string
policytype_ids:
- description: supported policy types
+ description: supported A1 Policy Types
items:
- description: supported policy types
+ description: supported A1 Policy Types
type: string
type: array
type: object
- service_registration_info:
- description: Information for one service
+ policy_type_id_list:
+ description: Information about A1 Policy Types
+ example:
+ policytype_ids:
+ - policytype_ids
+ - policytype_ids
properties:
- callback_url:
- description: callback for notifying of Near-RT RIC state changes
+ policytype_ids:
+ description: A1 Policy Type identities
+ items:
+ description: A1 Policy Type identities
+ type: string
+ type: array
+ type: object
+ policy_info:
+ description: Information for one A1-P Policy
+ example:
+ ric_id: ric_id
+ policy_id: policy_id
+ transient: false
+ service_id: ""
+ policy_data: "{}"
+ status_notification_uri: status_notification_uri
+ policytype_id: policytype_id
+ properties:
+ ric_id:
+ description: identity of the target Near-RT RIC
+ type: string
+ policy_id:
+ description: identity of the policy
type: string
+ transient:
+ default: false
+ description: |
+ If true, the policy is automatically deleted if the targeted Near-RT RIC restarts or recovers. If false, the A1 Policy Instance remains, and is re-pushed to the targeted Near-RT RIC after a restart or recovery. If false, the A1 Policy Instance is maintained and must be deleted separately in the event of Near-RT RIC restart or recovery. Default is false.
+ example: false
+ nullable: false
+ type: boolean
service_id:
- description: identity of the service
+ default: ""
+ description: |
+ The identity of the service owning the policy. This can be used to group the policies (it is possible to get all policies associated to a service). Note that the service does not need to be registered. If the service is registered, the A1 Policy Instance will be subject to the same supervision rules as the the service's other policies.
+ type: string
+ policy_data:
+ description: the configuration of the policy
+ type: object
+ status_notification_uri:
+ description: Callback URI for policy status updates
+ type: string
+ policytype_id:
+ description: identity of the A1 Policy Type
type: string
- keep_alive_interval_seconds:
- description: "keep alive interval for the service. This is used to enable\
- \ optional heartbeat supervision of the service. If set (> 0) the registered\
- \ service should regularly invoke a 'keepalive' REST call. When a service\
- \ fails to invoke this 'keepalive' call within the configured time, the\
- \ service is considered unavailable. An unavailable service will be automatically\
- \ deregistered and its policies will be deleted. Value 0 means timeout\
- \ supervision is disabled."
- format: int64
- type: integer
required:
- - service_id
+ - policy_data
+ - policy_id
+ - policytype_id
+ - ric_id
type: object
- policy_info_list:
- description: List of policy information
+ void:
+ description: Void/empty
+ type: object
+ error_information:
+ description: Problem as defined in https://tools.ietf.org/html/rfc7807
+ example:
+ detail: A1 Policy Type not found
+ title: Not Found
+ status: 404
properties:
- policies:
- description: List of policy information
+ detail:
+ description: ' A human-readable explanation specific to this occurrence
+ of the problem.'
+ example: A1 Policy Type not found
+ type: string
+ title:
+ description: A specific error name
+ example: Not Found
+ type: string
+ status:
+ description: 'The HTTP status code generated by the origin server for this
+ occurrence of the problem. '
+ example: 404
+ format: int32
+ type: integer
+ type: object
+ ric_info_list:
+ description: List of Near-RT RIC information
+ example:
+ rics:
+ - ric_id: ric_id
+ managed_element_ids:
+ - managed_element_ids
+ - managed_element_ids
+ state: UNAVAILABLE
+ policytype_ids:
+ - policytype_ids
+ - policytype_ids
+ - ric_id: ric_id
+ managed_element_ids:
+ - managed_element_ids
+ - managed_element_ids
+ state: UNAVAILABLE
+ policytype_ids:
+ - policytype_ids
+ - policytype_ids
+ properties:
+ rics:
+ description: List of Near-RT RIC information
items:
- $ref: '#/components/schemas/policy_info'
+ $ref: '#/components/schemas/ric_info'
type: array
type: object
- policy_status_info:
- description: Status for one A1-P Policy
+ service_status_list:
+ example:
+ service_list:
+ - callback_url: callback_url
+ service_id: service_id
+ keep_alive_interval_seconds: 0
+ time_since_last_activity_seconds: 6
+ - callback_url: callback_url
+ service_id: service_id
+ keep_alive_interval_seconds: 0
+ time_since_last_activity_seconds: 6
properties:
- last_modified:
- description: "timestamp, last modification time"
- type: string
- status:
- description: the Policy status
- type: object
+ service_list:
+ description: List of service information
+ items:
+ $ref: '#/components/schemas/service_status'
+ type: array
type: object
service_status:
+ example:
+ callback_url: callback_url
+ service_id: service_id
+ keep_alive_interval_seconds: 0
+ time_since_last_activity_seconds: 6
properties:
callback_url:
description: callback for notifying of RIC synchronization
format: int64
type: integer
type: object
- ric_info_list:
- description: List of Near-RT RIC information
- properties:
- rics:
- description: List of Near-RT RIC information
- items:
- $ref: '#/components/schemas/ric_info'
- type: array
- type: object
- input:
- description: input
+ service_registration_info:
+ description: Information for one service
properties:
- access_type:
- description: Access type
- enum:
- - READ
- - WRITE
- - DELETE
- type: string
- auth_token:
- description: Authorization token
+ callback_url:
+ description: Callback for notifying of Near-RT RIC state changes
type: string
- policy_type_id:
- description: Policy type identifier
+ service_id:
+ description: identity of the service
type: string
+ keep_alive_interval_seconds:
+ description: |
+ Keep alive interval for the service. This is used to enable optional heartbeat supervision of the service. If set (> 0) the registered service should regularly invoke a 'keepalive' REST call. When a service fails to invoke this 'keepalive' call within the configured time, the service is considered unavailable. An unavailable service will be automatically deregistered and its policies will be deleted. Value 0 means timeout supervision is disabled.
+ format: int64
+ type: integer
required:
- - access_type
- - auth_token
- - policy_type_id
- type: object
- policy_authorization:
- description: Authorization request for A1 policy requests
- properties:
- input:
- $ref: '#/components/schemas/input'
- required:
- - input
- type: object
- policy_type_id_list:
- description: Information about policy types
- properties:
- policytype_ids:
- description: Policy type identities
- items:
- description: Policy type identities
- type: string
- type: array
+ - service_id
type: object
- policy_info:
- description: Information for one A1-P Policy
+ service_callback_info_v2:
+ description: "Information transferred in Service callbacks, \nif a callback\
+ \ URL was provided for a registered service\n"
properties:
ric_id:
- description: identity of the target Near-RT RIC
- type: string
- policy_id:
- description: identity of the policy
- type: string
- transient:
- default: false
- description: "if true, the policy is deleted at RIC restart. If false, its\
- \ value is maintained by this service until explicitly deleted. Default\
- \ false."
- example: false
- nullable: false
- type: boolean
- service_id:
- description: the identity of the service owning the policy. This can be
- used to group the policies (it is possible to get all policies associated
- to a service). Note that the service does not need to be registered.
- type: string
- default: ""
- policy_data:
- description: the configuration of the policy
- type: object
- status_notification_uri:
- description: Callback URI for policy status updates
+ description: identity of a Near-RT RIC
type: string
- policytype_id:
- description: identity of the policy type
+ event_type:
+ description: "values: \n AVAILABLE: the Near-RT RIC has become available\
+ \ for A1 Policy management\n"
+ enum:
+ - AVAILABLE
type: string
required:
- - ric_id
- - policy_id
- - policy_data
- - policytype_id
+ - event_type
+ - ric_id
+ type: object
+ policy_type_definition:
+ description: Contains A1 Policy Type schema definition
+ example:
+ policy_schema: "{}"
+ properties:
+ policy_schema:
+ description: A1 Policy Type json schema. The schema is a json object following
+ http://json-schema.org/draft-07/schema
+ type: object
type: object
policy_id_list:
description: A list of policy identities
example:
policy_ids:
- - policy_ids
- - policy_ids
+ - policy_ids
+ - policy_ids
properties:
policy_ids:
description: Policy identities
type: string
type: array
type: object
- service_status_list:
+ policy_info_list:
+ description: List of policy information
+ example:
+ policies:
+ - ric_id: ric_id
+ policy_id: policy_id
+ transient: false
+ service_id: ""
+ policy_data: "{}"
+ status_notification_uri: status_notification_uri
+ policytype_id: policytype_id
+ - ric_id: ric_id
+ policy_id: policy_id
+ transient: false
+ service_id: ""
+ policy_data: "{}"
+ status_notification_uri: status_notification_uri
+ policytype_id: policytype_id
properties:
- service_list:
- description: List of service information
+ policies:
+ description: List of policy information
items:
- $ref: '#/components/schemas/service_status'
+ $ref: '#/components/schemas/policy_info'
type: array
type: object
- service_callback_info_v2:
- description: Information transferred as in Service callbacks (callback_url)
+ policy_status_info:
+ description: Status for one A1-P Policy
+ example:
+ last_modified: last_modified
+ status: "{}"
properties:
- ric_id:
- description: identity of a Near-RT RIC
+ last_modified:
+ description: "timestamp, last modification time"
type: string
- event_type:
- description: "values:\nAVAILABLE: the Near-RT RIC has become available\
- \ for A1 Policy management"
+ status:
+ description: the Policy status
+ type: object
+ type: object
+ policy_authorization:
+ description: Authorization request for A1 policy requests
+ properties:
+ input:
+ $ref: '#/components/schemas/input'
+ required:
+ - input
+ type: object
+ input:
+ description: input
+ properties:
+ access_type:
+ description: Access type
enum:
- - AVAILABLE
+ - READ
+ - WRITE
+ - DELETE
type: string
+ auth_token:
+ description: Authorization token
+ type: string
+ policy_type_id:
+ description: A1 Policy Type identifier
+ type: string
+ required:
+ - access_type
+ - auth_token
+ - policy_type_id
+ type: object
+ authorization_result:
+ description: Result of authorization
+ example:
+ result: true
+ properties:
+ result:
+ description: "If true, the access is granted"
+ type: boolean
required:
- - event_type
- - ric_id
+ - result
type: object
Link:
properties:
type: boolean
href:
type: string
- type: object
\ No newline at end of file
+ type: object
<parent>
<groupId>org.onap.ccsdk.parent</groupId>
<artifactId>odlparent-lite</artifactId>
- <version>3.0.1</version>
+ <version>3.1.0</version>
<relativePath/>
</parent>