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

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi

azure.storage.getTable

Explore with Pulumi AI

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 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",
});
Copy
import pulumi
import pulumi_azure as azure

example = azure.storage.get_table(name="example-table-name",
    storage_account_name="example-storage-account-name")
Copy
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v6/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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: azure:storage:getTable
      arguments:
        name: example-table-name
        storageAccountName: example-storage-account-name
Copy

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>
Copy
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]
Copy
func LookupTable(ctx *Context, args *LookupTableArgs, opts ...InvokeOption) (*LookupTableResult, error)
func LookupTableOutput(ctx *Context, args *LookupTableOutputArgs, opts ...InvokeOption) LookupTableResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetTableResult> getTable(GetTableArgs args, InvokeOptions options)
public static Output<GetTableResult> getTable(GetTableArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure:storage/getTable:getTable
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name This property is required. string
The name of the Table.
StorageAccountName This property is required. string
The name of the Storage Account where the Table exists.
Name This property is required. string
The name of the Table.
StorageAccountName This property is required. string
The name of the Storage Account where the Table exists.
name This property is required. String
The name of the Table.
storageAccountName This property is required. String
The name of the Storage Account where the Table exists.
name This property is required. string
The name of the Table.
storageAccountName This property is required. string
The name of the Storage Account where the Table exists.
name This property is required. str
The name of the Table.
storage_account_name This property is required. str
The name of the Storage Account where the Table exists.
name This property is required. String
The name of the Table.
storageAccountName This property is required. 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 This property is required. List<GetTableAclAccessPolicy>
Id This property is required. string
The ID of the Storage Table.
AccessPolicies This property is required. []GetTableAclAccessPolicy
Id This property is required. string
The ID of the Storage Table.
accessPolicies This property is required. List<GetTableAclAccessPolicy>
id This property is required. String
The ID of the Storage Table.
accessPolicies This property is required. GetTableAclAccessPolicy[]
id This property is required. string
The ID of the Storage Table.
access_policies This property is required. Sequence[GetTableAclAccessPolicy]
id This property is required. str
The ID of the Storage Table.
accessPolicies This property is required. List<Property Map>
id This property is required. String
The ID of the Storage Table.

GetTableAclAccessPolicy

Expiry This property is required. string
Permissions This property is required. string
Start This property is required. string
Expiry This property is required. string
Permissions This property is required. string
Start This property is required. string
expiry This property is required. String
permissions This property is required. String
start This property is required. String
expiry This property is required. string
permissions This property is required. string
start This property is required. string
expiry This property is required. str
permissions This property is required. str
start This property is required. str
expiry This property is required. String
permissions This property is required. String
start This property is required. String

Package Details

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

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi