All URIs are relative to https://elements.local
Method | HTTP request | Description |
---|---|---|
CreateAWSAccount | POST /api/2/aws-accounts | |
DeleteAWSAccount | DELETE /api/2/aws-accounts/{id} | |
GetAWSAccount | GET /api/2/aws-accounts/{id} | |
GetAWSAccountBuckets | GET /api/2/aws-accounts/{id}/buckets | |
GetAWSAccountSNSTopics | GET /api/2/aws-accounts/{id}/sns/topics | |
GetAllAWSAccounts | GET /api/2/aws-accounts | |
PatchAWSAccount | PATCH /api/2/aws-accounts/{id} | |
TestAWSAccountCredentials | POST /api/2/aws-accounts/test-credentials | |
UpdateAWSAccount | PUT /api/2/aws-accounts/{id} |
AWSAccount CreateAWSAccount (AWSAccount aWSAccount)
using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class CreateAWSAccountExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new AWSApi(config);
var aWSAccount = new AWSAccount(); // AWSAccount |
try
{
AWSAccount result = apiInstance.CreateAWSAccount(aWSAccount);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AWSApi.CreateAWSAccount: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
aWSAccount | AWSAccount |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void DeleteAWSAccount (int id)
using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class DeleteAWSAccountExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new AWSApi(config);
var id = 56; // int | A unique integer value identifying this AWS Account.
try
{
apiInstance.DeleteAWSAccount(id);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AWSApi.DeleteAWSAccount: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this AWS Account. |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
200 | No body | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AWSAccount GetAWSAccount (int id)
using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class GetAWSAccountExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new AWSApi(config);
var id = 56; // int | A unique integer value identifying this AWS Account.
try
{
AWSAccount result = apiInstance.GetAWSAccount(id);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AWSApi.GetAWSAccount: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this AWS Account. |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListBuckets GetAWSAccountBuckets (int id)
using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class GetAWSAccountBucketsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new AWSApi(config);
var id = 56; // int | A unique integer value identifying this AWS Account.
try
{
ListBuckets result = apiInstance.GetAWSAccountBuckets(id);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AWSApi.GetAWSAccountBuckets: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this AWS Account. |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListTopics GetAWSAccountSNSTopics (int id)
using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class GetAWSAccountSNSTopicsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new AWSApi(config);
var id = 56; // int | A unique integer value identifying this AWS Account.
try
{
ListTopics result = apiInstance.GetAWSAccountSNSTopics(id);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AWSApi.GetAWSAccountSNSTopics: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this AWS Account. |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List<AWSAccount> GetAllAWSAccounts (string name = null, decimal? id = null, string ordering = null, int? limit = null, int? offset = null)
using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class GetAllAWSAccountsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new AWSApi(config);
var name = name_example; // string | Filter the returned list by `name`. (optional)
var id = 8.14; // decimal? | Filter the returned list by `id`. (optional)
var ordering = ordering_example; // string | Which field to use when ordering the results. (optional)
var limit = 56; // int? | Number of results to return per page. (optional)
var offset = 56; // int? | The initial index from which to return the results. (optional)
try
{
List<AWSAccount> result = apiInstance.GetAllAWSAccounts(name, id, ordering, limit, offset);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AWSApi.GetAllAWSAccounts: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
name | string | Filter the returned list by `name`. | [optional] |
id | decimal? | Filter the returned list by `id`. | [optional] |
ordering | string | Which field to use when ordering the results. | [optional] |
limit | int? | Number of results to return per page. | [optional] |
offset | int? | The initial index from which to return the results. | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AWSAccount PatchAWSAccount (int id, AWSAccountPartialUpdate aWSAccountPartialUpdate)
using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class PatchAWSAccountExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new AWSApi(config);
var id = 56; // int | A unique integer value identifying this AWS Account.
var aWSAccountPartialUpdate = new AWSAccountPartialUpdate(); // AWSAccountPartialUpdate |
try
{
AWSAccount result = apiInstance.PatchAWSAccount(id, aWSAccountPartialUpdate);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AWSApi.PatchAWSAccount: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this AWS Account. | |
aWSAccountPartialUpdate | AWSAccountPartialUpdate |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TestAWSCredentialsResponse TestAWSAccountCredentials (TestAWSCredentialsRequest testAWSCredentialsRequest)
using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class TestAWSAccountCredentialsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new AWSApi(config);
var testAWSCredentialsRequest = new TestAWSCredentialsRequest(); // TestAWSCredentialsRequest |
try
{
TestAWSCredentialsResponse result = apiInstance.TestAWSAccountCredentials(testAWSCredentialsRequest);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AWSApi.TestAWSAccountCredentials: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
testAWSCredentialsRequest | TestAWSCredentialsRequest |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AWSAccount UpdateAWSAccount (int id, AWSAccount aWSAccount)
using System.Collections.Generic;
using System.Diagnostics;
using ElementsSDK.Api;
using ElementsSDK.Client;
using ElementsSDK.Model;
namespace Example
{
public class UpdateAWSAccountExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://elements.local";
// Configure API key authorization: Bearer
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new AWSApi(config);
var id = 56; // int | A unique integer value identifying this AWS Account.
var aWSAccount = new AWSAccount(); // AWSAccount |
try
{
AWSAccount result = apiInstance.UpdateAWSAccount(id, aWSAccount);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AWSApi.UpdateAWSAccount: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique integer value identifying this AWS Account. | |
aWSAccount | AWSAccount |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]