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.getView
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
Gets the view by view name. Azure REST API version: 2023-03-01.
Other available API versions: 2019-11-01, 2020-06-01, 2022-10-01, 2022-10-05-preview, 2023-04-01-preview, 2023-07-01-preview, 2023-08-01, 2023-09-01, 2023-11-01, 2024-08-01.
Using getView
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 getView(args: GetViewArgs, opts?: InvokeOptions): Promise<GetViewResult>
function getViewOutput(args: GetViewOutputArgs, opts?: InvokeOptions): Output<GetViewResult>
def get_view(view_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetViewResult
def get_view_output(view_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetViewResult]
func LookupView(ctx *Context, args *LookupViewArgs, opts ...InvokeOption) (*LookupViewResult, error)
func LookupViewOutput(ctx *Context, args *LookupViewOutputArgs, opts ...InvokeOption) LookupViewResultOutput
> Note: This function is named LookupView
in the Go SDK.
public static class GetView
{
public static Task<GetViewResult> InvokeAsync(GetViewArgs args, InvokeOptions? opts = null)
public static Output<GetViewResult> Invoke(GetViewInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetViewResult> getView(GetViewArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure-native:costmanagement:getView
arguments:
# arguments dictionary
The following arguments are supported:
- View
Name string - View name
- View
Name string - View name
- view
Name String - View name
- view
Name string - View name
- view_
name str - View name
- view
Name String - View name
getView Result
The following output properties are available:
- Created
On string - Date the user created this view.
- Currency string
- Currency of the current view.
- Id string
- Resource Id.
- Name string
- Resource name.
- Timeframe string
- The time frame for pulling data for the report. If custom, then a specific time period must be provided.
- Type string
- Resource type.
- Accumulated string
- Show costs accumulated over time.
- Chart string
- Chart type of the main view in Cost Analysis. Required.
- Data
Set Pulumi.Azure Native. Cost Management. Outputs. Report Config Dataset Response - Has definition for data in this report config.
- Date
Range string - Date range of the current view.
- Display
Name string - User input name of the view. Required.
- 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.
- Include
Monetary boolCommitment - If true, report includes monetary commitment.
- Kpis
List<Pulumi.
Azure Native. Cost Management. Outputs. Kpi Properties Response> - List of KPIs to show in Cost Analysis UI.
- Metric string
- Metric to use when displaying costs.
- Modified
On string - Date when the user last modified this view.
- Pivots
List<Pulumi.
Azure Native. Cost Management. Outputs. Pivot Properties Response> - Configuration of 3 sub-views in the Cost Analysis UI.
- Scope string
- Cost Management scope to save the view on. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.
- Time
Period Pulumi.Azure Native. Cost Management. Outputs. Report Config Time Period Response - Has time period for pulling data for the report.
- Created
On string - Date the user created this view.
- Currency string
- Currency of the current view.
- Id string
- Resource Id.
- Name string
- Resource name.
- Timeframe string
- The time frame for pulling data for the report. If custom, then a specific time period must be provided.
- Type string
- Resource type.
- Accumulated string
- Show costs accumulated over time.
- Chart string
- Chart type of the main view in Cost Analysis. Required.
- Data
Set ReportConfig Dataset Response - Has definition for data in this report config.
- Date
Range string - Date range of the current view.
- Display
Name string - User input name of the view. Required.
- 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.
- Include
Monetary boolCommitment - If true, report includes monetary commitment.
- Kpis
[]Kpi
Properties Response - List of KPIs to show in Cost Analysis UI.
- Metric string
- Metric to use when displaying costs.
- Modified
On string - Date when the user last modified this view.
- Pivots
[]Pivot
Properties Response - Configuration of 3 sub-views in the Cost Analysis UI.
- Scope string
- Cost Management scope to save the view on. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.
- Time
Period ReportConfig Time Period Response - Has time period for pulling data for the report.
- created
On String - Date the user created this view.
- currency String
- Currency of the current view.
- id String
- Resource Id.
- name String
- Resource name.
- timeframe String
- The time frame for pulling data for the report. If custom, then a specific time period must be provided.
- type String
- Resource type.
- accumulated String
- Show costs accumulated over time.
- chart String
- Chart type of the main view in Cost Analysis. Required.
- data
Set ReportConfig Dataset Response - Has definition for data in this report config.
- date
Range String - Date range of the current view.
- display
Name String - User input name of the view. Required.
- 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.
- include
Monetary BooleanCommitment - If true, report includes monetary commitment.
- kpis
List<Kpi
Properties Response> - List of KPIs to show in Cost Analysis UI.
- metric String
- Metric to use when displaying costs.
- modified
On String - Date when the user last modified this view.
- pivots
List<Pivot
Properties Response> - Configuration of 3 sub-views in the Cost Analysis UI.
- scope String
- Cost Management scope to save the view on. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.
- time
Period ReportConfig Time Period Response - Has time period for pulling data for the report.
- created
On string - Date the user created this view.
- currency string
- Currency of the current view.
- id string
- Resource Id.
- name string
- Resource name.
- timeframe string
- The time frame for pulling data for the report. If custom, then a specific time period must be provided.
- type string
- Resource type.
- accumulated string
- Show costs accumulated over time.
- chart string
- Chart type of the main view in Cost Analysis. Required.
- data
Set ReportConfig Dataset Response - Has definition for data in this report config.
- date
Range string - Date range of the current view.
- display
Name string - User input name of the view. Required.
- 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.
- include
Monetary booleanCommitment - If true, report includes monetary commitment.
- kpis
Kpi
Properties Response[] - List of KPIs to show in Cost Analysis UI.
- metric string
- Metric to use when displaying costs.
- modified
On string - Date when the user last modified this view.
- pivots
Pivot
Properties Response[] - Configuration of 3 sub-views in the Cost Analysis UI.
- scope string
- Cost Management scope to save the view on. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.
- time
Period ReportConfig Time Period Response - Has time period for pulling data for the report.
- created_
on str - Date the user created this view.
- currency str
- Currency of the current view.
- id str
- Resource Id.
- name str
- Resource name.
- timeframe str
- The time frame for pulling data for the report. If custom, then a specific time period must be provided.
- type str
- Resource type.
- accumulated str
- Show costs accumulated over time.
- chart str
- Chart type of the main view in Cost Analysis. Required.
- data_
set ReportConfig Dataset Response - Has definition for data in this report config.
- date_
range str - Date range of the current view.
- display_
name str - User input name of the view. Required.
- 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.
- include_
monetary_ boolcommitment - If true, report includes monetary commitment.
- kpis
Sequence[Kpi
Properties Response] - List of KPIs to show in Cost Analysis UI.
- metric str
- Metric to use when displaying costs.
- modified_
on str - Date when the user last modified this view.
- pivots
Sequence[Pivot
Properties Response] - Configuration of 3 sub-views in the Cost Analysis UI.
- scope str
- Cost Management scope to save the view on. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.
- time_
period ReportConfig Time Period Response - Has time period for pulling data for the report.
- created
On String - Date the user created this view.
- currency String
- Currency of the current view.
- id String
- Resource Id.
- name String
- Resource name.
- timeframe String
- The time frame for pulling data for the report. If custom, then a specific time period must be provided.
- type String
- Resource type.
- accumulated String
- Show costs accumulated over time.
- chart String
- Chart type of the main view in Cost Analysis. Required.
- data
Set Property Map - Has definition for data in this report config.
- date
Range String - Date range of the current view.
- display
Name String - User input name of the view. Required.
- 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.
- include
Monetary BooleanCommitment - If true, report includes monetary commitment.
- kpis List<Property Map>
- List of KPIs to show in Cost Analysis UI.
- metric String
- Metric to use when displaying costs.
- modified
On String - Date when the user last modified this view.
- pivots List<Property Map>
- Configuration of 3 sub-views in the Cost Analysis UI.
- scope String
- Cost Management scope to save the view on. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for ExternalBillingAccount scope, and '/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for ExternalSubscription scope.
- time
Period Property Map - Has time period for pulling data for the report.
Supporting Types
KpiPropertiesResponse
PivotPropertiesResponse
ReportConfigAggregationResponse
ReportConfigComparisonExpressionResponse
ReportConfigDatasetConfigurationResponse
- Columns List<string>
- Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report includes all columns.
- Columns []string
- Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report includes all columns.
- columns List<String>
- Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report includes all columns.
- columns string[]
- Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report includes all columns.
- columns Sequence[str]
- Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report includes all columns.
- columns List<String>
- Array of column names to be included in the report. Any valid report column name is allowed. If not provided, then report includes all columns.
ReportConfigDatasetResponse
- Aggregation
Dictionary<string, Pulumi.
Azure Native. Cost Management. Inputs. Report Config Aggregation Response> - Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.
- Configuration
Pulumi.
Azure Native. Cost Management. Inputs. Report Config Dataset Configuration Response - Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided.
- Filter
Pulumi.
Azure Native. Cost Management. Inputs. Report Config Filter Response - Has filter expression to use in the report.
- Granularity string
- The granularity of rows in the report.
- Grouping
List<Pulumi.
Azure Native. Cost Management. Inputs. Report Config Grouping Response> - Array of group by expression to use in the report. Report can have up to 2 group by clauses.
- Sorting
List<Pulumi.
Azure Native. Cost Management. Inputs. Report Config Sorting Response> - Array of order by expression to use in the report.
- Aggregation
map[string]Report
Config Aggregation Response - Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.
- Configuration
Report
Config Dataset Configuration Response - Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided.
- Filter
Report
Config Filter Response - Has filter expression to use in the report.
- Granularity string
- The granularity of rows in the report.
- Grouping
[]Report
Config Grouping Response - Array of group by expression to use in the report. Report can have up to 2 group by clauses.
- Sorting
[]Report
Config Sorting Response - Array of order by expression to use in the report.
- aggregation
Map<String,Report
Config Aggregation Response> - Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.
- configuration
Report
Config Dataset Configuration Response - Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided.
- filter
Report
Config Filter Response - Has filter expression to use in the report.
- granularity String
- The granularity of rows in the report.
- grouping
List<Report
Config Grouping Response> - Array of group by expression to use in the report. Report can have up to 2 group by clauses.
- sorting
List<Report
Config Sorting Response> - Array of order by expression to use in the report.
- aggregation
{[key: string]: Report
Config Aggregation Response} - Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.
- configuration
Report
Config Dataset Configuration Response - Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided.
- filter
Report
Config Filter Response - Has filter expression to use in the report.
- granularity string
- The granularity of rows in the report.
- grouping
Report
Config Grouping Response[] - Array of group by expression to use in the report. Report can have up to 2 group by clauses.
- sorting
Report
Config Sorting Response[] - Array of order by expression to use in the report.
- aggregation
Mapping[str, Report
Config Aggregation Response] - Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.
- configuration
Report
Config Dataset Configuration Response - Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided.
- filter
Report
Config Filter Response - Has filter expression to use in the report.
- granularity str
- The granularity of rows in the report.
- grouping
Sequence[Report
Config Grouping Response] - Array of group by expression to use in the report. Report can have up to 2 group by clauses.
- sorting
Sequence[Report
Config Sorting Response] - Array of order by expression to use in the report.
- aggregation Map<Property Map>
- Dictionary of aggregation expression to use in the report. The key of each item in the dictionary is the alias for the aggregated column. Report can have up to 2 aggregation clauses.
- configuration Property Map
- Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided.
- filter Property Map
- Has filter expression to use in the report.
- granularity String
- The granularity of rows in the report.
- grouping List<Property Map>
- Array of group by expression to use in the report. Report can have up to 2 group by clauses.
- sorting List<Property Map>
- Array of order by expression to use in the report.
ReportConfigFilterResponse
- And
List<Pulumi.
Azure Native. Cost Management. Inputs. Report Config Filter Response> - The logical "AND" expression. Must have at least 2 items.
- Dimensions
Pulumi.
Azure Native. Cost Management. Inputs. Report Config Comparison Expression Response - Has comparison expression for a dimension
- Or
List<Pulumi.
Azure Native. Cost Management. Inputs. Report Config Filter Response> - The logical "OR" expression. Must have at least 2 items.
- Pulumi.
Azure Native. Cost Management. Inputs. Report Config Comparison Expression Response - Has comparison expression for a tag
- And
[]Report
Config Filter Response - The logical "AND" expression. Must have at least 2 items.
- Dimensions
Report
Config Comparison Expression Response - Has comparison expression for a dimension
- Or
[]Report
Config Filter Response - The logical "OR" expression. Must have at least 2 items.
- Report
Config Comparison Expression Response - Has comparison expression for a tag
- and
List<Report
Config Filter Response> - The logical "AND" expression. Must have at least 2 items.
- dimensions
Report
Config Comparison Expression Response - Has comparison expression for a dimension
- or
List<Report
Config Filter Response> - The logical "OR" expression. Must have at least 2 items.
- Report
Config Comparison Expression Response - Has comparison expression for a tag
- and
Report
Config Filter Response[] - The logical "AND" expression. Must have at least 2 items.
- dimensions
Report
Config Comparison Expression Response - Has comparison expression for a dimension
- or
Report
Config Filter Response[] - The logical "OR" expression. Must have at least 2 items.
- Report
Config Comparison Expression Response - Has comparison expression for a tag
- and_
Sequence[Report
Config Filter Response] - The logical "AND" expression. Must have at least 2 items.
- dimensions
Report
Config Comparison Expression Response - Has comparison expression for a dimension
- or_
Sequence[Report
Config Filter Response] - The logical "OR" expression. Must have at least 2 items.
- Report
Config Comparison Expression Response - Has comparison expression for a tag
- and List<Property Map>
- The logical "AND" expression. Must have at least 2 items.
- dimensions Property Map
- Has comparison expression for a dimension
- or List<Property Map>
- The logical "OR" expression. Must have at least 2 items.
- Property Map
- Has comparison expression for a tag
ReportConfigGroupingResponse
ReportConfigSortingResponse
ReportConfigTimePeriodResponse
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