.. This work is licensed under a .. Creative Commons Attribution 4.0 International License. .. http://creativecommons.org/licenses/by/4.0 .. _so-label: ########## SO Actor ########## .. contents:: :depth: 3 Overview of SO Actor ###################### ONAP Policy Framework enables SO as one of the supported actors. SO uses a REST-based interface. However, as requests may not complete right away, a REST-based polling interface is used to check the status of the request. The *requestId* is extracted from the initial response and is appended to the *pathGet* configuration parameter to generate the URL used to poll for completion. Each operation supported by the actor is associated with its own java class, which is responsible for populating the request structure appropriately and sending the request. Note: the request may be issued via POST, DELETE, etc., depending on the operation. The operation-specific classes are all derived from the *SoOperation* class, which is, itself, derived from *HttpOperation*. The following operations are currently supported: - VF Module Create - VF Module Delete Request ####### A number of nested structures are populated within the request. Several of them are populated with data extracted from the A&AI Custom Query response that is retrieved using the Target resource ID specified in the *ControlLoopOperationParams*. The following table lists the contents of some of the fields that appear within these structures. +----------------------------------+---------+----------------------------------------------------------------------+ | Field Name | Type | Description | +----------------------------------+---------+----------------------------------------------------------------------+ +----------------------------------+---------+----------------------------------------------------------------------+ | top level: | | | +----------------------------------+---------+----------------------------------------------------------------------+ | *operationType* | string | Inserted by Policy. Name of the operation. | +----------------------------------+---------+----------------------------------------------------------------------+ +----------------------------------+---------+----------------------------------------------------------------------+ | requestDetails: | | | +----------------------------------+---------+----------------------------------------------------------------------+ | requestParameters | | Applicable to *VF Module Create*. | | | | Set by Policy from the *requestParameters* specified in the | | | | *payload* of the *ControlLoopOperationParams*. | | | | The value is treated as a JSON string and decoded into an | | | | *SoRequestParameters* object that is placed into this field. | +----------------------------------+---------+----------------------------------------------------------------------+ | configurationParameters | | Applicable to *VF Module Create*. | | | | Set by Policy from the *configurationParameters* specified in the | | | | *payload* of the *ControlLoopOperationParams*. | | | | The value is treated as a JSON string and decoded into a | | | | *List* of *Maps* that is placed into this field. | +----------------------------------+---------+----------------------------------------------------------------------+ +----------------------------------+---------+----------------------------------------------------------------------+ | modelInfo: | | Set by Policy. Copied from the *target* specified in the | | | | *ControlLoopOperationParams*. | +----------------------------------+---------+----------------------------------------------------------------------+ +----------------------------------+---------+----------------------------------------------------------------------+ | cloudConfiguration: | | | +----------------------------------+---------+----------------------------------------------------------------------+ | *tenantId* | string | The ID of the "default" Tenant selected from the A&AI Custom Query | | | | response. | +----------------------------------+---------+----------------------------------------------------------------------+ | *lcpCloudRegionId* | string | The ID of the "default" Cloud Region selected from the A&AI Custom | | | | Query response. | +----------------------------------+---------+----------------------------------------------------------------------+ +----------------------------------+---------+----------------------------------------------------------------------+ | relatedInstanceList[0]: | | Applicable to *VF Module Create*. | | | | The "default" Service Instance selected from the A&AI Custom Query | | | | response.
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright © 2019 IBM.
~
~ 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.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.onap.ccsdk.cds.blueprintsprocessor</groupId>
<artifactId>modules-commons</artifactId>
<version>1.5.1-SNAPSHOT</version>
</parent>
<groupId>org.onap.ccsdk.cds.blueprintsprocessor.modules</groupId>
<artifactId>ssh-lib</artifactId>
<packaging>jar</packaging>
<name>MS Blueprints Processor Modules - Commons - SSH Lib</name>
<dependencies>
<dependency>
<groupId>org.onap.ccsdk.cds.blueprintsprocessor.modules</groupId>
<artifactId>blueprint-core</artifactId>
</dependency>
<dependency>
<groupId>org.onap.ccsdk.cds.blueprintsprocessor.modules</groupId>
<artifactId>processor-core</artifactId>
</dependency>
<dependency>
<groupId>org.apache.sshd</groupId>
<artifactId>sshd-core</artifactId>
</dependency>
</dependencies>
</project>