All URIs are relative to https://ci.appveyor.com/api
| Method | HTTP request | Description |
|---|---|---|
| AddEnvironment | Post /environments | Add environment |
| DeleteEnvironment | Delete /environments/{deploymentEnvironmentId} | Delete environment |
| GetEnvironmentDeployments | Get /environments/{deploymentEnvironmentId}/deployments | Get environment deployments |
| GetEnvironmentSettings | Get /environments/{deploymentEnvironmentId}/settings | Get environment settings |
| GetEnvironments | Get /environments | Get environments |
| UpdateEnvironment | Put /environments | Update environment |
DeploymentEnvironmentWithSettings AddEnvironment (DeploymentEnvironmentAddition body)
Add environment
using System;
using System.Diagnostics;
using Itofinity.Appveyor.Refit.Api;
using Itofinity.Appveyor.Refit.Client;
using Itofinity.Appveyor.Refit.Model;
namespace Example
{
public class AddEnvironmentExample
{
public void main()
{
// Configure API key authorization: apiToken
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
var apiInstance = new EnvironmentApi();
var body = new DeploymentEnvironmentAddition(); // DeploymentEnvironmentAddition |
try
{
// Add environment
DeploymentEnvironmentWithSettings result = apiInstance.AddEnvironment(body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling EnvironmentApi.AddEnvironment: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| body | DeploymentEnvironmentAddition |
DeploymentEnvironmentWithSettings
- Content-Type: application/json
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void DeleteEnvironment (int? deploymentEnvironmentId)
Delete environment
using System;
using System.Diagnostics;
using Itofinity.Appveyor.Refit.Api;
using Itofinity.Appveyor.Refit.Client;
using Itofinity.Appveyor.Refit.Model;
namespace Example
{
public class DeleteEnvironmentExample
{
public void main()
{
// Configure API key authorization: apiToken
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
var apiInstance = new EnvironmentApi();
var deploymentEnvironmentId = 56; // int? | Deployment Environment ID (`deploymentEnvironmentId` property of `DeploymentEnvironment`)
try
{
// Delete environment
apiInstance.DeleteEnvironment(deploymentEnvironmentId);
}
catch (Exception e)
{
Debug.Print("Exception when calling EnvironmentApi.DeleteEnvironment: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| deploymentEnvironmentId | int? | Deployment Environment ID (`deploymentEnvironmentId` property of `DeploymentEnvironment`) |
void (empty response body)
- Content-Type: application/json
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeploymentEnvironmentDeploymentsResults GetEnvironmentDeployments (int? deploymentEnvironmentId)
Get environment deployments
using System;
using System.Diagnostics;
using Itofinity.Appveyor.Refit.Api;
using Itofinity.Appveyor.Refit.Client;
using Itofinity.Appveyor.Refit.Model;
namespace Example
{
public class GetEnvironmentDeploymentsExample
{
public void main()
{
// Configure API key authorization: apiToken
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
var apiInstance = new EnvironmentApi();
var deploymentEnvironmentId = 56; // int? | Deployment Environment ID (`deploymentEnvironmentId` property of `DeploymentEnvironment`)
try
{
// Get environment deployments
DeploymentEnvironmentDeploymentsResults result = apiInstance.GetEnvironmentDeployments(deploymentEnvironmentId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling EnvironmentApi.GetEnvironmentDeployments: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| deploymentEnvironmentId | int? | Deployment Environment ID (`deploymentEnvironmentId` property of `DeploymentEnvironment`) |
DeploymentEnvironmentDeploymentsResults
- Content-Type: application/json
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeploymentEnvironmentSettingsResults GetEnvironmentSettings (int? deploymentEnvironmentId)
Get environment settings
using System;
using System.Diagnostics;
using Itofinity.Appveyor.Refit.Api;
using Itofinity.Appveyor.Refit.Client;
using Itofinity.Appveyor.Refit.Model;
namespace Example
{
public class GetEnvironmentSettingsExample
{
public void main()
{
// Configure API key authorization: apiToken
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
var apiInstance = new EnvironmentApi();
var deploymentEnvironmentId = 56; // int? | Deployment Environment ID (`deploymentEnvironmentId` property of `DeploymentEnvironment`)
try
{
// Get environment settings
DeploymentEnvironmentSettingsResults result = apiInstance.GetEnvironmentSettings(deploymentEnvironmentId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling EnvironmentApi.GetEnvironmentSettings: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| deploymentEnvironmentId | int? | Deployment Environment ID (`deploymentEnvironmentId` property of `DeploymentEnvironment`) |
DeploymentEnvironmentSettingsResults
- Content-Type: application/json
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List GetEnvironments ()
Get environments
using System;
using System.Diagnostics;
using Itofinity.Appveyor.Refit.Api;
using Itofinity.Appveyor.Refit.Client;
using Itofinity.Appveyor.Refit.Model;
namespace Example
{
public class GetEnvironmentsExample
{
public void main()
{
// Configure API key authorization: apiToken
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
var apiInstance = new EnvironmentApi();
try
{
// Get environments
List<DeploymentEnvironmentLookupModel> result = apiInstance.GetEnvironments();
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling EnvironmentApi.GetEnvironments: " + e.Message );
}
}
}
}This endpoint does not need any parameter.
- Content-Type: application/json
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeploymentEnvironmentWithSettings UpdateEnvironment (DeploymentEnvironmentWithSettings body)
Update environment
using System;
using System.Diagnostics;
using Itofinity.Appveyor.Refit.Api;
using Itofinity.Appveyor.Refit.Client;
using Itofinity.Appveyor.Refit.Model;
namespace Example
{
public class UpdateEnvironmentExample
{
public void main()
{
// Configure API key authorization: apiToken
Configuration.Default.ApiKey.Add("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("Authorization", "Bearer");
var apiInstance = new EnvironmentApi();
var body = new DeploymentEnvironmentWithSettings(); // DeploymentEnvironmentWithSettings |
try
{
// Update environment
DeploymentEnvironmentWithSettings result = apiInstance.UpdateEnvironment(body);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling EnvironmentApi.UpdateEnvironment: " + e.Message );
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| body | DeploymentEnvironmentWithSettings |
DeploymentEnvironmentWithSettings
- Content-Type: application/json
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]