diff --git a/specification/ai/data-plane/Azure.AI.Projects/preview/2025-05-15-preview/azure-ai-projects-1dp.json b/specification/ai/data-plane/Azure.AI.Projects/preview/2025-05-15-preview/azure-ai-projects-1dp.json index 7f03c21acdba..07c1ebad19f7 100644 --- a/specification/ai/data-plane/Azure.AI.Projects/preview/2025-05-15-preview/azure-ai-projects-1dp.json +++ b/specification/ai/data-plane/Azure.AI.Projects/preview/2025-05-15-preview/azure-ai-projects-1dp.json @@ -605,6 +605,60 @@ } } }, + "/datasets/{name}/versions/{version}/credentials": { + "post": { + "operationId": "Datasets_GetCredentials", + "description": "Get download sas for dataset version.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "name", + "in": "path", + "description": "The name of the resource", + "required": true, + "type": "string" + }, + { + "name": "version", + "in": "path", + "description": "The specific version id of the DatasetVersion to operate on.", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "description": "Parameters for the action", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/AssetCredentialResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" + }, + "headers": { + "x-ms-error-code": { + "type": "string", + "description": "String error code indicating what went wrong." + } + } + } + } + } + }, "/datasets/{name}/versions/{version}/startPendingUpload": { "post": { "operationId": "Datasets_StartPendingUploadVersion", @@ -1403,6 +1457,19 @@ ], "x-ms-discriminator-value": "ApiKey" }, + "AssetCredentialResponse": { + "type": "object", + "description": "Represents a reference to a blob for consumption", + "properties": { + "blobReferenceForConsumption": { + "$ref": "#/definitions/BlobReferenceForConsumption", + "description": "Credential info to access the storage account." + } + }, + "required": [ + "blobReferenceForConsumption" + ] + }, "AttackStrategy": { "type": "string", "description": "Strategies for attacks.", diff --git a/specification/ai/data-plane/Azure.AI.Projects/stable/2025-05-01/azure-ai-projects-1dp.json b/specification/ai/data-plane/Azure.AI.Projects/stable/2025-05-01/azure-ai-projects-1dp.json index f9d8e07f0c30..7c1b91502f14 100644 --- a/specification/ai/data-plane/Azure.AI.Projects/stable/2025-05-01/azure-ai-projects-1dp.json +++ b/specification/ai/data-plane/Azure.AI.Projects/stable/2025-05-01/azure-ai-projects-1dp.json @@ -605,6 +605,60 @@ } } }, + "/datasets/{name}/versions/{version}/credentials": { + "post": { + "operationId": "Datasets_GetCredentials", + "description": "Get download sas for dataset version.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "name", + "in": "path", + "description": "The name of the resource", + "required": true, + "type": "string" + }, + { + "name": "version", + "in": "path", + "description": "The specific version id of the DatasetVersion to operate on.", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "description": "Parameters for the action", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/AssetCredentialResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" + }, + "headers": { + "x-ms-error-code": { + "type": "string", + "description": "String error code indicating what went wrong." + } + } + } + } + } + }, "/datasets/{name}/versions/{version}/startPendingUpload": { "post": { "operationId": "Datasets_StartPendingUploadVersion", @@ -1121,6 +1175,19 @@ ], "x-ms-discriminator-value": "ApiKey" }, + "AssetCredentialResponse": { + "type": "object", + "description": "Represents a reference to a blob for consumption", + "properties": { + "blobReferenceForConsumption": { + "$ref": "#/definitions/BlobReferenceForConsumption", + "description": "Credential info to access the storage account." + } + }, + "required": [ + "blobReferenceForConsumption" + ] + }, "Azure.Core.Foundations.Error": { "type": "object", "description": "The error object.", diff --git a/specification/ai/data-plane/Azure.AI.Projects/stable/latest/azure-ai-projects-1dp.json b/specification/ai/data-plane/Azure.AI.Projects/stable/latest/azure-ai-projects-1dp.json index 1e7bbaf6d488..31fb0938415a 100644 --- a/specification/ai/data-plane/Azure.AI.Projects/stable/latest/azure-ai-projects-1dp.json +++ b/specification/ai/data-plane/Azure.AI.Projects/stable/latest/azure-ai-projects-1dp.json @@ -605,6 +605,60 @@ } } }, + "/datasets/{name}/versions/{version}/credentials": { + "post": { + "operationId": "Datasets_GetCredentials", + "description": "Get download sas for dataset version.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "name", + "in": "path", + "description": "The name of the resource", + "required": true, + "type": "string" + }, + { + "name": "version", + "in": "path", + "description": "The specific version id of the DatasetVersion to operate on.", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "description": "Parameters for the action", + "required": true, + "schema": { + "type": "object" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/AssetCredentialResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/Azure.Core.Foundations.ErrorResponse" + }, + "headers": { + "x-ms-error-code": { + "type": "string", + "description": "String error code indicating what went wrong." + } + } + } + } + } + }, "/datasets/{name}/versions/{version}/startPendingUpload": { "post": { "operationId": "Datasets_StartPendingUploadVersion", @@ -1121,6 +1175,19 @@ ], "x-ms-discriminator-value": "ApiKey" }, + "AssetCredentialResponse": { + "type": "object", + "description": "Represents a reference to a blob for consumption", + "properties": { + "blobReferenceForConsumption": { + "$ref": "#/definitions/BlobReferenceForConsumption", + "description": "Credential info to access the storage account." + } + }, + "required": [ + "blobReferenceForConsumption" + ] + }, "Azure.Core.Foundations.Error": { "type": "object", "description": "The error object.",