azure-native.kusto.ClusterPrincipalAssignment
Explore with Pulumi AI
Class representing a cluster principal assignment.
Uses Azure REST API version 2024-04-13. In version 2.x of the Azure Native provider, it used API version 2022-12-29.
Other available API versions: 2019-11-09, 2020-02-15, 2020-06-14, 2020-09-18, 2021-01-01, 2021-08-27, 2022-02-01, 2022-07-07, 2022-11-11, 2022-12-29, 2023-05-02, 2023-08-15. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native kusto [ApiVersion]
. See the version guide for details.
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[Union[str, PrincipalType]] = None,
resource_group_name: Optional[str] = None,
role: Optional[Union[str, ClusterPrincipalRole]] = None,
principal_assignment_name: Optional[str] = None,
tenant_id: 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-native: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 AzureNative.Kusto.ClusterPrincipalAssignment("clusterPrincipalAssignmentResource", new()
{
ClusterName = "string",
PrincipalId = "string",
PrincipalType = "string",
ResourceGroupName = "string",
Role = "string",
PrincipalAssignmentName = "string",
TenantId = "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"),
PrincipalAssignmentName: pulumi.String("string"),
TenantId: pulumi.String("string"),
})
var clusterPrincipalAssignmentResource = new ClusterPrincipalAssignment("clusterPrincipalAssignmentResource", ClusterPrincipalAssignmentArgs.builder()
.clusterName("string")
.principalId("string")
.principalType("string")
.resourceGroupName("string")
.role("string")
.principalAssignmentName("string")
.tenantId("string")
.build());
cluster_principal_assignment_resource = azure_native.kusto.ClusterPrincipalAssignment("clusterPrincipalAssignmentResource",
cluster_name="string",
principal_id="string",
principal_type="string",
resource_group_name="string",
role="string",
principal_assignment_name="string",
tenant_id="string")
const clusterPrincipalAssignmentResource = new azure_native.kusto.ClusterPrincipalAssignment("clusterPrincipalAssignmentResource", {
clusterName: "string",
principalId: "string",
principalType: "string",
resourceGroupName: "string",
role: "string",
principalAssignmentName: "string",
tenantId: "string",
});
type: azure-native:kusto:ClusterPrincipalAssignment
properties:
clusterName: string
principalAssignmentName: 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 Kusto cluster.
- Principal
Id This property is required. string - The principal ID assigned to the cluster principal. It can be a user email, application ID, or security group name.
- Principal
Type This property is required. string | Pulumi.Azure Native. Kusto. Principal Type - Principal type.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- Role
This property is required. string | Pulumi.Azure Native. Kusto. Cluster Principal Role - Cluster principal role.
- Principal
Assignment Name Changes to this property will trigger replacement.
- The name of the Kusto principalAssignment.
- Tenant
Id string - The tenant id of the principal
- Cluster
Name This property is required. Changes to this property will trigger replacement.
- The name of the Kusto cluster.
- Principal
Id This property is required. string - The principal ID assigned to the cluster principal. It can be a user email, application ID, or security group name.
- Principal
Type This property is required. string | PrincipalType - Principal type.
- Resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- Role
This property is required. string | ClusterPrincipal Role - Cluster principal role.
- Principal
Assignment Name Changes to this property will trigger replacement.
- The name of the Kusto principalAssignment.
- Tenant
Id string - The tenant id of the principal
- cluster
Name This property is required. Changes to this property will trigger replacement.
- The name of the Kusto cluster.
- principal
Id This property is required. String - The principal ID assigned to the cluster principal. It can be a user email, application ID, or security group name.
- principal
Type This property is required. String | PrincipalType - Principal type.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- role
This property is required. String | ClusterPrincipal Role - Cluster principal role.
- principal
Assignment Name Changes to this property will trigger replacement.
- The name of the Kusto principalAssignment.
- tenant
Id String - The tenant id of the principal
- cluster
Name This property is required. Changes to this property will trigger replacement.
- The name of the Kusto cluster.
- principal
Id This property is required. string - The principal ID assigned to the cluster principal. It can be a user email, application ID, or security group name.
- principal
Type This property is required. string | PrincipalType - Principal type.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- role
This property is required. string | ClusterPrincipal Role - Cluster principal role.
- principal
Assignment Name Changes to this property will trigger replacement.
- The name of the Kusto principalAssignment.
- tenant
Id string - The tenant id of the principal
- cluster_
name This property is required. Changes to this property will trigger replacement.
- The name of the Kusto cluster.
- principal_
id This property is required. str - The principal ID assigned to the cluster principal. It can be a user email, application ID, or security group name.
- principal_
type This property is required. str | PrincipalType - Principal type.
- resource_
group_ name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- role
This property is required. str | ClusterPrincipal Role - Cluster principal role.
- principal_
assignment_ name Changes to this property will trigger replacement.
- The name of the Kusto principalAssignment.
- tenant_
id str - The tenant id of the principal
- cluster
Name This property is required. Changes to this property will trigger replacement.
- The name of the Kusto cluster.
- principal
Id This property is required. String - The principal ID assigned to the cluster principal. It can be a user email, application ID, or security group name.
- principal
Type This property is required. String | "App" | "Group" | "User" - Principal type.
- resource
Group Name This property is required. Changes to this property will trigger replacement.
- The name of the resource group. The name is case insensitive.
- role
This property is required. String | "AllDatabases Admin" | "All Databases Viewer" | "All Databases Monitor" - Cluster principal role.
- principal
Assignment Name Changes to this property will trigger replacement.
- The name of the Kusto principalAssignment.
- tenant
Id String - The tenant id of the principal
Outputs
All input properties are implicitly available as output properties. Additionally, the ClusterPrincipalAssignment resource produces the following output properties:
- Aad
Object stringId - The service principal object id in AAD (Azure active directory)
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Principal
Name string - The principal name
- Provisioning
State string - The provisioned state of the resource.
- Tenant
Name string - The tenant name of the principal
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Aad
Object stringId - The service principal object id in AAD (Azure active directory)
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Principal
Name string - The principal name
- Provisioning
State string - The provisioned state of the resource.
- Tenant
Name string - The tenant name of the principal
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- aad
Object StringId - The service principal object id in AAD (Azure active directory)
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- principal
Name String - The principal name
- provisioning
State String - The provisioned state of the resource.
- tenant
Name String - The tenant name of the principal
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- aad
Object stringId - The service principal object id in AAD (Azure active directory)
- azure
Api stringVersion - The Azure API version of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- principal
Name string - The principal name
- provisioning
State string - The provisioned state of the resource.
- tenant
Name string - The tenant name of the principal
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- aad_
object_ strid - The service principal object id in AAD (Azure active directory)
- azure_
api_ strversion - The Azure API version of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- principal_
name str - The principal name
- provisioning_
state str - The provisioned state of the resource.
- tenant_
name str - The tenant name of the principal
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- aad
Object StringId - The service principal object id in AAD (Azure active directory)
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- principal
Name String - The principal name
- provisioning
State String - The provisioned state of the resource.
- tenant
Name String - The tenant name of the principal
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
ClusterPrincipalRole, ClusterPrincipalRoleArgs
- All
Databases Admin - AllDatabasesAdmin
- All
Databases Viewer - AllDatabasesViewer
- All
Databases Monitor - AllDatabasesMonitor
- Cluster
Principal Role All Databases Admin - AllDatabasesAdmin
- Cluster
Principal Role All Databases Viewer - AllDatabasesViewer
- Cluster
Principal Role All Databases Monitor - AllDatabasesMonitor
- All
Databases Admin - AllDatabasesAdmin
- All
Databases Viewer - AllDatabasesViewer
- All
Databases Monitor - AllDatabasesMonitor
- All
Databases Admin - AllDatabasesAdmin
- All
Databases Viewer - AllDatabasesViewer
- All
Databases Monitor - AllDatabasesMonitor
- ALL_DATABASES_ADMIN
- AllDatabasesAdmin
- ALL_DATABASES_VIEWER
- AllDatabasesViewer
- ALL_DATABASES_MONITOR
- AllDatabasesMonitor
- "All
Databases Admin" - AllDatabasesAdmin
- "All
Databases Viewer" - AllDatabasesViewer
- "All
Databases Monitor" - AllDatabasesMonitor
PrincipalType, PrincipalTypeArgs
- App
- App
- Group
- Group
- User
- User
- Principal
Type App - App
- Principal
Type Group - Group
- Principal
Type User - User
- App
- App
- Group
- Group
- User
- User
- App
- App
- Group
- Group
- User
- User
- APP
- App
- GROUP
- Group
- USER
- User
- "App"
- App
- "Group"
- Group
- "User"
- User
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:kusto:ClusterPrincipalAssignment kustoCluster/kustoprincipal1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Kusto/clusters/{clusterName}/principalAssignments/{principalAssignmentName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0