azure-native.kusto.ReadOnlyFollowingDatabase
Explore with Pulumi AI
Class representing a read only following database. Azure REST API version: 2022-12-29. Prior API version in Azure Native 1.x: 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 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/v2"
"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());
}
}
import pulumi
import pulumi_azure_native as azure_native
read_only_following_database = azure_native.kusto.ReadOnlyFollowingDatabase("readOnlyFollowingDatabase",
cluster_name="kustoCluster",
database_name="kustoReadOnlyDatabase",
hot_cache_period="P1D",
kind="ReadOnlyFollowing",
location="westus",
resource_group_name="kustorptest")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const readOnlyFollowingDatabase = new azure_native.kusto.ReadOnlyFollowingDatabase("readOnlyFollowingDatabase", {
clusterName: "kustoCluster",
databaseName: "kustoReadOnlyDatabase",
hotCachePeriod: "P1D",
kind: "ReadOnlyFollowing",
location: "westus",
resourceGroupName: "kustorptest",
});
resources:
readOnlyFollowingDatabase:
type: azure-native:kusto:ReadOnlyFollowingDatabase
properties:
clusterName: kustoCluster
databaseName: kustoReadOnlyDatabase
hotCachePeriod: P1D
kind: ReadOnlyFollowing
location: westus
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 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/v2"
"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 pulumi
import pulumi_azure_native as azure_native
read_only_following_database = azure_native.kusto.ReadOnlyFollowingDatabase("readOnlyFollowingDatabase",
caller_role="Admin",
cluster_name="kustoCluster",
database_name="KustoDatabase8",
resource_group_name="kustorptest")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const readOnlyFollowingDatabase = new azure_native.kusto.ReadOnlyFollowingDatabase("readOnlyFollowingDatabase", {
callerRole: "Admin",
clusterName: "kustoCluster",
databaseName: "KustoDatabase8",
resourceGroupName: "kustorptest",
});
resources:
readOnlyFollowingDatabase:
type: azure-native:kusto:ReadOnlyFollowingDatabase
properties:
callerRole: Admin
clusterName: kustoCluster
databaseName: KustoDatabase8
resourceGroupName: kustorptest
Create ReadOnlyFollowingDatabase Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ReadOnlyFollowingDatabase(name: string, args: ReadOnlyFollowingDatabaseArgs, opts?: CustomResourceOptions);
@overload
def ReadOnlyFollowingDatabase(resource_name: str,
args: ReadOnlyFollowingDatabaseArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ReadOnlyFollowingDatabase(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
caller_role: Optional[str] = None,
database_name: Optional[str] = None,
hot_cache_period: Optional[str] = None,
location: Optional[str] = None)
func NewReadOnlyFollowingDatabase(ctx *Context, name string, args ReadOnlyFollowingDatabaseArgs, opts ...ResourceOption) (*ReadOnlyFollowingDatabase, error)
public ReadOnlyFollowingDatabase(string name, ReadOnlyFollowingDatabaseArgs args, CustomResourceOptions? opts = null)
public ReadOnlyFollowingDatabase(String name, ReadOnlyFollowingDatabaseArgs args)
public ReadOnlyFollowingDatabase(String name, ReadOnlyFollowingDatabaseArgs args, CustomResourceOptions options)
type: azure-native:kusto:ReadOnlyFollowingDatabase
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 ReadOnlyFollowingDatabaseArgs
- 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 ReadOnlyFollowingDatabaseArgs
- 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 ReadOnlyFollowingDatabaseArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ReadOnlyFollowingDatabaseArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ReadOnlyFollowingDatabaseArgs
- 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 readOnlyFollowingDatabaseResource = new AzureNative.Kusto.ReadOnlyFollowingDatabase("readOnlyFollowingDatabaseResource", new()
{
ClusterName = "string",
Kind = "string",
ResourceGroupName = "string",
CallerRole = "string",
DatabaseName = "string",
HotCachePeriod = "string",
Location = "string",
});
example, err := kusto.NewReadOnlyFollowingDatabase(ctx, "readOnlyFollowingDatabaseResource", &kusto.ReadOnlyFollowingDatabaseArgs{
ClusterName: pulumi.String("string"),
Kind: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
CallerRole: pulumi.String("string"),
DatabaseName: pulumi.String("string"),
HotCachePeriod: pulumi.String("string"),
Location: pulumi.String("string"),
})
var readOnlyFollowingDatabaseResource = new ReadOnlyFollowingDatabase("readOnlyFollowingDatabaseResource", ReadOnlyFollowingDatabaseArgs.builder()
.clusterName("string")
.kind("string")
.resourceGroupName("string")
.callerRole("string")
.databaseName("string")
.hotCachePeriod("string")
.location("string")
.build());
read_only_following_database_resource = azure_native.kusto.ReadOnlyFollowingDatabase("readOnlyFollowingDatabaseResource",
cluster_name="string",
kind="string",
resource_group_name="string",
caller_role="string",
database_name="string",
hot_cache_period="string",
location="string")
const readOnlyFollowingDatabaseResource = new azure_native.kusto.ReadOnlyFollowingDatabase("readOnlyFollowingDatabaseResource", {
clusterName: "string",
kind: "string",
resourceGroupName: "string",
callerRole: "string",
databaseName: "string",
hotCachePeriod: "string",
location: "string",
});
type: azure-native:kusto:ReadOnlyFollowingDatabase
properties:
callerRole: string
clusterName: string
databaseName: string
hotCachePeriod: string
kind: string
location: string
resourceGroupName: string
ReadOnlyFollowingDatabase 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 ReadOnlyFollowingDatabase resource accepts the following input properties:
- Cluster
Name string - The name of the Kusto cluster.
- Resource
Group stringName - The name of the resource group containing the Kusto cluster.
- Caller
Role string - By default, any user who run operation on a database become an Admin on it. This property allows the caller to exclude the caller from Admins list.
- Database
Name string - The name of the database in the Kusto cluster.
- Hot
Cache stringPeriod - The time the data should be kept in cache for fast queries in TimeSpan.
- Location string
- Resource location.
- Cluster
Name string - The name of the Kusto cluster.
- Resource
Group stringName - The name of the resource group containing the Kusto cluster.
- Caller
Role string - By default, any user who run operation on a database become an Admin on it. This property allows the caller to exclude the caller from Admins list.
- Database
Name string - The name of the database in the Kusto cluster.
- Hot
Cache stringPeriod - The time the data should be kept in cache for fast queries in TimeSpan.
- Location string
- Resource location.
- cluster
Name String - The name of the Kusto cluster.
- resource
Group StringName - The name of the resource group containing the Kusto cluster.
- caller
Role String - By default, any user who run operation on a database become an Admin on it. This property allows the caller to exclude the caller from Admins list.
- database
Name String - The name of the database in the Kusto cluster.
- hot
Cache StringPeriod - The time the data should be kept in cache for fast queries in TimeSpan.
- location String
- Resource location.
- cluster
Name string - The name of the Kusto cluster.
- resource
Group stringName - The name of the resource group containing the Kusto cluster.
- caller
Role string - By default, any user who run operation on a database become an Admin on it. This property allows the caller to exclude the caller from Admins list.
- database
Name string - The name of the database in the Kusto cluster.
- hot
Cache stringPeriod - The time the data should be kept in cache for fast queries in TimeSpan.
- location string
- Resource location.
- cluster_
name str - The name of the Kusto cluster.
- resource_
group_ strname - The name of the resource group containing the Kusto cluster.
- caller_
role str - By default, any user who run operation on a database become an Admin on it. This property allows the caller to exclude the caller from Admins list.
- database_
name str - The name of the database in the Kusto cluster.
- hot_
cache_ strperiod - The time the data should be kept in cache for fast queries in TimeSpan.
- location str
- Resource location.
- cluster
Name String - The name of the Kusto cluster.
- resource
Group StringName - The name of the resource group containing the Kusto cluster.
- caller
Role String - By default, any user who run operation on a database become an Admin on it. This property allows the caller to exclude the caller from Admins list.
- database
Name String - The name of the database in the Kusto cluster.
- hot
Cache StringPeriod - The time the data should be kept in cache for fast queries in TimeSpan.
- location String
- Resource location.
Outputs
All input properties are implicitly available as output properties. Additionally, the ReadOnlyFollowingDatabase resource produces the following output properties:
- Attached
Database stringConfiguration Name - The name of the attached database configuration cluster
- string
- The origin of the following setup.
- Id string
- The provider-assigned unique ID for this managed resource.
- Leader
Cluster stringResource Id - The name of the leader cluster
- Name string
- The name of the resource
- Original
Database stringName - The original database name, before databaseNameOverride or databaseNamePrefix where applied.
- Principals
Modification stringKind - The principals modification kind of the database
- Provisioning
State string - The provisioned state of the resource.
- Soft
Delete stringPeriod - The time the data should be kept before it stops being accessible to queries in TimeSpan.
- Statistics
Pulumi.
Azure Native. Kusto. Outputs. Database Statistics Response - The statistics of the database.
- Table
Level Pulumi.Sharing Properties Azure Native. Kusto. Outputs. Table Level Sharing Properties Response - Table level sharing specifications
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Attached
Database stringConfiguration Name - The name of the attached database configuration cluster
- string
- The origin of the following setup.
- Id string
- The provider-assigned unique ID for this managed resource.
- Leader
Cluster stringResource Id - The name of the leader cluster
- Name string
- The name of the resource
- Original
Database stringName - The original database name, before databaseNameOverride or databaseNamePrefix where applied.
- Principals
Modification stringKind - The principals modification kind of the database
- Provisioning
State string - The provisioned state of the resource.
- Soft
Delete stringPeriod - The time the data should be kept before it stops being accessible to queries in TimeSpan.
- Statistics
Database
Statistics Response - The statistics of the database.
- Table
Level TableSharing Properties Level Sharing Properties Response - Table level sharing specifications
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- attached
Database StringConfiguration Name - The name of the attached database configuration cluster
- String
- The origin of the following setup.
- id String
- The provider-assigned unique ID for this managed resource.
- leader
Cluster StringResource Id - The name of the leader cluster
- name String
- The name of the resource
- original
Database StringName - The original database name, before databaseNameOverride or databaseNamePrefix where applied.
- principals
Modification StringKind - The principals modification kind of the database
- provisioning
State String - The provisioned state of the resource.
- soft
Delete StringPeriod - The time the data should be kept before it stops being accessible to queries in TimeSpan.
- statistics
Database
Statistics Response - The statistics of the database.
- table
Level TableSharing Properties Level Sharing Properties Response - Table level sharing specifications
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- attached
Database stringConfiguration Name - The name of the attached database configuration cluster
- string
- The origin of the following setup.
- id string
- The provider-assigned unique ID for this managed resource.
- leader
Cluster stringResource Id - The name of the leader cluster
- name string
- The name of the resource
- original
Database stringName - The original database name, before databaseNameOverride or databaseNamePrefix where applied.
- principals
Modification stringKind - The principals modification kind of the database
- provisioning
State string - The provisioned state of the resource.
- soft
Delete stringPeriod - The time the data should be kept before it stops being accessible to queries in TimeSpan.
- statistics
Database
Statistics Response - The statistics of the database.
- table
Level TableSharing Properties Level Sharing Properties Response - Table level sharing specifications
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- attached_
database_ strconfiguration_ name - The name of the attached database configuration cluster
- str
- The origin of the following setup.
- id str
- The provider-assigned unique ID for this managed resource.
- leader_
cluster_ strresource_ id - The name of the leader cluster
- name str
- The name of the resource
- original_
database_ strname - The original database name, before databaseNameOverride or databaseNamePrefix where applied.
- principals_
modification_ strkind - The principals modification kind of the database
- provisioning_
state str - The provisioned state of the resource.
- soft_
delete_ strperiod - The time the data should be kept before it stops being accessible to queries in TimeSpan.
- statistics
Database
Statistics Response - The statistics of the database.
- table_
level_ Tablesharing_ properties Level Sharing Properties Response - Table level sharing specifications
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- attached
Database StringConfiguration Name - The name of the attached database configuration cluster
- String
- The origin of the following setup.
- id String
- The provider-assigned unique ID for this managed resource.
- leader
Cluster StringResource Id - The name of the leader cluster
- name String
- The name of the resource
- original
Database StringName - The original database name, before databaseNameOverride or databaseNamePrefix where applied.
- principals
Modification StringKind - The principals modification kind of the database
- provisioning
State String - The provisioned state of the resource.
- soft
Delete StringPeriod - The time the data should be kept before it stops being accessible to queries in TimeSpan.
- statistics Property Map
- The statistics of the database.
- table
Level Property MapSharing Properties - Table level sharing specifications
- 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.
TableLevelSharingPropertiesResponse, TableLevelSharingPropertiesResponseArgs
- External
Tables List<string>To Exclude - List of external tables to exclude from the follower database
- External
Tables List<string>To Include - List of external tables to include in the follower database
- Functions
To List<string>Exclude - List of functions to exclude from the follower database
- Functions
To List<string>Include - List of functions to include in the follower database
- Materialized
Views List<string>To Exclude - List of materialized views to exclude from the follower database
- Materialized
Views List<string>To Include - List of materialized views to include in the follower database
- Tables
To List<string>Exclude - List of tables to exclude from the follower database
- Tables
To List<string>Include - List of tables to include in the follower database
- External
Tables []stringTo Exclude - List of external tables to exclude from the follower database
- External
Tables []stringTo Include - List of external tables to include in the follower database
- Functions
To []stringExclude - List of functions to exclude from the follower database
- Functions
To []stringInclude - List of functions to include in the follower database
- Materialized
Views []stringTo Exclude - List of materialized views to exclude from the follower database
- Materialized
Views []stringTo Include - List of materialized views to include in the follower database
- Tables
To []stringExclude - List of tables to exclude from the follower database
- Tables
To []stringInclude - List of tables to include in the follower database
- external
Tables List<String>To Exclude - List of external tables to exclude from the follower database
- external
Tables List<String>To Include - List of external tables to include in the follower database
- functions
To List<String>Exclude - List of functions to exclude from the follower database
- functions
To List<String>Include - List of functions to include in the follower database
- materialized
Views List<String>To Exclude - List of materialized views to exclude from the follower database
- materialized
Views List<String>To Include - List of materialized views to include in the follower database
- tables
To List<String>Exclude - List of tables to exclude from the follower database
- tables
To List<String>Include - List of tables to include in the follower database
- external
Tables string[]To Exclude - List of external tables to exclude from the follower database
- external
Tables string[]To Include - List of external tables to include in the follower database
- functions
To string[]Exclude - List of functions to exclude from the follower database
- functions
To string[]Include - List of functions to include in the follower database
- materialized
Views string[]To Exclude - List of materialized views to exclude from the follower database
- materialized
Views string[]To Include - List of materialized views to include in the follower database
- tables
To string[]Exclude - List of tables to exclude from the follower database
- tables
To string[]Include - List of tables to include in the follower database
- external_
tables_ Sequence[str]to_ exclude - List of external tables to exclude from the follower database
- external_
tables_ Sequence[str]to_ include - List of external tables to include in the follower database
- functions_
to_ Sequence[str]exclude - List of functions to exclude from the follower database
- functions_
to_ Sequence[str]include - List of functions to include in the follower database
- materialized_
views_ Sequence[str]to_ exclude - List of materialized views to exclude from the follower database
- materialized_
views_ Sequence[str]to_ include - List of materialized views to include in the follower database
- tables_
to_ Sequence[str]exclude - List of tables to exclude from the follower database
- tables_
to_ Sequence[str]include - List of tables to include in the follower database
- external
Tables List<String>To Exclude - List of external tables to exclude from the follower database
- external
Tables List<String>To Include - List of external tables to include in the follower database
- functions
To List<String>Exclude - List of functions to exclude from the follower database
- functions
To List<String>Include - List of functions to include in the follower database
- materialized
Views List<String>To Exclude - List of materialized views to exclude from the follower database
- materialized
Views List<String>To Include - List of materialized views to include in the follower database
- tables
To List<String>Exclude - List of tables to exclude from the follower database
- tables
To List<String>Include - List of tables to include in the follower database
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}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0