1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. MeteringComputation
  5. getCustomTable
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

oci.MeteringComputation.getCustomTable

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

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,
});
Copy
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"])
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.GetCustomTable(ctx, &meteringcomputation.GetCustomTableArgs{
			CustomTableId: testCustomTableOciMeteringComputationCustomTable.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 testCustomTable = Oci.MeteringComputation.GetCustomTable.Invoke(new()
    {
        CustomTableId = testCustomTableOciMeteringComputationCustomTable.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.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());

    }
}
Copy
variables:
  testCustomTable:
    fn::invoke:
      function: oci:MeteringComputation:getCustomTable
      arguments:
        customTableId: ${testCustomTableOciMeteringComputationCustomTable.id}
Copy

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>
Copy
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]
Copy
func GetCustomTable(ctx *Context, args *GetCustomTableArgs, opts ...InvokeOption) (*GetCustomTableResult, error)
func GetCustomTableOutput(ctx *Context, args *GetCustomTableOutputArgs, opts ...InvokeOption) GetCustomTableResultOutput
Copy

> Note: This function is named GetCustomTable 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)
}
Copy
public static CompletableFuture<GetCustomTableResult> getCustomTable(GetCustomTableArgs args, InvokeOptions options)
public static Output<GetCustomTableResult> getCustomTable(GetCustomTableArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:MeteringComputation/getCustomTable:getCustomTable
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CustomTableId This property is required. string
The custom table unique OCID.
CustomTableId This property is required. string
The custom table unique OCID.
customTableId This property is required. String
The custom table unique OCID.
customTableId This property is required. string
The custom table unique OCID.
custom_table_id This property is required. str
The custom table unique OCID.
customTableId This property is required. String
The custom table unique OCID.

getCustomTable Result

The following output properties are available:

CompartmentId string
The custom table compartment OCID.
CustomTableId string
Id string
The custom table OCID.
SavedCustomTables List<GetCustomTableSavedCustomTable>
The custom table for Cost Analysis UI rendering.
SavedReportId string
The custom table associated saved report OCID.
CompartmentId string
The custom table compartment OCID.
CustomTableId string
Id string
The custom table OCID.
SavedCustomTables []GetCustomTableSavedCustomTable
The custom table for Cost Analysis UI rendering.
SavedReportId string
The custom table associated saved report OCID.
compartmentId String
The custom table compartment OCID.
customTableId String
id String
The custom table OCID.
savedCustomTables List<GetCustomTableSavedCustomTable>
The custom table for Cost Analysis UI rendering.
savedReportId String
The custom table associated saved report OCID.
compartmentId string
The custom table compartment OCID.
customTableId string
id string
The custom table OCID.
savedCustomTables GetCustomTableSavedCustomTable[]
The custom table for Cost Analysis UI rendering.
savedReportId string
The custom table associated saved report OCID.
compartment_id str
The custom table compartment OCID.
custom_table_id str
id str
The custom table OCID.
saved_custom_tables Sequence[meteringcomputation.GetCustomTableSavedCustomTable]
The custom table for Cost Analysis UI rendering.
saved_report_id str
The custom table associated saved report OCID.
compartmentId String
The custom table compartment OCID.
customTableId String
id String
The custom table OCID.
savedCustomTables List<Property Map>
The custom table for Cost Analysis UI rendering.
savedReportId String
The custom table associated saved report OCID.

Supporting Types

GetCustomTableSavedCustomTable

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<GetCustomTableSavedCustomTableGroupByTag>
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. []GetCustomTableSavedCustomTableGroupByTag
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<GetCustomTableSavedCustomTableGroupByTag>
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. GetCustomTableSavedCustomTableGroupByTag[]
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.GetCustomTableSavedCustomTableGroupByTag]
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.

GetCustomTableSavedCustomTableGroupByTag

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.

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.31.0 published on Thursday, Apr 17, 2025 by Pulumi