Pause a Runtime
Pause a Runtime
POSThttps://api.cuemby.io/functions/v1/runtimes/:runtimeIdentifier/pause
Pause a Runtime
Request
Path Parameters
runtimeIdentifier stringrequired
The runtime ID or Name
Header Parameters
X-Organization-Id string
The ID of the organization (this parameter is not required when using API key authorization)
X-Project-Id string
The ID of the project (Use this if you are not going to use the X-Project-Name)
X-Project-Name string
The Name of the project (Use this if you are not going to use the X-Project-Id)
X-Environment-Id string
The ID of the environment (Use this if you are not going to use the X-Environment-Name)
X-Environment-Name string
The Name of the environment (Use this if you are not going to use the X-Environment-Id)
Responses
- 200
- 400
- 401
- 403
Success
- application/json
- Schema
- Example (auto)
Schema
successboolean
Default value:
true
timestampstring
Default value:
2024-01-01T00:00:00.000Z
statusCodenumber
Default value:
200
statusTextstring
Default value:
Success
messagestring
Default value:
Message successfully
localizationstring
Default value:
someone-method:success
data object
{
"success": true,
"timestamp": "2024-01-01T00:00:00.000Z",
"statusCode": 200,
"statusText": "Success",
"message": "Message successfully",
"localization": "someone-method:success",
"data": {
"id": "string",
"name": "string",
"projectId": "string",
"environmentId": "string",
"templateId": "string",
"statusType": "PAUSED",
"traffic": "string",
"hostUrl": "string",
"tagName": "string",
"dockerfilePath": "string",
"ports": "string",
"replicas": "string",
"deployedAt": "string",
"createdAt": "string",
"integration": {
"fullName": "string",
"urlRepo": "string",
"repositoryName": "string"
},
"environments": {
"id": "string",
"name": "string"
},
"instanceTypes": {
"id": "string",
"name": "string"
}
}
}
Bad Request
- application/json
- Schema
- Example (auto)
Schema
successboolean
Default value:
false
dataobject
Default value:
null
timestampstring
Default value:
2024-01-01T00:00:00.000Z
statusCodenumber
Default value:
400
statusTextstring
Default value:
Bad Request
messagestring
Default value:
Message Error
localizationstring
Default value:
someone-method:error
{
"success": false,
"data": {},
"timestamp": "2024-01-01T00:00:00.000Z",
"statusCode": 400,
"statusText": "Bad Request",
"message": "Message Error",
"localization": "someone-method:error"
}
Unauthorized
- application/json
- Schema
- Example (auto)
Schema
successboolean
Default value:
false
dataobject
Default value:
null
timestampstring
Default value:
2024-01-01T00:00:00.000Z
statusCodenumber
Default value:
401
statusTextstring
Default value:
Unauthorized
messagestring
Default value:
Message Unauthorized
localizationstring
Default value:
someone-method:error
{
"success": false,
"data": {},
"timestamp": "2024-01-01T00:00:00.000Z",
"statusCode": 401,
"statusText": "Unauthorized",
"message": "Message Unauthorized",
"localization": "someone-method:error"
}
Forbidden
- application/json
- Schema
- Example (auto)
Schema
successboolean
Default value:
false
dataobject
Default value:
null
timestampstring
Default value:
2024-01-01T00:00:00.000Z
statusCodenumber
Default value:
403
statusTextstring
Default value:
Forbidden
messagestring
Default value:
Message Forbidden
localizationstring
Default value:
someone-method:error
{
"success": false,
"data": {},
"timestamp": "2024-01-01T00:00:00.000Z",
"statusCode": 403,
"statusText": "Forbidden",
"message": "Message Forbidden",
"localization": "someone-method:error"
}
Authorization: x-api-key
name: x-api-keytype: apiKeyin: header
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://api.cuemby.io/functions/v1/runtimes/:runtimeIdentifier/pause");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("x-api-key", "<x-api-key>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear