All URIs are relative to https://api.vultr.com/v2
Method | HTTP request | Description |
---|---|---|
ListApplications | GET /applications | List Applications |
ListApplications200Response ListApplications (string? type = null, int? perPage = null, string? cursor = null)
List Applications
Get a list of all available Applications.
using System.Collections.Generic;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class ListApplicationsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.vultr.com/v2";
var apiInstance = new ApplicationApi(config);
var type = "type_example"; // string? | Filter the results by type. | | Type | Description | | - | - -- -- - | - -- -- -- -- -- -- | | | all | All available application types | | | marketplace | Marketplace applications | | | one-click | Vultr One-Click applications | (optional)
var perPage = 56; // int? | Number of items requested per page. Default is 100 and Max is 500. (optional)
var cursor = "cursor_example"; // string? | Cursor for paging. See [Meta and Pagination](#section/Introduction/Meta-and-Pagination). (optional)
try
{
// List Applications
ListApplications200Response result = apiInstance.ListApplications(type, perPage, cursor);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ApplicationApi.ListApplications: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// List Applications
ApiResponse<ListApplications200Response> response = apiInstance.ListApplicationsWithHttpInfo(type, perPage, cursor);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ApplicationApi.ListApplicationsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
type | string? | Filter the results by type. | |
perPage | int? | Number of items requested per page. Default is 100 and Max is 500. | [optional] |
cursor | string? | Cursor for paging. See Meta and Pagination. | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]