Use a ConfigMap as a data source location for data sets that are relevant to the workload being submitted.
Retrieve a list of ConfigMap datasource assets.
Request completed successfully.
Unauthorized
Forbidden
unexpected error
{- "entries": [
- {
- "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": {
- "configMap": "string",
- "mountPath": "string"
}, - "usedBy": {
- "workspaces": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-workload-name",
- "status": "string"
}
], - "trainings": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-workload-name",
- "status": "string"
}
], - "distributed": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-workload-name",
- "status": "string"
}
], - "inferences": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-workload-name",
- "status": "string"
}
], - "templates": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-asset"
}
], - "assets": {
- "environment": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-asset",
- "toolTypes": [
- "jupyter-notebook"
]
}, - "compute": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-asset"
}, - "datasources": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-asset",
- "kind": "compute"
}
]
}
}, - "usageTimes": {
- "lastUsedByWorkload": "2019-08-24T14:15:22Z"
}, - "compliance": {
- "imposed": true,
- "compliance": true,
- "reason": [
- {
- "field": "string",
- "details": "string"
}
]
}, - "status": {
- "status": "Issues found",
- "issues": [
- {
- "scopeId": "string",
- "scopeType": "system",
- "issue": "ReplicationError"
}
], - "message": "string",
- "url": "string"
}
}
]
}
Use to create a ConfigMap datasource asset.
required | object (AssetCreationRequest) |
required | object or null (ConfigMapAssetSpec) |
Request accepted successfully.
Bad request.
Unauthorized
Forbidden
The specified resource already exists
unexpected error
{- "meta": {
- "name": "my-asset",
- "scope": "tenant",
- "workloadSupportedTypes": {
- "workspace": false,
- "training": false,
- "inference": false,
- "distributed": true,
- "distFramework": "TF"
}
}, - "spec": {
- "configMap": "string",
- "mountPath": "string"
}
}
{- "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": {
- "configMap": "string",
- "mountPath": "string"
}, - "usedBy": {
- "workspaces": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-workload-name",
- "status": "string"
}
], - "trainings": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-workload-name",
- "status": "string"
}
], - "distributed": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-workload-name",
- "status": "string"
}
], - "inferences": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-workload-name",
- "status": "string"
}
], - "templates": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-asset"
}
], - "assets": {
- "environment": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-asset",
- "toolTypes": [
- "jupyter-notebook"
]
}, - "compute": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-asset"
}, - "datasources": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-asset",
- "kind": "compute"
}
]
}
}, - "usageTimes": {
- "lastUsedByWorkload": "2019-08-24T14:15:22Z"
}, - "compliance": {
- "imposed": true,
- "compliance": true,
- "reason": [
- {
- "field": "string",
- "details": "string"
}
]
}, - "status": {
- "status": "Issues found",
- "issues": [
- {
- "scopeId": "string",
- "scopeType": "system",
- "issue": "ReplicationError"
}
], - "message": "string",
- "url": "string"
}
}
Retrieve the details of ConfigMap datasource asset by id.
Request completed successfully.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
{- "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": {
- "configMap": "string",
- "mountPath": "string"
}, - "usedBy": {
- "workspaces": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-workload-name",
- "status": "string"
}
], - "trainings": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-workload-name",
- "status": "string"
}
], - "distributed": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-workload-name",
- "status": "string"
}
], - "inferences": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-workload-name",
- "status": "string"
}
], - "templates": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-asset"
}
], - "assets": {
- "environment": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-asset",
- "toolTypes": [
- "jupyter-notebook"
]
}, - "compute": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-asset"
}, - "datasources": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-asset",
- "kind": "compute"
}
]
}
}, - "usageTimes": {
- "lastUsedByWorkload": "2019-08-24T14:15:22Z"
}, - "compliance": {
- "imposed": true,
- "compliance": true,
- "reason": [
- {
- "field": "string",
- "details": "string"
}
]
}, - "status": {
- "status": "Issues found",
- "issues": [
- {
- "scopeId": "string",
- "scopeType": "system",
- "issue": "ReplicationError"
}
], - "message": "string",
- "url": "string"
}
}
Use to update the details of a ConfigMap datasource asset by id.
Request accepted successfully.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
{- "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": {
- "configMap": "string",
- "mountPath": "string"
}, - "usedBy": {
- "workspaces": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-workload-name",
- "status": "string"
}
], - "trainings": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-workload-name",
- "status": "string"
}
], - "distributed": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-workload-name",
- "status": "string"
}
], - "inferences": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-workload-name",
- "status": "string"
}
], - "templates": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-asset"
}
], - "assets": {
- "environment": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-asset",
- "toolTypes": [
- "jupyter-notebook"
]
}, - "compute": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-asset"
}, - "datasources": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "my-asset",
- "kind": "compute"
}
]
}
}, - "usageTimes": {
- "lastUsedByWorkload": "2019-08-24T14:15:22Z"
}, - "compliance": {
- "imposed": true,
- "compliance": true,
- "reason": [
- {
- "field": "string",
- "details": "string"
}
]
}, - "status": {
- "status": "Issues found",
- "issues": [
- {
- "scopeId": "string",
- "scopeType": "system",
- "issue": "ReplicationError"
}
], - "message": "string",
- "url": "string"
}
}
Use to delete a ConfigMap datasource asset by id.
Accepted.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
{- "code": 202,
- "message": "Request has been accepted."
}