Read Only Following Database
Class representing a read only following database. Uses Azure REST API version 2024-04-13. In version 2.x of the Azure Native provider, it used API version 2022-12-29.
Example Usage
Kusto ReadOnly database update
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var readOnlyFollowingDatabase = new AzureNative.Kusto.ReadOnlyFollowingDatabase("readOnlyFollowingDatabase", new()
{
ClusterName = "kustoCluster",
DatabaseName = "kustoReadOnlyDatabase",
HotCachePeriod = "P1D",
Kind = "ReadOnlyFollowing",
Location = "westus",
ResourceGroupName = "kustorptest",
});
});
package main
import (
kusto "github.com/pulumi/pulumi-azure-native-sdk/kusto/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := kusto.NewReadOnlyFollowingDatabase(ctx, "readOnlyFollowingDatabase", &kusto.ReadOnlyFollowingDatabaseArgs{
ClusterName: pulumi.String("kustoCluster"),
DatabaseName: pulumi.String("kustoReadOnlyDatabase"),
HotCachePeriod: pulumi.String("P1D"),
Kind: pulumi.String("ReadOnlyFollowing"),
Location: pulumi.String("westus"),
ResourceGroupName: pulumi.String("kustorptest"),
})
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.kusto.ReadOnlyFollowingDatabase;
import com.pulumi.azurenative.kusto.ReadOnlyFollowingDatabaseArgs;
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 readOnlyFollowingDatabase = new ReadOnlyFollowingDatabase("readOnlyFollowingDatabase", ReadOnlyFollowingDatabaseArgs.builder()
.clusterName("kustoCluster")
.databaseName("kustoReadOnlyDatabase")
.hotCachePeriod("P1D")
.kind("ReadOnlyFollowing")
.location("westus")
.resourceGroupName("kustorptest")
.build());
}
}
Kusto ReadWrite database create or update
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var readOnlyFollowingDatabase = new AzureNative.Kusto.ReadOnlyFollowingDatabase("readOnlyFollowingDatabase", new()
{
CallerRole = "Admin",
ClusterName = "kustoCluster",
DatabaseName = "KustoDatabase8",
ResourceGroupName = "kustorptest",
});
});
package main
import (
kusto "github.com/pulumi/pulumi-azure-native-sdk/kusto/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := kusto.NewReadOnlyFollowingDatabase(ctx, "readOnlyFollowingDatabase", &kusto.ReadOnlyFollowingDatabaseArgs{
CallerRole: pulumi.String("Admin"),
ClusterName: pulumi.String("kustoCluster"),
DatabaseName: pulumi.String("KustoDatabase8"),
ResourceGroupName: pulumi.String("kustorptest"),
})
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.kusto.ReadOnlyFollowingDatabase;
import com.pulumi.azurenative.kusto.ReadOnlyFollowingDatabaseArgs;
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 readOnlyFollowingDatabase = new ReadOnlyFollowingDatabase("readOnlyFollowingDatabase", ReadOnlyFollowingDatabaseArgs.builder()
.callerRole("Admin")
.clusterName("kustoCluster")
.databaseName("KustoDatabase8")
.resourceGroupName("kustorptest")
.build());
}
}
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:kusto:ReadOnlyFollowingDatabase kustoCluster/KustoDatabase8 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/databases/{databaseName}
Properties
The name of the attached database configuration cluster
The Azure API version of the resource.
The origin of the following setup.
The time the data should be kept in cache for fast queries in TimeSpan.
The name of the leader cluster
The original database name, before databaseNameOverride or databaseNamePrefix where applied.
The principals modification kind of the database
The provisioned state of the resource.
The time the data should be kept before it stops being accessible to queries in TimeSpan.
The statistics of the database.
The database suspension details. If the database is suspended, this object contains information related to the database's suspension state.
Table level sharing specifications