(DeploymentsV2)
- CreateDeploymentV2Deprecated - Create a new deployment. Creating a new deployment means all new rooms created will use the latest deployment configuration, but existing games in progress will not be affected.
- GetDeploymentInfoV2Deprecated - Get details for a deployment.
- GetDeploymentsV2Deprecated - Returns an array of deployments for an application.
- GetLatestDeploymentV2Deprecated - Get the latest deployment for an application.
Create a new deployment. Creating a new deployment means all new rooms created will use the latest deployment configuration, but existing games in progress will not be affected.
using HathoraCloud;
using HathoraCloud.Models.Shared;
using HathoraCloud.Models.Operations;
using System.Collections.Generic;
var sdk = new HathoraCloudSDK(
security: new Security() {
HathoraDevToken = "<YOUR_BEARER_TOKEN_HERE>",
},
appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2");
CreateDeploymentV2DeprecatedRequest req = new CreateDeploymentV2DeprecatedRequest() {
DeploymentConfigV2 = new DeploymentConfigV2() {
AdditionalContainerPorts = new List<ContainerPort>() {
new ContainerPort() {
Name = "default",
Port = 8000,
TransportType = TransportType.Tls,
},
},
ContainerPort = 4000,
Env = new List<DeploymentConfigV2Env>() {
new DeploymentConfigV2Env() {
Name = "EULA",
Value = "TRUE",
},
},
IdleTimeoutEnabled = false,
RequestedCPU = 0.5D,
RequestedMemoryMB = 1024D,
RoomsPerProcess = 3,
TransportType = TransportType.Tcp,
},
BuildId = 1,
};
using(var res = await sdk.DeploymentsV2.CreateDeploymentV2DeprecatedAsync(req))
{
// handle response
}
Parameter | Type | Required | Description |
---|---|---|---|
request |
CreateDeploymentV2DeprecatedRequest | ✔️ | The request object to use for the request. |
CreateDeploymentV2DeprecatedResponse
Error Object | Status Code | Content Type |
---|---|---|
HathoraCloud.Models.Errors.ApiError | 400,401,404,422,429,500 | application/json |
HathoraCloud.Models.Errors.SDKException | 4xx-5xx | / |
Get details for a deployment.
using HathoraCloud;
using HathoraCloud.Models.Shared;
using HathoraCloud.Models.Operations;
var sdk = new HathoraCloudSDK(
security: new Security() {
HathoraDevToken = "<YOUR_BEARER_TOKEN_HERE>",
},
appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2");
GetDeploymentInfoV2DeprecatedRequest req = new GetDeploymentInfoV2DeprecatedRequest() {
DeploymentId = 1,
};
using(var res = await sdk.DeploymentsV2.GetDeploymentInfoV2DeprecatedAsync(req))
{
// handle response
}
Parameter | Type | Required | Description |
---|---|---|---|
request |
GetDeploymentInfoV2DeprecatedRequest | ✔️ | The request object to use for the request. |
GetDeploymentInfoV2DeprecatedResponse
Error Object | Status Code | Content Type |
---|---|---|
HathoraCloud.Models.Errors.ApiError | 401,404,429 | application/json |
HathoraCloud.Models.Errors.SDKException | 4xx-5xx | / |
Returns an array of deployments for an application.
using HathoraCloud;
using HathoraCloud.Models.Shared;
using HathoraCloud.Models.Operations;
var sdk = new HathoraCloudSDK(
security: new Security() {
HathoraDevToken = "<YOUR_BEARER_TOKEN_HERE>",
},
appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2");
GetDeploymentsV2DeprecatedRequest req = new GetDeploymentsV2DeprecatedRequest() {};
using(var res = await sdk.DeploymentsV2.GetDeploymentsV2DeprecatedAsync(req))
{
// handle response
}
Parameter | Type | Required | Description |
---|---|---|---|
request |
GetDeploymentsV2DeprecatedRequest | ✔️ | The request object to use for the request. |
GetDeploymentsV2DeprecatedResponse
Error Object | Status Code | Content Type |
---|---|---|
HathoraCloud.Models.Errors.ApiError | 401,404,429 | application/json |
HathoraCloud.Models.Errors.SDKException | 4xx-5xx | / |
Get the latest deployment for an application.
using HathoraCloud;
using HathoraCloud.Models.Shared;
using HathoraCloud.Models.Operations;
var sdk = new HathoraCloudSDK(
security: new Security() {
HathoraDevToken = "<YOUR_BEARER_TOKEN_HERE>",
},
appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2");
GetLatestDeploymentV2DeprecatedRequest req = new GetLatestDeploymentV2DeprecatedRequest() {};
using(var res = await sdk.DeploymentsV2.GetLatestDeploymentV2DeprecatedAsync(req))
{
// handle response
}
Parameter | Type | Required | Description |
---|---|---|---|
request |
GetLatestDeploymentV2DeprecatedRequest | ✔️ | The request object to use for the request. |
GetLatestDeploymentV2DeprecatedResponse
Error Object | Status Code | Content Type |
---|---|---|
HathoraCloud.Models.Errors.ApiError | 401,404,422,429 | application/json |
HathoraCloud.Models.Errors.SDKException | 4xx-5xx | / |