Scaleway v1.21.0 published on Sunday, Dec 8, 2024 by pulumiverse
scaleway.getBillingConsumptions
Explore with Pulumi AI
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:
- Project
Id string project_id
) The ID of the project the consumption list is associated with.
- Project
Id string project_id
) The ID of the project the consumption list is associated with.
- project
Id String project_id
) The ID of the project the consumption list is associated with.
- project
Id 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.
- project
Id 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. Get Billing Consumptions Consumption> - List of found consumptions
- Id string
- The provider-assigned unique ID for this managed resource.
- Organization
Id string - Project
Id string - The project ID of the consumption.
- Updated
At string - The last consumption update date.
- Consumptions
[]Get
Billing Consumptions Consumption - List of found consumptions
- Id string
- The provider-assigned unique ID for this managed resource.
- Organization
Id string - Project
Id string - The project ID of the consumption.
- Updated
At string - The last consumption update date.
- consumptions
List<Get
Billing Consumptions Consumption> - List of found consumptions
- id String
- The provider-assigned unique ID for this managed resource.
- organization
Id String - project
Id String - The project ID of the consumption.
- updated
At String - The last consumption update date.
- consumptions
Get
Billing Consumptions Consumption[] - List of found consumptions
- id string
- The provider-assigned unique ID for this managed resource.
- organization
Id string - project
Id string - The project ID of the consumption.
- updated
At string - The last consumption update date.
- consumptions
Sequence[Get
Billing Consumptions Consumption] - 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.
- organization
Id String - project
Id String - The project ID of the consumption.
- updated
At String - The last consumption update date.
Supporting Types
GetBillingConsumptionsConsumption
- Billed
Quantity string - The consumed quantity.
- Category
Name string - The name of the consumption category.
- Product
Name string - The product name.
- Project
Id 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 string - The consumed quantity.
- Category
Name string - The name of the consumption category.
- Product
Name string - The product name.
- Project
Id 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 String - The consumed quantity.
- category
Name String - The name of the consumption category.
- product
Name String - The product name.
- project
Id 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 string - The consumed quantity.
- category
Name string - The name of the consumption category.
- product
Name string - The product name.
- project
Id 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.
- billed
Quantity String - The consumed quantity.
- category
Name String - The name of the consumption category.
- product
Name String - The product name.
- project
Id 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.