prefect.server.api.artifacts
Routes for interacting with artifact objects.
count_artifacts(artifacts=None, flow_runs=None, task_runs=None, flows=None, deployments=None, db=Depends(provide_database_interface))
async
Count artifacts from the database.
Source code in src/prefect/server/api/artifacts.py
142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 |
|
count_latest_artifacts(artifacts=None, flow_runs=None, task_runs=None, flows=None, deployments=None, db=Depends(provide_database_interface))
async
Count artifacts from the database.
Source code in src/prefect/server/api/artifacts.py
165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 |
|
delete_artifact(artifact_id=Path(..., description='The ID of the artifact to delete.', alias='id'), db=Depends(provide_database_interface))
async
Delete an artifact from the database.
Source code in src/prefect/server/api/artifacts.py
209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 |
|
read_artifact(artifact_id=Path(..., description='The ID of the artifact to retrieve.', alias='id'), db=Depends(provide_database_interface))
async
Retrieve an artifact from the database.
Source code in src/prefect/server/api/artifacts.py
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
|
read_artifacts(sort=Body(sorting.ArtifactSort.ID_DESC), limit=dependencies.LimitBody(), offset=Body(0, ge=0), artifacts=None, flow_runs=None, task_runs=None, flows=None, deployments=None, db=Depends(provide_database_interface))
async
Retrieve artifacts from the database.
Source code in src/prefect/server/api/artifacts.py
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 |
|
read_latest_artifact(key=Path(..., description='The key of the artifact to retrieve.'), db=Depends(provide_database_interface))
async
Retrieve the latest artifact from the artifact table.
Source code in src/prefect/server/api/artifacts.py
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
|
read_latest_artifacts(sort=Body(sorting.ArtifactCollectionSort.ID_DESC), limit=dependencies.LimitBody(), offset=Body(0, ge=0), artifacts=None, flow_runs=None, task_runs=None, flows=None, deployments=None, db=Depends(provide_database_interface))
async
Retrieve artifacts from the database.
Source code in src/prefect/server/api/artifacts.py
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 |
|
update_artifact(artifact, artifact_id=Path(..., description='The ID of the artifact to update.', alias='id'), db=Depends(provide_database_interface))
async
Update an artifact in the database.
Source code in src/prefect/server/api/artifacts.py
188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 |
|