Registry
Use an images registry to enable the listting of repositories and tags that can be used as a data source location for data sets that are relevant to the workload being submitted.
Retrieve a list of registries assets.
Bearer authentication
Filter results by name.
Request completed successfully.
Unauthorized
Forbidden
unexpected error
GET /api/v1/asset/registries HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"entries": []
}Use to create a registry asset containing a registry base url and credentials.
Bearer authentication
Request accepted successfully.
Bad request.
Unauthorized
Forbidden
The specified resource already exists
unexpected error
POST /api/v1/asset/registries HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 269
{
"meta": {
"name": "my-asset",
"scope": "tenant",
"workloadSupportedTypes": {
"workspace": false,
"training": false,
"inference": false,
"distributed": true,
"distFramework": "TF"
}
},
"spec": {
"url": "https://hub.docker.com/",
"credentialKind": "password",
"user": "admin",
"password": 12345678
}
}{
"meta": {
"name": "my-asset",
"scope": "tenant",
"id": "a418ed33-9399-48c0-a890-122cadd13bfd",
"kind": "s3",
"createdBy": "test@run.ai",
"createdAt": "2023-02-23T14:25:36.707685Z",
"updatedBy": "test@run.ai",
"updatedAt": "2023-02-23T14:25:36.707685Z",
"workloadSupportedTypes": {
"workspace": false,
"training": false,
"distributed": true,
"distFramework": "TF"
}
},
"spec": {
"url": "https://hub.docker.com/",
"credentialKind": "password",
"user": "admin",
"password": 12345678
}
}Retrieve a registry asset by id.
Bearer authentication
Unique identifier of the asset.
Request completed successfully.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
GET /api/v1/asset/registries/{AssetId} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"meta": {
"name": "my-asset",
"scope": "tenant",
"id": "a418ed33-9399-48c0-a890-122cadd13bfd",
"kind": "s3",
"createdBy": "test@run.ai",
"createdAt": "2023-02-23T14:25:36.707685Z",
"updatedBy": "test@run.ai",
"updatedAt": "2023-02-23T14:25:36.707685Z",
"workloadSupportedTypes": {
"workspace": false,
"training": false,
"distributed": true,
"distFramework": "TF"
}
},
"spec": {
"url": "https://hub.docker.com/",
"credentialKind": "password",
"user": "admin",
"password": 12345678
}
}Use to update a registry asset containing registry base url and credentials by id.
Bearer authentication
Unique identifier of the asset.
Request accepted successfully.
Bad request.
Unauthorized
Forbidden
The specified resource already exists
unexpected error
PUT /api/v1/asset/registries/{AssetId} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 28
{
"meta": {
"name": "my-asset"
}
}{
"meta": {
"name": "my-asset",
"scope": "tenant",
"id": "a418ed33-9399-48c0-a890-122cadd13bfd",
"kind": "s3",
"createdBy": "test@run.ai",
"createdAt": "2023-02-23T14:25:36.707685Z",
"updatedBy": "test@run.ai",
"updatedAt": "2023-02-23T14:25:36.707685Z",
"workloadSupportedTypes": {
"workspace": false,
"training": false,
"distributed": true,
"distFramework": "TF"
}
},
"spec": {
"url": "https://hub.docker.com/",
"credentialKind": "password",
"user": "admin",
"password": 12345678
}
}Use to delete a registry asset containing registry base url and credentials by id.
Bearer authentication
Unique identifier of the asset.
Registry has been deleted.
No content
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
DELETE /api/v1/asset/registries/{AssetId} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Retrieve a list of repositories from a registry asset.
Bearer authentication
Unique identifier of the asset.
Filter results that contains searchName.
Request completed successfully.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
GET /api/v1/asset/registries/{AssetId}/repositories HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"repositories": [
"text"
]
}Retrieve a list of repository tags from a repository asset.
Bearer authentication
Unique identifier of the asset.
The repository name that its tags are requested.
Filter results that contains searchName.
Request completed successfully.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
GET /api/v1/asset/registries/{AssetId}/repositories/tags?repository=text HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"name": "text",
"tags": [
"text"
]
}Last updated