Returns all dependencies for a stack service configuration.
curl -X get "https://localhost/api/v1/stacks/{stackName}/versions/{stackVersion}/services/{serviceName}/configurations/{propertyName}/dependencies?fields=&sortBy=&pageSize=&from=&to="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.StacksApi;
import java.io.File;
import java.util.*;
public class StacksApiExample {
public static void main(String[] args) {
StacksApi apiInstance = new StacksApi();
String stackName = stackName_example; // String |
String stackVersion = stackVersion_example; // String |
String serviceName = serviceName_example; // String |
String propertyName = propertyName_example; // String |
String fields = fields_example; // String | Filter returned attributes
String sortBy = sortBy_example; // String | Sort configuration dependencies (asc | desc)
Integer pageSize = 56; // Integer | The number of resources to be returned for the paged response.
String from = from_example; // String | The starting page resource (inclusive). "start" is also accepted.
String to = to_example; // String | The ending page resource (inclusive). "end" is also accepted.
try {
array[StackConfigurationDependencyResponseSwagger] result = apiInstance.stacksServiceGetStackConfigurationDependencies(stackName, stackVersion, serviceName, propertyName, fields, sortBy, pageSize, from, to);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling StacksApi#stacksServiceGetStackConfigurationDependencies");
e.printStackTrace();
}
}
}
import io.swagger.client.api.StacksApi;
public class StacksApiExample {
public static void main(String[] args) {
StacksApi apiInstance = new StacksApi();
String stackName = stackName_example; // String |
String stackVersion = stackVersion_example; // String |
String serviceName = serviceName_example; // String |
String propertyName = propertyName_example; // String |
String fields = fields_example; // String | Filter returned attributes
String sortBy = sortBy_example; // String | Sort configuration dependencies (asc | desc)
Integer pageSize = 56; // Integer | The number of resources to be returned for the paged response.
String from = from_example; // String | The starting page resource (inclusive). "start" is also accepted.
String to = to_example; // String | The ending page resource (inclusive). "end" is also accepted.
try {
array[StackConfigurationDependencyResponseSwagger] result = apiInstance.stacksServiceGetStackConfigurationDependencies(stackName, stackVersion, serviceName, propertyName, fields, sortBy, pageSize, from, to);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling StacksApi#stacksServiceGetStackConfigurationDependencies");
e.printStackTrace();
}
}
}
String *stackName = stackName_example; //
String *stackVersion = stackVersion_example; //
String *serviceName = serviceName_example; //
String *propertyName = propertyName_example; //
String *fields = fields_example; // Filter returned attributes (optional) (default to StackConfigurationDependency/stack_name,StackConfigurationDependency/stack_version,StackConfigurationDependency/service_name,StackConfigurationDependency/property_name,StackConfigurationDependency/dependency_name)
String *sortBy = sortBy_example; // Sort configuration dependencies (asc | desc) (optional) (default to StackConfigurationDependency/stack_name.asc,StackConfigurationDependency/stack_version.asc,StackConfigurationDependency/service_name.asc,StackConfigurationDependency/property_name.asc,StackConfigurationDependency/dependency_name.asc)
Integer *pageSize = 56; // The number of resources to be returned for the paged response. (optional) (default to 10)
String *from = from_example; // The starting page resource (inclusive). "start" is also accepted. (optional) (default to 0)
String *to = to_example; // The ending page resource (inclusive). "end" is also accepted. (optional)
StacksApi *apiInstance = [[StacksApi alloc] init];
// Get all dependencies for a stack service configuration
[apiInstance stacksServiceGetStackConfigurationDependenciesWith:stackName
stackVersion:stackVersion
serviceName:serviceName
propertyName:propertyName
fields:fields
sortBy:sortBy
pageSize:pageSize
from:from
to:to
completionHandler: ^(array[StackConfigurationDependencyResponseSwagger] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var SwaggerSpecForAmbariRestApi = require('swagger_spec_for_ambari_rest_api');
var api = new SwaggerSpecForAmbariRestApi.StacksApi()
var stackName = stackName_example; // {String}
var stackVersion = stackVersion_example; // {String}
var serviceName = serviceName_example; // {String}
var propertyName = propertyName_example; // {String}
var opts = {
'fields': fields_example, // {String} Filter returned attributes
'sortBy': sortBy_example, // {String} Sort configuration dependencies (asc | desc)
'pageSize': 56, // {Integer} The number of resources to be returned for the paged response.
'from': from_example, // {String} The starting page resource (inclusive). "start" is also accepted.
'to': to_example // {String} The ending page resource (inclusive). "end" is also accepted.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.stacksServiceGetStackConfigurationDependencies(stackName, stackVersion, serviceName, propertyName, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class stacksServiceGetStackConfigurationDependenciesExample
{
public void main()
{
var apiInstance = new StacksApi();
var stackName = stackName_example; // String |
var stackVersion = stackVersion_example; // String |
var serviceName = serviceName_example; // String |
var propertyName = propertyName_example; // String |
var fields = fields_example; // String | Filter returned attributes (optional) (default to StackConfigurationDependency/stack_name,StackConfigurationDependency/stack_version,StackConfigurationDependency/service_name,StackConfigurationDependency/property_name,StackConfigurationDependency/dependency_name)
var sortBy = sortBy_example; // String | Sort configuration dependencies (asc | desc) (optional) (default to StackConfigurationDependency/stack_name.asc,StackConfigurationDependency/stack_version.asc,StackConfigurationDependency/service_name.asc,StackConfigurationDependency/property_name.asc,StackConfigurationDependency/dependency_name.asc)
var pageSize = 56; // Integer | The number of resources to be returned for the paged response. (optional) (default to 10)
var from = from_example; // String | The starting page resource (inclusive). "start" is also accepted. (optional) (default to 0)
var to = to_example; // String | The ending page resource (inclusive). "end" is also accepted. (optional)
try
{
// Get all dependencies for a stack service configuration
array[StackConfigurationDependencyResponseSwagger] result = apiInstance.stacksServiceGetStackConfigurationDependencies(stackName, stackVersion, serviceName, propertyName, fields, sortBy, pageSize, from, to);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling StacksApi.stacksServiceGetStackConfigurationDependencies: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\StacksApi();
$stackName = stackName_example; // String |
$stackVersion = stackVersion_example; // String |
$serviceName = serviceName_example; // String |
$propertyName = propertyName_example; // String |
$fields = fields_example; // String | Filter returned attributes
$sortBy = sortBy_example; // String | Sort configuration dependencies (asc | desc)
$pageSize = 56; // Integer | The number of resources to be returned for the paged response.
$from = from_example; // String | The starting page resource (inclusive). "start" is also accepted.
$to = to_example; // String | The ending page resource (inclusive). "end" is also accepted.
try {
$result = $api_instance->stacksServiceGetStackConfigurationDependencies($stackName, $stackVersion, $serviceName, $propertyName, $fields, $sortBy, $pageSize, $from, $to);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling StacksApi->stacksServiceGetStackConfigurationDependencies: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::StacksApi;
my $api_instance = WWW::SwaggerClient::StacksApi->new();
my $stackName = stackName_example; # String |
my $stackVersion = stackVersion_example; # String |
my $serviceName = serviceName_example; # String |
my $propertyName = propertyName_example; # String |
my $fields = fields_example; # String | Filter returned attributes
my $sortBy = sortBy_example; # String | Sort configuration dependencies (asc | desc)
my $pageSize = 56; # Integer | The number of resources to be returned for the paged response.
my $from = from_example; # String | The starting page resource (inclusive). "start" is also accepted.
my $to = to_example; # String | The ending page resource (inclusive). "end" is also accepted.
eval {
my $result = $api_instance->stacksServiceGetStackConfigurationDependencies(stackName => $stackName, stackVersion => $stackVersion, serviceName => $serviceName, propertyName => $propertyName, fields => $fields, sortBy => $sortBy, pageSize => $pageSize, from => $from, to => $to);
print Dumper($result);
};
if ($@) {
warn "Exception when calling StacksApi->stacksServiceGetStackConfigurationDependencies: $@\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.StacksApi()
stackName = stackName_example # String |
stackVersion = stackVersion_example # String |
serviceName = serviceName_example # String |
propertyName = propertyName_example # String |
fields = fields_example # String | Filter returned attributes (optional) (default to StackConfigurationDependency/stack_name,StackConfigurationDependency/stack_version,StackConfigurationDependency/service_name,StackConfigurationDependency/property_name,StackConfigurationDependency/dependency_name)
sortBy = sortBy_example # String | Sort configuration dependencies (asc | desc) (optional) (default to StackConfigurationDependency/stack_name.asc,StackConfigurationDependency/stack_version.asc,StackConfigurationDependency/service_name.asc,StackConfigurationDependency/property_name.asc,StackConfigurationDependency/dependency_name.asc)
pageSize = 56 # Integer | The number of resources to be returned for the paged response. (optional) (default to 10)
from = from_example # String | The starting page resource (inclusive). "start" is also accepted. (optional) (default to 0)
to = to_example # String | The ending page resource (inclusive). "end" is also accepted. (optional)
try:
# Get all dependencies for a stack service configuration
api_response = api_instance.stacksServiceGetStackConfigurationDependencies(stackName, stackVersion, serviceName, propertyName, fields=fields, sortBy=sortBy, pageSize=pageSize, from=from, to=to)
pprint(api_response)
except ApiException as e:
print("Exception when calling StacksApi->stacksServiceGetStackConfigurationDependencies: %s\n" % e)