These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi
azure-native.billing.getBillingRoleAssignmentByDepartment
Explore with Pulumi AI
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi
Gets a role assignment for the caller on a department. The operation is supported only for billing accounts with agreement type Enterprise Agreement. API Version: 2019-10-01-preview.
Using getBillingRoleAssignmentByDepartment
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 getBillingRoleAssignmentByDepartment(args: GetBillingRoleAssignmentByDepartmentArgs, opts?: InvokeOptions): Promise<GetBillingRoleAssignmentByDepartmentResult>
function getBillingRoleAssignmentByDepartmentOutput(args: GetBillingRoleAssignmentByDepartmentOutputArgs, opts?: InvokeOptions): Output<GetBillingRoleAssignmentByDepartmentResult>def get_billing_role_assignment_by_department(billing_account_name: Optional[str] = None,
                                              billing_role_assignment_name: Optional[str] = None,
                                              department_name: Optional[str] = None,
                                              opts: Optional[InvokeOptions] = None) -> GetBillingRoleAssignmentByDepartmentResult
def get_billing_role_assignment_by_department_output(billing_account_name: Optional[pulumi.Input[str]] = None,
                                              billing_role_assignment_name: Optional[pulumi.Input[str]] = None,
                                              department_name: Optional[pulumi.Input[str]] = None,
                                              opts: Optional[InvokeOptions] = None) -> Output[GetBillingRoleAssignmentByDepartmentResult]func LookupBillingRoleAssignmentByDepartment(ctx *Context, args *LookupBillingRoleAssignmentByDepartmentArgs, opts ...InvokeOption) (*LookupBillingRoleAssignmentByDepartmentResult, error)
