Credentials
Credentials are used to unlock protected resources such as applications, containers, and other assets. For more information, see Credentials.
Use to retrieve a list of all existing credentials.
Bearer authentication
Filter results by name.
Filter results by scope.
Filter results by project id. If scope filter is project, only assets from the specific project will be included in the response. Otherwise, the response will include project, department, cluster, tenant and system assets.
Filter results by department id. If scope filter is department, only assets from the specific department will be included in the response. Otherwise, the response will include department, cluster, tenant and system assets.
1Filter results by Universally Unique Identifier (UUID) of the cluster. If scope filter is cluster, only assets from the specific cluster will be included in the response. Otherwise, the response will include cluster, tenant and system assets.
d73a738f-fab3-430a-8fa3-5241493d7128Whether the query should include asset usage information as part of the response.
Whether the query should include asset status information as part of the response.
Request completed successfully.
Unauthorized
Forbidden
unexpected error
GET /api/v1/asset/credentials HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"entries": []
}Use to retrieve a list of S3-compatible access key credentials.
Bearer authentication
Filter results by name.
Filter results by scope.
Filter results by project id. If scope filter is project, only assets from the specific project will be included in the response. Otherwise, the response will include project, department, cluster, tenant and system assets.
Filter results by department id. If scope filter is department, only assets from the specific department will be included in the response. Otherwise, the response will include department, cluster, tenant and system assets.
1Filter results by Universally Unique Identifier (UUID) of the cluster. If scope filter is cluster, only assets from the specific cluster will be included in the response. Otherwise, the response will include cluster, tenant and system assets.
d73a738f-fab3-430a-8fa3-5241493d7128Whether the query should include asset usage information as part of the response.
Whether the query should include asset status information as part of the response.
Request completed successfully.
Bad request.
Unauthorized
Forbidden
unexpected error
GET /api/v1/asset/credentials/access-key HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"entries": []
}Use to create an S3-compatible access key credential.
Bearer authentication
Request accepted successfully.
Bad request.
Unauthorized
The specified resource already exists
unexpected error
POST /api/v1/asset/credentials/access-key HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 248
{
"meta": {
"name": "my-asset",
"scope": "tenant",
"workloadSupportedTypes": {
"workspace": false,
"training": false,
"inference": false,
"distributed": true,
"distFramework": "TF"
}
},
"spec": {
"existingSecretName": "text",
"accessKeyId": "text",
"secretAccessKey": "text"
}
}{
"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": {
"existingSecretName": "text",
"accessKeyId": "text",
"secretAccessKey": "text",
"keyId": 1
},
"usedBy": {
"workspaces": [],
"trainings": [],
"distributed": [],
"inferences": [],
"templates": [],
"assets": {
"environments": [],
"computes": [],
"datasources": []
}
},
"compliance": {
"imposed": true,
"compliance": true,
"reason": []
},
"status": {
"status": "Creating",
"issues": [
{
"scopeId": "text",
"scopeType": "system",
"issue": "ReplicationError"
}
],
"message": "text",
"url": "text"
},
"clusterInfo": {
"resources": [
{
"name": "password-credential-1"
}
]
}
}Use to retrieve the details of an S3-compatible access key credential by id.
Bearer authentication
Unique identifier of the asset.
Whether the query should include asset usage information as part of the response.
Whether the query should include asset status information as part of the response.
Request completed successfully.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
GET /api/v1/asset/credentials/access-key/{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": {
"existingSecretName": "text",
"accessKeyId": "text",
"secretAccessKey": "text",
"keyId": 1
},
"usedBy": {
"workspaces": [],
"trainings": [],
"distributed": [],
"inferences": [],
"templates": [],
"assets": {
"environments": [],
"computes": [],
"datasources": []
}
},
"compliance": {
"imposed": true,
"compliance": true,
"reason": []
},
"status": {
"status": "Creating",
"issues": [
{
"scopeId": "text",
"scopeType": "system",
"issue": "ReplicationError"
}
],
"message": "text",
"url": "text"
},
"clusterInfo": {
"resources": [
{
"name": "password-credential-1"
}
]
}
}Use to update the details of an S3-compatible access key credential by id.
Bearer authentication
Unique identifier of the asset.
Request accepted successfully.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
PUT /api/v1/asset/credentials/access-key/{AssetId} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 41
{
"meta": {
"description": "my-credentials"
}
}{
"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": {
"existingSecretName": "text",
"accessKeyId": "text",
"secretAccessKey": "text",
"keyId": 1
},
"usedBy": {
"workspaces": [],
"trainings": [],
"distributed": [],
"inferences": [],
"templates": [],
"assets": {
"environments": [],
"computes": [],
"datasources": []
}
},
"compliance": {
"imposed": true,
"compliance": true,
"reason": []
},
"status": {
"status": "Creating",
"issues": [
{
"scopeId": "text",
"scopeType": "system",
"issue": "ReplicationError"
}
],
"message": "text",
"url": "text"
},
"clusterInfo": {
"resources": [
{
"name": "password-credential-1"
}
]
}
}Use to delete an S3-compatible access key credential by id.
Bearer authentication
Unique identifier of the asset.
Accepted.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
The specified resource was not found.
unexpected error
DELETE /api/v1/asset/credentials/access-key/{AssetId} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"code": 202,
"message": "Request has been accepted."
}Use to retrieve a list of password credentials.
Bearer authentication
Filter results by name.
Filter results by scope.
Filter results by project id. If scope filter is project, only assets from the specific project will be included in the response. Otherwise, the response will include project, department, cluster, tenant and system assets.
Filter results by department id. If scope filter is department, only assets from the specific department will be included in the response. Otherwise, the response will include department, cluster, tenant and system assets.
1Filter results by Universally Unique Identifier (UUID) of the cluster. If scope filter is cluster, only assets from the specific cluster will be included in the response. Otherwise, the response will include cluster, tenant and system assets.
d73a738f-fab3-430a-8fa3-5241493d7128Whether the query should include asset usage information as part of the response.
Whether the query should include asset status information as part of the response.
Request completed successfully.
Bad request.
Unauthorized
Forbidden
unexpected error
GET /api/v1/asset/credentials/password HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"entries": []
}Use to create a userid / password credential.
Bearer authentication
Request accepted successfully.
Bad request.
Unauthorized
The specified resource already exists
unexpected error
POST /api/v1/asset/credentials/password HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 234
{
"meta": {
"name": "my-asset",
"scope": "tenant",
"workloadSupportedTypes": {
"workspace": false,
"training": false,
"inference": false,
"distributed": true,
"distFramework": "TF"
}
},
"spec": {
"existingSecretName": "text",
"user": "text",
"password": "text"
}
}{
"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": {
"existingSecretName": "text",
"user": "text",
"password": "text",
"keyId": 1
},
"usedBy": {
"workspaces": [],
"trainings": [],
"distributed": [],
"inferences": [],
"templates": [],
"assets": {
"environments": [],
"computes": [],
"datasources": []
}
},
"compliance": {
"imposed": true,
"compliance": true,
"reason": []
},
"status": {
"status": "Creating",
"issues": [
{
"scopeId": "text",
"scopeType": "system",
"issue": "ReplicationError"
}
],
"message": "text",
"url": "text"
},
"clusterInfo": {
"resources": [
{
"name": "password-credential-1"
}
]
}
}Use to retrieve the details of a userid / password credential asset by id.
Bearer authentication
Unique identifier of the asset.
Whether the query should include asset usage information as part of the response.
Whether the query should include asset status information as part of the response.
Request completed successfully.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
GET /api/v1/asset/credentials/password/{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": {
"existingSecretName": "text",
"user": "text",
"password": "text",
"keyId": 1
},
"usedBy": {
"workspaces": [],
"trainings": [],
"distributed": [],
"inferences": [],
"templates": [],
"assets": {
"environments": [],
"computes": [],
"datasources": []
}
},
"compliance": {
"imposed": true,
"compliance": true,
"reason": []
},
"status": {
"status": "Creating",
"issues": [
{
"scopeId": "text",
"scopeType": "system",
"issue": "ReplicationError"
}
],
"message": "text",
"url": "text"
},
"clusterInfo": {
"resources": [
{
"name": "password-credential-1"
}
]
}
}Use to Update the details of a password credential by id.
Bearer authentication
Unique identifier of the asset.
Request accepted successfully.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
PUT /api/v1/asset/credentials/password/{AssetId} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 41
{
"meta": {
"description": "my-credentials"
}
}{
"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": {
"existingSecretName": "text",
"user": "text",
"password": "text",
"keyId": 1
},
"usedBy": {
"workspaces": [],
"trainings": [],
"distributed": [],
"inferences": [],
"templates": [],
"assets": {
"environments": [],
"computes": [],
"datasources": []
}
},
"compliance": {
"imposed": true,
"compliance": true,
"reason": []
},
"status": {
"status": "Creating",
"issues": [
{
"scopeId": "text",
"scopeType": "system",
"issue": "ReplicationError"
}
],
"message": "text",
"url": "text"
},
"clusterInfo": {
"resources": [
{
"name": "password-credential-1"
}
]
}
}Udse to delete a password credential by id.
Bearer authentication
Unique identifier of the asset.
Accepted.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
The specified resource was not found.
unexpected error
DELETE /api/v1/asset/credentials/password/{AssetId} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"code": 202,
"message": "Request has been accepted."
}Use to retrieve a list of docker registry credentials.
Bearer authentication
Filter results by name.
Filter results by scope.
Filter results by project id. If scope filter is project, only assets from the specific project will be included in the response. Otherwise, the response will include project, department, cluster, tenant and system assets.
Filter results by department id. If scope filter is department, only assets from the specific department will be included in the response. Otherwise, the response will include department, cluster, tenant and system assets.
1Filter results by Universally Unique Identifier (UUID) of the cluster. If scope filter is cluster, only assets from the specific cluster will be included in the response. Otherwise, the response will include cluster, tenant and system assets.
d73a738f-fab3-430a-8fa3-5241493d7128Whether the query should include asset usage information as part of the response.
Whether the query should include asset status information as part of the response.
Request completed successfully.
Bad request.
Unauthorized
Forbidden
unexpected error
GET /api/v1/asset/credentials/docker-registry HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"entries": []
}Use to create a docker registry credential containing userid, password and url.
Bearer authentication
Request accepted successfully.
Bad request.
Unauthorized
The specified resource already exists
unexpected error
POST /api/v1/asset/credentials/docker-registry HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 247
{
"meta": {
"name": "my-asset",
"scope": "tenant",
"workloadSupportedTypes": {
"workspace": false,
"training": false,
"inference": false,
"distributed": true,
"distFramework": "TF"
}
},
"spec": {
"existingSecretName": "text",
"user": "text",
"password": "text",
"url": "text"
}
}{
"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": {
"existingSecretName": "text",
"user": "text",
"password": "text",
"url": "text",
"keyId": 1
},
"usedBy": {
"workspaces": [],
"trainings": [],
"distributed": [],
"inferences": [],
"templates": [],
"assets": {
"environments": [],
"computes": [],
"datasources": []
}
},
"compliance": {
"imposed": true,
"compliance": true,
"reason": []
},
"status": {
"status": "Creating",
"issues": [
{
"scopeId": "text",
"scopeType": "system",
"issue": "ReplicationError"
}
],
"message": "text",
"url": "text"
},
"clusterInfo": {
"resources": [
{
"name": "password-credential-1"
}
]
}
}Use to retrieve the details of a docker registry credential by id.
Bearer authentication
Unique identifier of the asset.
Whether the query should include asset usage information as part of the response.
Whether the query should include asset status information as part of the response.
Request completed successfully.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
GET /api/v1/asset/credentials/docker-registry/{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": {
"existingSecretName": "text",
"user": "text",
"password": "text",
"url": "text",
"keyId": 1
},
"usedBy": {
"workspaces": [],
"trainings": [],
"distributed": [],
"inferences": [],
"templates": [],
"assets": {
"environments": [],
"computes": [],
"datasources": []
}
},
"compliance": {
"imposed": true,
"compliance": true,
"reason": []
},
"status": {
"status": "Creating",
"issues": [
{
"scopeId": "text",
"scopeType": "system",
"issue": "ReplicationError"
}
],
"message": "text",
"url": "text"
},
"clusterInfo": {
"resources": [
{
"name": "password-credential-1"
}
]
}
}Use to updates the details of a docker registry credentials by id.
Bearer authentication
Unique identifier of the asset.
Request accepted successfully.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
PUT /api/v1/asset/credentials/docker-registry/{AssetId} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 41
{
"meta": {
"description": "my-credentials"
}
}{
"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": {
"existingSecretName": "text",
"user": "text",
"password": "text",
"url": "text",
"keyId": 1
},
"usedBy": {
"workspaces": [],
"trainings": [],
"distributed": [],
"inferences": [],
"templates": [],
"assets": {
"environments": [],
"computes": [],
"datasources": []
}
},
"compliance": {
"imposed": true,
"compliance": true,
"reason": []
},
"status": {
"status": "Creating",
"issues": [
{
"scopeId": "text",
"scopeType": "system",
"issue": "ReplicationError"
}
],
"message": "text",
"url": "text"
},
"clusterInfo": {
"resources": [
{
"name": "password-credential-1"
}
]
}
}Use to deletes a docker registry credential by id.
Bearer authentication
Unique identifier of the asset.
Accepted.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
The specified resource was not found.
unexpected error
DELETE /api/v1/asset/credentials/docker-registry/{AssetId} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"code": 202,
"message": "Request has been accepted."
}Retrieve a list of generic-secret assets.
Bearer authentication
Filter results by name.
Filter results by scope.
Filter results by project id. If scope filter is project, only assets from the specific project will be included in the response. Otherwise, the response will include project, department, cluster, tenant and system assets.
Filter results by department id. If scope filter is department, only assets from the specific department will be included in the response. Otherwise, the response will include department, cluster, tenant and system assets.
1Filter results by Universally Unique Identifier (UUID) of the cluster. If scope filter is cluster, only assets from the specific cluster will be included in the response. Otherwise, the response will include cluster, tenant and system assets.
d73a738f-fab3-430a-8fa3-5241493d7128Whether the query should include asset usage information as part of the response.
Whether the query should include asset status information as part of the response.
Request completed successfully.
Bad request.
Unauthorized
Forbidden
unexpected error
GET /api/v1/asset/credentials/generic-secret HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"entries": []
}Use to create a generic-secret asset.
Bearer authentication
Request accepted successfully.
Bad request.
Unauthorized
Forbidden
The specified resource already exists
unexpected error
POST /api/v1/asset/credentials/generic-secret HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 261
{
"meta": {
"name": "my-asset",
"scope": "tenant",
"workloadSupportedTypes": {
"workspace": false,
"training": false,
"inference": false,
"distributed": true,
"distFramework": "TF"
}
},
"spec": {
"existingSecretName": "text",
"keyValuePairs": [
{
"key": "secret-key",
"value": "my-secret"
}
]
}
}{
"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": {
"existingSecretName": "text",
"keyValuePairs": [
{
"key": "secret-key",
"value": "my-secret"
}
],
"keyId": 1
},
"usedBy": {
"workspaces": [],
"trainings": [],
"distributed": [],
"inferences": [],
"templates": [],
"assets": {
"environments": [],
"computes": [],
"datasources": []
}
},
"compliance": {
"imposed": true,
"compliance": true,
"reason": []
},
"status": {
"status": "Creating",
"issues": [
{
"scopeId": "text",
"scopeType": "system",
"issue": "ReplicationError"
}
],
"message": "text",
"url": "text"
},
"clusterInfo": {
"resources": [
{
"name": "password-credential-1"
}
]
}
}Returns the details of a generic-secret asset, by id.
Bearer authentication
Unique identifier of the asset.
Whether the query should include asset usage information as part of the response.
Whether the query should include asset status information as part of the response.
Request completed successfully.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
GET /api/v1/asset/credentials/generic-secret/{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": {
"existingSecretName": "text",
"keyValuePairs": [
{
"key": "secret-key",
"value": "my-secret"
}
],
"keyId": 1
},
"usedBy": {
"workspaces": [],
"trainings": [],
"distributed": [],
"inferences": [],
"templates": [],
"assets": {
"environments": [],
"computes": [],
"datasources": []
}
},
"compliance": {
"imposed": true,
"compliance": true,
"reason": []
},
"status": {
"status": "Creating",
"issues": [
{
"scopeId": "text",
"scopeType": "system",
"issue": "ReplicationError"
}
],
"message": "text",
"url": "text"
},
"clusterInfo": {
"resources": [
{
"name": "password-credential-1"
}
]
}
}Updates the details of a generic-secret asset, by id.
Bearer authentication
Unique identifier of the asset.
Request accepted successfully.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
PUT /api/v1/asset/credentials/generic-secret/{AssetId} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 41
{
"meta": {
"description": "my-credentials"
}
}{
"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": {
"existingSecretName": "text",
"keyValuePairs": [
{
"key": "secret-key",
"value": "my-secret"
}
],
"keyId": 1
},
"usedBy": {
"workspaces": [],
"trainings": [],
"distributed": [],
"inferences": [],
"templates": [],
"assets": {
"environments": [],
"computes": [],
"datasources": []
}
},
"compliance": {
"imposed": true,
"compliance": true,
"reason": []
},
"status": {
"status": "Creating",
"issues": [
{
"scopeId": "text",
"scopeType": "system",
"issue": "ReplicationError"
}
],
"message": "text",
"url": "text"
},
"clusterInfo": {
"resources": [
{
"name": "password-credential-1"
}
]
}
}Use to delete a generic-secret asset, by id.
Bearer authentication
Unique identifier of the asset.
No Content.
No content
Bad request.
Unauthorized
Forbidden
The specified resource was not found
The specified resource was not found.
unexpected error
DELETE /api/v1/asset/credentials/generic-secret/{AssetId} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Retrieve a list of ngcApiKey assets.
Bearer authentication
Filter results by name.
Filter results by scope.
Filter results by project id. If scope filter is project, only assets from the specific project will be included in the response. Otherwise, the response will include project, department, cluster, tenant and system assets.
Filter results by department id. If scope filter is department, only assets from the specific department will be included in the response. Otherwise, the response will include department, cluster, tenant and system assets.
1Filter results by Universally Unique Identifier (UUID) of the cluster. If scope filter is cluster, only assets from the specific cluster will be included in the response. Otherwise, the response will include cluster, tenant and system assets.
d73a738f-fab3-430a-8fa3-5241493d7128Whether the query should include asset usage information as part of the response.
Whether the query should include asset status information as part of the response.
Request completed successfully.
Bad request.
Unauthorized
Forbidden
unexpected error
GET /api/v1/asset/credentials/ngc-api-key HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"entries": []
}Use to create a ngc-api-key asset.
Bearer authentication
Request accepted successfully.
Bad request.
Unauthorized
Forbidden
The specified resource already exists
unexpected error
POST /api/v1/asset/credentials/ngc-api-key HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 195
{
"meta": {
"name": "my-asset",
"scope": "tenant",
"workloadSupportedTypes": {
"workspace": false,
"training": false,
"inference": false,
"distributed": true,
"distFramework": "TF"
}
},
"spec": {
"ngc_api_key": "text"
}
}{
"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": {
"ngc_api_key": "text",
"keyId": 1
},
"usedBy": {
"workspaces": [],
"trainings": [],
"distributed": [],
"inferences": [],
"templates": [],
"assets": {
"environments": [],
"computes": [],
"datasources": []
}
},
"compliance": {
"imposed": true,
"compliance": true,
"reason": []
},
"status": {
"status": "Creating",
"issues": [
{
"scopeId": "text",
"scopeType": "system",
"issue": "ReplicationError"
}
],
"message": "text",
"url": "text"
},
"clusterInfo": {
"resources": [
{
"name": "password-credential-1"
}
]
}
}Returns the details of a ngc-api-key asset, by id.
Bearer authentication
Unique identifier of the asset.
Whether the query should include asset usage information as part of the response.
Whether the query should include asset status information as part of the response.
Request completed successfully.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
GET /api/v1/asset/credentials/ngc-api-key/{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": {
"ngc_api_key": "text",
"keyId": 1
},
"usedBy": {
"workspaces": [],
"trainings": [],
"distributed": [],
"inferences": [],
"templates": [],
"assets": {
"environments": [],
"computes": [],
"datasources": []
}
},
"compliance": {
"imposed": true,
"compliance": true,
"reason": []
},
"status": {
"status": "Creating",
"issues": [
{
"scopeId": "text",
"scopeType": "system",
"issue": "ReplicationError"
}
],
"message": "text",
"url": "text"
},
"clusterInfo": {
"resources": [
{
"name": "password-credential-1"
}
]
}
}Updates the details of a ngc-api-key asset, by id.
Bearer authentication
Unique identifier of the asset.
Request accepted successfully.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
PUT /api/v1/asset/credentials/ngc-api-key/{AssetId} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 41
{
"meta": {
"description": "my-credentials"
}
}{
"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": {
"ngc_api_key": "text",
"keyId": 1
},
"usedBy": {
"workspaces": [],
"trainings": [],
"distributed": [],
"inferences": [],
"templates": [],
"assets": {
"environments": [],
"computes": [],
"datasources": []
}
},
"compliance": {
"imposed": true,
"compliance": true,
"reason": []
},
"status": {
"status": "Creating",
"issues": [
{
"scopeId": "text",
"scopeType": "system",
"issue": "ReplicationError"
}
],
"message": "text",
"url": "text"
},
"clusterInfo": {
"resources": [
{
"name": "password-credential-1"
}
]
}
}Use to delete a ngc-api-key asset, by id.
Bearer authentication
Unique identifier of the asset.
No Content.
No content
Bad request.
Unauthorized
Forbidden
The specified resource was not found
The specified resource was not found.
unexpected error
DELETE /api/v1/asset/credentials/ngc-api-key/{AssetId} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Last updated