Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.MeteringComputation.getCustomTables
Explore with Pulumi AI
This data source provides the list of Custom Tables in Oracle Cloud Infrastructure Metering Computation service.
Returns the saved custom table list.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testCustomTables = oci.MeteringComputation.getCustomTables({
    compartmentId: compartmentId,
    savedReportId: testSavedReport.id,
});
import pulumi
import pulumi_oci as oci
test_custom_tables = oci.MeteringComputation.get_custom_tables(compartment_id=compartment_id,
    saved_report_id=test_saved_report["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/meteringcomputation"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := meteringcomputation.GetCustomTables(ctx, &meteringcomputation.GetCustomTablesArgs{
			CompartmentId: compartmentId,
			SavedReportId: testSavedReport.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() => 
{
    var testCustomTables = Oci.MeteringComputation.GetCustomTables.Invoke(new()
    {
        CompartmentId = compartmentId,
        SavedReportId = testSavedReport.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.MeteringComputation.MeteringComputationFunctions;
import com.pulumi.oci.MeteringComputation.inputs.GetCustomTablesArgs;
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 testCustomTables = MeteringComputationFunctions.getCustomTables(GetCustomTablesArgs.builder()
            .compartmentId(compartmentId)
            .savedReportId(testSavedReport.id())
            .build());
    }
}
variables:
  testCustomTables:
    fn::invoke:
      function: oci:MeteringComputation:getCustomTables
      arguments:
        compartmentId: ${compartmentId}
        savedReportId: ${testSavedReport.id}
Using getCustomTables
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 getCustomTables(args: GetCustomTablesArgs, opts?: InvokeOptions): Promise<GetCustomTablesResult>
function getCustomTablesOutput(args: GetCustomTablesOutputArgs, opts?: InvokeOptions): Output<GetCustomTablesResult>def get_custom_tables(compartment_id: Optional[str] = None,
                      filters: Optional[Sequence[GetCustomTablesFilter]] = None,
                      saved_report_id: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetCustomTablesResult
def get_custom_tables_output(compartment_id: Optional[pulumi.Input[str]] = None,
                      filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetCustomTablesFilterArgs]]]] = None,
                      saved_report_id: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetCustomTablesResult]func GetCustomTables(ctx *Context, args *GetCustomTablesArgs, opts ...InvokeOption) (*GetCustomTablesResult, error)
func GetCustomTablesOutput(ctx *Context, args *GetCustomTablesOutputArgs, opts ...InvokeOption) GetCustomTablesResultOutput> Note: This function is named GetCustomTables in the Go SDK.
public static class GetCustomTables 
{
    public static Task<GetCustomTablesResult> InvokeAsync(GetCustomTablesArgs args, InvokeOptions? opts = null)
    public static Output<GetCustomTablesResult> Invoke(GetCustomTablesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCustomTablesResult> getCustomTables(GetCustomTablesArgs args, InvokeOptions options)
public static Output<GetCustomTablesResult> getCustomTables(GetCustomTablesArgs args, InvokeOptions options)
fn::invoke:
  function: oci:MeteringComputation/getCustomTables:getCustomTables
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- The compartment ID in which to list resources.
- SavedReport stringId 
- The saved report ID in which to list resources.
- Filters
List<GetCustom Tables Filter> 
- CompartmentId string
- The compartment ID in which to list resources.
- SavedReport stringId 
- The saved report ID in which to list resources.
- Filters
[]GetCustom Tables Filter 
- compartmentId String
- The compartment ID in which to list resources.
- savedReport StringId 
- The saved report ID in which to list resources.
- filters
List<GetCustom Tables Filter> 
- compartmentId string
- The compartment ID in which to list resources.
- savedReport stringId 
- The saved report ID in which to list resources.
- filters
GetCustom Tables Filter[] 
- compartment_id str
- The compartment ID in which to list resources.
- saved_report_ strid 
- The saved report ID in which to list resources.
- filters
Sequence[GetCustom Tables Filter] 
- compartmentId String
- The compartment ID in which to list resources.
- savedReport StringId 
- The saved report ID in which to list resources.
- filters List<Property Map>
getCustomTables Result
The following output properties are available:
- CompartmentId string
- The custom table compartment OCID.
- CustomTable List<GetCollections Custom Tables Custom Table Collection> 
- The list of custom_table_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- SavedReport stringId 
- The custom table associated saved report OCID.
- Filters
List<GetCustom Tables Filter> 
- CompartmentId string
- The custom table compartment OCID.
- CustomTable []GetCollections Custom Tables Custom Table Collection 
- The list of custom_table_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- SavedReport stringId 
- The custom table associated saved report OCID.
- Filters
[]GetCustom Tables Filter 
- compartmentId String
- The custom table compartment OCID.
- customTable List<GetCollections Custom Tables Custom Table Collection> 
- The list of custom_table_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- savedReport StringId 
- The custom table associated saved report OCID.
- filters
List<GetCustom Tables Filter> 
- compartmentId string
- The custom table compartment OCID.
- customTable GetCollections Custom Tables Custom Table Collection[] 
- The list of custom_table_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- savedReport stringId 
- The custom table associated saved report OCID.
- filters
GetCustom Tables Filter[] 
- compartment_id str
- The custom table compartment OCID.
- custom_table_ Sequence[Getcollections Custom Tables Custom Table Collection] 
- The list of custom_table_collection.
- id str
- The provider-assigned unique ID for this managed resource.
- saved_report_ strid 
- The custom table associated saved report OCID.
- filters
Sequence[GetCustom Tables Filter] 
- compartmentId String
- The custom table compartment OCID.
- customTable List<Property Map>Collections 
- The list of custom_table_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- savedReport StringId 
- The custom table associated saved report OCID.
- filters List<Property Map>
Supporting Types
GetCustomTablesCustomTableCollection     
GetCustomTablesCustomTableCollectionItem      
- CompartmentId string
- The compartment ID in which to list resources.
- Id string
- The custom table OCID.
- SavedCustom List<GetTables Custom Tables Custom Table Collection Item Saved Custom Table> 
- The custom table for Cost Analysis UI rendering.
- SavedReport stringId 
- The saved report ID in which to list resources.
- CompartmentId string
- The compartment ID in which to list resources.
- Id string
- The custom table OCID.
- SavedCustom []GetTables Custom Tables Custom Table Collection Item Saved Custom Table 
- The custom table for Cost Analysis UI rendering.
- SavedReport stringId 
- The saved report ID in which to list resources.
- compartmentId String
- The compartment ID in which to list resources.
- id String
- The custom table OCID.
- savedCustom List<GetTables Custom Tables Custom Table Collection Item Saved Custom Table> 
- The custom table for Cost Analysis UI rendering.
- savedReport StringId 
- The saved report ID in which to list resources.
- compartmentId string
- The compartment ID in which to list resources.
- id string
- The custom table OCID.
- savedCustom GetTables Custom Tables Custom Table Collection Item Saved Custom Table[] 
- The custom table for Cost Analysis UI rendering.
- savedReport stringId 
- The saved report ID in which to list resources.
- compartment_id str
- The compartment ID in which to list resources.
- id str
- The custom table OCID.
- saved_custom_ Sequence[Gettables Custom Tables Custom Table Collection Item Saved Custom Table] 
- The custom table for Cost Analysis UI rendering.
- saved_report_ strid 
- The saved report ID in which to list resources.
- compartmentId String
- The compartment ID in which to list resources.
- id String
- The custom table OCID.
- savedCustom List<Property Map>Tables 
- The custom table for Cost Analysis UI rendering.
- savedReport StringId 
- The saved report ID in which to list resources.
GetCustomTablesCustomTableCollectionItemSavedCustomTable         
- ColumnGroup List<string>Bies 
- The column groupBy key list. example: ["tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", "tenantName"]
- CompartmentDepth double
- The compartment depth level.
- DisplayName string
- The name of the custom table.
- 
List<GetCustom Tables Custom Table Collection Item Saved Custom Table Group By Tag> 
- GroupBy a specific tagKey. Provide the tagNamespace and tagKey in the tag object. Only one tag in the list is supported. For example: [{"namespace":"oracle", "key":"createdBy"]
- RowGroup List<string>Bies 
- The row groupBy key list. example: ["tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", "tenantName"]
- Version double
- The version of the custom table.
- ColumnGroup []stringBies 
- The column groupBy key list. example: ["tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", "tenantName"]
- CompartmentDepth float64
- The compartment depth level.
- DisplayName string
- The name of the custom table.
- 
[]GetCustom Tables Custom Table Collection Item Saved Custom Table Group By Tag 
- GroupBy a specific tagKey. Provide the tagNamespace and tagKey in the tag object. Only one tag in the list is supported. For example: [{"namespace":"oracle", "key":"createdBy"]
- RowGroup []stringBies 
- The row groupBy key list. example: ["tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", "tenantName"]
- Version float64
- The version of the custom table.
- columnGroup List<String>Bies 
- The column groupBy key list. example: ["tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", "tenantName"]
- compartmentDepth Double
- The compartment depth level.
- displayName String
- The name of the custom table.
- 
List<GetCustom Tables Custom Table Collection Item Saved Custom Table Group By Tag> 
- GroupBy a specific tagKey. Provide the tagNamespace and tagKey in the tag object. Only one tag in the list is supported. For example: [{"namespace":"oracle", "key":"createdBy"]
- rowGroup List<String>Bies 
- The row groupBy key list. example: ["tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", "tenantName"]
- version Double
- The version of the custom table.
- columnGroup string[]Bies 
- The column groupBy key list. example: ["tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", "tenantName"]
- compartmentDepth number
- The compartment depth level.
- displayName string
- The name of the custom table.
- 
GetCustom Tables Custom Table Collection Item Saved Custom Table Group By Tag[] 
- GroupBy a specific tagKey. Provide the tagNamespace and tagKey in the tag object. Only one tag in the list is supported. For example: [{"namespace":"oracle", "key":"createdBy"]
- rowGroup string[]Bies 
- The row groupBy key list. example: ["tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", "tenantName"]
- version number
- The version of the custom table.
- column_group_ Sequence[str]bies 
- The column groupBy key list. example: ["tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", "tenantName"]
- compartment_depth float
- The compartment depth level.
- display_name str
- The name of the custom table.
- 
Sequence[GetCustom Tables Custom Table Collection Item Saved Custom Table Group By Tag] 
- GroupBy a specific tagKey. Provide the tagNamespace and tagKey in the tag object. Only one tag in the list is supported. For example: [{"namespace":"oracle", "key":"createdBy"]
- row_group_ Sequence[str]bies 
- The row groupBy key list. example: ["tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", "tenantName"]
- version float
- The version of the custom table.
- columnGroup List<String>Bies 
- The column groupBy key list. example: ["tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", "tenantName"]
- compartmentDepth Number
- The compartment depth level.
- displayName String
- The name of the custom table.
- List<Property Map>
- GroupBy a specific tagKey. Provide the tagNamespace and tagKey in the tag object. Only one tag in the list is supported. For example: [{"namespace":"oracle", "key":"createdBy"]
- rowGroup List<String>Bies 
- The row groupBy key list. example: ["tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", "tenantName"]
- version Number
- The version of the custom table.
GetCustomTablesCustomTableCollectionItemSavedCustomTableGroupByTag            
GetCustomTablesFilter   
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.