activateE2EServiceInstances
Activate/Deactivate 5G slice Service on a specified version and serviceId
/onap/so/infra/e2eServiceInstances/{version}/{serviceId}/{operationType}
Usage and SDK Samples
curl -X POST "http://localhost/onap/so/infra/e2eServiceInstances/{version}/{serviceId}/{operationType}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.E2eServiceInstancesApi;
import java.io.File;
import java.util.*;
public class E2eServiceInstancesApiExample {
public static void main(String[] args) {
E2eServiceInstancesApi apiInstance = new E2eServiceInstancesApi();
String version = version_example; // String |
String serviceId = serviceId_example; // String |
String operationType = operationType_example; // String |
String body = body_example; // String |
try {
apiInstance.activateE2EServiceInstances(version, serviceId, operationType, body);
} catch (ApiException e) {
System.err.println("Exception when calling E2eServiceInstancesApi#activateE2EServiceInstances");
e.printStackTrace();
}
}
}
import io.swagger.client.api.E2eServiceInstancesApi;
public class E2eServiceInstancesApiExample {
public static void main(String[] args) {
E2eServiceInstancesApi apiInstance = new E2eServiceInstancesApi();
String version = version_example; // String |
String serviceId = serviceId_example; // String |
String operationType = operationType_example; // String |
String body = body_example; // String |
try {
apiInstance.activateE2EServiceInstances(version, serviceId, operationType, body);
} catch (ApiException e) {
System.err.println("Exception when calling E2eServiceInstancesApi#activateE2EServiceInstances");
e.printStackTrace();
}
}
}
String *version = version_example; //
String *serviceId = serviceId_example; //
String *operationType = operationType_example; //
String *body = body_example; // (optional)
E2eServiceInstancesApi *apiInstance = [[E2eServiceInstancesApi alloc] init];
// Activate/Deactivate 5G slice Service on a specified version and serviceId
[apiInstance activateE2EServiceInstancesWith:version
serviceId:serviceId
operationType:operationType
body:body
completionHandler: ^(NSError* error) {
if (error) {
NSLog(@"Error: %@", error);
}
}];
var SoGuilinApIs = require('so_guilin_ap_is');
var api = new SoGuilinApIs.E2eServiceInstancesApi()
var version = version_example; // {String}
var serviceId = serviceId_example; // {String}
var operationType = operationType_example; // {String}
var opts = {
'body': body_example // {String}
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.activateE2EServiceInstances(version, serviceId, operationType, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class activateE2EServiceInstancesExample
{
public void main()
{
var apiInstance = new E2eServiceInstancesApi();
var version = version_example; // String |
var serviceId = serviceId_example; // String |
var operationType = operationType_example; // String |
var body = body_example; // String | (optional)
try
{
// Activate/Deactivate 5G slice Service on a specified version and serviceId
apiInstance.activateE2EServiceInstances(version, serviceId, operationType, body);
}
catch (Exception e)
{
Debug.Print("Exception when calling E2eServiceInstancesApi.activateE2EServiceInstances: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\E2eServiceInstancesApi();
$version = version_example; // String |
$serviceId = serviceId_example; // String |
$operationType = operationType_example; // String |
$body = body_example; // String |
try {
$api_instance->activateE2EServiceInstances($version, $serviceId, $operationType, $body);
} catch (Exception $e) {
echo 'Exception when calling E2eServiceInstancesApi->activateE2EServiceInstances: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::E2eServiceInstancesApi;
my $api_instance = WWW::SwaggerClient::E2eServiceInstancesApi->new();
my $version = version_example; # String |
my $serviceId = serviceId_example; # String |
my $operationType = operationType_example; # String |
my $body = WWW::SwaggerClient::Object::String->new(); # String |
eval {
$api_instance->activateE2EServiceInstances(version => $version, serviceId => $serviceId, operationType => $operationType, body => $body);
};
if ($@) {
warn "Exception when calling E2eServiceInstancesApi->activateE2EServiceInstances: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.E2eServiceInstancesApi()
version = version_example # String |
serviceId = serviceId_example # String |
operationType = operationType_example # String |
body = body_example # String | (optional)
try:
# Activate/Deactivate 5G slice Service on a specified version and serviceId
api_instance.activate_e2_e_service_instances(version, serviceId, operationType, body=body)
except ApiException as e:
print("Exception when calling E2eServiceInstancesApi->activateE2EServiceInstances: %s\n" % e)
Parameters
Name | Description |
---|---|
version* |
String
Required
|
serviceId* |
String
Required
|
operationType* |
String
Required
|
Name | Description |
---|---|
body |