All URIs are relative to https://api.vultr.com/v2
Method | HTTP request | Description |
---|---|---|
CreateRegistry | POST /registry | Create Container Registry |
CreateRegistryDockerCredentials | OPTIONS /registry/{registry-id}/docker-credentials?expiry_seconds=0&read_write=false | Create Docker Credentials |
CreateRegistryKubernetesDockerCredentials | OPTIONS /registry/{registry-id}/docker-credentials/kubernetes?expiry_seconds=0&read_write=false&base64_encode=false | Create Docker Credentials for Kubernetes |
DeleteRegistry | DELETE /registry/{registry-id} | Delete Container Registry |
DeleteRepository | DELETE /registry/{registry-id}/repository/{repository-image} | Delete Repository |
ListRegistries | GET /registries | List Container Registries |
ListRegistryPlans | GET /registry/plan/list | List Registry Plans |
ListRegistryRegions | GET /registry/region/list | List Registry Regions |
ListRegistryRepositories | GET /registry/{registry-id}/repositories | List Repositories |
ReadRegistry | GET /registry/{registry-id} | Read Container Registry |
ReadRegistryRepository | GET /registry/{registry-id}/repository/{repository-image} | Read Repository |
UpdateRegistry | PUT /registry/{registry-id} | Update Container Registry |
UpdateRepository | PUT /registry/{registry-id}/repository/{repository-image} | Update Repository |
Registry CreateRegistry (CreateRegistryRequest? createRegistryRequest = null)
Create Container Registry
Create a new Container Registry Subscription
using System.Collections.Generic;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class CreateRegistryExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.vultr.com/v2";
// Configure Bearer token for authorization: API Key
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new ContainerRegistryApi(config);
var createRegistryRequest = new CreateRegistryRequest?(); // CreateRegistryRequest? | (optional)
try
{
// Create Container Registry
Registry result = apiInstance.CreateRegistry(createRegistryRequest);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ContainerRegistryApi.CreateRegistry: " + 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
{
// Create Container Registry
ApiResponse<Registry> response = apiInstance.CreateRegistryWithHttpInfo(createRegistryRequest);
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 ContainerRegistryApi.CreateRegistryWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
createRegistryRequest | CreateRegistryRequest? | [optional] |
[API Key](../README.md#API Key)
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
201 | OK | - |
401 | Unauthorized | - |
422 | Bad Request | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RegistryDockerCredentials CreateRegistryDockerCredentials (string registryId, int? expirySeconds = null, bool? readWrite = null)
Create Docker Credentials
Create a fresh set of Docker Credentials for this Container Registry Subscription
using System.Collections.Generic;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class CreateRegistryDockerCredentialsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.vultr.com/v2";
// Configure Bearer token for authorization: API Key
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new ContainerRegistryApi(config);
var registryId = "registryId_example"; // string | The [Registry ID](#components/schemas/registry/properties/id). Which can be found by [List Registries](#operation/list-registries).
var expirySeconds = 56; // int? | The seconds until these credentials expire. When set to 0, credentials do not expire. The default value is 0 (optional)
var readWrite = true; // bool? | Whether these credentials will have only PULL access or PUSH access as well. If true these credentials can PUSH to repos in this registry. If false, these credentials can only PULL. Default is false. (optional)
try
{
// Create Docker Credentials
RegistryDockerCredentials result = apiInstance.CreateRegistryDockerCredentials(registryId, expirySeconds, readWrite);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ContainerRegistryApi.CreateRegistryDockerCredentials: " + 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
{
// Create Docker Credentials
ApiResponse<RegistryDockerCredentials> response = apiInstance.CreateRegistryDockerCredentialsWithHttpInfo(registryId, expirySeconds, readWrite);
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 ContainerRegistryApi.CreateRegistryDockerCredentialsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
registryId | string | The Registry ID. Which can be found by List Registries. | |
expirySeconds | int? | The seconds until these credentials expire. When set to 0, credentials do not expire. The default value is 0 | [optional] |
readWrite | bool? | Whether these credentials will have only PULL access or PUSH access as well. If true these credentials can PUSH to repos in this registry. If false, these credentials can only PULL. Default is false. | [optional] |
[API Key](../README.md#API Key)
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
401 | Unauthorized | - |
404 | Not Found | - |
422 | Bad Request | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RegistryKubernetesDockerCredentials CreateRegistryKubernetesDockerCredentials (string registryId, int? expirySeconds = null, bool? readWrite = null, bool? base64Encode = null)
Create Docker Credentials for Kubernetes
Create a fresh set of Docker Credentials for this Container Registry Subscription and return them in a Kubernetes friendly YAML format
using System.Collections.Generic;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class CreateRegistryKubernetesDockerCredentialsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.vultr.com/v2";
// Configure Bearer token for authorization: API Key
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new ContainerRegistryApi(config);
var registryId = "registryId_example"; // string | The [Registry ID](#components/schemas/registry/properties/id). Which can be found by [List Registries](#operation/list-registries).
var expirySeconds = 56; // int? | The seconds until these credentials expire. When set to 0, credentials do not expire. The default value is 0 (optional)
var readWrite = true; // bool? | Whether these credentials will have only PULL access or PUSH access as well. If true these credentials can PUSH to repos in this registry. If false, these credentials can only PULL. Default is false. (optional)
var base64Encode = true; // bool? | Whether this YAML will be returned in a base64 encoded string for ease of downloading. If true, the response will be a base64 encoded string. Default is false. (optional)
try
{
// Create Docker Credentials for Kubernetes
RegistryKubernetesDockerCredentials result = apiInstance.CreateRegistryKubernetesDockerCredentials(registryId, expirySeconds, readWrite, base64Encode);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ContainerRegistryApi.CreateRegistryKubernetesDockerCredentials: " + 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
{
// Create Docker Credentials for Kubernetes
ApiResponse<RegistryKubernetesDockerCredentials> response = apiInstance.CreateRegistryKubernetesDockerCredentialsWithHttpInfo(registryId, expirySeconds, readWrite, base64Encode);
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 ContainerRegistryApi.CreateRegistryKubernetesDockerCredentialsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
registryId | string | The Registry ID. Which can be found by List Registries. | |
expirySeconds | int? | The seconds until these credentials expire. When set to 0, credentials do not expire. The default value is 0 | [optional] |
readWrite | bool? | Whether these credentials will have only PULL access or PUSH access as well. If true these credentials can PUSH to repos in this registry. If false, these credentials can only PULL. Default is false. | [optional] |
base64Encode | bool? | Whether this YAML will be returned in a base64 encoded string for ease of downloading. If true, the response will be a base64 encoded string. Default is false. | [optional] |
RegistryKubernetesDockerCredentials
[API Key](../README.md#API Key)
- Content-Type: Not defined
- Accept: application/yaml
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
401 | Unauthorized | - |
404 | Not Found | - |
422 | Bad Request | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void DeleteRegistry (string registryId)
Delete Container Registry
Deletes a Container Registry Subscription
using System.Collections.Generic;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class DeleteRegistryExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.vultr.com/v2";
// Configure Bearer token for authorization: API Key
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new ContainerRegistryApi(config);
var registryId = "registryId_example"; // string | The [Registry ID](#components/schemas/registry/properties/id). Which can be found by [List Registries](#operation/list-registries).
try
{
// Delete Container Registry
apiInstance.DeleteRegistry(registryId);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ContainerRegistryApi.DeleteRegistry: " + 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
{
// Delete Container Registry
apiInstance.DeleteRegistryWithHttpInfo(registryId);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ContainerRegistryApi.DeleteRegistryWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
registryId | string | The Registry ID. Which can be found by List Registries. |
void (empty response body)
[API Key](../README.md#API Key)
- Content-Type: Not defined
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
204 | No Content - Successfully Deleted | - |
401 | Unauthorized | - |
404 | Not Found | - |
422 | Bad Request | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void DeleteRepository (string registryId, string repositoryImage)
Delete Repository
Deletes a Repository from a Container Registry Subscription
using System.Collections.Generic;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class DeleteRepositoryExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.vultr.com/v2";
// Configure Bearer token for authorization: API Key
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new ContainerRegistryApi(config);
var registryId = "registryId_example"; // string | The [Registry ID](#components/schemas/registry/properties/id). Which can be found by [List Registries](#operation/list-registries).
var repositoryImage = "repositoryImage_example"; // string | The [Repository Image](#components/schemas/registry-repository/properties/image). Which can be found by [List Repositories](#operation/list-registry-repositories).
try
{
// Delete Repository
apiInstance.DeleteRepository(registryId, repositoryImage);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ContainerRegistryApi.DeleteRepository: " + 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
{
// Delete Repository
apiInstance.DeleteRepositoryWithHttpInfo(registryId, repositoryImage);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ContainerRegistryApi.DeleteRepositoryWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
registryId | string | The Registry ID. Which can be found by List Registries. | |
repositoryImage | string | The Repository Image. Which can be found by List Repositories. |
void (empty response body)
[API Key](../README.md#API Key)
- Content-Type: Not defined
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
204 | No Content - Successfully Deleted | - |
401 | Unauthorized | - |
404 | Not Found | - |
422 | Bad Request | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListRegistries200Response ListRegistries ()
List Container Registries
List All Container Registry Subscriptions for this account
using System.Collections.Generic;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class ListRegistriesExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.vultr.com/v2";
// Configure Bearer token for authorization: API Key
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new ContainerRegistryApi(config);
try
{
// List Container Registries
ListRegistries200Response result = apiInstance.ListRegistries();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ContainerRegistryApi.ListRegistries: " + 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 Container Registries
ApiResponse<ListRegistries200Response> response = apiInstance.ListRegistriesWithHttpInfo();
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 ContainerRegistryApi.ListRegistriesWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
This endpoint does not need any parameter.
[API Key](../README.md#API Key)
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
401 | Unauthorized | - |
404 | Not Found | - |
422 | Bad Request | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListRegistryPlans200Response ListRegistryPlans ()
List Registry Plans
List All Plans to help choose which one is the best fit for your Container Registry
using System.Collections.Generic;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class ListRegistryPlansExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.vultr.com/v2";
// Configure Bearer token for authorization: API Key
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new ContainerRegistryApi(config);
try
{
// List Registry Plans
ListRegistryPlans200Response result = apiInstance.ListRegistryPlans();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ContainerRegistryApi.ListRegistryPlans: " + 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 Registry Plans
ApiResponse<ListRegistryPlans200Response> response = apiInstance.ListRegistryPlansWithHttpInfo();
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 ContainerRegistryApi.ListRegistryPlansWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
This endpoint does not need any parameter.
[API Key](../README.md#API Key)
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
401 | Unauthorized | - |
422 | Bad Request | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListRegistryRegions200Response ListRegistryRegions ()
List Registry Regions
List All Regions where a Container Registry can be deployed
using System.Collections.Generic;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class ListRegistryRegionsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.vultr.com/v2";
// Configure Bearer token for authorization: API Key
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new ContainerRegistryApi(config);
try
{
// List Registry Regions
ListRegistryRegions200Response result = apiInstance.ListRegistryRegions();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ContainerRegistryApi.ListRegistryRegions: " + 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 Registry Regions
ApiResponse<ListRegistryRegions200Response> response = apiInstance.ListRegistryRegionsWithHttpInfo();
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 ContainerRegistryApi.ListRegistryRegionsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
This endpoint does not need any parameter.
ListRegistryRegions200Response
[API Key](../README.md#API Key)
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
401 | Unauthorized | - |
422 | Bad Request | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListRegistryRepositories200Response ListRegistryRepositories (string registryId)
List Repositories
List All Repositories in a Container Registry Subscription
using System.Collections.Generic;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class ListRegistryRepositoriesExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.vultr.com/v2";
// Configure Bearer token for authorization: API Key
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new ContainerRegistryApi(config);
var registryId = "registryId_example"; // string | The [Registry ID](#components/schemas/registry/properties/id). Which can be found by [List Registries](#operation/list-registries).
try
{
// List Repositories
ListRegistryRepositories200Response result = apiInstance.ListRegistryRepositories(registryId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ContainerRegistryApi.ListRegistryRepositories: " + 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 Repositories
ApiResponse<ListRegistryRepositories200Response> response = apiInstance.ListRegistryRepositoriesWithHttpInfo(registryId);
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 ContainerRegistryApi.ListRegistryRepositoriesWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
registryId | string | The Registry ID. Which can be found by List Registries. |
ListRegistryRepositories200Response
[API Key](../README.md#API Key)
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
401 | Unauthorized | - |
404 | Not Found | - |
422 | Bad Request | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Registry ReadRegistry (string registryId)
Read Container Registry
Get a single Container Registry Subscription
using System.Collections.Generic;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class ReadRegistryExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.vultr.com/v2";
// Configure Bearer token for authorization: API Key
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new ContainerRegistryApi(config);
var registryId = "registryId_example"; // string | The [Registry ID](#components/schemas/registry/properties/id). Which can be found by [List Registries](#operation/list-registries).
try
{
// Read Container Registry
Registry result = apiInstance.ReadRegistry(registryId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ContainerRegistryApi.ReadRegistry: " + 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
{
// Read Container Registry
ApiResponse<Registry> response = apiInstance.ReadRegistryWithHttpInfo(registryId);
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 ContainerRegistryApi.ReadRegistryWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
registryId | string | The Registry ID. Which can be found by List Registries. |
[API Key](../README.md#API Key)
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
401 | Unauthorized | - |
404 | Not Found | - |
422 | Bad Request | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RegistryRepository ReadRegistryRepository (string registryId, string repositoryImage)
Read Repository
Get a single Repository in a Container Registry Subscription
using System.Collections.Generic;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class ReadRegistryRepositoryExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.vultr.com/v2";
// Configure Bearer token for authorization: API Key
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new ContainerRegistryApi(config);
var registryId = "registryId_example"; // string | The [Registry ID](#components/schemas/registry/properties/id). Which can be found by [List Registries](#operation/list-registries).
var repositoryImage = "repositoryImage_example"; // string | The [Repository Image](#components/schemas/registry-repository/properties/image). Which can be found by [List Repositories](#operation/list-registry-repositories).
try
{
// Read Repository
RegistryRepository result = apiInstance.ReadRegistryRepository(registryId, repositoryImage);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ContainerRegistryApi.ReadRegistryRepository: " + 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
{
// Read Repository
ApiResponse<RegistryRepository> response = apiInstance.ReadRegistryRepositoryWithHttpInfo(registryId, repositoryImage);
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 ContainerRegistryApi.ReadRegistryRepositoryWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
registryId | string | The Registry ID. Which can be found by List Registries. | |
repositoryImage | string | The Repository Image. Which can be found by List Repositories. |
[API Key](../README.md#API Key)
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
401 | Unauthorized | - |
404 | Not Found | - |
422 | Bad Request | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Registry UpdateRegistry (string registryId, UpdateRegistryRequest? updateRegistryRequest = null)
Update Container Registry
Update a Container Registry Subscription
using System.Collections.Generic;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class UpdateRegistryExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.vultr.com/v2";
// Configure Bearer token for authorization: API Key
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new ContainerRegistryApi(config);
var registryId = "registryId_example"; // string | The [Registry ID](#components/schemas/registry/properties/id). Which can be found by [List Registries](#operation/list-registries).
var updateRegistryRequest = new UpdateRegistryRequest?(); // UpdateRegistryRequest? | (optional)
try
{
// Update Container Registry
Registry result = apiInstance.UpdateRegistry(registryId, updateRegistryRequest);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ContainerRegistryApi.UpdateRegistry: " + 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
{
// Update Container Registry
ApiResponse<Registry> response = apiInstance.UpdateRegistryWithHttpInfo(registryId, updateRegistryRequest);
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 ContainerRegistryApi.UpdateRegistryWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
registryId | string | The Registry ID. Which can be found by List Registries. | |
updateRegistryRequest | UpdateRegistryRequest? | [optional] |
[API Key](../README.md#API Key)
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
401 | Unauthorized | - |
404 | Not Found | - |
422 | Bad Request | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RegistryRepository UpdateRepository (string registryId, string repositoryImage, UpdateRepositoryRequest? updateRepositoryRequest = null)
Update Repository
Update a Repository in a Container Registry Subscription
using System.Collections.Generic;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class UpdateRepositoryExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.vultr.com/v2";
// Configure Bearer token for authorization: API Key
config.AccessToken = "YOUR_BEARER_TOKEN";
var apiInstance = new ContainerRegistryApi(config);
var registryId = "registryId_example"; // string | The [Registry ID](#components/schemas/registry/properties/id). Which can be found by [List Registries](#operation/list-registries).
var repositoryImage = "repositoryImage_example"; // string | The [Repository Image](#components/schemas/registry-repository/properties/image). Which can be found by [List Repositories](#operation/list-registry-repositories).
var updateRepositoryRequest = new UpdateRepositoryRequest?(); // UpdateRepositoryRequest? | (optional)
try
{
// Update Repository
RegistryRepository result = apiInstance.UpdateRepository(registryId, repositoryImage, updateRepositoryRequest);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling ContainerRegistryApi.UpdateRepository: " + 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
{
// Update Repository
ApiResponse<RegistryRepository> response = apiInstance.UpdateRepositoryWithHttpInfo(registryId, repositoryImage, updateRepositoryRequest);
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 ContainerRegistryApi.UpdateRepositoryWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
registryId | string | The Registry ID. Which can be found by List Registries. | |
repositoryImage | string | The Repository Image. Which can be found by List Repositories. | |
updateRepositoryRequest | UpdateRepositoryRequest? | [optional] |
[API Key](../README.md#API Key)
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
401 | Unauthorized | - |
404 | Not Found | - |
422 | Bad Request | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]