1. Packages
  2. Azure Classic
  3. API Docs
  4. storage
  5. getTable

We recommend using Azure Native.

Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi

azure.storage.getTable

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi

    Use this data source to access information about an existing Storage Table.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = azure.storage.getTable({
        name: "example-table-name",
        storageAccountName: "example-storage-account-name",
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.storage.get_table(name="example-table-name",
        storage_account_name="example-storage-account-name")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/storage"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := storage.LookupTable(ctx, &storage.LookupTableArgs{
    			Name:               "example-table-name",
    			StorageAccountName: "example-storage-account-name",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Azure.Storage.GetTable.Invoke(new()
        {
            Name = "example-table-name",
            StorageAccountName = "example-storage-account-name",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azure.storage.StorageFunctions;
    import com.pulumi.azure.storage.inputs.GetTableArgs;
    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 example = StorageFunctions.getTable(GetTableArgs.builder()
                .name("example-table-name")
                .storageAccountName("example-storage-account-name")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: azure:storage:getTable
          Arguments:
            name: example-table-name
            storageAccountName: example-storage-account-name
    

    Using getTable

    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 getTable(args: GetTableArgs, opts?: InvokeOptions): Promise<GetTableResult>
    function getTableOutput(args: GetTableOutputArgs, opts?: InvokeOptions): Output<GetTableResult>
    def get_table(name: Optional[str] = None,
                  storage_account_name: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetTableResult
    def get_table_output(name: Optional[pulumi.Input[str]] = None,
                  storage_account_name: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetTableResult]
    func LookupTable(ctx *Context, args *LookupTableArgs, opts ...InvokeOption) (*LookupTableResult, error)
    func LookupTableOutput(ctx *Context, args *LookupTableOutputArgs, opts ...InvokeOption) LookupTableResultOutput

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

    public static class GetTable 
    {
        public static Task<GetTableResult> InvokeAsync(GetTableArgs args, InvokeOptions? opts = null)
        public static Output<GetTableResult> Invoke(GetTableInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTableResult> getTable(GetTableArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure:storage/getTable:getTable
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of the Table.
    StorageAccountName string
    The name of the Storage Account where the Table exists.
    Name string
    The name of the Table.
    StorageAccountName string
    The name of the Storage Account where the Table exists.
    name String
    The name of the Table.
    storageAccountName String
    The name of the Storage Account where the Table exists.
    name string
    The name of the Table.
    storageAccountName string
    The name of the Storage Account where the Table exists.
    name str
    The name of the Table.
    storage_account_name str
    The name of the Storage Account where the Table exists.
    name String
    The name of the Table.
    storageAccountName String
    The name of the Storage Account where the Table exists.

    getTable Result

    The following output properties are available:

    Acls List<GetTableAcl>
    A mapping of ACLs for this Table.
    Id string
    The ID of the Storage Table.
    Name string
    ResourceManagerId string
    The Resource Manager ID of this Storage Table.
    StorageAccountName string
    Acls []GetTableAcl
    A mapping of ACLs for this Table.
    Id string
    The ID of the Storage Table.
    Name string
    ResourceManagerId string
    The Resource Manager ID of this Storage Table.
    StorageAccountName string
    acls List<GetTableAcl>
    A mapping of ACLs for this Table.
    id String
    The ID of the Storage Table.
    name String
    resourceManagerId String
    The Resource Manager ID of this Storage Table.
    storageAccountName String
    acls GetTableAcl[]
    A mapping of ACLs for this Table.
    id string
    The ID of the Storage Table.
    name string
    resourceManagerId string
    The Resource Manager ID of this Storage Table.
    storageAccountName string
    acls Sequence[GetTableAcl]
    A mapping of ACLs for this Table.
    id str
    The ID of the Storage Table.
    name str
    resource_manager_id str
    The Resource Manager ID of this Storage Table.
    storage_account_name str
    acls List<Property Map>
    A mapping of ACLs for this Table.
    id String
    The ID of the Storage Table.
    name String
    resourceManagerId String
    The Resource Manager ID of this Storage Table.
    storageAccountName String

    Supporting Types

    GetTableAcl

    AccessPolicies List<GetTableAclAccessPolicy>
    Id string
    The ID of the Storage Table.
    AccessPolicies []GetTableAclAccessPolicy
    Id string
    The ID of the Storage Table.
    accessPolicies List<GetTableAclAccessPolicy>
    id String
    The ID of the Storage Table.
    accessPolicies GetTableAclAccessPolicy[]
    id string
    The ID of the Storage Table.
    accessPolicies List<Property Map>
    id String
    The ID of the Storage Table.

    GetTableAclAccessPolicy

    Expiry string
    Permissions string
    Start string
    Expiry string
    Permissions string
    Start string
    expiry String
    permissions String
    start String
    expiry string
    permissions string
    start string
    expiry String
    permissions String
    start String

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi