1. Packages
  2. Azure Native
  3. API Docs
  4. costmanagement
  5. getMarkupRule
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.39.0 published on Monday, Apr 29, 2024 by Pulumi

azure-native.costmanagement.getMarkupRule

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.39.0 published on Monday, Apr 29, 2024 by Pulumi

    Get a markup rule by its rule name. Azure REST API version: 2022-10-05-preview.

    Using getMarkupRule

    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 getMarkupRule(args: GetMarkupRuleArgs, opts?: InvokeOptions): Promise<GetMarkupRuleResult>
    function getMarkupRuleOutput(args: GetMarkupRuleOutputArgs, opts?: InvokeOptions): Output<GetMarkupRuleResult>
    def get_markup_rule(billing_account_id: Optional[str] = None,
                        billing_profile_id: Optional[str] = None,
                        name: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetMarkupRuleResult
    def get_markup_rule_output(billing_account_id: Optional[pulumi.Input[str]] = None,
                        billing_profile_id: Optional[pulumi.Input[str]] = None,
                        name: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetMarkupRuleResult]
    func LookupMarkupRule(ctx *Context, args *LookupMarkupRuleArgs, opts ...InvokeOption) (*LookupMarkupRuleResult, error)
    func LookupMarkupRuleOutput(ctx *Context, args *LookupMarkupRuleOutputArgs, opts ...InvokeOption) LookupMarkupRuleResultOutput

    > Note: This function is named LookupMarkupRule in the Go SDK.

    public static class GetMarkupRule 
    {
        public static Task<GetMarkupRuleResult> InvokeAsync(GetMarkupRuleArgs args, InvokeOptions? opts = null)
        public static Output<GetMarkupRuleResult> Invoke(GetMarkupRuleInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetMarkupRuleResult> getMarkupRule(GetMarkupRuleArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure-native:costmanagement:getMarkupRule
      arguments:
        # arguments dictionary

    The following arguments are supported:

    BillingAccountId string
    BillingAccount ID
    BillingProfileId string
    BillingProfile ID
    Name string
    Markup rule name.
    BillingAccountId string
    BillingAccount ID
    BillingProfileId string
    BillingProfile ID
    Name string
    Markup rule name.
    billingAccountId String
    BillingAccount ID
    billingProfileId String
    BillingProfile ID
    name String
    Markup rule name.
    billingAccountId string
    BillingAccount ID
    billingProfileId string
    BillingProfile ID
    name string
    Markup rule name.
    billing_account_id str
    BillingAccount ID
    billing_profile_id str
    BillingProfile ID
    name str
    Markup rule name.
    billingAccountId String
    BillingAccount ID
    billingProfileId String
    BillingProfile ID
    name String
    Markup rule name.

    getMarkupRule Result

    The following output properties are available:

    CustomerDetails Pulumi.AzureNative.CostManagement.Outputs.CustomerMetadataResponse
    Customer information for the markup rule.
    Id string
    Resource Id.
    Name string
    Resource name.
    Percentage double
    The markup percentage of the rule.
    StartDate string
    Starting date of the markup rule.
    Type string
    Resource type.
    Description string
    The description of the markup rule.
    ETag string
    eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.
    EndDate string
    Ending date of the markup rule.
    CustomerDetails CustomerMetadataResponse
    Customer information for the markup rule.
    Id string
    Resource Id.
    Name string
    Resource name.
    Percentage float64
    The markup percentage of the rule.
    StartDate string
    Starting date of the markup rule.
    Type string
    Resource type.
    Description string
    The description of the markup rule.
    ETag string
    eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.
    EndDate string
    Ending date of the markup rule.
    customerDetails CustomerMetadataResponse
    Customer information for the markup rule.
    id String
    Resource Id.
    name String
    Resource name.
    percentage Double
    The markup percentage of the rule.
    startDate String
    Starting date of the markup rule.
    type String
    Resource type.
    description String
    The description of the markup rule.
    eTag String
    eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.
    endDate String
    Ending date of the markup rule.
    customerDetails CustomerMetadataResponse
    Customer information for the markup rule.
    id string
    Resource Id.
    name string
    Resource name.
    percentage number
    The markup percentage of the rule.
    startDate string
    Starting date of the markup rule.
    type string
    Resource type.
    description string
    The description of the markup rule.
    eTag string
    eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.
    endDate string
    Ending date of the markup rule.
    customer_details CustomerMetadataResponse
    Customer information for the markup rule.
    id str
    Resource Id.
    name str
    Resource name.
    percentage float
    The markup percentage of the rule.
    start_date str
    Starting date of the markup rule.
    type str
    Resource type.
    description str
    The description of the markup rule.
    e_tag str
    eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.
    end_date str
    Ending date of the markup rule.
    customerDetails Property Map
    Customer information for the markup rule.
    id String
    Resource Id.
    name String
    Resource name.
    percentage Number
    The markup percentage of the rule.
    startDate String
    Starting date of the markup rule.
    type String
    Resource type.
    description String
    The description of the markup rule.
    eTag String
    eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.
    endDate String
    Ending date of the markup rule.

    Supporting Types

    CustomerMetadataResponse

    BillingAccountId string
    Customer billing account id
    BillingProfileId string
    Customer billing profile id
    BillingAccountId string
    Customer billing account id
    BillingProfileId string
    Customer billing profile id
    billingAccountId String
    Customer billing account id
    billingProfileId String
    Customer billing profile id
    billingAccountId string
    Customer billing account id
    billingProfileId string
    Customer billing profile id
    billing_account_id str
    Customer billing account id
    billing_profile_id str
    Customer billing profile id
    billingAccountId String
    Customer billing account id
    billingProfileId String
    Customer billing profile id

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.39.0 published on Monday, Apr 29, 2024 by Pulumi