1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. MeteringComputation
  5. getCustomTables
Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi

oci.MeteringComputation.getCustomTables

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi

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,
});
Copy
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"])
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
variables:
  testCustomTables:
    fn::invoke:
      function: oci:MeteringComputation:getCustomTables
      arguments:
        compartmentId: ${compartmentId}
        savedReportId: ${testSavedReport.id}
Copy

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>
Copy
def get_custom_tables(compartment_id: Optional[str] = None,
                      filters: Optional[Sequence[_meteringcomputation.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[_meteringcomputation.GetCustomTablesFilterArgs]]]] = None,
                      saved_report_id: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetCustomTablesResult]
Copy
func GetCustomTables(ctx *Context, args *GetCustomTablesArgs, opts ...InvokeOption) (*GetCustomTablesResult, error)
func GetCustomTablesOutput(ctx *Context, args *GetCustomTablesOutputArgs, opts ...InvokeOption) GetCustomTablesResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetCustomTablesResult> getCustomTables(GetCustomTablesArgs args, InvokeOptions options)
public static Output<GetCustomTablesResult> getCustomTables(GetCustomTablesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:MeteringComputation/getCustomTables:getCustomTables
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CompartmentId This property is required. string
The compartment ID in which to list resources.
SavedReportId This property is required. string
The saved report ID in which to list resources.
Filters Changes to this property will trigger replacement. List<GetCustomTablesFilter>
CompartmentId This property is required. string
The compartment ID in which to list resources.
SavedReportId This property is required. string
The saved report ID in which to list resources.
Filters Changes to this property will trigger replacement. []GetCustomTablesFilter
compartmentId This property is required. String
The compartment ID in which to list resources.
savedReportId This property is required. String
The saved report ID in which to list resources.
filters Changes to this property will trigger replacement. List<GetCustomTablesFilter>
compartmentId This property is required. string
The compartment ID in which to list resources.
savedReportId This property is required. string
The saved report ID in which to list resources.
filters Changes to this property will trigger replacement. GetCustomTablesFilter[]
compartment_id This property is required. str
The compartment ID in which to list resources.
saved_report_id This property is required. str
The saved report ID in which to list resources.
filters Changes to this property will trigger replacement. Sequence[meteringcomputation.GetCustomTablesFilter]
compartmentId This property is required. String
The compartment ID in which to list resources.
savedReportId This property is required. String
The saved report ID in which to list resources.
filters Changes to this property will trigger replacement. List<Property Map>

getCustomTables Result

The following output properties are available:

CompartmentId string
The custom table compartment OCID.
CustomTableCollections List<GetCustomTablesCustomTableCollection>
The list of custom_table_collection.
Id string
The provider-assigned unique ID for this managed resource.
SavedReportId string
The custom table associated saved report OCID.
Filters List<GetCustomTablesFilter>
CompartmentId string
The custom table compartment OCID.
CustomTableCollections []GetCustomTablesCustomTableCollection
The list of custom_table_collection.
Id string
The provider-assigned unique ID for this managed resource.
SavedReportId string
The custom table associated saved report OCID.
Filters []GetCustomTablesFilter
compartmentId String
The custom table compartment OCID.
customTableCollections List<GetCustomTablesCustomTableCollection>
The list of custom_table_collection.
id String
The provider-assigned unique ID for this managed resource.
savedReportId String
The custom table associated saved report OCID.
filters List<GetCustomTablesFilter>
compartmentId string
The custom table compartment OCID.
customTableCollections GetCustomTablesCustomTableCollection[]
The list of custom_table_collection.
id string
The provider-assigned unique ID for this managed resource.
savedReportId string
The custom table associated saved report OCID.
filters GetCustomTablesFilter[]
compartment_id str
The custom table compartment OCID.
custom_table_collections Sequence[meteringcomputation.GetCustomTablesCustomTableCollection]
The list of custom_table_collection.
id str
The provider-assigned unique ID for this managed resource.
saved_report_id str
The custom table associated saved report OCID.
filters Sequence[meteringcomputation.GetCustomTablesFilter]
compartmentId String
The custom table compartment OCID.
customTableCollections List<Property Map>
The list of custom_table_collection.
id String
The provider-assigned unique ID for this managed resource.
savedReportId String
The custom table associated saved report OCID.
filters List<Property Map>

Supporting Types

GetCustomTablesCustomTableCollection

items This property is required. List<Property Map>

GetCustomTablesCustomTableCollectionItem

CompartmentId This property is required. string
The compartment ID in which to list resources.
Id This property is required. string
The custom table OCID.
SavedCustomTables This property is required. List<GetCustomTablesCustomTableCollectionItemSavedCustomTable>
The custom table for Cost Analysis UI rendering.
SavedReportId This property is required. string
The saved report ID in which to list resources.
CompartmentId This property is required. string
The compartment ID in which to list resources.
Id This property is required. string
The custom table OCID.
SavedCustomTables This property is required. []GetCustomTablesCustomTableCollectionItemSavedCustomTable
The custom table for Cost Analysis UI rendering.
SavedReportId This property is required. string
The saved report ID in which to list resources.
compartmentId This property is required. String
The compartment ID in which to list resources.
id This property is required. String
The custom table OCID.
savedCustomTables This property is required. List<GetCustomTablesCustomTableCollectionItemSavedCustomTable>
The custom table for Cost Analysis UI rendering.
savedReportId This property is required. String
The saved report ID in which to list resources.
compartmentId This property is required. string
The compartment ID in which to list resources.
id This property is required. string
The custom table OCID.
savedCustomTables This property is required. GetCustomTablesCustomTableCollectionItemSavedCustomTable[]
The custom table for Cost Analysis UI rendering.
savedReportId This property is required. string
The saved report ID in which to list resources.
compartment_id This property is required. str
The compartment ID in which to list resources.
id This property is required. str
The custom table OCID.
saved_custom_tables This property is required. Sequence[meteringcomputation.GetCustomTablesCustomTableCollectionItemSavedCustomTable]
The custom table for Cost Analysis UI rendering.
saved_report_id This property is required. str
The saved report ID in which to list resources.
compartmentId This property is required. String
The compartment ID in which to list resources.
id This property is required. String
The custom table OCID.
savedCustomTables This property is required. List<Property Map>
The custom table for Cost Analysis UI rendering.
savedReportId This property is required. String
The saved report ID in which to list resources.

GetCustomTablesCustomTableCollectionItemSavedCustomTable

ColumnGroupBies This property is required. List<string>
The column groupBy key list. example: ["tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", "tenantName"]
CompartmentDepth This property is required. double
The compartment depth level.
DisplayName This property is required. string
The name of the custom table.
GroupByTags This property is required. List<GetCustomTablesCustomTableCollectionItemSavedCustomTableGroupByTag>
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"]
RowGroupBies This property is required. List<string>
The row groupBy key list. example: ["tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", "tenantName"]
Version This property is required. double
The version of the custom table.
ColumnGroupBies This property is required. []string
The column groupBy key list. example: ["tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", "tenantName"]
CompartmentDepth This property is required. float64
The compartment depth level.
DisplayName This property is required. string
The name of the custom table.
GroupByTags This property is required. []GetCustomTablesCustomTableCollectionItemSavedCustomTableGroupByTag
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"]
RowGroupBies This property is required. []string
The row groupBy key list. example: ["tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", "tenantName"]
Version This property is required. float64
The version of the custom table.
columnGroupBies This property is required. List<String>
The column groupBy key list. example: ["tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", "tenantName"]
compartmentDepth This property is required. Double
The compartment depth level.
displayName This property is required. String
The name of the custom table.
groupByTags This property is required. List<GetCustomTablesCustomTableCollectionItemSavedCustomTableGroupByTag>
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"]
rowGroupBies This property is required. List<String>
The row groupBy key list. example: ["tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", "tenantName"]
version This property is required. Double
The version of the custom table.
columnGroupBies This property is required. string[]
The column groupBy key list. example: ["tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", "tenantName"]
compartmentDepth This property is required. number
The compartment depth level.
displayName This property is required. string
The name of the custom table.
groupByTags This property is required. GetCustomTablesCustomTableCollectionItemSavedCustomTableGroupByTag[]
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"]
rowGroupBies This property is required. string[]
The row groupBy key list. example: ["tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", "tenantName"]
version This property is required. number
The version of the custom table.
column_group_bies This property is required. Sequence[str]
The column groupBy key list. example: ["tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", "tenantName"]
compartment_depth This property is required. float
The compartment depth level.
display_name This property is required. str
The name of the custom table.
group_by_tags This property is required. Sequence[meteringcomputation.GetCustomTablesCustomTableCollectionItemSavedCustomTableGroupByTag]
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_bies This property is required. Sequence[str]
The row groupBy key list. example: ["tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", "tenantName"]
version This property is required. float
The version of the custom table.
columnGroupBies This property is required. List<String>
The column groupBy key list. example: ["tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", "tenantName"]
compartmentDepth This property is required. Number
The compartment depth level.
displayName This property is required. String
The name of the custom table.
groupByTags This property is required. 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"]
rowGroupBies This property is required. List<String>
The row groupBy key list. example: ["tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", "tenantName"]
version This property is required. Number
The version of the custom table.

GetCustomTablesCustomTableCollectionItemSavedCustomTableGroupByTag

Key This property is required. string
The tag key.
Namespace This property is required. string
The tag namespace.
Value This property is required. string
The tag value.
Key This property is required. string
The tag key.
Namespace This property is required. string
The tag namespace.
Value This property is required. string
The tag value.
key This property is required. String
The tag key.
namespace This property is required. String
The tag namespace.
value This property is required. String
The tag value.
key This property is required. string
The tag key.
namespace This property is required. string
The tag namespace.
value This property is required. string
The tag value.
key This property is required. str
The tag key.
namespace This property is required. str
The tag namespace.
value This property is required. str
The tag value.
key This property is required. String
The tag key.
namespace This property is required. String
The tag namespace.
value This property is required. String
The tag value.

GetCustomTablesFilter

Name This property is required. string
Values This property is required. List<string>
Regex bool
Name This property is required. string
Values This property is required. []string
Regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean
name This property is required. string
values This property is required. string[]
regex boolean
name This property is required. str
values This property is required. Sequence[str]
regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.
Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi