A report resource.
Uses Azure REST API version 2018-08-01-preview. In version 2.x of the Azure Native provider, it used API version 2018-08-01-preview.
Example Usage
CreateOrUpdateReport
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var report = new AzureNative.CostManagement.Report("report", new()
{
Definition = new AzureNative.CostManagement.Inputs.ReportDefinitionArgs
{
Dataset = new AzureNative.CostManagement.Inputs.ReportDatasetArgs
{
Aggregation =
{
{ "costSum", new AzureNative.CostManagement.Inputs.ReportAggregationArgs
{
Function = AzureNative.CostManagement.FunctionType.Sum,
Name = "PreTaxCost",
} },
},
Configuration = new AzureNative.CostManagement.Inputs.ReportDatasetConfigurationArgs
{
Columns = new[]
{
"Date",
"MeterId",
"InstanceId",
"ResourceLocation",
"PreTaxCost",
},
},
Filter = new AzureNative.CostManagement.Inputs.ReportFilterArgs
{
And =
{
new AzureNative.CostManagement.Inputs.ReportFilterArgs
{
Or =
{
new AzureNative.CostManagement.Inputs.ReportFilterArgs
{
Dimension = new AzureNative.CostManagement.Inputs.ReportComparisonExpressionArgs
{
Name = "ResourceLocation",
Operator = AzureNative.CostManagement.OperatorType.In,
Values = new[]
{
"East US",
"West Europe",
},
},
},
new AzureNative.CostManagement.Inputs.ReportFilterArgs
{
Tag = new AzureNative.CostManagement.Inputs.ReportComparisonExpressionArgs
{
Name = "Environment",
Operator = AzureNative.CostManagement.OperatorType.In,
Values = new[]
{
"UAT",
"Prod",
},
},
},
},
},
new AzureNative.CostManagement.Inputs.ReportFilterArgs
{
Dimension = new AzureNative.CostManagement.Inputs.ReportComparisonExpressionArgs
{
Name = "ResourceGroup",
Operator = AzureNative.CostManagement.OperatorType.In,
Values = new[]
{
"API",
},
},
},
},
},
Granularity = AzureNative.CostManagement.GranularityType.Daily,
Grouping = new[]
{
new AzureNative.CostManagement.Inputs.ReportGroupingArgs
{
Name = "SubscriptionName",
Type = AzureNative.CostManagement.ReportColumnType.Dimension,
},
new AzureNative.CostManagement.Inputs.ReportGroupingArgs
{
Name = "Environment",
Type = AzureNative.CostManagement.ReportColumnType.Tag,
},
},
},
Timeframe = AzureNative.CostManagement.TimeframeType.MonthToDate,
Type = AzureNative.CostManagement.ReportType.Usage,
},
DeliveryInfo = new AzureNative.CostManagement.Inputs.ReportDeliveryInfoArgs
{
Destination = new AzureNative.CostManagement.Inputs.ReportDeliveryDestinationArgs
{
Container = "reports",
ResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182",
RootFolderPath = "ad-hoc",
},
},
Format = AzureNative.CostManagement.FormatType.Csv,
ReportName = "TestReport",
Schedule = new AzureNative.CostManagement.Inputs.ReportScheduleArgs
{
Recurrence = AzureNative.CostManagement.RecurrenceType.Weekly,
RecurrencePeriod = new AzureNative.CostManagement.Inputs.ReportRecurrencePeriodArgs
{
From = "2018-06-01T00:00:00Z",
To = "2018-10-31T00:00:00Z",
},
Status = AzureNative.CostManagement.StatusType.Active,
},
});
});
package main
import (
costmanagement "github.com/pulumi/pulumi-azure-native-sdk/costmanagement/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := costmanagement.NewReport(ctx, "report", &costmanagement.ReportArgs{
Definition: &costmanagement.ReportDefinitionArgs{
Dataset: &costmanagement.ReportDatasetArgs{
Aggregation: costmanagement.ReportAggregationMap{
"costSum": &costmanagement.ReportAggregationArgs{
Function: pulumi.String(costmanagement.FunctionTypeSum),
Name: pulumi.String("PreTaxCost"),
},
},
Configuration: &costmanagement.ReportDatasetConfigurationArgs{
Columns: pulumi.StringArray{
pulumi.String("Date"),
pulumi.String("MeterId"),
pulumi.String("InstanceId"),
pulumi.String("ResourceLocation"),
pulumi.String("PreTaxCost"),
},
},
Filter: &costmanagement.ReportFilterArgs{
And: costmanagement.ReportFilterArray{
&costmanagement.ReportFilterArgs{
Or: costmanagement.ReportFilterArray{
&costmanagement.ReportFilterArgs{
Dimension: &costmanagement.ReportComparisonExpressionArgs{
Name: pulumi.String("ResourceLocation"),
Operator: pulumi.String(costmanagement.OperatorTypeIn),
Values: pulumi.StringArray{
pulumi.String("East US"),
pulumi.String("West Europe"),
},
},
},
&costmanagement.ReportFilterArgs{
Tag: &costmanagement.ReportComparisonExpressionArgs{
Name: pulumi.String("Environment"),
Operator: pulumi.String(costmanagement.OperatorTypeIn),
Values: pulumi.StringArray{
pulumi.String("UAT"),
pulumi.String("Prod"),
},
},
},
},
},
&costmanagement.ReportFilterArgs{
Dimension: &costmanagement.ReportComparisonExpressionArgs{
Name: pulumi.String("ResourceGroup"),
Operator: pulumi.String(costmanagement.OperatorTypeIn),
Values: pulumi.StringArray{
pulumi.String("API"),
},
},
},
},
},
Granularity: pulumi.String(costmanagement.GranularityTypeDaily),
Grouping: costmanagement.ReportGroupingArray{
&costmanagement.ReportGroupingArgs{
Name: pulumi.String("SubscriptionName"),
Type: pulumi.String(costmanagement.ReportColumnTypeDimension),
},
&costmanagement.ReportGroupingArgs{
Name: pulumi.String("Environment"),
Type: pulumi.String(costmanagement.ReportColumnTypeTag),
},
},
},
Timeframe: pulumi.String(costmanagement.TimeframeTypeMonthToDate),
Type: pulumi.String(costmanagement.ReportTypeUsage),
},
DeliveryInfo: &costmanagement.ReportDeliveryInfoArgs{
Destination: &costmanagement.ReportDeliveryDestinationArgs{
Container: pulumi.String("reports"),
ResourceId: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182"),
RootFolderPath: pulumi.String("ad-hoc"),
},
},
Format: pulumi.String(costmanagement.FormatTypeCsv),
ReportName: pulumi.String("TestReport"),
Schedule: &costmanagement.ReportScheduleArgs{
Recurrence: pulumi.String(costmanagement.RecurrenceTypeWeekly),
RecurrencePeriod: &costmanagement.ReportRecurrencePeriodArgs{
From: pulumi.String("2018-06-01T00:00:00Z"),
To: pulumi.String("2018-10-31T00:00:00Z"),
},
Status: pulumi.String(costmanagement.StatusTypeActive),
},
})
if err != nil {
return err
}
return nil
})
}
terraform {
required_providers {
azure-native = {
source = "pulumi/azure-native"
}
}
}
resource "azure-native_costmanagement_report" "report" {
lifecycle {
create_before_destroy = true
}
definition = {
dataset = {
aggregation = {
"costSum" = {
function = "Sum"
name = "PreTaxCost"
}
}
configuration = {
columns = ["Date", "MeterId", "InstanceId", "ResourceLocation", "PreTaxCost"]
}
filter = {
and = [{
or = [{
dimension = {
name = "ResourceLocation"
operator = "In"
values = ["East US", "West Europe"]
}
}, {
tag = {
name = "Environment"
operator = "In"
values = ["UAT", "Prod"]
}
}]
}, {
dimension = {
name = "ResourceGroup"
operator = "In"
values = ["API"]
}
}]
}
granularity = "Daily"
grouping = [{
name = "SubscriptionName"
type = "Dimension"
}, {
name = "Environment"
type = "Tag"
}]
}
timeframe = "MonthToDate"
type = "Usage"
}
delivery_info = {
destination = {
container = "reports"
resource_id = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182"
root_folder_path = "ad-hoc"
}
}
format = "Csv"
report_name = "TestReport"
schedule = {
recurrence = "Weekly"
recurrence_period = {
from = "2018-06-01T00:00:00Z"
to = "2018-10-31T00:00:00Z"
}
status = "Active"
}
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.costmanagement.Report;
import com.pulumi.azurenative.costmanagement.ReportArgs;
import com.pulumi.azurenative.costmanagement.inputs.ReportDefinitionArgs;
import com.pulumi.azurenative.costmanagement.inputs.ReportDatasetArgs;
import com.pulumi.azurenative.costmanagement.inputs.ReportAggregationArgs;
import com.pulumi.azurenative.costmanagement.inputs.ReportDatasetConfigurationArgs;
import com.pulumi.azurenative.costmanagement.inputs.ReportFilterArgs;
import com.pulumi.azurenative.costmanagement.inputs.ReportComparisonExpressionArgs;
import com.pulumi.azurenative.costmanagement.inputs.ReportGroupingArgs;
import com.pulumi.azurenative.costmanagement.inputs.ReportDeliveryInfoArgs;
import com.pulumi.azurenative.costmanagement.inputs.ReportDeliveryDestinationArgs;
import com.pulumi.azurenative.costmanagement.inputs.ReportScheduleArgs;
import com.pulumi.azurenative.costmanagement.inputs.ReportRecurrencePeriodArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var report = new Report("report", ReportArgs.builder()
.definition(ReportDefinitionArgs.builder()
.dataset(ReportDatasetArgs.builder()
.aggregation(Map.of("costSum", ReportAggregationArgs.builder()
.function("Sum")
.name("PreTaxCost")
.build()))
.configuration(ReportDatasetConfigurationArgs.builder()
.columns(
"Date",
"MeterId",
"InstanceId",
"ResourceLocation",
"PreTaxCost")
.build())
.filter(ReportFilterArgs.builder()
.and(
ReportFilterArgs.builder()
.or(
ReportFilterArgs.builder()
.dimension(ReportComparisonExpressionArgs.builder()
.name("ResourceLocation")
.operator("In")
.values(
"East US",
"West Europe")
.build())
.build(),
ReportFilterArgs.builder()
.tag(ReportComparisonExpressionArgs.builder()
.name("Environment")
.operator("In")
.values(
"UAT",
"Prod")
.build())
.build())
.build(),
ReportFilterArgs.builder()
.dimension(ReportComparisonExpressionArgs.builder()
.name("ResourceGroup")
.operator("In")
.values("API")
.build())
.build())
.build())
.granularity("Daily")
.grouping(
ReportGroupingArgs.builder()
.name("SubscriptionName")
.type("Dimension")
.build(),
ReportGroupingArgs.builder()
.name("Environment")
.type("Tag")
.build())
.build())
.timeframe("MonthToDate")
.type("Usage")
.build())
.deliveryInfo(ReportDeliveryInfoArgs.builder()
.destination(ReportDeliveryDestinationArgs.builder()
.container("reports")
.resourceId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182")
.rootFolderPath("ad-hoc")
.build())
.build())
.format("Csv")
.reportName("TestReport")
.schedule(ReportScheduleArgs.builder()
.recurrence("Weekly")
.recurrencePeriod(ReportRecurrencePeriodArgs.builder()
.from("2018-06-01T00:00:00Z")
.to("2018-10-31T00:00:00Z")
.build())
.status("Active")
.build())
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const report = new azure_native.costmanagement.Report("report", {
definition: {
dataset: {
aggregation: {
costSum: {
"function": azure_native.costmanagement.FunctionType.Sum,
name: "PreTaxCost",
},
},
configuration: {
columns: [
"Date",
"MeterId",
"InstanceId",
"ResourceLocation",
"PreTaxCost",
],
},
filter: {
and: [
{
or: [
{
dimension: {
name: "ResourceLocation",
operator: azure_native.costmanagement.OperatorType.In,
values: [
"East US",
"West Europe",
],
},
},
{
tag: {
name: "Environment",
operator: azure_native.costmanagement.OperatorType.In,
values: [
"UAT",
"Prod",
],
},
},
],
},
{
dimension: {
name: "ResourceGroup",
operator: azure_native.costmanagement.OperatorType.In,
values: ["API"],
},
},
],
},
granularity: azure_native.costmanagement.GranularityType.Daily,
grouping: [
{
name: "SubscriptionName",
type: azure_native.costmanagement.ReportColumnType.Dimension,
},
{
name: "Environment",
type: azure_native.costmanagement.ReportColumnType.Tag,
},
],
},
timeframe: azure_native.costmanagement.TimeframeType.MonthToDate,
type: azure_native.costmanagement.ReportType.Usage,
},
deliveryInfo: {
destination: {
container: "reports",
resourceId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182",
rootFolderPath: "ad-hoc",
},
},
format: azure_native.costmanagement.FormatType.Csv,
reportName: "TestReport",
schedule: {
recurrence: azure_native.costmanagement.RecurrenceType.Weekly,
recurrencePeriod: {
from: "2018-06-01T00:00:00Z",
to: "2018-10-31T00:00:00Z",
},
status: azure_native.costmanagement.StatusType.Active,
},
});
import pulumi
import pulumi_azure_native as azure_native
report = azure_native.costmanagement.Report("report",
definition={
"dataset": {
"aggregation": {
"costSum": {
"function": azure_native.costmanagement.FunctionType.SUM,
"name": "PreTaxCost",
},
},
"configuration": {
"columns": [
"Date",
"MeterId",
"InstanceId",
"ResourceLocation",
"PreTaxCost",
],
},
"filter": {
"and_": [
{
"or_": [
{
"dimension": {
"name": "ResourceLocation",
"operator": azure_native.costmanagement.OperatorType.IN_,
"values": [
"East US",
"West Europe",
],
},
},
{
"tag": {
"name": "Environment",
"operator": azure_native.costmanagement.OperatorType.IN_,
"values": [
"UAT",
"Prod",
],
},
},
],
},
{
"dimension": {
"name": "ResourceGroup",
"operator": azure_native.costmanagement.OperatorType.IN_,
"values": ["API"],
},
},
],
},
"granularity": azure_native.costmanagement.GranularityType.DAILY,
"grouping": [
{
"name": "SubscriptionName",
"type": azure_native.costmanagement.ReportColumnType.DIMENSION,
},
{
"name": "Environment",
"type": azure_native.costmanagement.ReportColumnType.TAG,
},
],
},
"timeframe": azure_native.costmanagement.TimeframeType.MONTH_TO_DATE,
"type": azure_native.costmanagement.ReportType.USAGE,
},
delivery_info={
"destination": {
"container": "reports",
"resource_id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182",
"root_folder_path": "ad-hoc",
},
},
format=azure_native.costmanagement.FormatType.CSV,
report_name="TestReport",
schedule={
"recurrence": azure_native.costmanagement.RecurrenceType.WEEKLY,
"recurrence_period": {
"from_": "2018-06-01T00:00:00Z",
"to": "2018-10-31T00:00:00Z",
},
"status": azure_native.costmanagement.StatusType.ACTIVE,
})
resources:
report:
type: azure-native:costmanagement:Report
properties:
definition:
dataset:
aggregation:
costSum:
function: Sum
name: PreTaxCost
configuration:
columns:
- Date
- MeterId
- InstanceId
- ResourceLocation
- PreTaxCost
filter:
and:
- or:
- dimension:
name: ResourceLocation
operator: In
values:
- East US
- West Europe
- tag:
name: Environment
operator: In
values:
- UAT
- Prod
- dimension:
name: ResourceGroup
operator: In
values:
- API
granularity: Daily
grouping:
- name: SubscriptionName
type: Dimension
- name: Environment
type: Tag
timeframe: MonthToDate
type: Usage
deliveryInfo:
destination:
container: reports
resourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182
rootFolderPath: ad-hoc
format: Csv
reportName: TestReport
schedule:
recurrence: Weekly
recurrencePeriod:
from: 2018-06-01T00:00:00Z
to: 2018-10-31T00:00:00Z
status: Active
Create Report Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
@overload
def Report(resource_name: str,
args: ReportArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Report(resource_name: str,
opts: Optional[ResourceOptions] = None,
definition: Optional[ReportDefinitionArgs] = None,
delivery_info: Optional[ReportDeliveryInfoArgs] = None,
format: Optional[Union[str, FormatType]] = None,
report_name: Optional[str] = None,
schedule: Optional[ReportScheduleArgs] = None)
public Report(String name, ReportArgs args)
public Report(String name, ReportArgs args, CustomResourceOptions options)
type: azure-native:costmanagement:Report
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "azure-native_costmanagement_report" "name" {
# resource properties
}
Parameters
- name
string
- The unique name of the resource.
- args
ReportArgs
- The arguments to resource properties.
- opts
CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
str
- The unique name of the resource.
- args
ReportArgs
- The arguments to resource properties.
- opts
ResourceOptions
- Bag of options to control resource's behavior.
- ctx
Context
- Context object for the current deployment.
- name
string
- The unique name of the resource.
- args
ReportArgs
- The arguments to resource properties.
- opts
ResourceOption
- Bag of options to control resource's behavior.
- name
string
- The unique name of the resource.
- args
ReportArgs
- The arguments to resource properties.
- opts
CustomResourceOptions
- Bag of options to control resource's behavior.
- name
String
- The unique name of the resource.
- args
ReportArgs
- The arguments to resource properties.
- options
CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var azure_nativeReportResource = new AzureNative.CostManagement.Report("azure-nativeReportResource", new()
{
Definition = new AzureNative.CostManagement.Inputs.ReportDefinitionArgs
{
Timeframe = "string",
Type = "string",
Dataset = new AzureNative.CostManagement.Inputs.ReportDatasetArgs
{
Aggregation =
{
{ "string", new AzureNative.CostManagement.Inputs.ReportAggregationArgs
{
Function = "string",
Name = "string",
} },
},
Configuration = new AzureNative.CostManagement.Inputs.ReportDatasetConfigurationArgs
{
Columns = new[]
{
"string",
},
},
Filter = new AzureNative.CostManagement.Inputs.ReportFilterArgs
{
And = new[]
{
reportFilter,
},
Dimension = new AzureNative.CostManagement.Inputs.ReportComparisonExpressionArgs
{
Name = "string",
Operator = "string",
Values = new[]
{
"string",
},
},
Not = reportFilter,
Or = new[]
{
reportFilter,
},
Tag = new AzureNative.CostManagement.Inputs.ReportComparisonExpressionArgs
{
Name = "string",
Operator = "string",
Values = new[]
{
"string",
},
},
},
Granularity = "string",
Grouping = new[]
{
new AzureNative.CostManagement.Inputs.ReportGroupingArgs
{
Name = "string",
Type = "string",
},
},
},
TimePeriod = new AzureNative.CostManagement.Inputs.ReportTimePeriodArgs
{
From = "string",
To = "string",
},
},
DeliveryInfo = new AzureNative.CostManagement.Inputs.ReportDeliveryInfoArgs
{
Destination = new AzureNative.CostManagement.Inputs.ReportDeliveryDestinationArgs
{
Container = "string",
ResourceId = "string",
RootFolderPath = "string",
},
},
Format = "string",
ReportName = "string",
Schedule = new AzureNative.CostManagement.Inputs.ReportScheduleArgs
{
Recurrence = "string",
RecurrencePeriod = new AzureNative.CostManagement.Inputs.ReportRecurrencePeriodArgs
{
From = "string",
To = "string",
},
Status = "string",
},
});
example, err := costmanagement.NewReport(ctx, "azure-nativeReportResource", &costmanagement.ReportArgs{
Definition: &costmanagement.ReportDefinitionArgs{
Timeframe: pulumi.String("string"),
Type: pulumi.String("string"),
Dataset: &costmanagement.ReportDatasetArgs{
Aggregation: costmanagement.ReportAggregationMap{
"string": &costmanagement.ReportAggregationArgs{
Function: pulumi.String("string"),
Name: pulumi.String("string"),
},
},
Configuration: &costmanagement.ReportDatasetConfigurationArgs{
Columns: pulumi.StringArray{
pulumi.String("string"),
},
},
Filter: &costmanagement.ReportFilterArgs{
And: costmanagement.ReportFilterArray{
reportFilter,
},
Dimension: &costmanagement.ReportComparisonExpressionArgs{
Name: pulumi.String("string"),
Operator: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
Not: pulumi.Any(reportFilter),
Or: costmanagement.ReportFilterArray{
reportFilter,
},
Tag: &costmanagement.ReportComparisonExpressionArgs{
Name: pulumi.String("string"),
Operator: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Granularity: pulumi.String("string"),
Grouping: costmanagement.ReportGroupingArray{
&costmanagement.ReportGroupingArgs{
Name: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
},
TimePeriod: &costmanagement.ReportTimePeriodArgs{
From: pulumi.String("string"),
To: pulumi.String("string"),
},
},
DeliveryInfo: &costmanagement.ReportDeliveryInfoArgs{
Destination: &costmanagement.ReportDeliveryDestinationArgs{
Container: pulumi.String("string"),
ResourceId: pulumi.String("string"),
RootFolderPath: pulumi.String("string"),
},
},
Format: pulumi.String("string"),
ReportName: pulumi.String("string"),
Schedule: &costmanagement.ReportScheduleArgs{
Recurrence: pulumi.String("string"),
RecurrencePeriod: &costmanagement.ReportRecurrencePeriodArgs{
From: pulumi.String("string"),
To: pulumi.String("string"),
},
Status: pulumi.String("string"),
},
})
resource "azure-native_costmanagement_report" "azure-nativeReportResource" {
lifecycle {
create_before_destroy = true
}
definition = {
timeframe = "string"
type = "string"
dataset = {
aggregation = {
"string" = {
function = "string"
name = "string"
}
}
configuration = {
columns = ["string"]
}
filter = {
and = [reportFilter]
dimension = {
name = "string"
operator = "string"
values = ["string"]
}
not = reportFilter
or = [reportFilter]
tag = {
name = "string"
operator = "string"
values = ["string"]
}
}
granularity = "string"
grouping = [{
name = "string"
type = "string"
}]
}
time_period = {
from = "string"
to = "string"
}
}
delivery_info = {
destination = {
container = "string"
resource_id = "string"
root_folder_path = "string"
}
}
format = "string"
report_name = "string"
schedule = {
recurrence = "string"
recurrence_period = {
from = "string"
to = "string"
}
status = "string"
}
}
var azure_nativeReportResource = new com.pulumi.azurenative.costmanagement.Report("azure-nativeReportResource", com.pulumi.azurenative.costmanagement.ReportArgs.builder()
.definition(ReportDefinitionArgs.builder()
.timeframe("string")
.type("string")
.dataset(ReportDatasetArgs.builder()
.aggregation(Map.of("string", ReportAggregationArgs.builder()
.function("string")
.name("string")
.build()))
.configuration(ReportDatasetConfigurationArgs.builder()
.columns("string")
.build())
.filter(ReportFilterArgs.builder()
.and(reportFilter)
.dimension(ReportComparisonExpressionArgs.builder()
.name("string")
.operator("string")
.values("string")
.build())
.not(reportFilter)
.or(reportFilter)
.tag(ReportComparisonExpressionArgs.builder()
.name("string")
.operator("string")
.values("string")
.build())
.build())
.granularity("string")
.grouping(ReportGroupingArgs.builder()
.name("string")
.type("string")
.build())
.build())
.timePeriod(ReportTimePeriodArgs.builder()
.from("string")
.to("string")
.build())
.build())
.deliveryInfo(ReportDeliveryInfoArgs.builder()
.destination(ReportDeliveryDestinationArgs.builder()
.container("string")
.resourceId("string")
.rootFolderPath("string")
.build())
.build())
.format("string")
.reportName("string")
.schedule(ReportScheduleArgs.builder()
.recurrence("string")
.recurrencePeriod(ReportRecurrencePeriodArgs.builder()
.from("string")
.to("string")
.build())
.status("string")
.build())
.build());
azure_native_report_resource = azure_native.costmanagement.Report("azure-nativeReportResource",
definition={
"timeframe": "string",
"type": "string",
"dataset": {
"aggregation": {
"string": {
"function": "string",
"name": "string",
},
},
"configuration": {
"columns": ["string"],
},
"filter": {
"and_": [report_filter],
"dimension": {
"name": "string",
"operator": "string",
"values": ["string"],
},
"not_": report_filter,
"or_": [report_filter],
"tag": {
"name": "string",
"operator": "string",
"values": ["string"],
},
},
"granularity": "string",
"grouping": [{
"name": "string",
"type": "string",
}],
},
"time_period": {
"from_": "string",
"to": "string",
},
},
delivery_info={
"destination": {
"container": "string",
"resource_id": "string",
"root_folder_path": "string",
},
},
format="string",
report_name="string",
schedule={
"recurrence": "string",
"recurrence_period": {
"from_": "string",
"to": "string",
},
"status": "string",
})
const azure_nativeReportResource = new azure_native.costmanagement.Report("azure-nativeReportResource", {
definition: {
timeframe: "string",
type: "string",
dataset: {
aggregation: {
string: {
"function": "string",
name: "string",
},
},
configuration: {
columns: ["string"],
},
filter: {
and: [reportFilter],
dimension: {
name: "string",
operator: "string",
values: ["string"],
},
not: reportFilter,
or: [reportFilter],
tag: {
name: "string",
operator: "string",
values: ["string"],
},
},
granularity: "string",
grouping: [{
name: "string",
type: "string",
}],
},
timePeriod: {
from: "string",
to: "string",
},
},
deliveryInfo: {
destination: {
container: "string",
resourceId: "string",
rootFolderPath: "string",
},
},
format: "string",
reportName: "string",
schedule: {
recurrence: "string",
recurrencePeriod: {
from: "string",
to: "string",
},
status: "string",
},
});
type: azure-native:costmanagement:Report
properties:
definition:
dataset:
aggregation:
string:
function: string
name: string
configuration:
columns:
- string
filter:
and:
- ${reportFilter}
dimension:
name: string
operator: string
values:
- string
not: ${reportFilter}
or:
- ${reportFilter}
tag:
name: string
operator: string
values:
- string
granularity: string
grouping:
- name: string
type: string
timePeriod:
from: string
to: string
timeframe: string
type: string
deliveryInfo:
destination:
container: string
resourceId: string
rootFolderPath: string
format: string
reportName: string
schedule:
recurrence: string
recurrencePeriod:
from: string
to: string
status: string
Report Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Report resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the Report resource produces the following output properties:
- AzureApiVersion
string
- The Azure API version of the resource.
- Id
string
- The provider-assigned unique ID for this managed resource.
- Name
string
- Resource name.
- Tags
Dictionary<string, string>
- Resource tags.
- Type
string
- Resource type.
- AzureApiVersion
string
- The Azure API version of the resource.
- Id
string
- The provider-assigned unique ID for this managed resource.
- Name
string
- Resource name.
- Tags
map[string]string
- Resource tags.
- Type
string
- Resource type.
- azure_api_version
string
- The Azure API version of the resource.
- id
string
- The provider-assigned unique ID for this managed resource.
- name
string
- Resource name.
- tags
map(string)
- Resource tags.
- type
string
- Resource type.
- azureApiVersion
String
- The Azure API version of the resource.
- id
String
- The provider-assigned unique ID for this managed resource.
- name
String
- Resource name.
- tags
Map<String,String>
- Resource tags.
- type
String
- Resource type.
- azureApiVersion
string
- The Azure API version of the resource.
- id
string
- The provider-assigned unique ID for this managed resource.
- name
string
- Resource name.
- tags
{[key: string]: string}
- Resource tags.
- type
string
- Resource type.
- azure_api_version
str
- The Azure API version of the resource.
- id
str
- The provider-assigned unique ID for this managed resource.
- name
str
- Resource name.
- tags
Mapping[str, str]
- Resource tags.
- type
str
- Resource type.
- azureApiVersion
String
- The Azure API version of the resource.
- id
String
- The provider-assigned unique ID for this managed resource.
- name
String
- Resource name.
- tags
Map<String>
- Resource tags.
- type
String
- Resource type.
Look up Existing Report Resource
Get an existing Report resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static Report get(String name, Output<String> id, CustomResourceOptions options)
resources: existingReport: type: azure-native:costmanagement:Report get: id: ${id}
import {
to = azure-native_costmanagement_report.example
id = "${id}"
}
- name
string
- The unique name of the resulting resource.
- id
Input<ID>
- The unique provider ID of the resource to look up.
- opts
CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
str
- The unique name of the resulting resource.
- id
str
- The unique provider ID of the resource to look up.
- opts
ResourceOptions
- Bag of options to control resource's behavior.
- ctx
Context
- Context object for the current deployment.
- name
string
- The unique name of the resulting resource.
- id
IDInput
- The unique provider ID of the resource to look up.
- state
ReportState
- Pass nil. This resource has no state arguments.
- opts
ResourceOption
- Bag of options to control resource's behavior.
- name
string
- The unique name of the resulting resource.
- id
Input<string>
- The unique provider ID of the resource to look up.
- opts
CustomResourceOptions
- Bag of options to control resource's behavior.
- name
String
- The unique name of the resulting resource.
- id
Output<String>
- The unique provider ID of the resource to look up.
- options
CustomResourceOptions
- Bag of options to control resource's behavior.
Supporting Types
The format of the report being delivered.
| Name | Value |
|---|
| FormatTypeCsv | Csv |
FunctionType
The name of the aggregation function to use.
| Name | Value |
|---|
| FunctionTypeSum | Sum |
GranularityType
The granularity of rows in the report.
| Name | Value |
|---|
| Daily | Daily |
| Hourly | Hourly |
| Name | Value |
|---|
| GranularityTypeDaily | Daily |
| GranularityTypeHourly | Hourly |
| Name | Value |
|---|
| Daily | Daily |
| Hourly | Hourly |
| Name | Value |
|---|
| Daily | Daily |
| Hourly | Hourly |
| Name | Value |
|---|
| DAILY | Daily |
| HOURLY | Hourly |
OperatorType
The operator to use for comparison.
| Name | Value |
|---|
| In | In |
| Contains | Contains |
| Name | Value |
|---|
| OperatorTypeIn | In |
| OperatorTypeContains | Contains |
| Name | Value |
|---|
| In | In |
| Contains | Contains |
| Name | Value |
|---|
| In | In |
| Contains | Contains |
| Name | Value |
|---|
| IN_ | In |
| CONTAINS | Contains |
RecurrenceType
The schedule recurrence.
| Name | Value |
|---|
| Daily | Daily |
| Weekly | Weekly |
| Monthly | Monthly |
| Annually | Annually |
| Name | Value |
|---|
| RecurrenceTypeDaily | Daily |
| RecurrenceTypeWeekly | Weekly |
| RecurrenceTypeMonthly | Monthly |
| RecurrenceTypeAnnually | Annually |
| Value |
|---|
Daily |
Weekly |
Monthly |
Annually |
| Name | Value |
|---|
| Daily | Daily |
| Weekly | Weekly |
| Monthly | Monthly |
| Annually | Annually |
| Name | Value |
|---|
| Daily | Daily |
| Weekly | Weekly |
| Monthly | Monthly |
| Annually | Annually |
| Name | Value |
|---|
| DAILY | Daily |
| WEEKLY | Weekly |
| MONTHLY | Monthly |
| ANNUALLY | Annually |
| Value |
|---|
Daily |
Weekly |
Monthly |
Annually |
ReportAggregation, ReportAggregationArgs
The aggregation expression to be used in the report.
- Function
string | FunctionType
- The name of the aggregation function to use.
- Name
string
- The name of the column to aggregate.
- function
string | "Sum"
- The name of the aggregation function to use.
- name
string
- The name of the column to aggregate.
- function
String | FunctionType
- The name of the aggregation function to use.
- name
String
- The name of the column to aggregate.
- function
string | FunctionType
- The name of the aggregation function to use.
- name
string
- The name of the column to aggregate.
- function
String | "Sum"
- The name of the aggregation function to use.
- name
String
- The name of the column to aggregate.
ReportAggregationResponse
The aggregation expression to be used in the report.
- Function
string
- The name of the aggregation function to use.
- Name
string
- The name of the column to aggregate.
- Function
string
- The name of the aggregation function to use.
- Name
string
- The name of the column to aggregate.
- function
string
- The name of the aggregation function to use.
- name
string
- The name of the column to aggregate.
- function
String
- The name of the aggregation function to use.
- name
String
- The name of the column to aggregate.
- function
string
- The name of the aggregation function to use.
- name
string
- The name of the column to aggregate.
- function
str
- The name of the aggregation function to use.
- name
str
- The name of the column to aggregate.
- function
String
- The name of the aggregation function to use.
- name
String
- The name of the column to aggregate.
ReportColumnType
Has type of the column to group.
| Name | Value |
|---|
| Tag | Tag |
| Dimension | Dimension |
| Name | Value |
|---|
| ReportColumnTypeTag | Tag |
| ReportColumnTypeDimension | Dimension |
| Name | Value |
|---|
| Tag | Tag |
| Dimension | Dimension |
| Name | Value |
|---|
| Tag | Tag |
| Dimension | Dimension |
| Name | Value |
|---|
| TAG | Tag |
| DIMENSION | Dimension |
ReportComparisonExpression, ReportComparisonExpressionArgs
The comparison expression to be used in the report.
- Name
string
- The name of the column to use in comparison.
- Operator
string | OperatorType
- The operator to use for comparison.
- Values
[]string
- Array of values to use for comparison
- name
string
- The name of the column to use in comparison.
- operator
string | "In" | "Contains"
- The operator to use for comparison.
- values
list(string)
- Array of values to use for comparison
- name
String
- The name of the column to use in comparison.
- operator
String | OperatorType
- The operator to use for comparison.
- values
List<String>
- Array of values to use for comparison
- name
string
- The name of the column to use in comparison.
- operator
string | OperatorType
- The operator to use for comparison.
- values
string[]
- Array of values to use for comparison
- name
str
- The name of the column to use in comparison.
- operator
str | OperatorType
- The operator to use for comparison.
- values
Sequence[str]
- Array of values to use for comparison
- name
String
- The name of the column to use in comparison.
- operator
String | "In" | "Contains"
- The operator to use for comparison.
- values
List<String>
- Array of values to use for comparison
ReportComparisonExpressionResponse
The comparison expression to be used in the report.
- Name
string
- The name of the column to use in comparison.
- Operator
string
- The operator to use for comparison.
- Values
List<string>
- Array of values to use for comparison
- Name
string
- The name of the column to use in comparison.
- Operator
string
- The operator to use for comparison.
- Values
[]string
- Array of values to use for comparison
- name
string
- The name of the column to use in comparison.
- operator
string
- The operator to use for comparison.
- values
list(string)
- Array of values to use for comparison
- name
String
- The name of the column to use in comparison.
- operator
String
- The operator to use for comparison.
- values
List<String>
- Array of values to use for comparison
- name
string
- The name of the column to use in comparison.
- operator
string
- The operator to use for comparison.
- values
string[]
- Array of values to use for comparison
- name
str
- The name of the column to use in comparison.
- operator
str
- The operator to use for comparison.
- values
Sequence[str]
- Array of values to use for comparison
- name
String
- The name of the column to use in comparison.
- operator
String
- The operator to use for comparison.
- values
List<String>
- Array of values to use for comparison
ReportDataset, ReportDatasetArgs
The definition of data present in the report.
- Aggregation
map[string]ReportAggregation
- 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
ReportDatasetConfiguration
- Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided.
- Filter
ReportFilter
- Has filter expression to use in the report.
- Granularity
string | GranularityType
- The granularity of rows in the report.
- Grouping
[]ReportGrouping
- Array of group by expression to use in the report. Report can have up to 2 group by clauses.
- aggregation
map(object)
- 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
object
- Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided.
- filter
object
- Has filter expression to use in the report.
- granularity
string | "Daily" | "Hourly"
- The granularity of rows in the report.
- grouping
list(object)
- Array of group by expression to use in the report. Report can have up to 2 group by clauses.
- aggregation
Map<String,ReportAggregation>
- 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
ReportDatasetConfiguration
- Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided.
- filter
ReportFilter
- Has filter expression to use in the report.
- granularity
String | GranularityType
- The granularity of rows in the report.
- grouping
List<ReportGrouping>
- Array of group by expression to use in the report. Report can have up to 2 group by clauses.
- aggregation
{[key: string]: ReportAggregation}
- 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
ReportDatasetConfiguration
- Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided.
- filter
ReportFilter
- Has filter expression to use in the report.
- granularity
string | GranularityType
- The granularity of rows in the report.
- grouping
ReportGrouping[]
- Array of group by expression to use in the report. Report can have up to 2 group by clauses.
- aggregation
Mapping[str, ReportAggregation]
- 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
ReportDatasetConfiguration
- Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided.
- filter
ReportFilter
- Has filter expression to use in the report.
- granularity
str | GranularityType
- The granularity of rows in the report.
- grouping
Sequence[ReportGrouping]
- Array of group by expression to use in the report. Report can have up to 2 group by clauses.
- 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 | "Daily" | "Hourly"
- 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.
ReportDatasetConfiguration, ReportDatasetConfigurationArgs
The configuration of dataset in the report.
- 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
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.
ReportDatasetConfigurationResponse
The configuration of dataset in the report.
- 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
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.
ReportDatasetResponse
The definition of data present in the report.
- Aggregation
map[string]ReportAggregationResponse
- 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
ReportDatasetConfigurationResponse
- Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided.
- Filter
ReportFilterResponse
- Has filter expression to use in the report.
- Granularity
string
- The granularity of rows in the report.
- Grouping
[]ReportGroupingResponse
- Array of group by expression to use in the report. Report can have up to 2 group by clauses.
- aggregation
map(object)
- 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
object
- Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided.
- filter
object
- Has filter expression to use in the report.
- granularity
string
- The granularity of rows in the report.
- grouping
list(object)
- Array of group by expression to use in the report. Report can have up to 2 group by clauses.
- aggregation
Map<String,ReportAggregationResponse>
- 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
ReportDatasetConfigurationResponse
- Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided.
- filter
ReportFilterResponse
- Has filter expression to use in the report.
- granularity
String
- The granularity of rows in the report.
- grouping
List<ReportGroupingResponse>
- Array of group by expression to use in the report. Report can have up to 2 group by clauses.
- aggregation
{[key: string]: ReportAggregationResponse}
- 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
ReportDatasetConfigurationResponse
- Has configuration information for the data in the report. The configuration will be ignored if aggregation and grouping are provided.
- filter
ReportFilterResponse
- Has filter expression to use in the report.
- granularity
string
- The granularity of rows in the report.
- grouping
ReportGroupingResponse[]
- Array of group by expression to use in the report. Report can have up to 2 group by clauses.
- 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.
ReportDefinition, ReportDefinitionArgs
The definition of a report.
ReportDefinitionResponse
The definition of a report.
- timeframe
string
- The time frame for pulling data for the report. If custom, then a specific time period must be provided.
- type
string
- The type of the report.
- dataset
object
- Has definition for data in this report.
- time_period
object
- Has time period for pulling data for the report.
- timeframe
String
- The time frame for pulling data for the report. If custom, then a specific time period must be provided.
- type
String
- The type of the report.
- dataset
Property Map
- Has definition for data in this report.
- timePeriod
Property Map
- Has time period for pulling data for the report.
ReportDeliveryDestination, ReportDeliveryDestinationArgs
The destination information for the delivery of the report.
- Container
string
- The name of the container where reports will be uploaded.
- ResourceId
string
- The resource id of the storage account where reports will be delivered.
- RootFolderPath
string
- The name of the directory where reports will be uploaded.
- Container
string
- The name of the container where reports will be uploaded.
- ResourceId
string
- The resource id of the storage account where reports will be delivered.
- RootFolderPath
string
- The name of the directory where reports will be uploaded.
- container
string
- The name of the container where reports will be uploaded.
- resource_id
string
- The resource id of the storage account where reports will be delivered.
- root_folder_path
string
- The name of the directory where reports will be uploaded.
- container
String
- The name of the container where reports will be uploaded.
- resourceId
String
- The resource id of the storage account where reports will be delivered.
- rootFolderPath
String
- The name of the directory where reports will be uploaded.
- container
string
- The name of the container where reports will be uploaded.
- resourceId
string
- The resource id of the storage account where reports will be delivered.
- rootFolderPath
string
- The name of the directory where reports will be uploaded.
- container
str
- The name of the container where reports will be uploaded.
- resource_id
str
- The resource id of the storage account where reports will be delivered.
- root_folder_path
str
- The name of the directory where reports will be uploaded.
- container
String
- The name of the container where reports will be uploaded.
- resourceId
String
- The resource id of the storage account where reports will be delivered.
- rootFolderPath
String
- The name of the directory where reports will be uploaded.
ReportDeliveryDestinationResponse
The destination information for the delivery of the report.
- Container
string
- The name of the container where reports will be uploaded.
- ResourceId
string
- The resource id of the storage account where reports will be delivered.
- RootFolderPath
string
- The name of the directory where reports will be uploaded.
- Container
string
- The name of the container where reports will be uploaded.
- ResourceId
string
- The resource id of the storage account where reports will be delivered.
- RootFolderPath
string
- The name of the directory where reports will be uploaded.
- container
string
- The name of the container where reports will be uploaded.
- resource_id
string
- The resource id of the storage account where reports will be delivered.
- root_folder_path
string
- The name of the directory where reports will be uploaded.
- container
String
- The name of the container where reports will be uploaded.
- resourceId
String
- The resource id of the storage account where reports will be delivered.
- rootFolderPath
String
- The name of the directory where reports will be uploaded.
- container
string
- The name of the container where reports will be uploaded.
- resourceId
string
- The resource id of the storage account where reports will be delivered.
- rootFolderPath
string
- The name of the directory where reports will be uploaded.
- container
str
- The name of the container where reports will be uploaded.
- resource_id
str
- The resource id of the storage account where reports will be delivered.
- root_folder_path
str
- The name of the directory where reports will be uploaded.
- container
String
- The name of the container where reports will be uploaded.
- resourceId
String
- The resource id of the storage account where reports will be delivered.
- rootFolderPath
String
- The name of the directory where reports will be uploaded.
ReportDeliveryInfo, ReportDeliveryInfoArgs
The delivery information associated with a report.
ReportDeliveryInfoResponse
The delivery information associated with a report.
ReportFilter, ReportFilterArgs
The filter expression to be used in the report.
ReportFilterResponse
The filter expression to be used in the report.
ReportGrouping, ReportGroupingArgs
The group by expression to be used in the report.
ReportGroupingResponse
The group by expression to be used in the report.
- Name
string
- The name of the column to group.
- Type
string
- Has type of the column to group.
- Name
string
- The name of the column to group.
- Type
string
- Has type of the column to group.
- name
string
- The name of the column to group.
- type
string
- Has type of the column to group.
- name
String
- The name of the column to group.
- type
String
- Has type of the column to group.
- name
string
- The name of the column to group.
- type
string
- Has type of the column to group.
- name
str
- The name of the column to group.
- type
str
- Has type of the column to group.
- name
String
- The name of the column to group.
- type
String
- Has type of the column to group.
ReportRecurrencePeriod, ReportRecurrencePeriodArgs
The start and end date for recurrence schedule.
- From
string
- The start date of recurrence.
- To
string
- The end date of recurrence.
- From
string
- The start date of recurrence.
- To
string
- The end date of recurrence.
- from
string
- The start date of recurrence.
- to
string
- The end date of recurrence.
- from
String
- The start date of recurrence.
- to
String
- The end date of recurrence.
- from
string
- The start date of recurrence.
- to
string
- The end date of recurrence.
- from_
str
- The start date of recurrence.
- to
str
- The end date of recurrence.
- from
String
- The start date of recurrence.
- to
String
- The end date of recurrence.
ReportRecurrencePeriodResponse
The start and end date for recurrence schedule.
- From
string
- The start date of recurrence.
- To
string
- The end date of recurrence.
- From
string
- The start date of recurrence.
- To
string
- The end date of recurrence.
- from
string
- The start date of recurrence.
- to
string
- The end date of recurrence.
- from
String
- The start date of recurrence.
- to
String
- The end date of recurrence.
- from
string
- The start date of recurrence.
- to
string
- The end date of recurrence.
- from_
str
- The start date of recurrence.
- to
str
- The end date of recurrence.
- from
String
- The start date of recurrence.
- to
String
- The end date of recurrence.
ReportSchedule, ReportScheduleArgs
The schedule associated with a report.
ReportScheduleResponse
The schedule associated with a report.
- Recurrence
string
- The schedule recurrence.
- RecurrencePeriod
ReportRecurrencePeriodResponse
- Has start and end date of the recurrence. The start date must be in future. If present, the end date must be greater than start date.
- Status
string
- The status of the schedule. Whether active or not. If inactive, the report's scheduled execution is paused.
- recurrence
string
- The schedule recurrence.
- recurrence_period
object
- Has start and end date of the recurrence. The start date must be in future. If present, the end date must be greater than start date.
- status
string
- The status of the schedule. Whether active or not. If inactive, the report's scheduled execution is paused.
- recurrence
String
- The schedule recurrence.
- recurrencePeriod
ReportRecurrencePeriodResponse
- Has start and end date of the recurrence. The start date must be in future. If present, the end date must be greater than start date.
- status
String
- The status of the schedule. Whether active or not. If inactive, the report's scheduled execution is paused.
- recurrence
string
- The schedule recurrence.
- recurrencePeriod
ReportRecurrencePeriodResponse
- Has start and end date of the recurrence. The start date must be in future. If present, the end date must be greater than start date.
- status
string
- The status of the schedule. Whether active or not. If inactive, the report's scheduled execution is paused.
- recurrence
str
- The schedule recurrence.
- recurrence_period
ReportRecurrencePeriodResponse
- Has start and end date of the recurrence. The start date must be in future. If present, the end date must be greater than start date.
- status
str
- The status of the schedule. Whether active or not. If inactive, the report's scheduled execution is paused.
- recurrence
String
- The schedule recurrence.
- recurrencePeriod
Property Map
- Has start and end date of the recurrence. The start date must be in future. If present, the end date must be greater than start date.
- status
String
- The status of the schedule. Whether active or not. If inactive, the report's scheduled execution is paused.
ReportTimePeriod, ReportTimePeriodArgs
The start and end date for pulling data for the report.
- From
string
- The start date to pull data from.
- To
string
- The end date to pull data to.
- From
string
- The start date to pull data from.
- To
string
- The end date to pull data to.
- from
string
- The start date to pull data from.
- to
string
- The end date to pull data to.
- from
String
- The start date to pull data from.
- to
String
- The end date to pull data to.
- from
string
- The start date to pull data from.
- to
string
- The end date to pull data to.
- from_
str
- The start date to pull data from.
- to
str
- The end date to pull data to.
- from
String
- The start date to pull data from.
- to
String
- The end date to pull data to.
ReportTimePeriodResponse
The start and end date for pulling data for the report.
- From
string
- The start date to pull data from.
- To
string
- The end date to pull data to.
- From
string
- The start date to pull data from.
- To
string
- The end date to pull data to.
- from
string
- The start date to pull data from.
- to
string
- The end date to pull data to.
- from
String
- The start date to pull data from.
- to
String
- The end date to pull data to.
- from
string
- The start date to pull data from.
- to
string
- The end date to pull data to.
- from_
str
- The start date to pull data from.
- to
str
- The end date to pull data to.
- from
String
- The start date to pull data from.
- to
String
- The end date to pull data to.
ReportType
The type of the report. Usage represents actual usage, forecast represents forecasted data and UsageAndForecast represents both usage and forecasted data. Actual usage and forecasted data can be differentiated based on dates.
| Name | Value |
|---|
| ReportTypeUsage | Usage |
StatusType
The status of the schedule. Whether active or not. If inactive, the report's scheduled execution is paused.
| Name | Value |
|---|
| Active | Active |
| Inactive | Inactive |
| Name | Value |
|---|
| StatusTypeActive | Active |
| StatusTypeInactive | Inactive |
| Name | Value |
|---|
| Active | Active |
| Inactive | Inactive |
| Name | Value |
|---|
| Active | Active |
| Inactive | Inactive |
| Name | Value |
|---|
| ACTIVE | Active |
| INACTIVE | Inactive |
TimeframeType
The time frame for pulling data for the report. If custom, then a specific time period must be provided.
| Name | Value |
|---|
| WeekToDate | WeekToDate |
| MonthToDate | MonthToDate |
| Custom | Custom |
| Name | Value |
|---|
| TimeframeTypeWeekToDate | WeekToDate |
| TimeframeTypeMonthToDate | MonthToDate |
| TimeframeTypeCustom | Custom |
| Value |
|---|
WeekToDate |
MonthToDate |
Custom |
| Name | Value |
|---|
| WeekToDate | WeekToDate |
| MonthToDate | MonthToDate |
| Custom | Custom |
| Name | Value |
|---|
| WeekToDate | WeekToDate |
| MonthToDate | MonthToDate |
| Custom | Custom |
| Name | Value |
|---|
| WEEK_TO_DATE | WeekToDate |
| MONTH_TO_DATE | MonthToDate |
| CUSTOM | Custom |
| Value |
|---|
WeekToDate |
MonthToDate |
Custom |
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:costmanagement:Report TestReport /subscriptions/{subscriptionId}/providers/Microsoft.CostManagement/reports/{reportName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0