NS1 v3.7.2 published on Wednesday, Oct 22, 2025 by Pulumi
ns1.getBillingUsage
Using getBillingUsage
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 getBillingUsage(args: GetBillingUsageArgs, opts?: InvokeOptions): Promise<GetBillingUsageResult>
function getBillingUsageOutput(args: GetBillingUsageOutputArgs, opts?: InvokeOptions): Output<GetBillingUsageResult>def get_billing_usage(from_: Optional[int] = None,
metric_type: Optional[str] = None,
to: Optional[int] = None,
opts: Optional[InvokeOptions] = None) -> GetBillingUsageResult
def get_billing_usage_output(from_: Optional[pulumi.Input[int]] = None,
metric_type: Optional[pulumi.Input[str]] = None,
to: Optional[pulumi.Input[int]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetBillingUsageResult]func GetBillingUsage(ctx *Context, args *GetBillingUsageArgs, opts ...InvokeOption) (*GetBillingUsageResult, error)
func GetBillingUsageOutput(ctx *Context, args *GetBillingUsageOutputArgs, opts ...InvokeOption) GetBillingUsageResultOutput> Note: This function is named GetBillingUsage in the Go SDK.
public static class GetBillingUsage
{
public static Task<GetBillingUsageResult> InvokeAsync(GetBillingUsageArgs args, InvokeOptions? opts = null)
public static Output<GetBillingUsageResult> Invoke(GetBillingUsageInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetBillingUsageResult> getBillingUsage(GetBillingUsageArgs args, InvokeOptions options)
public static Output<GetBillingUsageResult> getBillingUsage(GetBillingUsageArgs args, InvokeOptions options)
fn::invoke:
function: ns1:index/getBillingUsage:getBillingUsage
arguments:
# arguments dictionaryThe following arguments are supported:
- Metric
Type string - The type of billing metric to retrieve. Must be one of:
queries,limits,decisions,filter-chains,monitors,records. - From int
- The start timestamp for the data range in Unix epoch format.
- To int
- The end timestamp for the data range in Unix epoch format.
- Metric
Type string - The type of billing metric to retrieve. Must be one of:
queries,limits,decisions,filter-chains,monitors,records. - From int
- The start timestamp for the data range in Unix epoch format.
- To int
- The end timestamp for the data range in Unix epoch format.
- metric
Type String - The type of billing metric to retrieve. Must be one of:
queries,limits,decisions,filter-chains,monitors,records. - from Integer
- The start timestamp for the data range in Unix epoch format.
- to Integer
- The end timestamp for the data range in Unix epoch format.
- metric
Type string - The type of billing metric to retrieve. Must be one of:
queries,limits,decisions,filter-chains,monitors,records. - from number
- The start timestamp for the data range in Unix epoch format.
- to number
- The end timestamp for the data range in Unix epoch format.
- metric_
type str - The type of billing metric to retrieve. Must be one of:
queries,limits,decisions,filter-chains,monitors,records. - from_ int
- The start timestamp for the data range in Unix epoch format.
- to int
- The end timestamp for the data range in Unix epoch format.
- metric
Type String - The type of billing metric to retrieve. Must be one of:
queries,limits,decisions,filter-chains,monitors,records. - from Number
- The start timestamp for the data range in Unix epoch format.
- to Number
- The end timestamp for the data range in Unix epoch format.
getBillingUsage Result
The following output properties are available:
- By
Networks List<GetBilling Usage By Network> - (Computed) A list of network-specific query data containing:
- China
Queries intLimit - (Computed) The queries limit for the China network.
- Clean
Queries int - Clean queries for this day.
- Ddos
Protection boolEnabled - (Computed) Whether DDoS Protection is enabled.
- Ddos
Queries int - DDoS queries for this day.
- Decisions
Limit int - (Computed) The RUM decisions limit for this billing cycle.
- Filter
Chains intLimit - (Computed) The filter chains limit for this billing cycle.
- Id string
- The provider-assigned unique ID for this managed resource.
- Include
Dedicated boolDns Network In Managed Dns Usage - (Computed) Whether dedicated DNS usage counts towards managed DNS usage.
- Metric
Type string - Monitors
Limit int - (Computed) The monitoring jobs limit for this billing cycle.
- Nxd
Protection boolEnabled - (Computed) Whether NXD Protection is enabled.
- Nxd
Responses int - NXD responses for this day.
- Queries
Limit int - (Computed) The queries limit for this billing cycle.
- Records
Limit int - (Computed) The records limit for this billing cycle.
- Total
Usage int - (Computed) The total usage count for the metric. Available for
decisions,filter-chains,monitors, andrecordsmetrics. - From int
- To int
- By
Networks []GetBilling Usage By Network - (Computed) A list of network-specific query data containing:
- China
Queries intLimit - (Computed) The queries limit for the China network.
- Clean
Queries int - Clean queries for this day.
- Ddos
Protection boolEnabled - (Computed) Whether DDoS Protection is enabled.
- Ddos
Queries int - DDoS queries for this day.
- Decisions
Limit int - (Computed) The RUM decisions limit for this billing cycle.
- Filter
Chains intLimit - (Computed) The filter chains limit for this billing cycle.
- Id string
- The provider-assigned unique ID for this managed resource.
- Include
Dedicated boolDns Network In Managed Dns Usage - (Computed) Whether dedicated DNS usage counts towards managed DNS usage.
- Metric
Type string - Monitors
Limit int - (Computed) The monitoring jobs limit for this billing cycle.
- Nxd
Protection boolEnabled - (Computed) Whether NXD Protection is enabled.
- Nxd
Responses int - NXD responses for this day.
- Queries
Limit int - (Computed) The queries limit for this billing cycle.
- Records
Limit int - (Computed) The records limit for this billing cycle.
- Total
Usage int - (Computed) The total usage count for the metric. Available for
decisions,filter-chains,monitors, andrecordsmetrics. - From int
- To int
- by
Networks List<GetBilling Usage By Network> - (Computed) A list of network-specific query data containing:
- china
Queries IntegerLimit - (Computed) The queries limit for the China network.
- clean
Queries Integer - Clean queries for this day.
- ddos
Protection BooleanEnabled - (Computed) Whether DDoS Protection is enabled.
- ddos
Queries Integer - DDoS queries for this day.
- decisions
Limit Integer - (Computed) The RUM decisions limit for this billing cycle.
- filter
Chains IntegerLimit - (Computed) The filter chains limit for this billing cycle.
- id String
- The provider-assigned unique ID for this managed resource.
- include
Dedicated BooleanDns Network In Managed Dns Usage - (Computed) Whether dedicated DNS usage counts towards managed DNS usage.
- metric
Type String - monitors
Limit Integer - (Computed) The monitoring jobs limit for this billing cycle.
- nxd
Protection BooleanEnabled - (Computed) Whether NXD Protection is enabled.
- nxd
Responses Integer - NXD responses for this day.
- queries
Limit Integer - (Computed) The queries limit for this billing cycle.
- records
Limit Integer - (Computed) The records limit for this billing cycle.
- total
Usage Integer - (Computed) The total usage count for the metric. Available for
decisions,filter-chains,monitors, andrecordsmetrics. - from Integer
- to Integer
- by
Networks GetBilling Usage By Network[] - (Computed) A list of network-specific query data containing:
- china
Queries numberLimit - (Computed) The queries limit for the China network.
- clean
Queries number - Clean queries for this day.
- ddos
Protection booleanEnabled - (Computed) Whether DDoS Protection is enabled.
- ddos
Queries number - DDoS queries for this day.
- decisions
Limit number - (Computed) The RUM decisions limit for this billing cycle.
- filter
Chains numberLimit - (Computed) The filter chains limit for this billing cycle.
- id string
- The provider-assigned unique ID for this managed resource.
- include
Dedicated booleanDns Network In Managed Dns Usage - (Computed) Whether dedicated DNS usage counts towards managed DNS usage.
- metric
Type string - monitors
Limit number - (Computed) The monitoring jobs limit for this billing cycle.
- nxd
Protection booleanEnabled - (Computed) Whether NXD Protection is enabled.
- nxd
Responses number - NXD responses for this day.
- queries
Limit number - (Computed) The queries limit for this billing cycle.
- records
Limit number - (Computed) The records limit for this billing cycle.
- total
Usage number - (Computed) The total usage count for the metric. Available for
decisions,filter-chains,monitors, andrecordsmetrics. - from number
- to number
- by_
networks Sequence[GetBilling Usage By Network] - (Computed) A list of network-specific query data containing:
- china_
queries_ intlimit - (Computed) The queries limit for the China network.
- clean_
queries int - Clean queries for this day.
- ddos_
protection_ boolenabled - (Computed) Whether DDoS Protection is enabled.
- ddos_
queries int - DDoS queries for this day.
- decisions_
limit int - (Computed) The RUM decisions limit for this billing cycle.
- filter_
chains_ intlimit - (Computed) The filter chains limit for this billing cycle.
- id str
- The provider-assigned unique ID for this managed resource.
- include_
dedicated_ booldns_ network_ in_ managed_ dns_ usage - (Computed) Whether dedicated DNS usage counts towards managed DNS usage.
- metric_
type str - monitors_
limit int - (Computed) The monitoring jobs limit for this billing cycle.
- nxd_
protection_ boolenabled - (Computed) Whether NXD Protection is enabled.
- nxd_
responses int - NXD responses for this day.
- queries_
limit int - (Computed) The queries limit for this billing cycle.
- records_
limit int - (Computed) The records limit for this billing cycle.
- total_
usage int - (Computed) The total usage count for the metric. Available for
decisions,filter-chains,monitors, andrecordsmetrics. - from_ int
- to int
- by
Networks List<Property Map> - (Computed) A list of network-specific query data containing:
- china
Queries NumberLimit - (Computed) The queries limit for the China network.
- clean
Queries Number - Clean queries for this day.
- ddos
Protection BooleanEnabled - (Computed) Whether DDoS Protection is enabled.
- ddos
Queries Number - DDoS queries for this day.
- decisions
Limit Number - (Computed) The RUM decisions limit for this billing cycle.
- filter
Chains NumberLimit - (Computed) The filter chains limit for this billing cycle.
- id String
- The provider-assigned unique ID for this managed resource.
- include
Dedicated BooleanDns Network In Managed Dns Usage - (Computed) Whether dedicated DNS usage counts towards managed DNS usage.
- metric
Type String - monitors
Limit Number - (Computed) The monitoring jobs limit for this billing cycle.
- nxd
Protection BooleanEnabled - (Computed) Whether NXD Protection is enabled.
- nxd
Responses Number - NXD responses for this day.
- queries
Limit Number - (Computed) The queries limit for this billing cycle.
- records
Limit Number - (Computed) The records limit for this billing cycle.
- total
Usage Number - (Computed) The total usage count for the metric. Available for
decisions,filter-chains,monitors, andrecordsmetrics. - from Number
- to Number
Supporting Types
GetBillingUsageByNetwork
- Billable
Queries int - Total billable queries for this network.
- Clean
Queries int - Clean queries for this day.
- Dailies
List<Get
Billing Usage By Network Daily> - Daily breakdown containing:
- Ddos
Queries int - DDoS queries for this day.
- Network int
- The network ID.
- Nxd
Responses int - NXD responses for this day.
- Billable
Queries int - Total billable queries for this network.
- Clean
Queries int - Clean queries for this day.
- Dailies
[]Get
Billing Usage By Network Daily - Daily breakdown containing:
- Ddos
Queries int - DDoS queries for this day.
- Network int
- The network ID.
- Nxd
Responses int - NXD responses for this day.
- billable
Queries Integer - Total billable queries for this network.
- clean
Queries Integer - Clean queries for this day.
- dailies
List<Get
Billing Usage By Network Daily> - Daily breakdown containing:
- ddos
Queries Integer - DDoS queries for this day.
- network Integer
- The network ID.
- nxd
Responses Integer - NXD responses for this day.
- billable
Queries number - Total billable queries for this network.
- clean
Queries number - Clean queries for this day.
- dailies
Get
Billing Usage By Network Daily[] - Daily breakdown containing:
- ddos
Queries number - DDoS queries for this day.
- network number
- The network ID.
- nxd
Responses number - NXD responses for this day.
- billable_
queries int - Total billable queries for this network.
- clean_
queries int - Clean queries for this day.
- dailies
Sequence[Get
Billing Usage By Network Daily] - Daily breakdown containing:
- ddos_
queries int - DDoS queries for this day.
- network int
- The network ID.
- nxd_
responses int - NXD responses for this day.
- billable
Queries Number - Total billable queries for this network.
- clean
Queries Number - Clean queries for this day.
- dailies List<Property Map>
- Daily breakdown containing:
- ddos
Queries Number - DDoS queries for this day.
- network Number
- The network ID.
- nxd
Responses Number - NXD responses for this day.
GetBillingUsageByNetworkDaily
- Clean
Queries int - Clean queries for this day.
- Ddos
Queries int - DDoS queries for this day.
- Nxd
Responses int - NXD responses for this day.
- Timestamp int
- The timestamp for the day.
- Clean
Queries int - Clean queries for this day.
- Ddos
Queries int - DDoS queries for this day.
- Nxd
Responses int - NXD responses for this day.
- Timestamp int
- The timestamp for the day.
- clean
Queries Integer - Clean queries for this day.
- ddos
Queries Integer - DDoS queries for this day.
- nxd
Responses Integer - NXD responses for this day.
- timestamp Integer
- The timestamp for the day.
- clean
Queries number - Clean queries for this day.
- ddos
Queries number - DDoS queries for this day.
- nxd
Responses number - NXD responses for this day.
- timestamp number
- The timestamp for the day.
- clean_
queries int - Clean queries for this day.
- ddos_
queries int - DDoS queries for this day.
- nxd_
responses int - NXD responses for this day.
- timestamp int
- The timestamp for the day.
- clean
Queries Number - Clean queries for this day.
- ddos
Queries Number - DDoS queries for this day.
- nxd
Responses Number - NXD responses for this day.
- timestamp Number
- The timestamp for the day.
Package Details
- Repository
- NS1 pulumi/pulumi-ns1
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ns1Terraform Provider.
