-
Notifications
You must be signed in to change notification settings - Fork 179
Expand file tree
/
Copy pathacts@{actorId}@builds@default.yaml
More file actions
88 lines (85 loc) · 3.13 KB
/
acts@{actorId}@builds@default.yaml
File metadata and controls
88 lines (85 loc) · 3.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
get:
tags:
- Actors/Actor builds
summary: Get default build
description: |
Get the default build for an Actor.
Use the optional `waitForFinish` parameter to synchronously wait for the build to finish.
This avoids the need for periodic polling when waiting for the build to complete.
This endpoint does not require an authentication token. Instead, calls are authenticated using the Actor's unique ID.
However, if you access the endpoint without a token, certain attributes (e.g., `usageUsd` and `usageTotalUsd`) will be hidden.
operationId: act_build_default_get
security: []
parameters:
- name: actorId
in: path
description: Actor ID or a tilde-separated owner's username and Actor name.
required: true
style: simple
schema:
type: string
example: janedoe~my-actor
- name: waitForFinish
in: query
description: |
The maximum number of seconds the server waits for the build to finish.
If the build finishes within this time, the returned build object will have a terminal status (e.g. `SUCCEEDED`),
otherwise it will have a transitional status (e.g. `RUNNING`).
By default it is `0`, the maximum value is `60`. <!-- MAX_ACTOR_JOB_ASYNC_WAIT_SECS -->
style: form
explode: true
schema:
type: number
format: double
example: 60
responses:
"200":
description: ""
headers: {}
content:
application/json:
schema:
$ref: ../../components/schemas/actor-builds/BuildResponse.yaml
example:
data:
id: HG7ML7M8z78YcAPEB
actId: janedoe~my-actor
userId: klmdEpoiojmdEMlk3
startedAt: "2019-11-30T07:34:24.202Z"
finishedAt: "2019-12-12T09:30:12.202Z"
status: SUCCEEDED
meta:
origin: WEB
clientIp: 172.234.12.34
userAgent: Mozilla/5.0 (iPad)
stats:
durationMillis: 1000
runTimeSecs: 45.718
computeUnits: 0.012699444444444444
options:
useCache: false
betaPackages: false
memoryMbytes: 1024
diskMbytes: 2048
usage:
ACTOR_COMPUTE_UNITS: 0.08
usageTotalUsd: 0.02
usageUsd:
ACTOR_COMPUTE_UNITS: 0.02
inputSchema: '{\n \"title\": \"Schema for ... }'
readme: '# Magic Actor\nThis Actor is magic.'
buildNumber: 0.1.1
"400":
$ref: ../../components/responses/BadRequest.yaml
"401":
$ref: ../../components/responses/Unauthorized.yaml
"403":
$ref: ../../components/responses/Forbidden.yaml
"404":
$ref: ../../components/responses/NotFound.yaml
x-js-parent: ActorClient
x-js-name: defaultBuild
x-js-doc-url: https://docs.apify.com/api/client/js/reference/class/ActorClient#defaultBuild
x-py-parent: ActorClient
x-py-name: default_build
x-py-doc-url: https://docs.apify.com/api/client/python/reference/class/ActorClient#default_build