1. Packages
  2. Scaleway
  3. API Docs
  4. getBillingConsumptions
Scaleway v1.21.0 published on Sunday, Dec 8, 2024 by pulumiverse

scaleway.getBillingConsumptions

Explore with Pulumi AI

scaleway logo
Scaleway v1.21.0 published on Sunday, Dec 8, 2024 by pulumiverse

    Gets information about your Consumptions.

    Example Usage

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scaleway.ScalewayFunctions;
    import com.pulumi.scaleway.inputs.GetBillingConsumptionsArgs;
    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) {
            // Find your detailed monthly consumption list
            final var my-consumption = ScalewayFunctions.getBillingConsumptions(GetBillingConsumptionsArgs.builder()
                .organizationId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")
                .build());
    
        }
    }
    
    variables:
      # Find your detailed monthly consumption list
      my-consumption:
        fn::invoke:
          Function: scaleway:getBillingConsumptions
          Arguments:
            organizationId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
    

    Using getBillingConsumptions

    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 getBillingConsumptions(args: GetBillingConsumptionsArgs, opts?: InvokeOptions): Promise<GetBillingConsumptionsResult>
    function getBillingConsumptionsOutput(args: GetBillingConsumptionsOutputArgs, opts?: InvokeOptions): Output<GetBillingConsumptionsResult>
    def get_billing_consumptions(project_id: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetBillingConsumptionsResult
    def get_billing_consumptions_output(project_id: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetBillingConsumptionsResult]
    func GetBillingConsumptions(ctx *Context, args *GetBillingConsumptionsArgs, opts ...InvokeOption) (*GetBillingConsumptionsResult, error)
    func GetBillingConsumptionsOutput(ctx *Context, args *GetBillingConsumptionsOutputArgs, opts ...InvokeOption) GetBillingConsumptionsResultOutput

    > Note: This function is named GetBillingConsumptions in the Go SDK.

    public static class GetBillingConsumptions 
    {
        public static Task<GetBillingConsumptionsResult> InvokeAsync(GetBillingConsumptionsArgs args, InvokeOptions? opts = null)
        public static Output<GetBillingConsumptionsResult> Invoke(GetBillingConsumptionsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetBillingConsumptionsResult> getBillingConsumptions(GetBillingConsumptionsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: scaleway:index/getBillingConsumptions:getBillingConsumptions
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ProjectId string
    project_id) The ID of the project the consumption list is associated with.
    ProjectId string
    project_id) The ID of the project the consumption list is associated with.
    projectId String
    project_id) The ID of the project the consumption list is associated with.
    projectId string
    project_id) The ID of the project the consumption list is associated with.
    project_id str
    project_id) The ID of the project the consumption list is associated with.
    projectId String
    project_id) The ID of the project the consumption list is associated with.

    getBillingConsumptions Result

    The following output properties are available:

    Consumptions List<Pulumiverse.Scaleway.Outputs.GetBillingConsumptionsConsumption>
    List of found consumptions
    Id string
    The provider-assigned unique ID for this managed resource.
    OrganizationId string
    ProjectId string
    The project ID of the consumption.
    UpdatedAt string
    The last consumption update date.
    Consumptions []GetBillingConsumptionsConsumption
    List of found consumptions
    Id string
    The provider-assigned unique ID for this managed resource.
    OrganizationId string
    ProjectId string
    The project ID of the consumption.
    UpdatedAt string
    The last consumption update date.
    consumptions List<GetBillingConsumptionsConsumption>
    List of found consumptions
    id String
    The provider-assigned unique ID for this managed resource.
    organizationId String
    projectId String
    The project ID of the consumption.
    updatedAt String
    The last consumption update date.
    consumptions GetBillingConsumptionsConsumption[]
    List of found consumptions
    id string
    The provider-assigned unique ID for this managed resource.
    organizationId string
    projectId string
    The project ID of the consumption.
    updatedAt string
    The last consumption update date.
    consumptions Sequence[GetBillingConsumptionsConsumption]
    List of found consumptions
    id str
    The provider-assigned unique ID for this managed resource.
    organization_id str
    project_id str
    The project ID of the consumption.
    updated_at str
    The last consumption update date.
    consumptions List<Property Map>
    List of found consumptions
    id String
    The provider-assigned unique ID for this managed resource.
    organizationId String
    projectId String
    The project ID of the consumption.
    updatedAt String
    The last consumption update date.

    Supporting Types

    GetBillingConsumptionsConsumption

    BilledQuantity string
    The consumed quantity.
    CategoryName string
    The name of the consumption category.
    ProductName string
    The product name.
    ProjectId string
    project_id) The ID of the project the consumption list is associated with.
    Sku string
    The unique identifier of the product.
    Unit string
    The unit of consumed quantity.
    Value string
    The monetary value of the consumption.
    BilledQuantity string
    The consumed quantity.
    CategoryName string
    The name of the consumption category.
    ProductName string
    The product name.
    ProjectId string
    project_id) The ID of the project the consumption list is associated with.
    Sku string
    The unique identifier of the product.
    Unit string
    The unit of consumed quantity.
    Value string
    The monetary value of the consumption.
    billedQuantity String
    The consumed quantity.
    categoryName String
    The name of the consumption category.
    productName String
    The product name.
    projectId String
    project_id) The ID of the project the consumption list is associated with.
    sku String
    The unique identifier of the product.
    unit String
    The unit of consumed quantity.
    value String
    The monetary value of the consumption.
    billedQuantity string
    The consumed quantity.
    categoryName string
    The name of the consumption category.
    productName string
    The product name.
    projectId string
    project_id) The ID of the project the consumption list is associated with.
    sku string
    The unique identifier of the product.
    unit string
    The unit of consumed quantity.
    value string
    The monetary value of the consumption.
    billed_quantity str
    The consumed quantity.
    category_name str
    The name of the consumption category.
    product_name str
    The product name.
    project_id str
    project_id) The ID of the project the consumption list is associated with.
    sku str
    The unique identifier of the product.
    unit str
    The unit of consumed quantity.
    value str
    The monetary value of the consumption.
    billedQuantity String
    The consumed quantity.
    categoryName String
    The name of the consumption category.
    productName String
    The product name.
    projectId String
    project_id) The ID of the project the consumption list is associated with.
    sku String
    The unique identifier of the product.
    unit String
    The unit of consumed quantity.
    value String
    The monetary value of the consumption.

    Package Details

    Repository
    scaleway pulumiverse/pulumi-scaleway
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scaleway Terraform Provider.
    scaleway logo
    Scaleway v1.21.0 published on Sunday, Dec 8, 2024 by pulumiverse