Code Versions - Get
Versie ophalen.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/codes/{name}/versions/{version}?api-version=2025-06-01
URI-parameters
Name | In | Vereist | Type | Description |
---|---|---|---|---|
name
|
path | True |
string |
Containernaam. Deze is hoofdlettergevoelig. |
resource
|
path | True |
string minLength: 1maxLength: 90 |
De naam van de resourcegroep. De naam is hoofdletterongevoelig. |
subscription
|
path | True |
string minLength: 1 |
De id van het doelabonnement. |
version
|
path | True |
string |
Versie-id. Deze is hoofdlettergevoelig. |
workspace
|
path | True |
string pattern: ^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$ |
Naam van Azure Machine Learning-werkruimte. |
api-version
|
query | True |
string minLength: 1 |
De API-versie die voor deze bewerking moet worden gebruikt. |
Antwoorden
Name | Type | Description |
---|---|---|
200 OK |
Geslaagd |
|
Other Status Codes |
Fout |
Voorbeelden
Get Workspace Code Version.
Voorbeeldaanvraag
GET https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/test-rg/providers/Microsoft.MachineLearningServices/workspaces/my-aml-workspace/codes/string/versions/string?api-version=2025-06-01
Voorbeeldrespons
{
"id": "string",
"name": "string",
"type": "string",
"properties": {
"description": "string",
"tags": {
"string": "string"
},
"properties": {
"string": "string"
},
"isAnonymous": false,
"codeUri": "https://blobStorage/folderName"
},
"systemData": {
"createdAt": "2020-01-01T12:34:56.999Z",
"createdBy": "string",
"createdByType": "User",
"lastModifiedAt": "2020-01-01T12:34:56.999Z",
"lastModifiedBy": "string",
"lastModifiedByType": "User"
}
}
Definities
Name | Description |
---|---|
Asset |
Inrichtingsstatus van registerasset. |
Code |
Details van codeassetversie. |
Code |
Resource-envelop van Azure Resource Manager. |
created |
Het type identiteit waarmee de resource is gemaakt. |
Error |
Aanvullende informatie over de resourcebeheerfout. |
Error |
De foutdetails. |
Error |
Foutreactie |
system |
Metagegevens met betrekking tot het maken en de laatste wijziging van de resource. |
AssetProvisioningState
Inrichtingsstatus van registerasset.
Waarde | Description |
---|---|
Canceled | |
Creating | |
Deleting | |
Failed | |
Succeeded | |
Updating |
CodeVersion
Details van codeassetversie.
Name | Type | Default value | Description |
---|---|---|---|
codeUri |
string |
URI waar code zich bevindt |
|
description |
string |
De tekst van de assetbeschrijving. |
|
isAnonymous |
boolean |
False |
Als de naamversie wordt gegenereerd (anonieme registratie). |
isArchived |
boolean |
False |
Is de asset gearchiveerd? |
properties |
object |
De woordenlijst voor asseteigenschappen. |
|
provisioningState |
Inrichtingsstatus voor de codeversie. |
||
tags |
object |
Tagwoordenlijst. Tags kunnen worden toegevoegd, verwijderd en bijgewerkt. |
CodeVersionResource
Resource-envelop van Azure Resource Manager.
Name | Type | Description |
---|---|---|
id |
string |
Volledig gekwalificeerde resource-id voor de resource. Vb.: - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
name |
string |
De naam van de resource |
properties |
[Vereist] Aanvullende kenmerken van de entiteit. |
|
systemData |
Azure Resource Manager-metagegevens met createdBy- en modifiedBy-gegevens. |
|
type |
string |
Het type bron. Bijvoorbeeld 'Microsoft.Compute/virtualMachines' of 'Microsoft.Storage/storageAccounts' |
createdByType
Het type identiteit waarmee de resource is gemaakt.
Waarde | Description |
---|---|
Application | |
Key | |
ManagedIdentity | |
User |
ErrorAdditionalInfo
Aanvullende informatie over de resourcebeheerfout.
Name | Type | Description |
---|---|---|
info |
object |
De aanvullende informatie. |
type |
string |
Het extra informatietype. |
ErrorDetail
De foutdetails.
Name | Type | Description |
---|---|---|
additionalInfo |
De fout bevat aanvullende informatie. |
|
code |
string |
De foutcode. |
details |
De foutdetails. |
|
message |
string |
Het foutbericht. |
target |
string |
Het foutdoel. |
ErrorResponse
Foutreactie
Name | Type | Description |
---|---|---|
error |
Het foutobject. |
systemData
Metagegevens met betrekking tot het maken en de laatste wijziging van de resource.
Name | Type | Description |
---|---|---|
createdAt |
string (date-time) |
De tijdstempel van het maken van resources (UTC). |
createdBy |
string |
De identiteit waarmee de resource is gemaakt. |
createdByType |
Het type identiteit waarmee de resource is gemaakt. |
|
lastModifiedAt |
string (date-time) |
De tijdstempel van de laatste wijziging van de resource (UTC) |
lastModifiedBy |
string |
De identiteit die de resource voor het laatst heeft gewijzigd. |
lastModifiedByType |
Het type identiteit dat de resource voor het laatst heeft gewijzigd. |