We recommend using Azure Native.
azure.kusto.ClusterPrincipalAssignment
Explore with Pulumi AI
Manages a Kusto Cluster Principal Assignment.
Create ClusterPrincipalAssignment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ClusterPrincipalAssignment(name: string, args: ClusterPrincipalAssignmentArgs, opts?: CustomResourceOptions);
@overload
def ClusterPrincipalAssignment(resource_name: str,
args: ClusterPrincipalAssignmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ClusterPrincipalAssignment(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_name: Optional[str] = None,
principal_id: Optional[str] = None,
principal_type: Optional[str] = None,
resource_group_name: Optional[str] = None,
role: Optional[str] = None,
tenant_id: Optional[str] = None,
name: Optional[str] = None)
func NewClusterPrincipalAssignment(ctx *Context, name string, args ClusterPrincipalAssignmentArgs, opts ...ResourceOption) (*ClusterPrincipalAssignment, error)
public ClusterPrincipalAssignment(string name, ClusterPrincipalAssignmentArgs args, CustomResourceOptions? opts = null)
public ClusterPrincipalAssignment(String name, ClusterPrincipalAssignmentArgs args)
public ClusterPrincipalAssignment(String name, ClusterPrincipalAssignmentArgs args, CustomResourceOptions options)
type: azure:kusto:ClusterPrincipalAssignment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. ClusterPrincipalAssignmentArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. ClusterPrincipalAssignmentArgs - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. ClusterPrincipalAssignmentArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. ClusterPrincipalAssignmentArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. ClusterPrincipalAssignmentArgs - 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 clusterPrincipalAssignmentResource = new Azure.Kusto.ClusterPrincipalAssignment("clusterPrincipalAssignmentResource", new()
{
ClusterName = "string",
PrincipalId = "string",
PrincipalType = "string",
ResourceGroupName = "string",
Role = "string",
TenantId = "string",
Name = "string",
});
example, err := kusto.NewClusterPrincipalAssignment(ctx, "clusterPrincipalAssignmentResource", &kusto.ClusterPrincipalAssignmentArgs{
ClusterName: pulumi.String("string"),
PrincipalId: pulumi.String("string"),
PrincipalType: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
Role: pulumi.String("string"),
TenantId: pulumi.String("string"),
Name: pulumi.String("string"),
})
var clusterPrincipalAssignmentResource = new ClusterPrincipalAssignment("clusterPrincipalAssignmentResource", ClusterPrincipalAssignmentArgs.builder()
.clusterName("string")
.principalId("string")
.principalType("string")
.resourceGroupName("string")
.role("string")
.tenantId("string")
.name("string")
.build());
cluster_principal_assignment_resource = azure.kusto.ClusterPrincipalAssignment("clusterPrincipalAssignmentResource",
cluster_name="string",
principal_id="string",
principal_type="string",
resource_group_name="string",
role="string",
tenant_id="string",
name="string")
const clusterPrincipalAssignmentResource = new azure.kusto.ClusterPrincipalAssignment("clusterPrincipalAssignmentResource", {
clusterName: "string",
principalId: "string",
principalType: "string",
resourceGroupName: "string",
role: "string",
tenantId: "string",
name: "string",
});
type: azure:kusto:ClusterPrincipalAssignment
properties:
clusterName: string
name: string
principalId: string
principalType: string
resourceGroupName: string
role: string
tenantId: string
ClusterPrincipalAssignment Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ClusterPrincipalAssignment resource accepts the following input properties:
- Cluster
Name This property is required. Changes to this property will trigger replacement.
- The name of the cluster in which to create the resource. Changing this forces a new resource to be created.
- Principal
Id This property is required. Changes to this property will trigger replacement.
- The object id of the principal. Changing this forces a new resource to be created.
- Principal
Type This property is required. Changes to this property will trigger replacement.
- The type of the principal. Valid values include
App
,Group
,User
. Changing this forces a new resource to be created. - Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
- Role
This property is required. Changes to this property will trigger replacement.
- The cluster role assigned to the principal. Valid values include
AllDatabasesAdmin
,AllDatabasesViewer
, andAllDatabasesMonitor
. Changing this forces a new resource to be created. - Tenant
Id This property is required. Changes to this property will trigger replacement.
- The tenant id in which the principal resides. Changing this forces a new resource to be created.
- Name
Changes to this property will trigger replacement.
- The name of the Kusto cluster principal assignment. Changing this forces a new resource to be created.
- Cluster
Name This property is required. Changes to this property will trigger replacement.
- The name of the cluster in which to create the resource. Changing this forces a new resource to be created.
- Principal
Id This property is required. Changes to this property will trigger replacement.
- The object id of the principal. Changing this forces a new resource to be created.
- Principal
Type This property is required. Changes to this property will trigger replacement.
- The type of the principal. Valid values include
App
,Group
,User
. Changing this forces a new resource to be created. - Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
- Role
This property is required. Changes to this property will trigger replacement.
- The cluster role assigned to the principal. Valid values include
AllDatabasesAdmin
,AllDatabasesViewer
, andAllDatabasesMonitor
. Changing this forces a new resource to be created. - Tenant
Id This property is required. Changes to this property will trigger replacement.
- The tenant id in which the principal resides. Changing this forces a new resource to be created.
- Name
Changes to this property will trigger replacement.
- The name of the Kusto cluster principal assignment. Changing this forces a new resource to be created.
- cluster
Name This property is required. Changes to this property will trigger replacement.
- The name of the cluster in which to create the resource. Changing this forces a new resource to be created.
- principal
Id This property is required. Changes to this property will trigger replacement.
- The object id of the principal. Changing this forces a new resource to be created.
- principal
Type This property is required. Changes to this property will trigger replacement.
- The type of the principal. Valid values include
App
,Group
,User
. Changing this forces a new resource to be created. - resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
- role
This property is required. Changes to this property will trigger replacement.
- The cluster role assigned to the principal. Valid values include
AllDatabasesAdmin
,AllDatabasesViewer
, andAllDatabasesMonitor
. Changing this forces a new resource to be created. - tenant
Id This property is required. Changes to this property will trigger replacement.
- The tenant id in which the principal resides. Changing this forces a new resource to be created.
- name
Changes to this property will trigger replacement.
- The name of the Kusto cluster principal assignment. Changing this forces a new resource to be created.
- cluster
Name This property is required. Changes to this property will trigger replacement.
- The name of the cluster in which to create the resource. Changing this forces a new resource to be created.
- principal
Id This property is required. Changes to this property will trigger replacement.
- The object id of the principal. Changing this forces a new resource to be created.
- principal
Type This property is required. Changes to this property will trigger replacement.
- The type of the principal. Valid values include
App
,Group
,User
. Changing this forces a new resource to be created. - resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
- role
This property is required. Changes to this property will trigger replacement.
- The cluster role assigned to the principal. Valid values include
AllDatabasesAdmin
,AllDatabasesViewer
, andAllDatabasesMonitor
. Changing this forces a new resource to be created. - tenant
Id This property is required. Changes to this property will trigger replacement.
- The tenant id in which the principal resides. Changing this forces a new resource to be created.
- name
Changes to this property will trigger replacement.
- The name of the Kusto cluster principal assignment. Changing this forces a new resource to be created.
- cluster_
name This property is required. Changes to this property will trigger replacement.
- The name of the cluster in which to create the resource. Changing this forces a new resource to be created.
- principal_
id This property is required. Changes to this property will trigger replacement.
- The object id of the principal. Changing this forces a new resource to be created.
- principal_
type This property is required. Changes to this property will trigger replacement.
- The type of the principal. Valid values include
App
,Group
,User
. Changing this forces a new resource to be created. - resource_
group_ name This property is required. Changes to this property will trigger replacement.
- The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
- role
This property is required. Changes to this property will trigger replacement.
- The cluster role assigned to the principal. Valid values include
AllDatabasesAdmin
,AllDatabasesViewer
, andAllDatabasesMonitor
. Changing this forces a new resource to be created. - tenant_
id This property is required. Changes to this property will trigger replacement.
- The tenant id in which the principal resides. Changing this forces a new resource to be created.
- name
Changes to this property will trigger replacement.
- The name of the Kusto cluster principal assignment. Changing this forces a new resource to be created.
- cluster
Name This property is required. Changes to this property will trigger replacement.
- The name of the cluster in which to create the resource. Changing this forces a new resource to be created.
- principal
Id This property is required. Changes to this property will trigger replacement.
- The object id of the principal. Changing this forces a new resource to be created.
- principal
Type This property is required. Changes to this property will trigger replacement.
- The type of the principal. Valid values include
App
,Group
,User
. Changing this forces a new resource to be created. - resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
- role
This property is required. Changes to this property will trigger replacement.
- The cluster role assigned to the principal. Valid values include
AllDatabasesAdmin
,AllDatabasesViewer
, andAllDatabasesMonitor
. Changing this forces a new resource to be created. - tenant
Id This property is required. Changes to this property will trigger replacement.
- The tenant id in which the principal resides. Changing this forces a new resource to be created.
- name
Changes to this property will trigger replacement.
- The name of the Kusto cluster principal assignment. Changing this forces a new resource to be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the ClusterPrincipalAssignment resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Principal
Name string - The name of the principal.
- Tenant
Name string - The name of the tenant.
- Id string
- The provider-assigned unique ID for this managed resource.
- Principal
Name string - The name of the principal.
- Tenant
Name string - The name of the tenant.
- id String
- The provider-assigned unique ID for this managed resource.
- principal
Name String - The name of the principal.
- tenant
Name String - The name of the tenant.
- id string
- The provider-assigned unique ID for this managed resource.
- principal
Name string - The name of the principal.
- tenant
Name string - The name of the tenant.
- id str
- The provider-assigned unique ID for this managed resource.
- principal_
name str - The name of the principal.
- tenant_
name str - The name of the tenant.
- id String
- The provider-assigned unique ID for this managed resource.
- principal
Name String - The name of the principal.
- tenant
Name String - The name of the tenant.
Look up Existing ClusterPrincipalAssignment Resource
Get an existing ClusterPrincipalAssignment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ClusterPrincipalAssignmentState, opts?: CustomResourceOptions): ClusterPrincipalAssignment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cluster_name: Optional[str] = None,
name: Optional[str] = None,
principal_id: Optional[str] = None,
principal_name: Optional[str] = None,
principal_type: Optional[str] = None,
resource_group_name: Optional[str] = None,
role: Optional[str] = None,
tenant_id: Optional[str] = None,
tenant_name: Optional[str] = None) -> ClusterPrincipalAssignment
func GetClusterPrincipalAssignment(ctx *Context, name string, id IDInput, state *ClusterPrincipalAssignmentState, opts ...ResourceOption) (*ClusterPrincipalAssignment, error)
public static ClusterPrincipalAssignment Get(string name, Input<string> id, ClusterPrincipalAssignmentState? state, CustomResourceOptions? opts = null)
public static ClusterPrincipalAssignment get(String name, Output<String> id, ClusterPrincipalAssignmentState state, CustomResourceOptions options)
resources: _: type: azure:kusto:ClusterPrincipalAssignment get: id: ${id}
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - The unique provider ID of the resource to lookup.
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Cluster
Name Changes to this property will trigger replacement.
- The name of the cluster in which to create the resource. Changing this forces a new resource to be created.
- Name
Changes to this property will trigger replacement.
- The name of the Kusto cluster principal assignment. Changing this forces a new resource to be created.
- Principal
Id Changes to this property will trigger replacement.
- The object id of the principal. Changing this forces a new resource to be created.
- Principal
Name string - The name of the principal.
- Principal
Type Changes to this property will trigger replacement.
- The type of the principal. Valid values include
App
,Group
,User
. Changing this forces a new resource to be created. - Resource
Group Name Changes to this property will trigger replacement.
- The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
- Role
Changes to this property will trigger replacement.
- The cluster role assigned to the principal. Valid values include
AllDatabasesAdmin
,AllDatabasesViewer
, andAllDatabasesMonitor
. Changing this forces a new resource to be created. - Tenant
Id Changes to this property will trigger replacement.
- The tenant id in which the principal resides. Changing this forces a new resource to be created.
- Tenant
Name string - The name of the tenant.
- Cluster
Name Changes to this property will trigger replacement.
- The name of the cluster in which to create the resource. Changing this forces a new resource to be created.
- Name
Changes to this property will trigger replacement.
- The name of the Kusto cluster principal assignment. Changing this forces a new resource to be created.
- Principal
Id Changes to this property will trigger replacement.
- The object id of the principal. Changing this forces a new resource to be created.
- Principal
Name string - The name of the principal.
- Principal
Type Changes to this property will trigger replacement.
- The type of the principal. Valid values include
App
,Group
,User
. Changing this forces a new resource to be created. - Resource
Group Name Changes to this property will trigger replacement.
- The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
- Role
Changes to this property will trigger replacement.
- The cluster role assigned to the principal. Valid values include
AllDatabasesAdmin
,AllDatabasesViewer
, andAllDatabasesMonitor
. Changing this forces a new resource to be created. - Tenant
Id Changes to this property will trigger replacement.
- The tenant id in which the principal resides. Changing this forces a new resource to be created.
- Tenant
Name string - The name of the tenant.
- cluster
Name Changes to this property will trigger replacement.
- The name of the cluster in which to create the resource. Changing this forces a new resource to be created.
- name
Changes to this property will trigger replacement.
- The name of the Kusto cluster principal assignment. Changing this forces a new resource to be created.
- principal
Id Changes to this property will trigger replacement.
- The object id of the principal. Changing this forces a new resource to be created.
- principal
Name String - The name of the principal.
- principal
Type Changes to this property will trigger replacement.
- The type of the principal. Valid values include
App
,Group
,User
. Changing this forces a new resource to be created. - resource
Group Name Changes to this property will trigger replacement.
- The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
- role
Changes to this property will trigger replacement.
- The cluster role assigned to the principal. Valid values include
AllDatabasesAdmin
,AllDatabasesViewer
, andAllDatabasesMonitor
. Changing this forces a new resource to be created. - tenant
Id Changes to this property will trigger replacement.
- The tenant id in which the principal resides. Changing this forces a new resource to be created.
- tenant
Name String - The name of the tenant.
- cluster
Name Changes to this property will trigger replacement.
- The name of the cluster in which to create the resource. Changing this forces a new resource to be created.
- name
Changes to this property will trigger replacement.
- The name of the Kusto cluster principal assignment. Changing this forces a new resource to be created.
- principal
Id Changes to this property will trigger replacement.
- The object id of the principal. Changing this forces a new resource to be created.
- principal
Name string - The name of the principal.
- principal
Type Changes to this property will trigger replacement.
- The type of the principal. Valid values include
App
,Group
,User
. Changing this forces a new resource to be created. - resource
Group Name Changes to this property will trigger replacement.
- The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
- role
Changes to this property will trigger replacement.
- The cluster role assigned to the principal. Valid values include
AllDatabasesAdmin
,AllDatabasesViewer
, andAllDatabasesMonitor
. Changing this forces a new resource to be created. - tenant
Id Changes to this property will trigger replacement.
- The tenant id in which the principal resides. Changing this forces a new resource to be created.
- tenant
Name string - The name of the tenant.
- cluster_
name Changes to this property will trigger replacement.
- The name of the cluster in which to create the resource. Changing this forces a new resource to be created.
- name
Changes to this property will trigger replacement.
- The name of the Kusto cluster principal assignment. Changing this forces a new resource to be created.
- principal_
id Changes to this property will trigger replacement.
- The object id of the principal. Changing this forces a new resource to be created.
- principal_
name str - The name of the principal.
- principal_
type Changes to this property will trigger replacement.
- The type of the principal. Valid values include
App
,Group
,User
. Changing this forces a new resource to be created. - resource_
group_ name Changes to this property will trigger replacement.
- The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
- role
Changes to this property will trigger replacement.
- The cluster role assigned to the principal. Valid values include
AllDatabasesAdmin
,AllDatabasesViewer
, andAllDatabasesMonitor
. Changing this forces a new resource to be created. - tenant_
id Changes to this property will trigger replacement.
- The tenant id in which the principal resides. Changing this forces a new resource to be created.
- tenant_
name str - The name of the tenant.
- cluster
Name Changes to this property will trigger replacement.
- The name of the cluster in which to create the resource. Changing this forces a new resource to be created.
- name
Changes to this property will trigger replacement.
- The name of the Kusto cluster principal assignment. Changing this forces a new resource to be created.
- principal
Id Changes to this property will trigger replacement.
- The object id of the principal. Changing this forces a new resource to be created.
- principal
Name String - The name of the principal.
- principal
Type Changes to this property will trigger replacement.
- The type of the principal. Valid values include
App
,Group
,User
. Changing this forces a new resource to be created. - resource
Group Name Changes to this property will trigger replacement.
- The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
- role
Changes to this property will trigger replacement.
- The cluster role assigned to the principal. Valid values include
AllDatabasesAdmin
,AllDatabasesViewer
, andAllDatabasesMonitor
. Changing this forces a new resource to be created. - tenant
Id Changes to this property will trigger replacement.
- The tenant id in which the principal resides. Changing this forces a new resource to be created.
- tenant
Name String - The name of the tenant.
Import
Data Explorer Cluster Principal Assignments can be imported using the resource id
, e.g.
$ pulumi import azure:kusto/clusterPrincipalAssignment:ClusterPrincipalAssignment example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Kusto/clusters/cluster1/principalAssignments/assignment1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.