Databricks v1.56.0 published on Tuesday, Nov 12, 2024 by Pulumi
databricks.getStorageCredential
Explore with Pulumi AI
Note This data source can only be used with a workspace-level provider!
Retrieves details about a databricks.StorageCredential that were created by Pulumi or manually.
Example Usage
Getting details of an existing storage credential in the metastore
import * as pulumi from "@pulumi/pulumi";
import * as databricks from "@pulumi/databricks";
const this = databricks.getStorageCredential({
name: "this",
});
export const createdBy = _this.then(_this => _this.storageCredentialInfo?.createdBy);
import pulumi
import pulumi_databricks as databricks
this = databricks.get_storage_credential(name="this")
pulumi.export("createdBy", this.storage_credential_info.created_by)
package main
import (
"github.com/pulumi/pulumi-databricks/sdk/go/databricks"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
this, err := databricks.LookupStorageCredential(ctx, &databricks.LookupStorageCredentialArgs{
Name: "this",
}, nil)
if err != nil {
return err
}
ctx.Export("createdBy", this.StorageCredentialInfo.CreatedBy)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Databricks = Pulumi.Databricks;
return await Deployment.RunAsync(() =>
{
var @this = Databricks.GetStorageCredential.Invoke(new()
{
Name = "this",
});
return new Dictionary<string, object?>
{
["createdBy"] = @this.Apply(@this => @this.Apply(getStorageCredentialResult => getStorageCredentialResult.StorageCredentialInfo?.CreatedBy)),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.databricks.DatabricksFunctions;
import com.pulumi.databricks.inputs.GetStorageCredentialArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var this = DatabricksFunctions.getStorageCredential(GetStorageCredentialArgs.builder()
.name("this")
.build());
ctx.export("createdBy", this_.storageCredentialInfo().createdBy());
}
}
variables:
this:
fn::invoke:
Function: databricks:getStorageCredential
Arguments:
name: this
outputs:
createdBy: ${this.storageCredentialInfo.createdBy}
Related Resources
The following resources are used in the same context:
- databricks.getStorageCredentials to get names of all credentials
- databricks.StorageCredential to manage Storage Credentials within Unity Catalog.
Using getStorageCredential
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 getStorageCredential(args: GetStorageCredentialArgs, opts?: InvokeOptions): Promise<GetStorageCredentialResult>
function getStorageCredentialOutput(args: GetStorageCredentialOutputArgs, opts?: InvokeOptions): Output<GetStorageCredentialResult>
def get_storage_credential(id: Optional[str] = None,
name: Optional[str] = None,
storage_credential_info: Optional[GetStorageCredentialStorageCredentialInfo] = None,
opts: Optional[InvokeOptions] = None) -> GetStorageCredentialResult
def get_storage_credential_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
storage_credential_info: Optional[pulumi.Input[GetStorageCredentialStorageCredentialInfoArgs]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetStorageCredentialResult]
func LookupStorageCredential(ctx *Context, args *LookupStorageCredentialArgs, opts ...InvokeOption) (*LookupStorageCredentialResult, error)
func LookupStorageCredentialOutput(ctx *Context, args *LookupStorageCredentialOutputArgs, opts ...InvokeOption) LookupStorageCredentialResultOutput
> Note: This function is named LookupStorageCredential
in the Go SDK.
public static class GetStorageCredential
{
public static Task<GetStorageCredentialResult> InvokeAsync(GetStorageCredentialArgs args, InvokeOptions? opts = null)
public static Output<GetStorageCredentialResult> Invoke(GetStorageCredentialInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetStorageCredentialResult> getStorageCredential(GetStorageCredentialArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: databricks:index/getStorageCredential:getStorageCredential
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- The name of the storage credential
- Id string
- Unique ID of storage credential.
- Storage
Credential GetInfo Storage Credential Storage Credential Info - array of objects with information about storage credential.
- Name string
- The name of the storage credential
- Id string
- Unique ID of storage credential.
- Storage
Credential GetInfo Storage Credential Storage Credential Info - array of objects with information about storage credential.
- name String
- The name of the storage credential
- id String
- Unique ID of storage credential.
- storage
Credential GetInfo Storage Credential Storage Credential Info - array of objects with information about storage credential.
- name string
- The name of the storage credential
- id string
- Unique ID of storage credential.
- storage
Credential GetInfo Storage Credential Storage Credential Info - array of objects with information about storage credential.
- name str
- The name of the storage credential
- id str
- Unique ID of storage credential.
- storage_
credential_ Getinfo Storage Credential Storage Credential Info - array of objects with information about storage credential.
- name String
- The name of the storage credential
- id String
- Unique ID of storage credential.
- storage
Credential Property MapInfo - array of objects with information about storage credential.
getStorageCredential Result
The following output properties are available:
- Id string
- Unique ID of storage credential.
- Name string
- Storage
Credential GetInfo Storage Credential Storage Credential Info - array of objects with information about storage credential.
- Id string
- Unique ID of storage credential.
- Name string
- Storage
Credential GetInfo Storage Credential Storage Credential Info - array of objects with information about storage credential.
- id String
- Unique ID of storage credential.
- name String
- storage
Credential GetInfo Storage Credential Storage Credential Info - array of objects with information about storage credential.
- id string
- Unique ID of storage credential.
- name string
- storage
Credential GetInfo Storage Credential Storage Credential Info - array of objects with information about storage credential.
- id str
- Unique ID of storage credential.
- name str
- storage_
credential_ Getinfo Storage Credential Storage Credential Info - array of objects with information about storage credential.
- id String
- Unique ID of storage credential.
- name String
- storage
Credential Property MapInfo - array of objects with information about storage credential.
Supporting Types
GetStorageCredentialStorageCredentialInfo
- Aws
Iam GetRole Storage Credential Storage Credential Info Aws Iam Role - credential details for AWS:
- Azure
Managed GetIdentity Storage Credential Storage Credential Info Azure Managed Identity - managed identity credential details for Azure
- Azure
Service GetPrincipal Storage Credential Storage Credential Info Azure Service Principal - service principal credential details for Azure:
- Cloudflare
Api GetToken Storage Credential Storage Credential Info Cloudflare Api Token - Comment string
- Created
At int - Time at which this catalog was created, in epoch milliseconds.
- Created
By string - Username of catalog creator.
- Databricks
Gcp GetService Account Storage Credential Storage Credential Info Databricks Gcp Service Account - credential details for GCP:
- Full
Name string - Id string
- Unique ID of storage credential.
- Isolation
Mode string - Metastore
Id string - Unique identifier of the parent Metastore.
- Name string
- The name of the storage credential
- Owner string
- Username/groupname/sp application_id of the storage credential owner.
- Read
Only bool - Indicates whether the storage credential is only usable for read operations.
- Updated
At int - Time at which this catalog was last modified, in epoch milliseconds.
- Updated
By string - Username of user who last modified catalog.
- Used
For boolManaged Storage
- Aws
Iam GetRole Storage Credential Storage Credential Info Aws Iam Role - credential details for AWS:
- Azure
Managed GetIdentity Storage Credential Storage Credential Info Azure Managed Identity - managed identity credential details for Azure
- Azure
Service GetPrincipal Storage Credential Storage Credential Info Azure Service Principal - service principal credential details for Azure:
- Cloudflare
Api GetToken Storage Credential Storage Credential Info Cloudflare Api Token - Comment string
- Created
At int - Time at which this catalog was created, in epoch milliseconds.
- Created
By string - Username of catalog creator.
- Databricks
Gcp GetService Account Storage Credential Storage Credential Info Databricks Gcp Service Account - credential details for GCP:
- Full
Name string - Id string
- Unique ID of storage credential.
- Isolation
Mode string - Metastore
Id string - Unique identifier of the parent Metastore.
- Name string
- The name of the storage credential
- Owner string
- Username/groupname/sp application_id of the storage credential owner.
- Read
Only bool - Indicates whether the storage credential is only usable for read operations.
- Updated
At int - Time at which this catalog was last modified, in epoch milliseconds.
- Updated
By string - Username of user who last modified catalog.
- Used
For boolManaged Storage
- aws
Iam GetRole Storage Credential Storage Credential Info Aws Iam Role - credential details for AWS:
- azure
Managed GetIdentity Storage Credential Storage Credential Info Azure Managed Identity - managed identity credential details for Azure
- azure
Service GetPrincipal Storage Credential Storage Credential Info Azure Service Principal - service principal credential details for Azure:
- cloudflare
Api GetToken Storage Credential Storage Credential Info Cloudflare Api Token - comment String
- created
At Integer - Time at which this catalog was created, in epoch milliseconds.
- created
By String - Username of catalog creator.
- databricks
Gcp GetService Account Storage Credential Storage Credential Info Databricks Gcp Service Account - credential details for GCP:
- full
Name String - id String
- Unique ID of storage credential.
- isolation
Mode String - metastore
Id String - Unique identifier of the parent Metastore.
- name String
- The name of the storage credential
- owner String
- Username/groupname/sp application_id of the storage credential owner.
- read
Only Boolean - Indicates whether the storage credential is only usable for read operations.
- updated
At Integer - Time at which this catalog was last modified, in epoch milliseconds.
- updated
By String - Username of user who last modified catalog.
- used
For BooleanManaged Storage
- aws
Iam GetRole Storage Credential Storage Credential Info Aws Iam Role - credential details for AWS:
- azure
Managed GetIdentity Storage Credential Storage Credential Info Azure Managed Identity - managed identity credential details for Azure
- azure
Service GetPrincipal Storage Credential Storage Credential Info Azure Service Principal - service principal credential details for Azure:
- cloudflare
Api GetToken Storage Credential Storage Credential Info Cloudflare Api Token - comment string
- created
At number - Time at which this catalog was created, in epoch milliseconds.
- created
By string - Username of catalog creator.
- databricks
Gcp GetService Account Storage Credential Storage Credential Info Databricks Gcp Service Account - credential details for GCP:
- full
Name string - id string
- Unique ID of storage credential.
- isolation
Mode string - metastore
Id string - Unique identifier of the parent Metastore.
- name string
- The name of the storage credential
- owner string
- Username/groupname/sp application_id of the storage credential owner.
- read
Only boolean - Indicates whether the storage credential is only usable for read operations.
- updated
At number - Time at which this catalog was last modified, in epoch milliseconds.
- updated
By string - Username of user who last modified catalog.
- used
For booleanManaged Storage
- aws_
iam_ Getrole Storage Credential Storage Credential Info Aws Iam Role - credential details for AWS:
- azure_
managed_ Getidentity Storage Credential Storage Credential Info Azure Managed Identity - managed identity credential details for Azure
- azure_
service_ Getprincipal Storage Credential Storage Credential Info Azure Service Principal - service principal credential details for Azure:
- cloudflare_
api_ Gettoken Storage Credential Storage Credential Info Cloudflare Api Token - comment str
- created_
at int - Time at which this catalog was created, in epoch milliseconds.
- created_
by str - Username of catalog creator.
- databricks_
gcp_ Getservice_ account Storage Credential Storage Credential Info Databricks Gcp Service Account - credential details for GCP:
- full_
name str - id str
- Unique ID of storage credential.
- isolation_
mode str - metastore_
id str - Unique identifier of the parent Metastore.
- name str
- The name of the storage credential
- owner str
- Username/groupname/sp application_id of the storage credential owner.
- read_
only bool - Indicates whether the storage credential is only usable for read operations.
- updated_
at int - Time at which this catalog was last modified, in epoch milliseconds.
- updated_
by str - Username of user who last modified catalog.
- used_
for_ boolmanaged_ storage
- aws
Iam Property MapRole - credential details for AWS:
- azure
Managed Property MapIdentity - managed identity credential details for Azure
- azure
Service Property MapPrincipal - service principal credential details for Azure:
- cloudflare
Api Property MapToken - comment String
- created
At Number - Time at which this catalog was created, in epoch milliseconds.
- created
By String - Username of catalog creator.
- databricks
Gcp Property MapService Account - credential details for GCP:
- full
Name String - id String
- Unique ID of storage credential.
- isolation
Mode String - metastore
Id String - Unique identifier of the parent Metastore.
- name String
- The name of the storage credential
- owner String
- Username/groupname/sp application_id of the storage credential owner.
- read
Only Boolean - Indicates whether the storage credential is only usable for read operations.
- updated
At Number - Time at which this catalog was last modified, in epoch milliseconds.
- updated
By String - Username of user who last modified catalog.
- used
For BooleanManaged Storage
GetStorageCredentialStorageCredentialInfoAwsIamRole
- Role
Arn string - The Amazon Resource Name (ARN) of the AWS IAM role for S3 data access, of the form
arn:aws:iam::1234567890:role/MyRole-AJJHDSKSDF
- External
Id string - (output only) - The external ID used in role assumption to prevent confused deputy problem.
- Unity
Catalog stringIam Arn - (output only) - The Amazon Resource Name (ARN) of the AWS IAM user managed by Databricks. This is the identity that is going to assume the AWS IAM role.
- Role
Arn string - The Amazon Resource Name (ARN) of the AWS IAM role for S3 data access, of the form
arn:aws:iam::1234567890:role/MyRole-AJJHDSKSDF
- External
Id string - (output only) - The external ID used in role assumption to prevent confused deputy problem.
- Unity
Catalog stringIam Arn - (output only) - The Amazon Resource Name (ARN) of the AWS IAM user managed by Databricks. This is the identity that is going to assume the AWS IAM role.
- role
Arn String - The Amazon Resource Name (ARN) of the AWS IAM role for S3 data access, of the form
arn:aws:iam::1234567890:role/MyRole-AJJHDSKSDF
- external
Id String - (output only) - The external ID used in role assumption to prevent confused deputy problem.
- unity
Catalog StringIam Arn - (output only) - The Amazon Resource Name (ARN) of the AWS IAM user managed by Databricks. This is the identity that is going to assume the AWS IAM role.
- role
Arn string - The Amazon Resource Name (ARN) of the AWS IAM role for S3 data access, of the form
arn:aws:iam::1234567890:role/MyRole-AJJHDSKSDF
- external
Id string - (output only) - The external ID used in role assumption to prevent confused deputy problem.
- unity
Catalog stringIam Arn - (output only) - The Amazon Resource Name (ARN) of the AWS IAM user managed by Databricks. This is the identity that is going to assume the AWS IAM role.
- role_
arn str - The Amazon Resource Name (ARN) of the AWS IAM role for S3 data access, of the form
arn:aws:iam::1234567890:role/MyRole-AJJHDSKSDF
- external_
id str - (output only) - The external ID used in role assumption to prevent confused deputy problem.
- unity_
catalog_ striam_ arn - (output only) - The Amazon Resource Name (ARN) of the AWS IAM user managed by Databricks. This is the identity that is going to assume the AWS IAM role.
- role
Arn String - The Amazon Resource Name (ARN) of the AWS IAM role for S3 data access, of the form
arn:aws:iam::1234567890:role/MyRole-AJJHDSKSDF
- external
Id String - (output only) - The external ID used in role assumption to prevent confused deputy problem.
- unity
Catalog StringIam Arn - (output only) - The Amazon Resource Name (ARN) of the AWS IAM user managed by Databricks. This is the identity that is going to assume the AWS IAM role.
GetStorageCredentialStorageCredentialInfoAzureManagedIdentity
- Access
Connector stringId - The Resource ID of the Azure Databricks Access Connector resource, of the form
/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-name/providers/Microsoft.Databricks/accessConnectors/connector-name
. - Credential
Id string - Managed
Identity stringId - The Resource ID of the Azure User Assigned Managed Identity associated with Azure Databricks Access Connector, of the form
/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-name/providers/Microsoft.ManagedIdentity/userAssignedIdentities/user-managed-identity-name
.
- Access
Connector stringId - The Resource ID of the Azure Databricks Access Connector resource, of the form
/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-name/providers/Microsoft.Databricks/accessConnectors/connector-name
. - Credential
Id string - Managed
Identity stringId - The Resource ID of the Azure User Assigned Managed Identity associated with Azure Databricks Access Connector, of the form
/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-name/providers/Microsoft.ManagedIdentity/userAssignedIdentities/user-managed-identity-name
.
- access
Connector StringId - The Resource ID of the Azure Databricks Access Connector resource, of the form
/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-name/providers/Microsoft.Databricks/accessConnectors/connector-name
. - credential
Id String - managed
Identity StringId - The Resource ID of the Azure User Assigned Managed Identity associated with Azure Databricks Access Connector, of the form
/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-name/providers/Microsoft.ManagedIdentity/userAssignedIdentities/user-managed-identity-name
.
- access
Connector stringId - The Resource ID of the Azure Databricks Access Connector resource, of the form
/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-name/providers/Microsoft.Databricks/accessConnectors/connector-name
. - credential
Id string - managed
Identity stringId - The Resource ID of the Azure User Assigned Managed Identity associated with Azure Databricks Access Connector, of the form
/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-name/providers/Microsoft.ManagedIdentity/userAssignedIdentities/user-managed-identity-name
.
- access_
connector_ strid - The Resource ID of the Azure Databricks Access Connector resource, of the form
/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-name/providers/Microsoft.Databricks/accessConnectors/connector-name
. - credential_
id str - managed_
identity_ strid - The Resource ID of the Azure User Assigned Managed Identity associated with Azure Databricks Access Connector, of the form
/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-name/providers/Microsoft.ManagedIdentity/userAssignedIdentities/user-managed-identity-name
.
- access
Connector StringId - The Resource ID of the Azure Databricks Access Connector resource, of the form
/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-name/providers/Microsoft.Databricks/accessConnectors/connector-name
. - credential
Id String - managed
Identity StringId - The Resource ID of the Azure User Assigned Managed Identity associated with Azure Databricks Access Connector, of the form
/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg-name/providers/Microsoft.ManagedIdentity/userAssignedIdentities/user-managed-identity-name
.
GetStorageCredentialStorageCredentialInfoAzureServicePrincipal
- Application
Id string - The application ID of the application registration within the referenced AAD tenant
- Client
Secret string - Directory
Id string - The directory ID corresponding to the Azure Active Directory (AAD) tenant of the application
- Application
Id string - The application ID of the application registration within the referenced AAD tenant
- Client
Secret string - Directory
Id string - The directory ID corresponding to the Azure Active Directory (AAD) tenant of the application
- application
Id String - The application ID of the application registration within the referenced AAD tenant
- client
Secret String - directory
Id String - The directory ID corresponding to the Azure Active Directory (AAD) tenant of the application
- application
Id string - The application ID of the application registration within the referenced AAD tenant
- client
Secret string - directory
Id string - The directory ID corresponding to the Azure Active Directory (AAD) tenant of the application
- application_
id str - The application ID of the application registration within the referenced AAD tenant
- client_
secret str - directory_
id str - The directory ID corresponding to the Azure Active Directory (AAD) tenant of the application
- application
Id String - The application ID of the application registration within the referenced AAD tenant
- client
Secret String - directory
Id String - The directory ID corresponding to the Azure Active Directory (AAD) tenant of the application
GetStorageCredentialStorageCredentialInfoCloudflareApiToken
- Access
Key stringId - Account
Id string - Secret
Access stringKey
- Access
Key stringId - Account
Id string - Secret
Access stringKey
- access
Key StringId - account
Id String - secret
Access StringKey
- access
Key stringId - account
Id string - secret
Access stringKey
- access_
key_ strid - account_
id str - secret_
access_ strkey
- access
Key StringId - account
Id String - secret
Access StringKey
GetStorageCredentialStorageCredentialInfoDatabricksGcpServiceAccount
- Credential
Id string - Email string
- The email of the GCP service account created, to be granted access to relevant buckets.
- Credential
Id string - Email string
- The email of the GCP service account created, to be granted access to relevant buckets.
- credential
Id String - email String
- The email of the GCP service account created, to be granted access to relevant buckets.
- credential
Id string - email string
- The email of the GCP service account created, to be granted access to relevant buckets.
- credential_
id str - email str
- The email of the GCP service account created, to be granted access to relevant buckets.
- credential
Id String - email String
- The email of the GCP service account created, to be granted access to relevant buckets.
Package Details
- Repository
- databricks pulumi/pulumi-databricks
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
databricks
Terraform Provider.