1. Packages
  2. Azure Native v1
  3. API Docs
  4. kusto
  5. ReadWriteDatabase
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.kusto.ReadWriteDatabase

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    Class representing a read write database. API Version: 2021-01-01.

    Example Usage

    Kusto ReadOnly database update

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var readWriteDatabase = new AzureNative.Kusto.ReadWriteDatabase("readWriteDatabase", new()
        {
            ClusterName = "kustoclusterrptest4",
            DatabaseName = "KustoreadOnlyDatabase",
            ResourceGroupName = "kustorptest",
        });
    
    });
    
    package main
    
    import (
    	kusto "github.com/pulumi/pulumi-azure-native-sdk/kusto"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := kusto.NewReadWriteDatabase(ctx, "readWriteDatabase", &kusto.ReadWriteDatabaseArgs{
    			ClusterName:       pulumi.String("kustoclusterrptest4"),
    			DatabaseName:      pulumi.String("KustoreadOnlyDatabase"),
    			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.ReadWriteDatabase;
    import com.pulumi.azurenative.kusto.ReadWriteDatabaseArgs;
    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 readWriteDatabase = new ReadWriteDatabase("readWriteDatabase", ReadWriteDatabaseArgs.builder()        
                .clusterName("kustoclusterrptest4")
                .databaseName("KustoreadOnlyDatabase")
                .resourceGroupName("kustorptest")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    read_write_database = azure_native.kusto.ReadWriteDatabase("readWriteDatabase",
        cluster_name="kustoclusterrptest4",
        database_name="KustoreadOnlyDatabase",
        resource_group_name="kustorptest")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const readWriteDatabase = new azure_native.kusto.ReadWriteDatabase("readWriteDatabase", {
        clusterName: "kustoclusterrptest4",
        databaseName: "KustoreadOnlyDatabase",
        resourceGroupName: "kustorptest",
    });
    
    resources:
      readWriteDatabase:
        type: azure-native:kusto:ReadWriteDatabase
        properties:
          clusterName: kustoclusterrptest4
          databaseName: KustoreadOnlyDatabase
          resourceGroupName: kustorptest
    

    Kusto ReadWrite database create or update

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var readWriteDatabase = new AzureNative.Kusto.ReadWriteDatabase("readWriteDatabase", new()
        {
            ClusterName = "kustoclusterrptest4",
            DatabaseName = "KustoDatabase8",
            Location = "westus",
            ResourceGroupName = "kustorptest",
            SoftDeletePeriod = "P1D",
        });
    
    });
    
    package main
    
    import (
    	kusto "github.com/pulumi/pulumi-azure-native-sdk/kusto"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := kusto.NewReadWriteDatabase(ctx, "readWriteDatabase", &kusto.ReadWriteDatabaseArgs{
    			ClusterName:       pulumi.String("kustoclusterrptest4"),
    			DatabaseName:      pulumi.String("KustoDatabase8"),
    			Location:          pulumi.String("westus"),
    			ResourceGroupName: pulumi.String("kustorptest"),
    			SoftDeletePeriod:  pulumi.String("P1D"),
    		})
    		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.ReadWriteDatabase;
    import com.pulumi.azurenative.kusto.ReadWriteDatabaseArgs;
    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 readWriteDatabase = new ReadWriteDatabase("readWriteDatabase", ReadWriteDatabaseArgs.builder()        
                .clusterName("kustoclusterrptest4")
                .databaseName("KustoDatabase8")
                .location("westus")
                .resourceGroupName("kustorptest")
                .softDeletePeriod("P1D")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    read_write_database = azure_native.kusto.ReadWriteDatabase("readWriteDatabase",
        cluster_name="kustoclusterrptest4",
        database_name="KustoDatabase8",
        location="westus",
        resource_group_name="kustorptest",
        soft_delete_period="P1D")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const readWriteDatabase = new azure_native.kusto.ReadWriteDatabase("readWriteDatabase", {
        clusterName: "kustoclusterrptest4",
        databaseName: "KustoDatabase8",
        location: "westus",
        resourceGroupName: "kustorptest",
        softDeletePeriod: "P1D",
    });
    
    resources:
      readWriteDatabase:
        type: azure-native:kusto:ReadWriteDatabase
        properties:
          clusterName: kustoclusterrptest4
          databaseName: KustoDatabase8
          location: westus
          resourceGroupName: kustorptest
          softDeletePeriod: P1D
    

    Create ReadWriteDatabase Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ReadWriteDatabase(name: string, args: ReadWriteDatabaseArgs, opts?: CustomResourceOptions);
    @overload
    def ReadWriteDatabase(resource_name: str,
                          args: ReadWriteDatabaseArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def ReadWriteDatabase(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          cluster_name: Optional[str] = None,
                          resource_group_name: Optional[str] = None,
                          database_name: Optional[str] = None,
                          hot_cache_period: Optional[str] = None,
                          location: Optional[str] = None,
                          soft_delete_period: Optional[str] = None)
    func NewReadWriteDatabase(ctx *Context, name string, args ReadWriteDatabaseArgs, opts ...ResourceOption) (*ReadWriteDatabase, error)
    public ReadWriteDatabase(string name, ReadWriteDatabaseArgs args, CustomResourceOptions? opts = null)
    public ReadWriteDatabase(String name, ReadWriteDatabaseArgs args)
    public ReadWriteDatabase(String name, ReadWriteDatabaseArgs args, CustomResourceOptions options)
    
    type: azure-native:kusto:ReadWriteDatabase
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ReadWriteDatabaseArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ReadWriteDatabaseArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ReadWriteDatabaseArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ReadWriteDatabaseArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ReadWriteDatabaseArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var readWriteDatabaseResource = new AzureNative.Kusto.ReadWriteDatabase("readWriteDatabaseResource", new()
    {
        ClusterName = "string",
        Kind = "string",
        ResourceGroupName = "string",
        DatabaseName = "string",
        HotCachePeriod = "string",
        Location = "string",
        SoftDeletePeriod = "string",
    });
    
    example, err := kusto.NewReadWriteDatabase(ctx, "readWriteDatabaseResource", &kusto.ReadWriteDatabaseArgs{
    	ClusterName:       "string",
    	Kind:              "string",
    	ResourceGroupName: "string",
    	DatabaseName:      "string",
    	HotCachePeriod:    "string",
    	Location:          "string",
    	SoftDeletePeriod:  "string",
    })
    
    var readWriteDatabaseResource = new ReadWriteDatabase("readWriteDatabaseResource", ReadWriteDatabaseArgs.builder()
        .clusterName("string")
        .kind("string")
        .resourceGroupName("string")
        .databaseName("string")
        .hotCachePeriod("string")
        .location("string")
        .softDeletePeriod("string")
        .build());
    
    read_write_database_resource = azure_native.kusto.ReadWriteDatabase("readWriteDatabaseResource",
        cluster_name=string,
        kind=string,
        resource_group_name=string,
        database_name=string,
        hot_cache_period=string,
        location=string,
        soft_delete_period=string)
    
    const readWriteDatabaseResource = new azure_native.kusto.ReadWriteDatabase("readWriteDatabaseResource", {
        clusterName: "string",
        kind: "string",
        resourceGroupName: "string",
        databaseName: "string",
        hotCachePeriod: "string",
        location: "string",
        softDeletePeriod: "string",
    });
    
    type: azure-native:kusto:ReadWriteDatabase
    properties:
        clusterName: string
        databaseName: string
        hotCachePeriod: string
        kind: string
        location: string
        resourceGroupName: string
        softDeletePeriod: string
    

    ReadWriteDatabase Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The ReadWriteDatabase resource accepts the following input properties:

    ClusterName string
    The name of the Kusto cluster.
    ResourceGroupName string
    The name of the resource group containing the Kusto cluster.
    DatabaseName string
    The name of the database in the Kusto cluster.
    HotCachePeriod string
    The time the data should be kept in cache for fast queries in TimeSpan.
    Location string
    Resource location.
    SoftDeletePeriod string
    The time the data should be kept before it stops being accessible to queries in TimeSpan.
    ClusterName string
    The name of the Kusto cluster.
    ResourceGroupName string
    The name of the resource group containing the Kusto cluster.
    DatabaseName string
    The name of the database in the Kusto cluster.
    HotCachePeriod string
    The time the data should be kept in cache for fast queries in TimeSpan.
    Location string
    Resource location.
    SoftDeletePeriod string
    The time the data should be kept before it stops being accessible to queries in TimeSpan.
    clusterName String
    The name of the Kusto cluster.
    resourceGroupName String
    The name of the resource group containing the Kusto cluster.
    databaseName String
    The name of the database in the Kusto cluster.
    hotCachePeriod String
    The time the data should be kept in cache for fast queries in TimeSpan.
    location String
    Resource location.
    softDeletePeriod String
    The time the data should be kept before it stops being accessible to queries in TimeSpan.
    clusterName string
    The name of the Kusto cluster.
    resourceGroupName string
    The name of the resource group containing the Kusto cluster.
    databaseName string
    The name of the database in the Kusto cluster.
    hotCachePeriod string
    The time the data should be kept in cache for fast queries in TimeSpan.
    location string
    Resource location.
    softDeletePeriod string
    The time the data should be kept before it stops being accessible to queries in TimeSpan.
    cluster_name str
    The name of the Kusto cluster.
    resource_group_name str
    The name of the resource group containing the Kusto cluster.
    database_name str
    The name of the database in the Kusto cluster.
    hot_cache_period str
    The time the data should be kept in cache for fast queries in TimeSpan.
    location str
    Resource location.
    soft_delete_period str
    The time the data should be kept before it stops being accessible to queries in TimeSpan.
    clusterName String
    The name of the Kusto cluster.
    resourceGroupName String
    The name of the resource group containing the Kusto cluster.
    databaseName String
    The name of the database in the Kusto cluster.
    hotCachePeriod String
    The time the data should be kept in cache for fast queries in TimeSpan.
    location String
    Resource location.
    softDeletePeriod String
    The time the data should be kept before it stops being accessible to queries in TimeSpan.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ReadWriteDatabase resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    IsFollowed bool
    Indicates whether the database is followed.
    Name string
    The name of the resource
    ProvisioningState string
    The provisioned state of the resource.
    Statistics Pulumi.AzureNative.Kusto.Outputs.DatabaseStatisticsResponse
    The statistics of the database.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Id string
    The provider-assigned unique ID for this managed resource.
    IsFollowed bool
    Indicates whether the database is followed.
    Name string
    The name of the resource
    ProvisioningState string
    The provisioned state of the resource.
    Statistics DatabaseStatisticsResponse
    The statistics of the database.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id String
    The provider-assigned unique ID for this managed resource.
    isFollowed Boolean
    Indicates whether the database is followed.
    name String
    The name of the resource
    provisioningState String
    The provisioned state of the resource.
    statistics DatabaseStatisticsResponse
    The statistics of the database.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id string
    The provider-assigned unique ID for this managed resource.
    isFollowed boolean
    Indicates whether the database is followed.
    name string
    The name of the resource
    provisioningState string
    The provisioned state of the resource.
    statistics DatabaseStatisticsResponse
    The statistics of the database.
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id str
    The provider-assigned unique ID for this managed resource.
    is_followed bool
    Indicates whether the database is followed.
    name str
    The name of the resource
    provisioning_state str
    The provisioned state of the resource.
    statistics DatabaseStatisticsResponse
    The statistics of the database.
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id String
    The provider-assigned unique ID for this managed resource.
    isFollowed Boolean
    Indicates whether the database is followed.
    name String
    The name of the resource
    provisioningState String
    The provisioned state of the resource.
    statistics Property Map
    The statistics of the database.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

    Supporting Types

    DatabaseStatisticsResponse, DatabaseStatisticsResponseArgs

    Size double
    The database size - the total size of compressed data and index in bytes.
    Size float64
    The database size - the total size of compressed data and index in bytes.
    size Double
    The database size - the total size of compressed data and index in bytes.
    size number
    The database size - the total size of compressed data and index in bytes.
    size float
    The database size - the total size of compressed data and index in bytes.
    size Number
    The database size - the total size of compressed data and index in bytes.

    Import

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

    $ pulumi import azure-native:kusto:ReadWriteDatabase KustoClusterRPTest4/KustoDatabase8 /subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/Databases/KustoDatabase8 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    azure-native-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi