-
Notifications
You must be signed in to change notification settings - Fork 179
Expand file tree
/
Copy pathacts@{actorId}@builds.yaml
More file actions
224 lines (222 loc) · 7.27 KB
/
acts@{actorId}@builds.yaml
File metadata and controls
224 lines (222 loc) · 7.27 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
get:
tags:
- Actors/Actor builds
summary: Get list of builds
description: |
Gets the list of builds of a specific Actor. The response is a JSON with the
list of objects, where each object contains basic information about a single build.
The endpoint supports pagination using the `limit` and `offset` parameters
and it will not return more than 1000 records.
By default, the records are sorted by the `startedAt` field in ascending order,
therefore you can use pagination to incrementally fetch all builds while new
ones are still being started. To sort the records in descending order, use
the `desc=1` parameter.
operationId: act_builds_get
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: offset
in: query
description: |
Number of records that should be skipped at the start. The default value is `0`.
style: form
explode: true
schema:
type: number
format: double
example: 10
- name: limit
in: query
description: |
Maximum number of records to return. The default value as well as the maximum is `1000`.
style: form
explode: true
schema:
type: number
format: double
example: 99
- name: desc
in: query
description: |
If `true` or `1` then the objects are sorted by the `startedAt` field in
descending order. By default, they are sorted in ascending order.
style: form
explode: true
schema:
anyOf:
- type: boolean
- type: integer
enum: [0, 1]
example: true
responses:
"200":
description: ""
headers: {}
content:
application/json:
schema:
$ref: ../../components/schemas/actor-builds/ListOfBuildsResponse.yaml
"400":
$ref: ../../components/responses/BadRequest.yaml
"401":
$ref: ../../components/responses/Unauthorized.yaml
"403":
$ref: ../../components/responses/Forbidden.yaml
"404":
$ref: ../../components/responses/NotFound.yaml
deprecated: false
x-legacy-doc-urls:
- https://docs.apify.com/api/v2#/reference/actors/build-collection/get-list-of-builds
- https://docs.apify.com/api/v2#/reference/actors/get-list-of-builds
- https://docs.apify.com/api/v2#tag/ActorsBuild-collection/operation/act_builds_get
x-js-parent: BuildCollectionClient
x-js-name: list
x-js-doc-url: https://docs.apify.com/api/client/js/reference/class/BuildCollectionClient#list
x-py-parent: BuildCollectionClientAsync
x-py-name: list
x-py-doc-url: https://docs.apify.com/api/client/python/reference/class/BuildCollectionClientAsync#list
post:
tags:
- Actors/Actor builds
summary: Build Actor
description: |
Builds an Actor.
The response is the build object as returned by the
[Get build](#/reference/actors/build-object/get-build) endpoint.
operationId: act_builds_post
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: version
in: query
description: Actor version number to be built.
required: true
style: form
explode: true
schema:
type: string
example: "0.0"
- name: useCache
in: query
description: |
If `true` or `1`, the system will use a cache to speed up the build
process. By default, cache is not used.
style: form
explode: true
schema:
anyOf:
- type: boolean
- type: integer
enum: [0, 1]
example: true
- name: betaPackages
in: query
description: |
If `true` or `1` then the Actor is built with beta versions of Apify NPM
packages. By default, the build uses `latest` packages.
style: form
explode: true
schema:
anyOf:
- type: boolean
- type: integer
enum: [0, 1]
example: true
- name: tag
in: query
description: |
Tag to be applied to the build on success. By default, the tag is taken
from Actor version's `buildTag` property.
style: form
explode: true
schema:
type: string
example: latest
- name: waitForFinish
in: query
description: |
The maximum number of seconds the server waits for the build to finish.
By default it is `0`, the maximum value is `60`. <!-- MAX_ACTOR_JOB_ASYNC_WAIT_SECS -->
If the build finishes in time then the returned build object will have a terminal status (e.g. `SUCCEEDED`),
otherwise it will have a transitional status (e.g. `RUNNING`).
style: form
explode: true
schema:
type: number
format: double
example: 60
responses:
"201":
description: ""
headers:
Location:
content:
text/plain:
schema:
type: string
example: >-
https://api.apify.com/v2/acts/zdc3Pyhyz3m8vjDeM/runs/HG7ML7M8z78YcAPEB
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
deprecated: false
x-legacy-doc-urls:
- https://docs.apify.com/api/v2#/reference/actors/build-collection/build-actor
- https://docs.apify.com/api/v2#/reference/actors/build-actor
- https://docs.apify.com/api/v2#tag/ActorsBuild-collection/operation/act_builds_post
x-js-parent: ActorClient
x-js-name: build
x-js-doc-url: https://docs.apify.com/api/client/js/reference/class/ActorClient#build
x-py-parent: ActorClientAsync
x-py-name: build
x-py-doc-url: https://docs.apify.com/api/client/python/reference/class/ActorClientAsync#build