TableArgs

data class TableArgs(val accountName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val signedIdentifiers: Output<List<TableSignedIdentifierArgs>>? = null, val tableName: Output<String>? = null) : ConvertibleToJava<TableArgs>

Properties of the table, including Id, resource name, resource type. Uses Azure REST API version 2022-09-01. In version 1.x of the Azure Native provider, it used API version 2021-02-01. Other available API versions: 2023-01-01, 2023-04-01, 2023-05-01, 2024-01-01.

Example Usage

TableOperationPut

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var table = new AzureNative.Storage.Table("table", new()
{
AccountName = "sto328",
ResourceGroupName = "res3376",
TableName = "table6185",
});
});
package main
import (
storage "github.com/pulumi/pulumi-azure-native-sdk/storage/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := storage.NewTable(ctx, "table", &storage.TableArgs{
AccountName: pulumi.String("sto328"),
ResourceGroupName: pulumi.String("res3376"),
TableName: pulumi.String("table6185"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.storage.Table;
import com.pulumi.azurenative.storage.TableArgs;
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) {
var table = new Table("table", TableArgs.builder()
.accountName("sto328")
.resourceGroupName("res3376")
.tableName("table6185")
.build());
}
}

TableOperationPutOrPatchAcls

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var table = new AzureNative.Storage.Table("table", new()
{
AccountName = "sto328",
ResourceGroupName = "res3376",
SignedIdentifiers = new[]
{
new AzureNative.Storage.Inputs.TableSignedIdentifierArgs
{
AccessPolicy = new AzureNative.Storage.Inputs.TableAccessPolicyArgs
{
ExpiryTime = "2022-03-20T08:49:37.0000000Z",
Permission = "raud",
StartTime = "2022-03-17T08:49:37.0000000Z",
},
Id = "MTIzNDU2Nzg5MDEyMzQ1Njc4OTAxMjM0NTY3ODkwMTI",
},
new AzureNative.Storage.Inputs.TableSignedIdentifierArgs
{
AccessPolicy = new AzureNative.Storage.Inputs.TableAccessPolicyArgs
{
ExpiryTime = "2022-03-20T08:49:37.0000000Z",
Permission = "rad",
StartTime = "2022-03-17T08:49:37.0000000Z",
},
Id = "PTIzNDU2Nzg5MDEyMzQ1Njc4OTAxMjM0NTY3ODklMTI",
},
},
TableName = "table6185",
});
});
package main
import (
storage "github.com/pulumi/pulumi-azure-native-sdk/storage/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := storage.NewTable(ctx, "table", &storage.TableArgs{
AccountName: pulumi.String("sto328"),
ResourceGroupName: pulumi.String("res3376"),
SignedIdentifiers: storage.TableSignedIdentifierArray{
&storage.TableSignedIdentifierArgs{
AccessPolicy: &storage.TableAccessPolicyArgs{
ExpiryTime: pulumi.String("2022-03-20T08:49:37.0000000Z"),
Permission: pulumi.String("raud"),
StartTime: pulumi.String("2022-03-17T08:49:37.0000000Z"),
},
Id: pulumi.String("MTIzNDU2Nzg5MDEyMzQ1Njc4OTAxMjM0NTY3ODkwMTI"),
},
&storage.TableSignedIdentifierArgs{
AccessPolicy: &storage.TableAccessPolicyArgs{
ExpiryTime: pulumi.String("2022-03-20T08:49:37.0000000Z"),
Permission: pulumi.String("rad"),
StartTime: pulumi.String("2022-03-17T08:49:37.0000000Z"),
},
Id: pulumi.String("PTIzNDU2Nzg5MDEyMzQ1Njc4OTAxMjM0NTY3ODklMTI"),
},
},
TableName: pulumi.String("table6185"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.storage.Table;
import com.pulumi.azurenative.storage.TableArgs;
import com.pulumi.azurenative.storage.inputs.TableSignedIdentifierArgs;
import com.pulumi.azurenative.storage.inputs.TableAccessPolicyArgs;
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) {
var table = new Table("table", TableArgs.builder()
.accountName("sto328")
.resourceGroupName("res3376")
.signedIdentifiers(
TableSignedIdentifierArgs.builder()
.accessPolicy(TableAccessPolicyArgs.builder()
.expiryTime("2022-03-20T08:49:37.0000000Z")
.permission("raud")
.startTime("2022-03-17T08:49:37.0000000Z")
.build())
.id("MTIzNDU2Nzg5MDEyMzQ1Njc4OTAxMjM0NTY3ODkwMTI")
.build(),
TableSignedIdentifierArgs.builder()
.accessPolicy(TableAccessPolicyArgs.builder()
.expiryTime("2022-03-20T08:49:37.0000000Z")
.permission("rad")
.startTime("2022-03-17T08:49:37.0000000Z")
.build())
.id("PTIzNDU2Nzg5MDEyMzQ1Njc4OTAxMjM0NTY3ODklMTI")
.build())
.tableName("table6185")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:storage:Table table6185 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables/{tableName}

Constructors

Link copied to clipboard
constructor(accountName: Output<String>? = null, resourceGroupName: Output<String>? = null, signedIdentifiers: Output<List<TableSignedIdentifierArgs>>? = null, tableName: Output<String>? = null)

Properties

Link copied to clipboard
val accountName: Output<String>? = null

The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group within the user's subscription. The name is case insensitive.

Link copied to clipboard

List of stored access policies specified on the table.

Link copied to clipboard
val tableName: Output<String>? = null

A table name must be unique within a storage account and must be between 3 and 63 characters.The name must comprise of only alphanumeric characters and it cannot begin with a numeric character.

Functions

Link copied to clipboard
open override fun toJava(): TableArgs