func LookupBillingRoleAssignmentByDepartmentOutput(ctx *Context, args *LookupBillingRoleAssignmentByDepartmentOutputArgs, opts ...InvokeOption) LookupBillingRoleAssignmentByDepartmentResultOutput> Note: This function is named LookupBillingRoleAssignmentByDepartment in the Go SDK.
public static class GetBillingRoleAssignmentByDepartment 
{
    public static Task<GetBillingRoleAssignmentByDepartmentResult> InvokeAsync(GetBillingRoleAssignmentByDepartmentArgs args, InvokeOptions? opts = null)
    public static Output<GetBillingRoleAssignmentByDepartmentResult> Invoke(GetBillingRoleAssignmentByDepartmentInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetBillingRoleAssignmentByDepartmentResult> getBillingRoleAssignmentByDepartment(GetBillingRoleAssignmentByDepartmentArgs args, InvokeOptions options)
public static Output<GetBillingRoleAssignmentByDepartmentResult> getBillingRoleAssignmentByDepartment(GetBillingRoleAssignmentByDepartmentArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:billing:getBillingRoleAssignmentByDepartment
  arguments:
    # arguments dictionaryThe following arguments are supported:
- BillingAccount stringName 
- The ID that uniquely identifies a billing account.
- BillingRole stringAssignment Name 
- The ID that uniquely identifies a role assignment.
- DepartmentName string
- The ID that uniquely identifies a department.
- BillingAccount stringName 
- The ID that uniquely identifies a billing account.
- BillingRole stringAssignment Name 
- The ID that uniquely identifies a role assignment.
- DepartmentName string
- The ID that uniquely identifies a department.
- billingAccount StringName 
- The ID that uniquely identifies a billing account.
- billingRole StringAssignment Name 
- The ID that uniquely identifies a role assignment.
- departmentName String
- The ID that uniquely identifies a department.
- billingAccount stringName 
- The ID that uniquely identifies a billing account.
- billingRole stringAssignment Name 
- The ID that uniquely identifies a role assignment.
- departmentName string
- The ID that uniquely identifies a department.
- billing_account_ strname 
- The ID that uniquely identifies a billing account.
- billing_role_ strassignment_ name 
- The ID that uniquely identifies a role assignment.
- department_name str
- The ID that uniquely identifies a department.
- billingAccount StringName 
- The ID that uniquely identifies a billing account.
- billingRole StringAssignment Name 
- The ID that uniquely identifies a role assignment.
- departmentName String
- The ID that uniquely identifies a department.
getBillingRoleAssignmentByDepartment Result
The following output properties are available:
- CreatedBy stringPrincipal Id 
- The principal Id of the user who created the role assignment.
- CreatedBy stringPrincipal Tenant Id 
- The tenant Id of the user who created the role assignment.
- CreatedBy stringUser Email Address 
- The email address of the user who created the role assignment. This is supported only for billing accounts with agreement type Enterprise Agreement.
- CreatedOn string
- The date the role assignment was created.
- Id string
- Resource Id.
- Name string
- Resource name.
- Scope string
- The scope at which the role was assigned.
- Type string
- Resource type.
- PrincipalId string
- The principal id of the user to whom the role was assigned.
- PrincipalTenant stringId 
- The principal tenant id of the user to whom the role was assigned.
- RoleDefinition stringId 
- The ID of the role definition.
- UserAuthentication stringType 
- The authentication type of the user, whether Organization or MSA, of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.
- UserEmail stringAddress 
- The email address of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.
- CreatedBy stringPrincipal Id 
- The principal Id of the user who created the role assignment.
- CreatedBy stringPrincipal Tenant Id 
- The tenant Id of the user who created the role assignment.
- CreatedBy stringUser Email Address 
- The email address of the user who created the role assignment. This is supported only for billing accounts with agreement type Enterprise Agreement.
- CreatedOn string
- The date the role assignment was created.
- Id string
- Resource Id.
- Name string
- Resource name.
- Scope string
- The scope at which the role was assigned.
- Type string
- Resource type.
- PrincipalId string
- The principal id of the user to whom the role was assigned.
- PrincipalTenant stringId 
- The principal tenant id of the user to whom the role was assigned.
- RoleDefinition stringId 
- The ID of the role definition.
- UserAuthentication stringType 
- The authentication type of the user, whether Organization or MSA, of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.
- UserEmail stringAddress 
- The email address of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.
- createdBy StringPrincipal Id 
- The principal Id of the user who created the role assignment.
- createdBy StringPrincipal Tenant Id 
- The tenant Id of the user who created the role assignment.
- createdBy StringUser Email Address 
- The email address of the user who created the role assignment. This is supported only for billing accounts with agreement type Enterprise Agreement.
- createdOn String
- The date the role assignment was created.
- id String
- Resource Id.
- name String
- Resource name.
- scope String
- The scope at which the role was assigned.
- type String
- Resource type.
- principalId String
- The principal id of the user to whom the role was assigned.
- principalTenant StringId 
- The principal tenant id of the user to whom the role was assigned.
- roleDefinition StringId 
- The ID of the role definition.
- userAuthentication StringType 
- The authentication type of the user, whether Organization or MSA, of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.
- userEmail StringAddress 
- The email address of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.
- createdBy stringPrincipal Id 
- The principal Id of the user who created the role assignment.
- createdBy stringPrincipal Tenant Id 
- The tenant Id of the user who created the role assignment.
- createdBy stringUser Email Address 
- The email address of the user who created the role assignment. This is supported only for billing accounts with agreement type Enterprise Agreement.
- createdOn string
- The date the role assignment was created.
- id string
- Resource Id.
- name string
- Resource name.
- scope string
- The scope at which the role was assigned.
- type string
- Resource type.
- principalId string
- The principal id of the user to whom the role was assigned.
- principalTenant stringId 
- The principal tenant id of the user to whom the role was assigned.
- roleDefinition stringId 
- The ID of the role definition.
- userAuthentication stringType 
- The authentication type of the user, whether Organization or MSA, of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.
- userEmail stringAddress 
- The email address of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.
- created_by_ strprincipal_ id 
- The principal Id of the user who created the role assignment.
- created_by_ strprincipal_ tenant_ id 
- The tenant Id of the user who created the role assignment.
- created_by_ struser_ email_ address 
- The email address of the user who created the role assignment. This is supported only for billing accounts with agreement type Enterprise Agreement.
- created_on str
- The date the role assignment was created.
- id str
- Resource Id.
- name str
- Resource name.
- scope str
- The scope at which the role was assigned.
- type str
- Resource type.
- principal_id str
- The principal id of the user to whom the role was assigned.
- principal_tenant_ strid 
- The principal tenant id of the user to whom the role was assigned.
- role_definition_ strid 
- The ID of the role definition.
- user_authentication_ strtype 
- The authentication type of the user, whether Organization or MSA, of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.
- user_email_ straddress 
- The email address of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.
- createdBy StringPrincipal Id 
- The principal Id of the user who created the role assignment.
- createdBy StringPrincipal Tenant Id 
- The tenant Id of the user who created the role assignment.
- createdBy StringUser Email Address 
- The email address of the user who created the role assignment. This is supported only for billing accounts with agreement type Enterprise Agreement.
- createdOn String
- The date the role assignment was created.
- id String
- Resource Id.
- name String
- Resource name.
- scope String
- The scope at which the role was assigned.
- type String
- Resource type.
- principalId String
- The principal id of the user to whom the role was assigned.
- principalTenant StringId 
- The principal tenant id of the user to whom the role was assigned.
- roleDefinition StringId 
- The ID of the role definition.
- userAuthentication StringType 
- The authentication type of the user, whether Organization or MSA, of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.
- userEmail StringAddress 
- The email address of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi