1. Packages
  2. Azure Native
  3. API Docs
  4. machinelearningservices
  5. listDatastoreSecrets
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Viewing docs for Azure Native v3.16.0
published on Friday, Mar 20, 2026 by Pulumi
azure-native logo
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Viewing docs for Azure Native v3.16.0
published on Friday, Mar 20, 2026 by Pulumi

    Get datastore secrets.

    Uses Azure REST API version 2025-12-01.

    Other available API versions: 2021-03-01-preview, 2022-02-01-preview, 2022-05-01, 2022-06-01-preview, 2022-10-01, 2022-10-01-preview, 2022-12-01-preview, 2023-02-01-preview, 2023-04-01, 2023-04-01-preview, 2023-06-01-preview, 2023-08-01-preview, 2023-10-01, 2024-01-01-preview, 2024-04-01, 2024-07-01-preview, 2024-10-01, 2024-10-01-preview, 2025-01-01-preview, 2025-04-01, 2025-04-01-preview, 2025-06-01, 2025-07-01-preview, 2025-09-01, 2025-10-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native machinelearningservices [ApiVersion]. See the version guide for details.

    Using listDatastoreSecrets

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function listDatastoreSecrets(args: ListDatastoreSecretsArgs, opts?: InvokeOptions): Promise<ListDatastoreSecretsResult>
    function listDatastoreSecretsOutput(args: ListDatastoreSecretsOutputArgs, opts?: InvokeOptions): Output<ListDatastoreSecretsResult>
    def list_datastore_secrets(expirable_secret: Optional[bool] = None,
                               expire_after_hours: Optional[int] = None,
                               name: Optional[str] = None,
                               resource_group_name: Optional[str] = None,
                               workspace_name: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> ListDatastoreSecretsResult
    def list_datastore_secrets_output(expirable_secret: Optional[pulumi.Input[bool]] = None,
                               expire_after_hours: Optional[pulumi.Input[int]] = None,
                               name: Optional[pulumi.Input[str]] = None,
                               resource_group_name: Optional[pulumi.Input[str]] = None,
                               workspace_name: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[ListDatastoreSecretsResult]
    func ListDatastoreSecrets(ctx *Context, args *ListDatastoreSecretsArgs, opts ...InvokeOption) (*ListDatastoreSecretsResult, error)
    func ListDatastoreSecretsOutput(ctx *Context, args *ListDatastoreSecretsOutputArgs, opts ...InvokeOption) ListDatastoreSecretsResultOutput

    > Note: This function is named ListDatastoreSecrets in the Go SDK.

    public static class ListDatastoreSecrets 
    {
        public static Task<ListDatastoreSecretsResult> InvokeAsync(ListDatastoreSecretsArgs args, InvokeOptions? opts = null)
        public static Output<ListDatastoreSecretsResult> Invoke(ListDatastoreSecretsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<ListDatastoreSecretsResult> listDatastoreSecrets(ListDatastoreSecretsArgs args, InvokeOptions options)
    public static Output<ListDatastoreSecretsResult> listDatastoreSecrets(ListDatastoreSecretsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: azure-native:machinelearningservices:listDatastoreSecrets
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    Datastore name.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    WorkspaceName string
    Azure Machine Learning Workspace Name
    ExpirableSecret bool
    Indicates if the secret is expirable.
    ExpireAfterHours int
    Number of hours after which the secret will expire.
    Name string
    Datastore name.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    WorkspaceName string
    Azure Machine Learning Workspace Name
    ExpirableSecret bool
    Indicates if the secret is expirable.
    ExpireAfterHours int
    Number of hours after which the secret will expire.
    name String
    Datastore name.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    workspaceName String
    Azure Machine Learning Workspace Name
    expirableSecret Boolean
    Indicates if the secret is expirable.
    expireAfterHours Integer
    Number of hours after which the secret will expire.
    name string
    Datastore name.
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    workspaceName string
    Azure Machine Learning Workspace Name
    expirableSecret boolean
    Indicates if the secret is expirable.
    expireAfterHours number
    Number of hours after which the secret will expire.
    name str
    Datastore name.
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    workspace_name str
    Azure Machine Learning Workspace Name
    expirable_secret bool
    Indicates if the secret is expirable.
    expire_after_hours int
    Number of hours after which the secret will expire.
    name String
    Datastore name.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    workspaceName String
    Azure Machine Learning Workspace Name
    expirableSecret Boolean
    Indicates if the secret is expirable.
    expireAfterHours Number
    Number of hours after which the secret will expire.

    listDatastoreSecrets Result

    The following output properties are available:

    SecretsType string
    [Required] Credential type used to authentication with storage.
    SecretsType string
    [Required] Credential type used to authentication with storage.
    secretsType String
    [Required] Credential type used to authentication with storage.
    secretsType string
    [Required] Credential type used to authentication with storage.
    secrets_type str
    [Required] Credential type used to authentication with storage.
    secretsType String
    [Required] Credential type used to authentication with storage.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
    Viewing docs for Azure Native v3.16.0
    published on Friday, Mar 20, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.