azure-native.synapse.KustoPoolDatabasePrincipalAssignment
Explore with Pulumi AI
Class representing a database principal assignment. Azure REST API version: 2021-06-01-preview.
Example Usage
KustoPoolDatabasePrincipalAssignmentsCreateOrUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var kustoPoolDatabasePrincipalAssignment = new AzureNative.Synapse.KustoPoolDatabasePrincipalAssignment("kustoPoolDatabasePrincipalAssignment", new()
{
DatabaseName = "Kustodatabase8",
KustoPoolName = "kustoclusterrptest4",
PrincipalAssignmentName = "kustoprincipal1",
PrincipalId = "87654321-1234-1234-1234-123456789123",
PrincipalType = "App",
ResourceGroupName = "kustorptest",
Role = "Admin",
TenantId = "12345678-1234-1234-1234-123456789123",
WorkspaceName = "synapseWorkspaceName",
});
});
package main
import (
"github.com/pulumi/pulumi-azure-native-sdk/synapse/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := synapse.NewKustoPoolDatabasePrincipalAssignment(ctx, "kustoPoolDatabasePrincipalAssignment", &synapse.KustoPoolDatabasePrincipalAssignmentArgs{
DatabaseName: pulumi.String("Kustodatabase8"),
KustoPoolName: pulumi.String("kustoclusterrptest4"),
PrincipalAssignmentName: pulumi.String("kustoprincipal1"),
PrincipalId: pulumi.String("87654321-1234-1234-1234-123456789123"),
PrincipalType: pulumi.String("App"),
ResourceGroupName: pulumi.String("kustorptest"),
Role: pulumi.String("Admin"),
TenantId: pulumi.String("12345678-1234-1234-1234-123456789123"),
WorkspaceName: pulumi.String("synapseWorkspaceName"),
})
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.synapse.KustoPoolDatabasePrincipalAssignment;
import com.pulumi.azurenative.synapse.KustoPoolDatabasePrincipalAssignmentArgs;
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 kustoPoolDatabasePrincipalAssignment = new KustoPoolDatabasePrincipalAssignment("kustoPoolDatabasePrincipalAssignment", KustoPoolDatabasePrincipalAssignmentArgs.builder()
.databaseName("Kustodatabase8")
.kustoPoolName("kustoclusterrptest4")
.principalAssignmentName("kustoprincipal1")
.principalId("87654321-1234-1234-1234-123456789123")
.principalType("App")
.resourceGroupName("kustorptest")
.role("Admin")
.tenantId("12345678-1234-1234-1234-123456789123")
.workspaceName("synapseWorkspaceName")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
kusto_pool_database_principal_assignment = azure_native.synapse.KustoPoolDatabasePrincipalAssignment("kustoPoolDatabasePrincipalAssignment",
database_name="Kustodatabase8",
kusto_pool_name="kustoclusterrptest4",
principal_assignment_name="kustoprincipal1",
principal_id="87654321-1234-1234-1234-123456789123",
principal_type="App",
resource_group_name="kustorptest",
role="Admin",
tenant_id="12345678-1234-1234-1234-123456789123",
workspace_name="synapseWorkspaceName")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const kustoPoolDatabasePrincipalAssignment = new azure_native.synapse.KustoPoolDatabasePrincipalAssignment("kustoPoolDatabasePrincipalAssignment", {
databaseName: "Kustodatabase8",
kustoPoolName: "kustoclusterrptest4",
principalAssignmentName: "kustoprincipal1",
principalId: "87654321-1234-1234-1234-123456789123",
principalType: "App",
resourceGroupName: "kustorptest",
role: "Admin",
tenantId: "12345678-1234-1234-1234-123456789123",
workspaceName: "synapseWorkspaceName",
});
resources:
kustoPoolDatabasePrincipalAssignment:
type: azure-native:synapse:KustoPoolDatabasePrincipalAssignment
properties:
databaseName: Kustodatabase8
kustoPoolName: kustoclusterrptest4
principalAssignmentName: kustoprincipal1
principalId: 87654321-1234-1234-1234-123456789123
principalType: App
resourceGroupName: kustorptest
role: Admin
tenantId: 12345678-1234-1234-1234-123456789123
workspaceName: synapseWorkspaceName
Create KustoPoolDatabasePrincipalAssignment Resource
new KustoPoolDatabasePrincipalAssignment(name: string, args: KustoPoolDatabasePrincipalAssignmentArgs, opts?: CustomResourceOptions);
@overload
def KustoPoolDatabasePrincipalAssignment(resource_name: str,
opts: Optional[ResourceOptions] = None,
database_name: Optional[str] = None,
kusto_pool_name: Optional[str] = None,
principal_assignment_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, DatabasePrincipalRole]] = None,
tenant_id: Optional[str] = None,
workspace_name: Optional[str] = None)
@overload
def KustoPoolDatabasePrincipalAssignment(resource_name: str,
args: KustoPoolDatabasePrincipalAssignmentArgs,
opts: Optional[ResourceOptions] = None)
func NewKustoPoolDatabasePrincipalAssignment(ctx *Context, name string, args KustoPoolDatabasePrincipalAssignmentArgs, opts ...ResourceOption) (*KustoPoolDatabasePrincipalAssignment, error)
public KustoPoolDatabasePrincipalAssignment(string name, KustoPoolDatabasePrincipalAssignmentArgs args, CustomResourceOptions? opts = null)
public KustoPoolDatabasePrincipalAssignment(String name, KustoPoolDatabasePrincipalAssignmentArgs args)
public KustoPoolDatabasePrincipalAssignment(String name, KustoPoolDatabasePrincipalAssignmentArgs args, CustomResourceOptions options)
type: azure-native:synapse:KustoPoolDatabasePrincipalAssignment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args KustoPoolDatabasePrincipalAssignmentArgs
- 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 KustoPoolDatabasePrincipalAssignmentArgs
- 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 KustoPoolDatabasePrincipalAssignmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args KustoPoolDatabasePrincipalAssignmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args KustoPoolDatabasePrincipalAssignmentArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
KustoPoolDatabasePrincipalAssignment 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 KustoPoolDatabasePrincipalAssignment resource accepts the following input properties:
- Database
Name string The name of the database in the Kusto pool.
- Kusto
Pool stringName The name of the Kusto pool.
- Principal
Id string The principal ID assigned to the database principal. It can be a user email, application ID, or security group name.
- Principal
Type string | Pulumi.Azure Native. Synapse. Principal Type Principal type.
- Resource
Group stringName The name of the resource group. The name is case insensitive.
- Role
string | Pulumi.
Azure Native. Synapse. Database Principal Role Database principal role.
- Workspace
Name string The name of the workspace.
- Principal
Assignment stringName The name of the Kusto principalAssignment.
- Tenant
Id string The tenant id of the principal
- Database
Name string The name of the database in the Kusto pool.
- Kusto
Pool stringName The name of the Kusto pool.
- Principal
Id string The principal ID assigned to the database principal. It can be a user email, application ID, or security group name.
- Principal
Type string | PrincipalType Principal type.
- Resource
Group stringName The name of the resource group. The name is case insensitive.
- Role
string | Database
Principal Role Database principal role.
- Workspace
Name string The name of the workspace.
- Principal
Assignment stringName The name of the Kusto principalAssignment.
- Tenant
Id string The tenant id of the principal
- database
Name String The name of the database in the Kusto pool.
- kusto
Pool StringName The name of the Kusto pool.
- principal
Id String The principal ID assigned to the database principal. It can be a user email, application ID, or security group name.
- principal
Type String | PrincipalType Principal type.
- resource
Group StringName The name of the resource group. The name is case insensitive.
- role
String | Database
Principal Role Database principal role.
- workspace
Name String The name of the workspace.
- principal
Assignment StringName The name of the Kusto principalAssignment.
- tenant
Id String The tenant id of the principal
- database
Name string The name of the database in the Kusto pool.
- kusto
Pool stringName The name of the Kusto pool.
- principal
Id string The principal ID assigned to the database principal. It can be a user email, application ID, or security group name.
- principal
Type string | PrincipalType Principal type.
- resource
Group stringName The name of the resource group. The name is case insensitive.
- role
string | Database
Principal Role Database principal role.
- workspace
Name string The name of the workspace.
- principal
Assignment stringName The name of the Kusto principalAssignment.
- tenant
Id string The tenant id of the principal
- database_
name str The name of the database in the Kusto pool.
- kusto_
pool_ strname The name of the Kusto pool.
- principal_
id str The principal ID assigned to the database principal. It can be a user email, application ID, or security group name.
- principal_
type str | PrincipalType Principal type.
- resource_
group_ strname The name of the resource group. The name is case insensitive.
- role
str | Database
Principal Role Database principal role.
- workspace_
name str The name of the workspace.
- principal_
assignment_ strname The name of the Kusto principalAssignment.
- tenant_
id str The tenant id of the principal
- database
Name String The name of the database in the Kusto pool.
- kusto
Pool StringName The name of the Kusto pool.
- principal
Id String The principal ID assigned to the database principal. It can be a user email, application ID, or security group name.
- principal
Type String | "App" | "Group" | "User" Principal type.
- resource
Group StringName The name of the resource group. The name is case insensitive.
- role
String | "Admin" | "Ingestor" | "Monitor" | "User" | "Unrestricted
Viewer" | "Viewer" Database principal role.
- workspace
Name String The name of the workspace.
- principal
Assignment StringName 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 KustoPoolDatabasePrincipalAssignment resource produces the following output properties:
- Aad
Object stringId The service principal object id in AAD (Azure active directory)
- 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.
- System
Data Pulumi.Azure Native. Synapse. Outputs. System Data Response Azure Resource Manager metadata containing createdBy and modifiedBy information.
- 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)
- 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.
- System
Data SystemData Response Azure Resource Manager metadata containing createdBy and modifiedBy information.
- 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)
- 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.
- system
Data SystemData Response Azure Resource Manager metadata containing createdBy and modifiedBy information.
- 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)
- 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.
- system
Data SystemData Response Azure Resource Manager metadata containing createdBy and modifiedBy information.
- 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)
- 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.
- system_
data SystemData Response Azure Resource Manager metadata containing createdBy and modifiedBy information.
- 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)
- 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.
- system
Data Property Map Azure Resource Manager metadata containing createdBy and modifiedBy information.
- 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
DatabasePrincipalRole, DatabasePrincipalRoleArgs
- Admin
- Admin
- Ingestor
- Ingestor
- Monitor
- Monitor
- User
- User
- Unrestricted
Viewer - UnrestrictedViewer
- Viewer
- Viewer
- Database
Principal Role Admin - Admin
- Database
Principal Role Ingestor - Ingestor
- Database
Principal Role Monitor - Monitor
- Database
Principal Role User - User
- Database
Principal Role Unrestricted Viewer - UnrestrictedViewer
- Database
Principal Role Viewer - Viewer
- Admin
- Admin
- Ingestor
- Ingestor
- Monitor
- Monitor
- User
- User
- Unrestricted
Viewer - UnrestrictedViewer
- Viewer
- Viewer
- Admin
- Admin
- Ingestor
- Ingestor
- Monitor
- Monitor
- User
- User
- Unrestricted
Viewer - UnrestrictedViewer
- Viewer
- Viewer
- ADMIN
- Admin
- INGESTOR
- Ingestor
- MONITOR
- Monitor
- USER
- User
- UNRESTRICTED_VIEWER
- UnrestrictedViewer
- VIEWER
- Viewer
- "Admin"
- Admin
- "Ingestor"
- Ingestor
- "Monitor"
- Monitor
- "User"
- User
- "Unrestricted
Viewer" - UnrestrictedViewer
- "Viewer"
- Viewer
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
SystemDataResponse, SystemDataResponseArgs
- Created
At string The timestamp of resource creation (UTC).
- Created
By string The identity that created the resource.
- Created
By stringType The type of identity that created the resource.
- Last
Modified stringAt The timestamp of resource last modification (UTC)
- Last
Modified stringBy The identity that last modified the resource.
- Last
Modified stringBy Type The type of identity that last modified the resource.
- Created
At string The timestamp of resource creation (UTC).
- Created
By string The identity that created the resource.
- Created
By stringType The type of identity that created the resource.
- Last
Modified stringAt The timestamp of resource last modification (UTC)
- Last
Modified stringBy The identity that last modified the resource.
- Last
Modified stringBy Type The type of identity that last modified the resource.
- created
At String The timestamp of resource creation (UTC).
- created
By String The identity that created the resource.
- created
By StringType The type of identity that created the resource.
- last
Modified StringAt The timestamp of resource last modification (UTC)
- last
Modified StringBy The identity that last modified the resource.
- last
Modified StringBy Type The type of identity that last modified the resource.
- created
At string The timestamp of resource creation (UTC).
- created
By string The identity that created the resource.
- created
By stringType The type of identity that created the resource.
- last
Modified stringAt The timestamp of resource last modification (UTC)
- last
Modified stringBy The identity that last modified the resource.
- last
Modified stringBy Type The type of identity that last modified the resource.
- created_
at str The timestamp of resource creation (UTC).
- created_
by str The identity that created the resource.
- created_
by_ strtype The type of identity that created the resource.
- last_
modified_ strat The timestamp of resource last modification (UTC)
- last_
modified_ strby The identity that last modified the resource.
- last_
modified_ strby_ type The type of identity that last modified the resource.
- created
At String The timestamp of resource creation (UTC).
- created
By String The identity that created the resource.
- created
By StringType The type of identity that created the resource.
- last
Modified StringAt The timestamp of resource last modification (UTC)
- last
Modified StringBy The identity that last modified the resource.
- last
Modified StringBy Type The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:synapse:KustoPoolDatabasePrincipalAssignment synapseWorkspaceName/kustoclusterrptest4/Kustodatabase8/kustoprincipal1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/databases/{databaseName}/principalAssignments/{principalAssignmentName}
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0