createApplication
Create an application from a template
This is the main method to deploy a templated application. The parameters posted will be used to render a template, and that template will get posted to AS3. The call to AS3 may be async, so this endpoint must also be async. A task will be returned upon successful parameter submission that can track the progress of the deployment.
/applications
Usage and SDK Samples
curl -X POST "/mgmt/shared/fast/applications"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ApplicationManagementApi;
import java.io.File;
import java.util.*;
public class ApplicationManagementApiExample {
public static void main(String[] args) {
ApplicationManagementApi apiInstance = new ApplicationManagementApi();
Task body = ; // Task | A task definition, including the name of the template to run and the parameters needed
to render and post the output.
try {
TaskCreation result = apiInstance.createApplication(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ApplicationManagementApi#createApplication");
e.printStackTrace();
}
}
}
import io.swagger.client.api.ApplicationManagementApi;
public class ApplicationManagementApiExample {
public static void main(String[] args) {
ApplicationManagementApi apiInstance = new ApplicationManagementApi();
Task body = ; // Task | A task definition, including the name of the template to run and the parameters needed
to render and post the output.
try {
TaskCreation result = apiInstance.createApplication(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ApplicationManagementApi#createApplication");
e.printStackTrace();
}
}
}
Task *body = ; // A task definition, including the name of the template to run and the parameters needed
to render and post the output.
ApplicationManagementApi *apiInstance = [[ApplicationManagementApi alloc] init];
// Create an application from a template
[apiInstance createApplicationWith:body
completionHandler: ^(TaskCreation output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var F5ApplicationServicesApi = require('f5_application_services_api');
var api = new F5ApplicationServicesApi.ApplicationManagementApi()
var body = ; // {{Task}} A task definition, including the name of the template to run and the parameters needed
to render and post the output.
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.createApplication(body, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class createApplicationExample
{
public void main()
{
var apiInstance = new ApplicationManagementApi();
var body = new Task(); // Task | A task definition, including the name of the template to run and the parameters needed
to render and post the output.
try
{
// Create an application from a template
TaskCreation result = apiInstance.createApplication(body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling ApplicationManagementApi.createApplication: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiApplicationManagementApi();
$body = ; // Task | A task definition, including the name of the template to run and the parameters needed
to render and post the output.
try {
$result = $api_instance->createApplication($body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ApplicationManagementApi->createApplication: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ApplicationManagementApi;
my $api_instance = WWW::SwaggerClient::ApplicationManagementApi->new();
my $body = WWW::SwaggerClient::Object::Task->new(); # Task | A task definition, including the name of the template to run and the parameters needed
to render and post the output.
eval {
my $result = $api_instance->createApplication(body => $body);
print Dumper($result);
};
if ($@) {
warn "Exception when calling ApplicationManagementApi->createApplication: $@\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.ApplicationManagementApi()
body = # Task | A task definition, including the name of the template to run and the parameters needed
to render and post the output.
try:
# Create an application from a template
api_response = api_instance.create_application(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling ApplicationManagementApi->createApplication: %s\n" % e)
Parameters
Name | Description |
---|---|
body * |