Skip to content

Latest commit

 

History

History
157 lines (100 loc) · 8.51 KB

README.md

File metadata and controls

157 lines (100 loc) · 8.51 KB

ProcessesV1

(ProcessesV1)

Overview

Deprecated. Use ProcessesV2.

Available Operations

GetProcessInfoDeprecated

Get details for a process.

⚠️ DEPRECATED: This will be removed in a future release, please migrate away from it as soon as possible.

Example Usage

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");

GetProcessInfoDeprecatedRequest req = new GetProcessInfoDeprecatedRequest() {
    ProcessId = "cbfcddd2-0006-43ae-996c-995fff7bed2e",
};


using(var res = await sdk.ProcessesV1.GetProcessInfoDeprecatedAsync(req))
{
    // handle response
}

Parameters

Parameter Type Required Description
request GetProcessInfoDeprecatedRequest ✔️ The request object to use for the request.

Response

GetProcessInfoDeprecatedResponse

Errors

Error Object Status Code Content Type
HathoraCloud.Models.Errors.ApiError 401,404,429,500 application/json
HathoraCloud.Models.Errors.SDKException 4xx-5xx /

GetRunningProcesses

Retrieve 10 most recently started process objects for an application. Filter the array by optionally passing in a region.

⚠️ DEPRECATED: This will be removed in a future release, please migrate away from it as soon as possible.

Example Usage

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");

GetRunningProcessesRequest req = new GetRunningProcessesRequest() {};


using(var res = await sdk.ProcessesV1.GetRunningProcessesAsync(req))
{
    // handle response
}

Parameters

Parameter Type Required Description
request GetRunningProcessesRequest ✔️ The request object to use for the request.

Response

GetRunningProcessesResponse

Errors

Error Object Status Code Content Type
HathoraCloud.Models.Errors.ApiError 401,404,429 application/json
HathoraCloud.Models.Errors.SDKException 4xx-5xx /

GetStoppedProcesses

Retrieve 10 most recently stopped process objects for an application. Filter the array by optionally passing in a region.

⚠️ DEPRECATED: This will be removed in a future release, please migrate away from it as soon as possible.

Example Usage

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");

GetStoppedProcessesRequest req = new GetStoppedProcessesRequest() {};


using(var res = await sdk.ProcessesV1.GetStoppedProcessesAsync(req))
{
    // handle response
}

Parameters

Parameter Type Required Description
request GetStoppedProcessesRequest ✔️ The request object to use for the request.

Response

GetStoppedProcessesResponse

Errors

Error Object Status Code Content Type
HathoraCloud.Models.Errors.ApiError 401,404,429 application/json
HathoraCloud.Models.Errors.SDKException 4xx-5xx /