Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.MeteringComputation.getCustomTable
Explore with Pulumi AI
This data source provides details about a specific Custom Table resource in Oracle Cloud Infrastructure Metering Computation service.
Returns the saved custom table.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testCustomTable = oci.MeteringComputation.getCustomTable({
    customTableId: testCustomTableOciMeteringComputationCustomTable.id,
});
import pulumi
import pulumi_oci as oci
test_custom_table = oci.MeteringComputation.get_custom_table(custom_table_id=test_custom_table_oci_metering_computation_custom_table["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.GetCustomTable(ctx, &meteringcomputation.GetCustomTableArgs{
			CustomTableId: testCustomTableOciMeteringComputationCustomTable.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 testCustomTable = Oci.MeteringComputation.GetCustomTable.Invoke(new()
    {
        CustomTableId = testCustomTableOciMeteringComputationCustomTable.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.GetCustomTableArgs;
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 testCustomTable = MeteringComputationFunctions.getCustomTable(GetCustomTableArgs.builder()
            .customTableId(testCustomTableOciMeteringComputationCustomTable.id())
            .build());
    }
}
variables:
  testCustomTable:
    fn::invoke:
      function: oci:MeteringComputation:getCustomTable
      arguments:
        customTableId: ${testCustomTableOciMeteringComputationCustomTable.id}
Using getCustomTable
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 getCustomTable(args: GetCustomTableArgs, opts?: InvokeOptions): Promise<GetCustomTableResult>
function getCustomTableOutput(args: GetCustomTableOutputArgs, opts?: InvokeOptions): Output<GetCustomTableResult>def get_custom_table(custom_table_id: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetCustomTableResult
def get_custom_table_output(custom_table_id: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetCustomTableResult]func LookupCustomTable(ctx *Context, args *LookupCustomTableArgs, opts ...InvokeOption) (*LookupCustomTableResult, error)
func LookupCustomTableOutput(ctx *Context, args *LookupCustomTableOutputArgs, opts ...InvokeOption) LookupCustomTableResultOutput> Note: This function is named LookupCustomTable in the Go SDK.
public static class GetCustomTable 
{
    public static Task<GetCustomTableResult> InvokeAsync(GetCustomTableArgs args, InvokeOptions? opts = null)
    public static Output<GetCustomTableResult> Invoke(GetCustomTableInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCustomTableResult> getCustomTable(GetCustomTableArgs args, InvokeOptions options)
public static Output<GetCustomTableResult> getCustomTable(GetCustomTableArgs args, InvokeOptions options)
fn::invoke:
  function: oci:MeteringComputation/getCustomTable:getCustomTable
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CustomTable stringId 
- The custom table unique OCID.
- CustomTable stringId 
- The custom table unique OCID.
- customTable StringId 
- The custom table unique OCID.
- customTable stringId 
- The custom table unique OCID.
- custom_table_ strid 
- The custom table unique OCID.
- customTable StringId 
- The custom table unique OCID.
getCustomTable Result
The following output properties are available:
- CompartmentId string
- The custom table compartment OCID.
- CustomTable stringId 
- Id string
- The custom table OCID.
- SavedCustom List<GetTables Custom Table Saved Custom Table> 
- The custom table for Cost Analysis UI rendering.
- SavedReport stringId 
- The custom table associated saved report OCID.
- CompartmentId string
- The custom table compartment OCID.
- CustomTable stringId 
- Id string
- The custom table OCID.
- SavedCustom []GetTables Custom Table Saved Custom Table 
- The custom table for Cost Analysis UI rendering.
- SavedReport stringId 
- The custom table associated saved report OCID.
- compartmentId String
- The custom table compartment OCID.
- customTable StringId 
- id String
- The custom table OCID.
- savedCustom List<GetTables Custom Table Saved Custom Table> 
- The custom table for Cost Analysis UI rendering.
- savedReport StringId 
- The custom table associated saved report OCID.
- compartmentId string
- The custom table compartment OCID.
- customTable stringId 
- id string
- The custom table OCID.
- savedCustom GetTables Custom Table Saved Custom Table[] 
- The custom table for Cost Analysis UI rendering.
- savedReport stringId 
- The custom table associated saved report OCID.
- compartment_id str
- The custom table compartment OCID.
- custom_table_ strid 
- id str
- The custom table OCID.
- saved_custom_ Sequence[Gettables Custom Table Saved Custom Table] 
- The custom table for Cost Analysis UI rendering.
- saved_report_ strid 
- The custom table associated saved report OCID.
- compartmentId String
- The custom table compartment OCID.
- customTable StringId 
- id String
- The custom table OCID.
- savedCustom List<Property Map>Tables 
- The custom table for Cost Analysis UI rendering.
- savedReport StringId 
- The custom table associated saved report OCID.
Supporting Types
GetCustomTableSavedCustomTable     
- 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 Table 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 Table 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 Table 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 Table 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 Table 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.
GetCustomTableSavedCustomTableGroupByTag        
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.