azure-native.documentdb.getSqlResourceSqlRoleAssignment
Explore with Pulumi AI
Retrieves the properties of an existing Azure Cosmos DB SQL Role Assignment with the given Id. Azure REST API version: 2023-04-15.
Other available API versions: 2023-09-15, 2023-09-15-preview, 2023-11-15, 2023-11-15-preview, 2024-02-15-preview, 2024-05-15, 2024-05-15-preview, 2024-08-15, 2024-09-01-preview, 2024-11-15, 2024-12-01-preview.
Using getSqlResourceSqlRoleAssignment
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getSqlResourceSqlRoleAssignment(args: GetSqlResourceSqlRoleAssignmentArgs, opts?: InvokeOptions): Promise<GetSqlResourceSqlRoleAssignmentResult>
function getSqlResourceSqlRoleAssignmentOutput(args: GetSqlResourceSqlRoleAssignmentOutputArgs, opts?: InvokeOptions): Output<GetSqlResourceSqlRoleAssignmentResult>
def get_sql_resource_sql_role_assignment(account_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
role_assignment_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSqlResourceSqlRoleAssignmentResult
def get_sql_resource_sql_role_assignment_output(account_name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
role_assignment_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSqlResourceSqlRoleAssignmentResult]
func LookupSqlResourceSqlRoleAssignment(ctx *Context, args *LookupSqlResourceSqlRoleAssignmentArgs, opts ...InvokeOption) (*LookupSqlResourceSqlRoleAssignmentResult, error)
func LookupSqlResourceSqlRoleAssignmentOutput(ctx *Context, args *LookupSqlResourceSqlRoleAssignmentOutputArgs, opts ...InvokeOption) LookupSqlResourceSqlRoleAssignmentResultOutput
> Note: This function is named LookupSqlResourceSqlRoleAssignment
in the Go SDK.
public static class GetSqlResourceSqlRoleAssignment
{
public static Task<GetSqlResourceSqlRoleAssignmentResult> InvokeAsync(GetSqlResourceSqlRoleAssignmentArgs args, InvokeOptions? opts = null)
public static Output<GetSqlResourceSqlRoleAssignmentResult> Invoke(GetSqlResourceSqlRoleAssignmentInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSqlResourceSqlRoleAssignmentResult> getSqlResourceSqlRoleAssignment(GetSqlResourceSqlRoleAssignmentArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure-native:documentdb:getSqlResourceSqlRoleAssignment
arguments:
# arguments dictionary
The following arguments are supported:
- Account
Name string - Cosmos DB database account name.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Role
Assignment stringId - The GUID for the Role Assignment.
- Account
Name string - Cosmos DB database account name.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Role
Assignment stringId - The GUID for the Role Assignment.
- account
Name String - Cosmos DB database account name.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- role
Assignment StringId - The GUID for the Role Assignment.
- account
Name string - Cosmos DB database account name.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- role
Assignment stringId - The GUID for the Role Assignment.
- account_
name str - Cosmos DB database account name.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- role_
assignment_ strid - The GUID for the Role Assignment.
- account
Name String - Cosmos DB database account name.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- role
Assignment StringId - The GUID for the Role Assignment.
getSqlResourceSqlRoleAssignment Result
The following output properties are available:
- Id string
- The unique resource identifier of the database account.
- Name string
- The name of the database account.
- Type string
- The type of Azure resource.
- Principal
Id string - The unique identifier for the associated AAD principal in the AAD graph to which access is being granted through this Role Assignment. Tenant ID for the principal is inferred using the tenant associated with the subscription.
- Role
Definition stringId - The unique identifier for the associated Role Definition.
- Scope string
- The data plane resource path for which access is being granted through this Role Assignment.
- Id string
- The unique resource identifier of the database account.
- Name string
- The name of the database account.
- Type string
- The type of Azure resource.
- Principal
Id string - The unique identifier for the associated AAD principal in the AAD graph to which access is being granted through this Role Assignment. Tenant ID for the principal is inferred using the tenant associated with the subscription.
- Role
Definition stringId - The unique identifier for the associated Role Definition.
- Scope string
- The data plane resource path for which access is being granted through this Role Assignment.
- id String
- The unique resource identifier of the database account.
- name String
- The name of the database account.
- type String
- The type of Azure resource.
- principal
Id String - The unique identifier for the associated AAD principal in the AAD graph to which access is being granted through this Role Assignment. Tenant ID for the principal is inferred using the tenant associated with the subscription.
- role
Definition StringId - The unique identifier for the associated Role Definition.
- scope String
- The data plane resource path for which access is being granted through this Role Assignment.
- id string
- The unique resource identifier of the database account.
- name string
- The name of the database account.
- type string
- The type of Azure resource.
- principal
Id string - The unique identifier for the associated AAD principal in the AAD graph to which access is being granted through this Role Assignment. Tenant ID for the principal is inferred using the tenant associated with the subscription.
- role
Definition stringId - The unique identifier for the associated Role Definition.
- scope string
- The data plane resource path for which access is being granted through this Role Assignment.
- id str
- The unique resource identifier of the database account.
- name str
- The name of the database account.
- type str
- The type of Azure resource.
- principal_
id str - The unique identifier for the associated AAD principal in the AAD graph to which access is being granted through this Role Assignment. Tenant ID for the principal is inferred using the tenant associated with the subscription.
- role_
definition_ strid - The unique identifier for the associated Role Definition.
- scope str
- The data plane resource path for which access is being granted through this Role Assignment.
- id String
- The unique resource identifier of the database account.
- name String
- The name of the database account.
- type String
- The type of Azure resource.
- principal
Id String - The unique identifier for the associated AAD principal in the AAD graph to which access is being granted through this Role Assignment. Tenant ID for the principal is inferred using the tenant associated with the subscription.
- role
Definition StringId - The unique identifier for the associated Role Definition.
- scope String
- The data plane resource path for which access is being granted through this Role Assignment.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0