1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getOrganizationOrgFinancialByProduct
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack

tencentcloud.getOrganizationOrgFinancialByProduct

Explore with Pulumi AI

Use this data source to query detailed information of organization org_financial_by_product

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";

const orgFinancialByProduct = tencentcloud.getOrganizationOrgFinancialByProduct({
    endMonth: "2023-09",
    month: "2023-05",
    productCodes: ["p_eip"],
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

org_financial_by_product = tencentcloud.get_organization_org_financial_by_product(end_month="2023-09",
    month="2023-05",
    product_codes=["p_eip"])
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := tencentcloud.GetOrganizationOrgFinancialByProduct(ctx, &tencentcloud.GetOrganizationOrgFinancialByProductArgs{
			EndMonth: pulumi.StringRef("2023-09"),
			Month:    "2023-05",
			ProductCodes: []string{
				"p_eip",
			},
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;

return await Deployment.RunAsync(() => 
{
    var orgFinancialByProduct = Tencentcloud.GetOrganizationOrgFinancialByProduct.Invoke(new()
    {
        EndMonth = "2023-09",
        Month = "2023-05",
        ProductCodes = new[]
        {
            "p_eip",
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetOrganizationOrgFinancialByProductArgs;
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 orgFinancialByProduct = TencentcloudFunctions.getOrganizationOrgFinancialByProduct(GetOrganizationOrgFinancialByProductArgs.builder()
            .endMonth("2023-09")
            .month("2023-05")
            .productCodes("p_eip")
            .build());

    }
}
Copy
variables:
  orgFinancialByProduct:
    fn::invoke:
      function: tencentcloud:getOrganizationOrgFinancialByProduct
      arguments:
        endMonth: 2023-09
        month: 2023-05
        productCodes:
          - p_eip
Copy

Using getOrganizationOrgFinancialByProduct

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 getOrganizationOrgFinancialByProduct(args: GetOrganizationOrgFinancialByProductArgs, opts?: InvokeOptions): Promise<GetOrganizationOrgFinancialByProductResult>
function getOrganizationOrgFinancialByProductOutput(args: GetOrganizationOrgFinancialByProductOutputArgs, opts?: InvokeOptions): Output<GetOrganizationOrgFinancialByProductResult>
Copy
def get_organization_org_financial_by_product(end_month: Optional[str] = None,
                                              id: Optional[str] = None,
                                              member_uins: Optional[Sequence[float]] = None,
                                              month: Optional[str] = None,
                                              product_codes: Optional[Sequence[str]] = None,
                                              result_output_file: Optional[str] = None,
                                              opts: Optional[InvokeOptions] = None) -> GetOrganizationOrgFinancialByProductResult
def get_organization_org_financial_by_product_output(end_month: Optional[pulumi.Input[str]] = None,
                                              id: Optional[pulumi.Input[str]] = None,
                                              member_uins: Optional[pulumi.Input[Sequence[pulumi.Input[float]]]] = None,
                                              month: Optional[pulumi.Input[str]] = None,
                                              product_codes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                              result_output_file: Optional[pulumi.Input[str]] = None,
                                              opts: Optional[InvokeOptions] = None) -> Output[GetOrganizationOrgFinancialByProductResult]
Copy
func GetOrganizationOrgFinancialByProduct(ctx *Context, args *GetOrganizationOrgFinancialByProductArgs, opts ...InvokeOption) (*GetOrganizationOrgFinancialByProductResult, error)
func GetOrganizationOrgFinancialByProductOutput(ctx *Context, args *GetOrganizationOrgFinancialByProductOutputArgs, opts ...InvokeOption) GetOrganizationOrgFinancialByProductResultOutput
Copy

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

public static class GetOrganizationOrgFinancialByProduct 
{
    public static Task<GetOrganizationOrgFinancialByProductResult> InvokeAsync(GetOrganizationOrgFinancialByProductArgs args, InvokeOptions? opts = null)
    public static Output<GetOrganizationOrgFinancialByProductResult> Invoke(GetOrganizationOrgFinancialByProductInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetOrganizationOrgFinancialByProductResult> getOrganizationOrgFinancialByProduct(GetOrganizationOrgFinancialByProductArgs args, InvokeOptions options)
public static Output<GetOrganizationOrgFinancialByProductResult> getOrganizationOrgFinancialByProduct(GetOrganizationOrgFinancialByProductArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: tencentcloud:index/getOrganizationOrgFinancialByProduct:getOrganizationOrgFinancialByProduct
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Month This property is required. string
Query for the start month. Format:yyyy-mm, for example:2021-01.
EndMonth string
Query for the end month. Format:yyyy-mm, for example:2021-01.The default value is the Month.
Id string
MemberUins List<double>
Member uin list. Up to 100.
ProductCodes List<string>
Product code list. Up to 100.
ResultOutputFile string
Used to save results.
Month This property is required. string
Query for the start month. Format:yyyy-mm, for example:2021-01.
EndMonth string
Query for the end month. Format:yyyy-mm, for example:2021-01.The default value is the Month.
Id string
MemberUins []float64
Member uin list. Up to 100.
ProductCodes []string
Product code list. Up to 100.
ResultOutputFile string
Used to save results.
month This property is required. String
Query for the start month. Format:yyyy-mm, for example:2021-01.
endMonth String
Query for the end month. Format:yyyy-mm, for example:2021-01.The default value is the Month.
id String
memberUins List<Double>
Member uin list. Up to 100.
productCodes List<String>
Product code list. Up to 100.
resultOutputFile String
Used to save results.
month This property is required. string
Query for the start month. Format:yyyy-mm, for example:2021-01.
endMonth string
Query for the end month. Format:yyyy-mm, for example:2021-01.The default value is the Month.
id string
memberUins number[]
Member uin list. Up to 100.
productCodes string[]
Product code list. Up to 100.
resultOutputFile string
Used to save results.
month This property is required. str
Query for the start month. Format:yyyy-mm, for example:2021-01.
end_month str
Query for the end month. Format:yyyy-mm, for example:2021-01.The default value is the Month.
id str
member_uins Sequence[float]
Member uin list. Up to 100.
product_codes Sequence[str]
Product code list. Up to 100.
result_output_file str
Used to save results.
month This property is required. String
Query for the start month. Format:yyyy-mm, for example:2021-01.
endMonth String
Query for the end month. Format:yyyy-mm, for example:2021-01.The default value is the Month.
id String
memberUins List<Number>
Member uin list. Up to 100.
productCodes List<String>
Product code list. Up to 100.
resultOutputFile String
Used to save results.

getOrganizationOrgFinancialByProduct Result

The following output properties are available:

Id string
Items List<GetOrganizationOrgFinancialByProductItem>
Organization financial info by products.
Month string
TotalCost double
Total cost of the product.
EndMonth string
MemberUins List<double>
ProductCodes List<string>
ResultOutputFile string
Id string
Items []GetOrganizationOrgFinancialByProductItem
Organization financial info by products.
Month string
TotalCost float64
Total cost of the product.
EndMonth string
MemberUins []float64
ProductCodes []string
ResultOutputFile string
id String
items List<GetOrganizationOrgFinancialByProductItem>
Organization financial info by products.
month String
totalCost Double
Total cost of the product.
endMonth String
memberUins List<Double>
productCodes List<String>
resultOutputFile String
id string
items GetOrganizationOrgFinancialByProductItem[]
Organization financial info by products.
month string
totalCost number
Total cost of the product.
endMonth string
memberUins number[]
productCodes string[]
resultOutputFile string
id str
items Sequence[GetOrganizationOrgFinancialByProductItem]
Organization financial info by products.
month str
total_cost float
Total cost of the product.
end_month str
member_uins Sequence[float]
product_codes Sequence[str]
result_output_file str
id String
items List<Property Map>
Organization financial info by products.
month String
totalCost Number
Total cost of the product.
endMonth String
memberUins List<Number>
productCodes List<String>
resultOutputFile String

Supporting Types

GetOrganizationOrgFinancialByProductItem

ProductCode This property is required. string
Product code.
ProductName This property is required. string
Product name.
Ratio This property is required. string
The percentage of the organization total cost that is accounted for by the product.
TotalCost This property is required. double
Total cost of the product.
ProductCode This property is required. string
Product code.
ProductName This property is required. string
Product name.
Ratio This property is required. string
The percentage of the organization total cost that is accounted for by the product.
TotalCost This property is required. float64
Total cost of the product.
productCode This property is required. String
Product code.
productName This property is required. String
Product name.
ratio This property is required. String
The percentage of the organization total cost that is accounted for by the product.
totalCost This property is required. Double
Total cost of the product.
productCode This property is required. string
Product code.
productName This property is required. string
Product name.
ratio This property is required. string
The percentage of the organization total cost that is accounted for by the product.
totalCost This property is required. number
Total cost of the product.
product_code This property is required. str
Product code.
product_name This property is required. str
Product name.
ratio This property is required. str
The percentage of the organization total cost that is accounted for by the product.
total_cost This property is required. float
Total cost of the product.
productCode This property is required. String
Product code.
productName This property is required. String
Product name.
ratio This property is required. String
The percentage of the organization total cost that is accounted for by the product.
totalCost This property is required. Number
Total cost of the product.

Package Details

Repository
tencentcloud tencentcloudstack/terraform-provider-tencentcloud
License
Notes
This Pulumi package is based on the tencentcloud Terraform Provider.