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.73.0 published on Wednesday, Nov 20, 2024 by Pulumi
azure-native.costmanagement.getMarkupRule
Explore with Pulumi AI
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.73.0 published on Wednesday, Nov 20, 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:
- Billing
Account stringId - BillingAccount ID
- Billing
Profile stringId - BillingProfile ID
- Name string
- Markup rule name.
- Billing
Account stringId - BillingAccount ID
- Billing
Profile stringId - BillingProfile ID
- Name string
- Markup rule name.
- billing
Account StringId - BillingAccount ID
- billing
Profile StringId - BillingProfile ID
- name String
- Markup rule name.
- billing
Account stringId - BillingAccount ID
- billing
Profile stringId - BillingProfile ID
- name string
- Markup rule name.
- billing_
account_ strid - BillingAccount ID
- billing_
profile_ strid - BillingProfile ID
- name str
- Markup rule name.
- billing
Account StringId - BillingAccount ID
- billing
Profile StringId - BillingProfile ID
- name String
- Markup rule name.
getMarkupRule Result
The following output properties are available:
- Customer
Details Pulumi.Azure Native. Cost Management. Outputs. Customer Metadata Response - Customer information for the markup rule.
- Id string
- Resource Id.
- Name string
- Resource name.
- Percentage double
- The markup percentage of the rule.
- Start
Date 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.
- End
Date string - Ending date of the markup rule.
- Customer
Details CustomerMetadata Response - Customer information for the markup rule.
- Id string
- Resource Id.
- Name string
- Resource name.
- Percentage float64
- The markup percentage of the rule.
- Start
Date 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.
- End
Date string - Ending date of the markup rule.
- customer
Details CustomerMetadata Response - Customer information for the markup rule.
- id String
- Resource Id.
- name String
- Resource name.
- percentage Double
- The markup percentage of the rule.
- start
Date String - Starting date of the markup rule.
- type String
- Resource type.
- description String
- The description of the markup rule.
- e
Tag 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.
- end
Date String - Ending date of the markup rule.
- customer
Details CustomerMetadata Response - Customer information for the markup rule.
- id string
- Resource Id.
- name string
- Resource name.
- percentage number
- The markup percentage of the rule.
- start
Date string - Starting date of the markup rule.
- type string
- Resource type.
- description string
- The description of the markup rule.
- e
Tag 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.
- end
Date string - Ending date of the markup rule.
- customer_
details CustomerMetadata Response - 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.
- customer
Details Property Map - Customer information for the markup rule.
- id String
- Resource Id.
- name String
- Resource name.
- percentage Number
- The markup percentage of the rule.
- start
Date String - Starting date of the markup rule.
- type String
- Resource type.
- description String
- The description of the markup rule.
- e
Tag 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.
- end
Date String - Ending date of the markup rule.
Supporting Types
CustomerMetadataResponse
- Billing
Account stringId - Customer billing account id
- Billing
Profile stringId - Customer billing profile id
- Billing
Account stringId - Customer billing account id
- Billing
Profile stringId - Customer billing profile id
- billing
Account StringId - Customer billing account id
- billing
Profile StringId - Customer billing profile id
- billing
Account stringId - Customer billing account id
- billing
Profile stringId - Customer billing profile id
- billing_
account_ strid - Customer billing account id
- billing_
profile_ strid - Customer billing profile id
- billing
Account StringId - Customer billing account id
- billing
Profile StringId - Customer billing profile id
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
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.73.0 published on Wednesday, Nov 20, 2024 by Pulumi