ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getBillingSnapshotList
Explore with Pulumi AI
Provides a read-only data source to retrieve information about a billing_snapshot_list. You can then reference the fields of the data source in other resources within the same configuration by using interpolation syntax.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const billingSnapshotList = ibm.getBillingSnapshotList({
dateFrom: 1675209600000,
dateTo: 1675987200000,
month: "2023-02",
});
import pulumi
import pulumi_ibm as ibm
billing_snapshot_list = ibm.get_billing_snapshot_list(date_from=1675209600000,
date_to=1675987200000,
month="2023-02")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ibm.GetBillingSnapshotList(ctx, &ibm.GetBillingSnapshotListArgs{
DateFrom: pulumi.Float64Ref(1675209600000),
DateTo: pulumi.Float64Ref(1675987200000),
Month: "2023-02",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var billingSnapshotList = Ibm.GetBillingSnapshotList.Invoke(new()
{
DateFrom = 1675209600000,
DateTo = 1675987200000,
Month = "2023-02",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetBillingSnapshotListArgs;
import java.util.List;
import java.util.ArrayList;
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) {
final var billingSnapshotList = IbmFunctions.getBillingSnapshotList(GetBillingSnapshotListArgs.builder()
.dateFrom(1675209600000)
.dateTo(1675987200000)
.month("2023-02")
.build());
}
}
variables:
billingSnapshotList:
fn::invoke:
function: ibm:getBillingSnapshotList
arguments:
dateFrom: 1.6752096e+12
dateTo: 1.6759872e+12
month: 2023-02
Using getBillingSnapshotList
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 getBillingSnapshotList(args: GetBillingSnapshotListArgs, opts?: InvokeOptions): Promise<GetBillingSnapshotListResult>
function getBillingSnapshotListOutput(args: GetBillingSnapshotListOutputArgs, opts?: InvokeOptions): Output<GetBillingSnapshotListResult>
def get_billing_snapshot_list(date_from: Optional[float] = None,
date_to: Optional[float] = None,
id: Optional[str] = None,
limit: Optional[float] = None,
month: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetBillingSnapshotListResult
def get_billing_snapshot_list_output(date_from: Optional[pulumi.Input[float]] = None,
date_to: Optional[pulumi.Input[float]] = None,
id: Optional[pulumi.Input[str]] = None,
limit: Optional[pulumi.Input[float]] = None,
month: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetBillingSnapshotListResult]
func GetBillingSnapshotList(ctx *Context, args *GetBillingSnapshotListArgs, opts ...InvokeOption) (*GetBillingSnapshotListResult, error)
func GetBillingSnapshotListOutput(ctx *Context, args *GetBillingSnapshotListOutputArgs, opts ...InvokeOption) GetBillingSnapshotListResultOutput
> Note: This function is named GetBillingSnapshotList
in the Go SDK.
public static class GetBillingSnapshotList
{
public static Task<GetBillingSnapshotListResult> InvokeAsync(GetBillingSnapshotListArgs args, InvokeOptions? opts = null)
public static Output<GetBillingSnapshotListResult> Invoke(GetBillingSnapshotListInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetBillingSnapshotListResult> getBillingSnapshotList(GetBillingSnapshotListArgs args, InvokeOptions options)
public static Output<GetBillingSnapshotListResult> getBillingSnapshotList(GetBillingSnapshotListArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getBillingSnapshotList:getBillingSnapshotList
arguments:
# arguments dictionary
The following arguments are supported:
- Month string
- The month for which billing report snapshot is requested. Format is yyyy-mm.
- Date
From double - Timestamp in milliseconds for which billing report snapshot is requested.
- Date
To double - Timestamp in milliseconds for which billing report snapshot is requested.
- Id string
- The unique identifier of the billing_snapshot_list.
- Limit double
- Number of usage records returned. The default value is 30. Maximum value is 200.
- Constraints: The default value is
30
. The maximum value is200
. The minimum value is1
.
- Constraints: The default value is
- Month string
- The month for which billing report snapshot is requested. Format is yyyy-mm.
- Date
From float64 - Timestamp in milliseconds for which billing report snapshot is requested.
- Date
To float64 - Timestamp in milliseconds for which billing report snapshot is requested.
- Id string
- The unique identifier of the billing_snapshot_list.
- Limit float64
- Number of usage records returned. The default value is 30. Maximum value is 200.
- Constraints: The default value is
30
. The maximum value is200
. The minimum value is1
.
- Constraints: The default value is
- month String
- The month for which billing report snapshot is requested. Format is yyyy-mm.
- date
From Double - Timestamp in milliseconds for which billing report snapshot is requested.
- date
To Double - Timestamp in milliseconds for which billing report snapshot is requested.
- id String
- The unique identifier of the billing_snapshot_list.
- limit Double
- Number of usage records returned. The default value is 30. Maximum value is 200.
- Constraints: The default value is
30
. The maximum value is200
. The minimum value is1
.
- Constraints: The default value is
- month string
- The month for which billing report snapshot is requested. Format is yyyy-mm.
- date
From number - Timestamp in milliseconds for which billing report snapshot is requested.
- date
To number - Timestamp in milliseconds for which billing report snapshot is requested.
- id string
- The unique identifier of the billing_snapshot_list.
- limit number
- Number of usage records returned. The default value is 30. Maximum value is 200.
- Constraints: The default value is
30
. The maximum value is200
. The minimum value is1
.
- Constraints: The default value is
- month str
- The month for which billing report snapshot is requested. Format is yyyy-mm.
- date_
from float - Timestamp in milliseconds for which billing report snapshot is requested.
- date_
to float - Timestamp in milliseconds for which billing report snapshot is requested.
- id str
- The unique identifier of the billing_snapshot_list.
- limit float
- Number of usage records returned. The default value is 30. Maximum value is 200.
- Constraints: The default value is
30
. The maximum value is200
. The minimum value is1
.
- Constraints: The default value is
- month String
- The month for which billing report snapshot is requested. Format is yyyy-mm.
- date
From Number - Timestamp in milliseconds for which billing report snapshot is requested.
- date
To Number - Timestamp in milliseconds for which billing report snapshot is requested.
- id String
- The unique identifier of the billing_snapshot_list.
- limit Number
- Number of usage records returned. The default value is 30. Maximum value is 200.
- Constraints: The default value is
30
. The maximum value is200
. The minimum value is1
.
- Constraints: The default value is
getBillingSnapshotList Result
The following output properties are available:
- Id string
- The unique identifier of the billing_snapshot_list.
- Month string
- (String) Month of captured snapshot.
- Constraints: The value must match regular expression
/^\\d{4}\\-(0?[1-9]|1[012])$/
.
- Constraints: The value must match regular expression
- Snapshotcount double
- Snapshots
List<Get
Billing Snapshot List Snapshot> - (List) Nested schema for snapshots:
- Date
From double - Date
To double - Limit double
- Id string
- The unique identifier of the billing_snapshot_list.
- Month string
- (String) Month of captured snapshot.
- Constraints: The value must match regular expression
/^\\d{4}\\-(0?[1-9]|1[012])$/
.
- Constraints: The value must match regular expression
- Snapshotcount float64
- Snapshots
[]Get
Billing Snapshot List Snapshot - (List) Nested schema for snapshots:
- Date
From float64 - Date
To float64 - Limit float64
- id String
- The unique identifier of the billing_snapshot_list.
- month String
- (String) Month of captured snapshot.
- Constraints: The value must match regular expression
/^\\d{4}\\-(0?[1-9]|1[012])$/
.
- Constraints: The value must match regular expression
- snapshotcount Double
- snapshots
List<Get
Billing Snapshot List Snapshot> - (List) Nested schema for snapshots:
- date
From Double - date
To Double - limit Double
- id string
- The unique identifier of the billing_snapshot_list.
- month string
- (String) Month of captured snapshot.
- Constraints: The value must match regular expression
/^\\d{4}\\-(0?[1-9]|1[012])$/
.
- Constraints: The value must match regular expression
- snapshotcount number
- snapshots
Get
Billing Snapshot List Snapshot[] - (List) Nested schema for snapshots:
- date
From number - date
To number - limit number
- id str
- The unique identifier of the billing_snapshot_list.
- month str
- (String) Month of captured snapshot.
- Constraints: The value must match regular expression
/^\\d{4}\\-(0?[1-9]|1[012])$/
.
- Constraints: The value must match regular expression
- snapshotcount float
- snapshots
Sequence[Get
Billing Snapshot List Snapshot] - (List) Nested schema for snapshots:
- date_
from float - date_
to float - limit float
- id String
- The unique identifier of the billing_snapshot_list.
- month String
- (String) Month of captured snapshot.
- Constraints: The value must match regular expression
/^\\d{4}\\-(0?[1-9]|1[012])$/
.
- Constraints: The value must match regular expression
- snapshotcount Number
- snapshots List<Property Map>
- (List) Nested schema for snapshots:
- date
From Number - date
To Number - limit Number
Supporting Types
GetBillingSnapshotListSnapshot
- Account
Id string - (String) Account ID for which billing report is captured.
- Account
Type string - (String) Type of account. Possible values are [enterprise, account].
- Constraints: Allowable values are:
account
,enterprise
.
- Constraints: Allowable values are:
- Billing
Periods List<GetBilling Snapshot List Snapshot Billing Period> - (List) Period of billing in snapshot. Nested schema for billing_period:
- Bucket string
- (String) The name of the COS bucket to store the snapshot of the billing reports.
- Charset string
- (String) Character encoding used.
- Compression string
- (String) Compression format of the snapshot report.
- Content
Type string - (String) Type of content stored in snapshot report.
- Created
On string - (String) Date and time of creation of snapshot.
- Expected
Processed doubleAt - (Integer) Timestamp of snapshot processed.
- Files
List<Get
Billing Snapshot List Snapshot File> - (List) List of location of reports. Nested schema for files:
- Month string
- The month for which billing report snapshot is requested. Format is yyyy-mm.
- Processed
At double - (Integer) Timestamp at which snapshot is captured.
- Report
Types List<GetBilling Snapshot List Snapshot Report Type> - (List) List of report types configured for the snapshot. Nested schema for report_types:
- Snapshot
Id string - (String) Id of the snapshot captured.
- State string
- (String) Status of the billing snapshot configuration. Possible values are [enabled, disabled].
- Constraints: Allowable values are:
enabled
,disabled
.
- Constraints: Allowable values are:
- Version string
- (String) Version of the snapshot.
- Account
Id string - (String) Account ID for which billing report is captured.
- Account
Type string - (String) Type of account. Possible values are [enterprise, account].
- Constraints: Allowable values are:
account
,enterprise
.
- Constraints: Allowable values are:
- Billing
Periods []GetBilling Snapshot List Snapshot Billing Period - (List) Period of billing in snapshot. Nested schema for billing_period:
- Bucket string
- (String) The name of the COS bucket to store the snapshot of the billing reports.
- Charset string
- (String) Character encoding used.
- Compression string
- (String) Compression format of the snapshot report.
- Content
Type string - (String) Type of content stored in snapshot report.
- Created
On string - (String) Date and time of creation of snapshot.
- Expected
Processed float64At - (Integer) Timestamp of snapshot processed.
- Files
[]Get
Billing Snapshot List Snapshot File - (List) List of location of reports. Nested schema for files:
- Month string
- The month for which billing report snapshot is requested. Format is yyyy-mm.
- Processed
At float64 - (Integer) Timestamp at which snapshot is captured.
- Report
Types []GetBilling Snapshot List Snapshot Report Type - (List) List of report types configured for the snapshot. Nested schema for report_types:
- Snapshot
Id string - (String) Id of the snapshot captured.
- State string
- (String) Status of the billing snapshot configuration. Possible values are [enabled, disabled].
- Constraints: Allowable values are:
enabled
,disabled
.
- Constraints: Allowable values are:
- Version string
- (String) Version of the snapshot.
- account
Id String - (String) Account ID for which billing report is captured.
- account
Type String - (String) Type of account. Possible values are [enterprise, account].
- Constraints: Allowable values are:
account
,enterprise
.
- Constraints: Allowable values are:
- billing
Periods List<GetBilling Snapshot List Snapshot Billing Period> - (List) Period of billing in snapshot. Nested schema for billing_period:
- bucket String
- (String) The name of the COS bucket to store the snapshot of the billing reports.
- charset String
- (String) Character encoding used.
- compression String
- (String) Compression format of the snapshot report.
- content
Type String - (String) Type of content stored in snapshot report.
- created
On String - (String) Date and time of creation of snapshot.
- expected
Processed DoubleAt - (Integer) Timestamp of snapshot processed.
- files
List<Get
Billing Snapshot List Snapshot File> - (List) List of location of reports. Nested schema for files:
- month String
- The month for which billing report snapshot is requested. Format is yyyy-mm.
- processed
At Double - (Integer) Timestamp at which snapshot is captured.
- report
Types List<GetBilling Snapshot List Snapshot Report Type> - (List) List of report types configured for the snapshot. Nested schema for report_types:
- snapshot
Id String - (String) Id of the snapshot captured.
- state String
- (String) Status of the billing snapshot configuration. Possible values are [enabled, disabled].
- Constraints: Allowable values are:
enabled
,disabled
.
- Constraints: Allowable values are:
- version String
- (String) Version of the snapshot.
- account
Id string - (String) Account ID for which billing report is captured.
- account
Type string - (String) Type of account. Possible values are [enterprise, account].
- Constraints: Allowable values are:
account
,enterprise
.
- Constraints: Allowable values are:
- billing
Periods GetBilling Snapshot List Snapshot Billing Period[] - (List) Period of billing in snapshot. Nested schema for billing_period:
- bucket string
- (String) The name of the COS bucket to store the snapshot of the billing reports.
- charset string
- (String) Character encoding used.
- compression string
- (String) Compression format of the snapshot report.
- content
Type string - (String) Type of content stored in snapshot report.
- created
On string - (String) Date and time of creation of snapshot.
- expected
Processed numberAt - (Integer) Timestamp of snapshot processed.
- files
Get
Billing Snapshot List Snapshot File[] - (List) List of location of reports. Nested schema for files:
- month string
- The month for which billing report snapshot is requested. Format is yyyy-mm.
- processed
At number - (Integer) Timestamp at which snapshot is captured.
- report
Types GetBilling Snapshot List Snapshot Report Type[] - (List) List of report types configured for the snapshot. Nested schema for report_types:
- snapshot
Id string - (String) Id of the snapshot captured.
- state string
- (String) Status of the billing snapshot configuration. Possible values are [enabled, disabled].
- Constraints: Allowable values are:
enabled
,disabled
.
- Constraints: Allowable values are:
- version string
- (String) Version of the snapshot.
- account_
id str - (String) Account ID for which billing report is captured.
- account_
type str - (String) Type of account. Possible values are [enterprise, account].
- Constraints: Allowable values are:
account
,enterprise
.
- Constraints: Allowable values are:
- billing_
periods Sequence[GetBilling Snapshot List Snapshot Billing Period] - (List) Period of billing in snapshot. Nested schema for billing_period:
- bucket str
- (String) The name of the COS bucket to store the snapshot of the billing reports.
- charset str
- (String) Character encoding used.
- compression str
- (String) Compression format of the snapshot report.
- content_
type str - (String) Type of content stored in snapshot report.
- created_
on str - (String) Date and time of creation of snapshot.
- expected_
processed_ floatat - (Integer) Timestamp of snapshot processed.
- files
Sequence[Get
Billing Snapshot List Snapshot File] - (List) List of location of reports. Nested schema for files:
- month str
- The month for which billing report snapshot is requested. Format is yyyy-mm.
- processed_
at float - (Integer) Timestamp at which snapshot is captured.
- report_
types Sequence[GetBilling Snapshot List Snapshot Report Type] - (List) List of report types configured for the snapshot. Nested schema for report_types:
- snapshot_
id str - (String) Id of the snapshot captured.
- state str
- (String) Status of the billing snapshot configuration. Possible values are [enabled, disabled].
- Constraints: Allowable values are:
enabled
,disabled
.
- Constraints: Allowable values are:
- version str
- (String) Version of the snapshot.
- account
Id String - (String) Account ID for which billing report is captured.
- account
Type String - (String) Type of account. Possible values are [enterprise, account].
- Constraints: Allowable values are:
account
,enterprise
.
- Constraints: Allowable values are:
- billing
Periods List<Property Map> - (List) Period of billing in snapshot. Nested schema for billing_period:
- bucket String
- (String) The name of the COS bucket to store the snapshot of the billing reports.
- charset String
- (String) Character encoding used.
- compression String
- (String) Compression format of the snapshot report.
- content
Type String - (String) Type of content stored in snapshot report.
- created
On String - (String) Date and time of creation of snapshot.
- expected
Processed NumberAt - (Integer) Timestamp of snapshot processed.
- files List<Property Map>
- (List) List of location of reports. Nested schema for files:
- month String
- The month for which billing report snapshot is requested. Format is yyyy-mm.
- processed
At Number - (Integer) Timestamp at which snapshot is captured.
- report
Types List<Property Map> - (List) List of report types configured for the snapshot. Nested schema for report_types:
- snapshot
Id String - (String) Id of the snapshot captured.
- state String
- (String) Status of the billing snapshot configuration. Possible values are [enabled, disabled].
- Constraints: Allowable values are:
enabled
,disabled
.
- Constraints: Allowable values are:
- version String
- (String) Version of the snapshot.
GetBillingSnapshotListSnapshotBillingPeriod
GetBillingSnapshotListSnapshotFile
- Account
Id string - (String) Account ID for which billing report is captured.
- Location string
- (String) Absolute path of the billing report in the COS instance.
- Report
Types string - (List) List of report types configured for the snapshot. Nested schema for report_types:
- Account
Id string - (String) Account ID for which billing report is captured.
- Location string
- (String) Absolute path of the billing report in the COS instance.
- Report
Types string - (List) List of report types configured for the snapshot. Nested schema for report_types:
- account
Id String - (String) Account ID for which billing report is captured.
- location String
- (String) Absolute path of the billing report in the COS instance.
- report
Types String - (List) List of report types configured for the snapshot. Nested schema for report_types:
- account
Id string - (String) Account ID for which billing report is captured.
- location string
- (String) Absolute path of the billing report in the COS instance.
- report
Types string - (List) List of report types configured for the snapshot. Nested schema for report_types:
- account_
id str - (String) Account ID for which billing report is captured.
- location str
- (String) Absolute path of the billing report in the COS instance.
- report_
types str - (List) List of report types configured for the snapshot. Nested schema for report_types:
- account
Id String - (String) Account ID for which billing report is captured.
- location String
- (String) Absolute path of the billing report in the COS instance.
- report
Types String - (List) List of report types configured for the snapshot. Nested schema for report_types:
GetBillingSnapshotListSnapshotReportType
- Type string
- (String) The type of billing report of the snapshot. Possible values are [account_summary, enterprise_summary, account_resource_instance_usage].
- Constraints: Allowable values are:
account_summary
,enterprise_summary
,account_resource_instance_usage
.
- Constraints: Allowable values are:
- Version string
- (String) Version of the snapshot.
- Type string
- (String) The type of billing report of the snapshot. Possible values are [account_summary, enterprise_summary, account_resource_instance_usage].
- Constraints: Allowable values are:
account_summary
,enterprise_summary
,account_resource_instance_usage
.
- Constraints: Allowable values are:
- Version string
- (String) Version of the snapshot.
- type String
- (String) The type of billing report of the snapshot. Possible values are [account_summary, enterprise_summary, account_resource_instance_usage].
- Constraints: Allowable values are:
account_summary
,enterprise_summary
,account_resource_instance_usage
.
- Constraints: Allowable values are:
- version String
- (String) Version of the snapshot.
- type string
- (String) The type of billing report of the snapshot. Possible values are [account_summary, enterprise_summary, account_resource_instance_usage].
- Constraints: Allowable values are:
account_summary
,enterprise_summary
,account_resource_instance_usage
.
- Constraints: Allowable values are:
- version string
- (String) Version of the snapshot.
- type str
- (String) The type of billing report of the snapshot. Possible values are [account_summary, enterprise_summary, account_resource_instance_usage].
- Constraints: Allowable values are:
account_summary
,enterprise_summary
,account_resource_instance_usage
.
- Constraints: Allowable values are:
- version str
- (String) Version of the snapshot.
- type String
- (String) The type of billing report of the snapshot. Possible values are [account_summary, enterprise_summary, account_resource_instance_usage].
- Constraints: Allowable values are:
account_summary
,enterprise_summary
,account_resource_instance_usage
.
- Constraints: Allowable values are:
- version String
- (String) Version of the snapshot.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.