Credential - Get
Gets credential information.
GET {endpoint}/scan/credentials/{credentialName}?api-version=2023-09-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
credential
|
path | True |
string minLength: 3maxLength: 63 pattern: ^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$ |
The credential name. |
endpoint
|
path | True |
string (url) |
The scanning endpoint of your purview account. Example: https://{accountName}.purview.azure.com. |
api-version
|
query | True |
string |
The api version to use. |
Responses
Name | Type | Description |
---|---|---|
200 OK | Credential: |
Success. |
Other Status Codes |
An error response received from the Scanning Service. Headers x-ms-error-code: string |
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
Credential_Get
Sample request
GET {endpoint}/scan/credentials/myCredential?api-version=2023-09-01
Sample response
x-ms-request-id: d5496da4-9c52-402f-b067-83cc9ddea888
{
"name": "myCredential",
"kind": "BasicAuth",
"properties": {
"description": "test description"
}
}
Definitions
Name | Description |
---|---|
Account |
Credential type that uses Account Key for authentication. |
Account |
Properties of account key credential. |
Basic |
Credential type that uses Basic authentication. |
Consumer |
Credential type that uses consumer provided key and secret for authentication. |
Consumer |
The properties of consumer key credential. |
Credential |
The type of the credential. |
Delegated |
Credential type that uses Client ID for authentication. |
Delegated |
The properties of delegated auth credential. |
Error |
The error model. |
Error |
The error response model. |
Key |
The key vault secret. |
Key |
Properties of key vault secret account key credential type. |
Key |
The type properties of key vault secret consumer key credential. |
Key |
The type properties of key vault secret delegated auth credential. |
Key |
The type properties of key vault secret managed identity Azure Key Vault credential. |
Key |
The type properties of key vault secret service principal credential. |
Key |
Properties of key vault secret user pass credential type. |
Managed |
Credential type that uses User assigned managed identities for authentication. |
Managed |
The properties of managed identity Azure Key Vault credential. |
Role |
Credential type that uses Account ID, External ID and Role ARN for authentication. |
Role |
The properties of role ARN credential. |
Role |
The type properties of role ARN credential. |
Service |
Credential type that uses Tenant ID and Service principal ID for authentication. |
Service |
The properties of service principal Azure Key Vault credential. |
Sql |
Credential type that uses Sql for authentication. |
Store |
The store. |
User |
Properties of user pass credential. |
AccountKeyAuthAzureKeyVaultCredential
Credential type that uses Account Key for authentication.
Name | Type | Description |
---|---|---|
id |
string |
The resource identifier. |
kind |
string:
Account |
The kind of credential. |
name |
string |
The resource name. |
properties |
The properties of account key auth Azure Key Vault credential. |
AccountKeyCredentialProperties
Properties of account key credential.
Name | Type | Description |
---|---|---|
description |
string |
|
typeProperties |
The type properties of account key credential. |
BasicAuthAzureKeyVaultCredential
Credential type that uses Basic authentication.
Name | Type | Description |
---|---|---|
id |
string |
The resource identifier. |
kind |
string:
Basic |
The kind of credential. |
name |
string |
The resource name. |
properties |
The properties of basic auth Azure Key Vault credential. |
ConsumerKeyAuthAzureKeyVaultCredential
Credential type that uses consumer provided key and secret for authentication.
Name | Type | Description |
---|---|---|
id |
string |
The resource identifier. |
kind |
string:
Consumer |
The kind of credential. |
name |
string |
The resource name. |
properties |
The properties of consumer key credential. |
ConsumerKeyCredentialProperties
The properties of consumer key credential.
Name | Type | Description |
---|---|---|
description |
string |
Description of credential properties. |
typeProperties |
The type properties of key vault secret consumer key credential. |
CredentialType
The type of the credential.
Value | Description |
---|---|
AccountKey |
the credential type is account key |
ServicePrincipal |
the credential type is service principal |
BasicAuth |
the credential type is basic auth |
SqlAuth |
the credential type is sql auth |
AmazonARN |
the credential type is amazon ARN |
ConsumerKeyAuth |
the credential type is Consumer Key Auth |
DelegatedAuth |
the credential type is delegated auth |
ManagedIdentity |
the credential type is managed identity |
DelegatedAuthAzureKeyVaultCredential
Credential type that uses Client ID for authentication.
Name | Type | Description |
---|---|---|
id |
string |
The resource identifier. |
kind |
string:
Delegated |
The kind of credential. |
name |
string |
The resource name. |
properties |
The properties of delegated auth Azure Key Vault credential. |
DelegatedAuthCredentialProperties
The properties of delegated auth credential.
Name | Type | Description |
---|---|---|
description |
string |
|
typeProperties |
The type properties of key vault secret delegated auth credential. |
ErrorModel
The error model.
Name | Type | Description |
---|---|---|
code |
string |
A unique error code that identifies the specific error. |
details |
An array of nested ErrorModel objects that provides additional error details. |
|
message |
string |
A human-readable error message that provides more details about the error. |
target |
string |
The specific component that the error is associated with. |
ErrorResponseModel
The error response model.
Name | Type | Description |
---|---|---|
error |
The error model. |
KeyVaultSecret
The key vault secret.
Name | Type | Description |
---|---|---|
secretName |
string |
The secret name of key vault secret. |
secretVersion |
string |
The secret version of key vault secret. |
store |
The store. |
|
type |
string |
The type of key vault secret. |
KeyVaultSecretAccountKeyCredentialTypeProperties
Properties of key vault secret account key credential type.
Name | Type | Description |
---|---|---|
accountKey |
The account key of key vault secret account key credential type. |
KeyVaultSecretConsumerKeyCredentialTypeProperties
The type properties of key vault secret consumer key credential.
Name | Type | Description |
---|---|---|
consumerKey |
string |
The consumer key of key vault secret consumer key credential type properties. |
consumerSecret |
The consumer secret of key vault secret consumer key credential type properties. |
|
password |
The password of key vault secret consumer key credential type properties. |
|
user |
string |
User name. |
KeyVaultSecretDelegatedAuthCredentialTypeProperties
The type properties of key vault secret delegated auth credential.
Name | Type | Description |
---|---|---|
clientId |
string |
Credential type that uses Account ID, External ID and Role ARN for authentication. |
password |
Key vault secret. |
|
user |
string |
User name. |
KeyVaultSecretManagedIdentityAzureKeyVaultCredentialTypeProperties
The type properties of key vault secret managed identity Azure Key Vault credential.
Name | Type | Description |
---|---|---|
principalId |
string |
The principal ID of key vault secret managed identity Azure Key Vault credential type properties. |
resourceId |
string |
The resource ID of key vault secret managed identity Azure Key Vault credential type properties. |
tenantId |
string |
The tenant ID of key vault secret managed identity Azure Key Vault credential type properties. |
KeyVaultSecretServicePrinipalCredentialTypeProperties
The type properties of key vault secret service principal credential.
Name | Type | Description |
---|---|---|
servicePrincipalId |
string |
The service principal ID of key vault secret service principal credential type properties. |
servicePrincipalKey |
The key vault secret. |
|
tenant |
string |
KeyVaultSecretUserPassCredentialTypeProperties
Properties of key vault secret user pass credential type.
Name | Type | Description |
---|---|---|
password |
The password of key vault secret user pass credential type. |
|
user |
string |
User name. |
ManagedIdentityAzureKeyVaultCredential
Credential type that uses User assigned managed identities for authentication.
Name | Type | Description |
---|---|---|
id |
string |
The resource identifier. |
kind |
string:
Managed |
The kind of credential. |
name |
string |
The resource name. |
properties |
The properties of managed identity Azure Key Vault credential. |
ManagedIdentityAzureKeyVaultCredentialProperties
The properties of managed identity Azure Key Vault credential.
Name | Type | Description |
---|---|---|
description |
string |
|
typeProperties |
Key |
The type properties of managed identity Azure Key Vault credential. |
RoleARNCredential
Credential type that uses Account ID, External ID and Role ARN for authentication.
Name | Type | Description |
---|---|---|
id |
string |
The resource identifier. |
kind |
string:
AmazonARN |
The kind of credential. |
name |
string |
The resource name. |
properties |
The properties of role ARN credential. |
RoleARNCredentialProperties
The properties of role ARN credential.
Name | Type | Description |
---|---|---|
description |
string |
The description of role ARN credential. |
typeProperties |
The type properties of role ARN credential. |
RoleARNCredentialTypeProperties
The type properties of role ARN credential.
Name | Type | Description |
---|---|---|
roleARN |
string |
The role ARN of role ARN credential type properties. |
ServicePrincipalAzureKeyVaultCredential
Credential type that uses Tenant ID and Service principal ID for authentication.
Name | Type | Description |
---|---|---|
id |
string |
The resource identifier. |
kind |
string:
Service |
The kind of credential. |
name |
string |
The resource name. |
properties |
The properties of service principal Azure Key Vault credential. |
ServicePrincipalAzureKeyVaultCredentialProperties
The properties of service principal Azure Key Vault credential.
Name | Type | Description |
---|---|---|
description |
string |
|
typeProperties |
The type properties of key vault secret service principal credential. |
SqlAuthAzureKeyVaultCredential
Credential type that uses Sql for authentication.
Name | Type | Description |
---|---|---|
id |
string |
The resource identifier. |
kind |
string:
Sql |
The kind of credential. |
name |
string |
The resource name. |
properties |
Properties of user pass credential. |
Store
The store.
Name | Type | Description |
---|---|---|
referenceName |
string |
The reference name of store. |
type |
string |
The type of store. |
UserPassCredentialProperties
Properties of user pass credential.
Name | Type | Description |
---|---|---|
description |
string |
|
typeProperties |
Properties of key vault secret user pass credential type. |