Table
Properties of the table, including Id, resource name, resource type. Uses Azure REST API version 2024-01-01. In version 2.x of the Azure Native provider, it used API version 2022-09-01. Other available API versions: 2022-09-01, 2023-01-01, 2023-04-01, 2023-05-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native storage [ApiVersion]
. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.
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",
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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",
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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}
Content copied to clipboard