Workspace Connections - List Secrets
List all the secrets of a machine learning workspaces connections.
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName}/listsecrets?api-version=2025-09-01
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
connection
|
path | True |
string pattern: ^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$ |
Friendly name of the workspace connection |
|
resource
|
path | True |
string minLength: 1maxLength: 90 |
The name of the resource group. The name is case insensitive. |
|
subscription
|
path | True |
string minLength: 1 |
The ID of the target subscription. |
|
workspace
|
path | True |
string pattern: ^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$ |
Name of Azure Machine Learning workspace. |
|
api-version
|
query | True |
string minLength: 1 |
The API version to use for this operation. |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
The request was successful; the request was well-formed and received properly. |
|
| Other Status Codes |
Error |
Security
azure_auth
Azure Active Directory OAuth2 Flow.
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
| Name | Description |
|---|---|
| user_impersonation | impersonate your user account |
Examples
GetWorkspaceConnection
Sample request
POST https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/test-rg/providers/Microsoft.MachineLearningServices/workspaces/workspace-1/connections/connection-1/listsecrets?api-version=2025-09-01
Sample response
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1/providers/Microsoft.MachineLearningServices/workspaces/workspace-1/connections/connection-1",
"name": "connection-1",
"type": "Microsoft.MachineLearningServices/workspaces/connections",
"properties": {
"authType": "AccessKey",
"credentials": {
"accessKeyId": "some_string",
"secretAccessKey": "some_string"
},
"category": "CustomKeys",
"expiryTime": "2020-01-01T00:00:00Z",
"target": "some_string",
"metadata": {}
},
"systemData": {
"createdAt": "2020-01-01T00:00:00Z",
"createdBy": "some_string",
"createdByType": "ManagedIdentity",
"lastModifiedAt": "2020-01-01T00:00:00Z",
"lastModifiedBy": "some_string",
"lastModifiedByType": "User"
}
}
Definitions
| Name | Description |
|---|---|
|
AADAuth |
This connection type covers the AAD auth for any applicable Azure service |
|
Access |
|
|
Account |
This connection type covers the account key connection for Azure storage |
|
Api |
This connection type covers the generic ApiKey auth connection categories, for examples: AzureOpenAI: Category:= AzureOpenAI AuthType:= ApiKey (as type discriminator) Credentials:= {ApiKey} as Microsoft.MachineLearning.AccountRP.Contracts.WorkspaceConnection.ApiKey Target:= {ApiBase} CognitiveService: Category:= CognitiveService AuthType:= ApiKey (as type discriminator) Credentials:= {SubscriptionKey} as Microsoft.MachineLearning.AccountRP.Contracts.WorkspaceConnection.ApiKey Target:= ServiceRegion={serviceRegion} CognitiveSearch: Category:= CognitiveSearch AuthType:= ApiKey (as type discriminator) Credentials:= {Key} as Microsoft.MachineLearning.AccountRP.Contracts.WorkspaceConnection.ApiKey Target:= {Endpoint} Use Metadata property bag for ApiType, ApiVersion, Kind and other metadata fields |
|
Connection |
Authentication type of the connection target |
|
Connection |
Category of the connection |
|
Connection |
Group based on connection category |
|
created |
The type of identity that created the resource. |
|
Custom |
Custom Keys credential object |
|
Custom |
Category:= CustomKeys AuthType:= CustomKeys (as type discriminator) Credentials:= {CustomKeys} as Microsoft.MachineLearning.AccountRP.Contracts.WorkspaceConnection.CustomKeys Target:= {any value} Use Metadata property bag for ApiVersion and other metadata fields |
|
Error |
The resource management error additional info. |
|
Error |
The error detail. |
|
Error |
Error response |
|
Managed |
|
|
None |
|
|
OAuth2Auth |
|
|
PATAuth |
|
|
SASAuth |
|
|
Service |
|
|
system |
Metadata pertaining to creation and last modification of the resource. |
|
Username |
|
|
Value |
format for the workspace connection value |
|
Workspace |
|
|
Workspace |
|
|
Workspace |
Api key object for workspace connection credential. |
|
Workspace |
|
|
Workspace |
ClientId and ClientSecret are required. Other properties are optional depending on each OAuth2 provider's implementation. |
|
Workspace |
|
|
Workspace |
|
|
Workspace |
|
|
Workspace |
|
|
Workspace |
AADAuthTypeWorkspaceConnectionProperties
This connection type covers the AAD auth for any applicable Azure service
| Name | Type | Description |
|---|---|---|
| authType |
string:
AAD |
Authentication type of the connection target |
| category |
Category of the connection |
|
| createdByWorkspaceArmId |
string (arm-id) |
|
| expiryTime |
string (date-time) |
|
| group |
Group based on connection category |
|
| isSharedToAll |
boolean |
|
| metadata |
object |
Store user metadata for this connection |
| sharedUserList |
string[] |
|
| target |
string |
|
| value |
string |
Value details of the workspace connection. |
| valueFormat |
format for the workspace connection value |
AccessKeyAuthTypeWorkspaceConnectionProperties
| Name | Type | Description |
|---|---|---|
| authType |
string:
Access |
Authentication type of the connection target |
| category |
Category of the connection |
|
| createdByWorkspaceArmId |
string (arm-id) |
|
| credentials | ||
| expiryTime |
string (date-time) |
|
| group |
Group based on connection category |
|
| isSharedToAll |
boolean |
|
| metadata |
object |
Store user metadata for this connection |
| sharedUserList |
string[] |
|
| target |
string |
|
| value |
string |
Value details of the workspace connection. |
| valueFormat |
format for the workspace connection value |
AccountKeyAuthTypeWorkspaceConnectionProperties
This connection type covers the account key connection for Azure storage
| Name | Type | Description |
|---|---|---|
| authType |
string:
Account |
Authentication type of the connection target |
| category |
Category of the connection |
|
| createdByWorkspaceArmId |
string (arm-id) |
|
| credentials | ||
| expiryTime |
string (date-time) |
|
| group |
Group based on connection category |
|
| isSharedToAll |
boolean |
|
| metadata |
object |
Store user metadata for this connection |
| sharedUserList |
string[] |
|
| target |
string |
|
| value |
string |
Value details of the workspace connection. |
| valueFormat |
format for the workspace connection value |
ApiKeyAuthWorkspaceConnectionProperties
This connection type covers the generic ApiKey auth connection categories, for examples: AzureOpenAI: Category:= AzureOpenAI AuthType:= ApiKey (as type discriminator) Credentials:= {ApiKey} as Microsoft.MachineLearning.AccountRP.Contracts.WorkspaceConnection.ApiKey Target:= {ApiBase}
CognitiveService: Category:= CognitiveService AuthType:= ApiKey (as type discriminator) Credentials:= {SubscriptionKey} as Microsoft.MachineLearning.AccountRP.Contracts.WorkspaceConnection.ApiKey Target:= ServiceRegion={serviceRegion}
CognitiveSearch: Category:= CognitiveSearch AuthType:= ApiKey (as type discriminator) Credentials:= {Key} as Microsoft.MachineLearning.AccountRP.Contracts.WorkspaceConnection.ApiKey Target:= {Endpoint}
Use Metadata property bag for ApiType, ApiVersion, Kind and other metadata fields
| Name | Type | Description |
|---|---|---|
| authType |
string:
Api |
Authentication type of the connection target |
| category |
Category of the connection |
|
| createdByWorkspaceArmId |
string (arm-id) |
|
| credentials |
Api key object for workspace connection credential. |
|
| expiryTime |
string (date-time) |
|
| group |
Group based on connection category |
|
| isSharedToAll |
boolean |
|
| metadata |
object |
Store user metadata for this connection |
| sharedUserList |
string[] |
|
| target |
string |
|
| value |
string |
Value details of the workspace connection. |
| valueFormat |
format for the workspace connection value |
ConnectionAuthType
Authentication type of the connection target
| Value | Description |
|---|---|
| PAT | |
| ManagedIdentity | |
| UsernamePassword | |
| None | |
| SAS | |
| AccountKey | |
| ServicePrincipal | |
| AccessKey | |
| ApiKey | |
| CustomKeys | |
| OAuth2 | |
| AAD |
ConnectionCategory
Category of the connection
| Value | Description |
|---|---|
| PythonFeed | |
| ContainerRegistry | |
| Git | |
| S3 | |
| Snowflake | |
| AzureSqlDb | |
| AzureSynapseAnalytics | |
| AzureMySqlDb | |
| AzurePostgresDb | |
| ADLSGen2 | |
| Redis | |
| ApiKey | |
| AzureOpenAI | |
| AIServices | |
| CognitiveSearch | |
| CognitiveService | |
| CustomKeys | |
| AzureBlob | |
| AzureOneLake | |
| CosmosDb | |
| CosmosDbMongoDbApi | |
| AzureDataExplorer | |
| AzureMariaDb | |
| AzureDatabricksDeltaLake | |
| AzureSqlMi | |
| AzureTableStorage | |
| AmazonRdsForOracle | |
| AmazonRdsForSqlServer | |
| AmazonRedshift | |
| Db2 | |
| Drill | |
| GoogleBigQuery | |
| Greenplum | |
| Hbase | |
| Hive | |
| Impala | |
| Informix | |
| MariaDb | |
| MicrosoftAccess | |
| MySql | |
| Netezza | |
| Oracle | |
| Phoenix | |
| PostgreSql | |
| Presto | |
| SapOpenHub | |
| SapBw | |
| SapHana | |
| SapTable | |
| Spark | |
| SqlServer | |
| Sybase | |
| Teradata | |
| Vertica | |
| Pinecone | |
| Cassandra | |
| Couchbase | |
| MongoDbV2 | |
| MongoDbAtlas | |
| AmazonS3Compatible | |
| FileServer | |
| FtpServer | |
| GoogleCloudStorage | |
| Hdfs | |
| OracleCloudStorage | |
| Sftp | |
| GenericHttp | |
| ODataRest | |
| Odbc | |
| GenericRest | |
| AmazonMws | |
| Concur | |
| Dynamics | |
| DynamicsAx | |
| DynamicsCrm | |
| GoogleAdWords | |
| Hubspot | |
| Jira | |
| Magento | |
| Marketo | |
| Office365 | |
| Eloqua | |
| Responsys | |
| OracleServiceCloud | |
| PayPal | |
| QuickBooks | |
| Salesforce | |
| SalesforceServiceCloud | |
| SalesforceMarketingCloud | |
| SapCloudForCustomer | |
| SapEcc | |
| ServiceNow | |
| SharePointOnlineList | |
| Shopify | |
| Square | |
| WebTable | |
| Xero | |
| Zoho | |
| GenericContainerRegistry | |
| Elasticsearch | |
| OpenAI | |
| Serp | |
| BingLLMSearch | |
| Serverless | |
| ManagedOnlineEndpoint |
ConnectionGroup
Group based on connection category
| Value | Description |
|---|---|
| Azure | |
| AzureAI | |
| Database | |
| NoSQL | |
| File | |
| GenericProtocol | |
| ServicesAndApps |
createdByType
The type of identity that created the resource.
| Value | Description |
|---|---|
| User | |
| Application | |
| ManagedIdentity | |
| Key |
CustomKeys
Custom Keys credential object
| Name | Type | Description |
|---|---|---|
| keys |
object |
CustomKeysWorkspaceConnectionProperties
Category:= CustomKeys AuthType:= CustomKeys (as type discriminator) Credentials:= {CustomKeys} as Microsoft.MachineLearning.AccountRP.Contracts.WorkspaceConnection.CustomKeys Target:= {any value} Use Metadata property bag for ApiVersion and other metadata fields
| Name | Type | Description |
|---|---|---|
| authType | string: |
Authentication type of the connection target |
| category |
Category of the connection |
|
| createdByWorkspaceArmId |
string (arm-id) |
|
| credentials |
Custom Keys credential object |
|
| expiryTime |
string (date-time) |
|
| group |
Group based on connection category |
|
| isSharedToAll |
boolean |
|
| metadata |
object |
Store user metadata for this connection |
| sharedUserList |
string[] |
|
| target |
string |
|
| value |
string |
Value details of the workspace connection. |
| valueFormat |
format for the workspace connection value |
ErrorAdditionalInfo
The resource management error additional info.
| Name | Type | Description |
|---|---|---|
| info |
object |
The additional info. |
| type |
string |
The additional info type. |
ErrorDetail
The error detail.
| Name | Type | Description |
|---|---|---|
| additionalInfo |
The error additional info. |
|
| code |
string |
The error code. |
| details |
The error details. |
|
| message |
string |
The error message. |
| target |
string |
The error target. |
ErrorResponse
Error response
| Name | Type | Description |
|---|---|---|
| error |
The error object. |
ManagedIdentityAuthTypeWorkspaceConnectionProperties
| Name | Type | Description |
|---|---|---|
| authType |
string:
Managed |
Authentication type of the connection target |
| category |
Category of the connection |
|
| createdByWorkspaceArmId |
string (arm-id) |
|
| credentials | ||
| expiryTime |
string (date-time) |
|
| group |
Group based on connection category |
|
| isSharedToAll |
boolean |
|
| metadata |
object |
Store user metadata for this connection |
| sharedUserList |
string[] |
|
| target |
string |
|
| value |
string |
Value details of the workspace connection. |
| valueFormat |
format for the workspace connection value |
NoneAuthTypeWorkspaceConnectionProperties
| Name | Type | Description |
|---|---|---|
| authType |
string:
None |
Authentication type of the connection target |
| category |
Category of the connection |
|
| createdByWorkspaceArmId |
string (arm-id) |
|
| expiryTime |
string (date-time) |
|
| group |
Group based on connection category |
|
| isSharedToAll |
boolean |
|
| metadata |
object |
Store user metadata for this connection |
| sharedUserList |
string[] |
|
| target |
string |
|
| value |
string |
Value details of the workspace connection. |
| valueFormat |
format for the workspace connection value |
OAuth2AuthTypeWorkspaceConnectionProperties
| Name | Type | Description |
|---|---|---|
| authType |
string:
OAuth2 |
Authentication type of the connection target |
| category |
Category of the connection |
|
| createdByWorkspaceArmId |
string (arm-id) |
|
| credentials |
ClientId and ClientSecret are required. Other properties are optional depending on each OAuth2 provider's implementation. |
|
| expiryTime |
string (date-time) |
|
| group |
Group based on connection category |
|
| isSharedToAll |
boolean |
|
| metadata |
object |
Store user metadata for this connection |
| sharedUserList |
string[] |
|
| target |
string |
|
| value |
string |
Value details of the workspace connection. |
| valueFormat |
format for the workspace connection value |
PATAuthTypeWorkspaceConnectionProperties
| Name | Type | Description |
|---|---|---|
| authType |
string:
PAT |
Authentication type of the connection target |
| category |
Category of the connection |
|
| createdByWorkspaceArmId |
string (arm-id) |
|
| credentials | ||
| expiryTime |
string (date-time) |
|
| group |
Group based on connection category |
|
| isSharedToAll |
boolean |
|
| metadata |
object |
Store user metadata for this connection |
| sharedUserList |
string[] |
|
| target |
string |
|
| value |
string |
Value details of the workspace connection. |
| valueFormat |
format for the workspace connection value |
SASAuthTypeWorkspaceConnectionProperties
| Name | Type | Description |
|---|---|---|
| authType |
string:
SAS |
Authentication type of the connection target |
| category |
Category of the connection |
|
| createdByWorkspaceArmId |
string (arm-id) |
|
| credentials | ||
| expiryTime |
string (date-time) |
|
| group |
Group based on connection category |
|
| isSharedToAll |
boolean |
|
| metadata |
object |
Store user metadata for this connection |
| sharedUserList |
string[] |
|
| target |
string |
|
| value |
string |
Value details of the workspace connection. |
| valueFormat |
format for the workspace connection value |
ServicePrincipalAuthTypeWorkspaceConnectionProperties
| Name | Type | Description |
|---|---|---|
| authType |
string:
Service |
Authentication type of the connection target |
| category |
Category of the connection |
|
| createdByWorkspaceArmId |
string (arm-id) |
|
| credentials | ||
| expiryTime |
string (date-time) |
|
| group |
Group based on connection category |
|
| isSharedToAll |
boolean |
|
| metadata |
object |
Store user metadata for this connection |
| sharedUserList |
string[] |
|
| target |
string |
|
| value |
string |
Value details of the workspace connection. |
| valueFormat |
format for the workspace connection value |
systemData
Metadata pertaining to creation and last modification of the resource.
| Name | Type | Description |
|---|---|---|
| createdAt |
string (date-time) |
The timestamp of resource creation (UTC). |
| createdBy |
string |
The identity that created the resource. |
| createdByType |
The type of identity that created the resource. |
|
| lastModifiedAt |
string (date-time) |
The timestamp of resource last modification (UTC) |
| lastModifiedBy |
string |
The identity that last modified the resource. |
| lastModifiedByType |
The type of identity that last modified the resource. |
UsernamePasswordAuthTypeWorkspaceConnectionProperties
| Name | Type | Description |
|---|---|---|
| authType |
string:
Username |
Authentication type of the connection target |
| category |
Category of the connection |
|
| createdByWorkspaceArmId |
string (arm-id) |
|
| credentials | ||
| expiryTime |
string (date-time) |
|
| group |
Group based on connection category |
|
| isSharedToAll |
boolean |
|
| metadata |
object |
Store user metadata for this connection |
| sharedUserList |
string[] |
|
| target |
string |
|
| value |
string |
Value details of the workspace connection. |
| valueFormat |
format for the workspace connection value |
ValueFormat
format for the workspace connection value
| Value | Description |
|---|---|
| JSON |
WorkspaceConnectionAccessKey
| Name | Type | Description |
|---|---|---|
| accessKeyId |
string |
|
| secretAccessKey |
string |
WorkspaceConnectionAccountKey
| Name | Type | Description |
|---|---|---|
| key |
string |
WorkspaceConnectionApiKey
Api key object for workspace connection credential.
| Name | Type | Description |
|---|---|---|
| key |
string |
WorkspaceConnectionManagedIdentity
| Name | Type | Description |
|---|---|---|
| clientId |
string |
|
| resourceId |
string |
WorkspaceConnectionOAuth2
ClientId and ClientSecret are required. Other properties are optional depending on each OAuth2 provider's implementation.
| Name | Type | Description |
|---|---|---|
| authUrl |
string (url) |
Required by Concur connection category |
| clientId |
string (uuid) |
Client id in the format of UUID |
| clientSecret |
string |
|
| developerToken |
string |
Required by GoogleAdWords connection category |
| password |
string |
|
| refreshToken |
string |
Required by GoogleBigQuery, GoogleAdWords, Hubspot, QuickBooks, Square, Xero, Zoho where user needs to get RefreshToken offline |
| tenantId |
string |
Required by QuickBooks and Xero connection categories |
| username |
string |
Concur, ServiceNow auth server AccessToken grant type is 'Password' which requires UsernamePassword |
WorkspaceConnectionPersonalAccessToken
| Name | Type | Description |
|---|---|---|
| pat |
string |
WorkspaceConnectionPropertiesV2BasicResource
WorkspaceConnectionServicePrincipal
| Name | Type | Description |
|---|---|---|
| clientId |
string |
|
| clientSecret |
string |
|
| tenantId |
string |
WorkspaceConnectionSharedAccessSignature
| Name | Type | Description |
|---|---|---|
| sas |
string |
WorkspaceConnectionUsernamePassword
| Name | Type | Description |
|---|---|---|
| password |
string |
|
| securityToken |
string |
Optional, required by connections like SalesForce for extra security in addition to UsernamePassword |
| username |
string |