Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 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[_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]
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 dictionary
The following arguments are supported:
- Compartment
Id This property is required. string - The compartment ID in which to list resources.
- Saved
Report Id This property is required. string - The saved report ID in which to list resources.
- Filters
Changes to this property will trigger replacement.
Custom Tables Filter>
- Compartment
Id This property is required. string - The compartment ID in which to list resources.
- Saved
Report Id This property is required. string - The saved report ID in which to list resources.
- Filters
Changes to this property will trigger replacement.
Custom Tables Filter
- compartment
Id This property is required. String - The compartment ID in which to list resources.
- saved
Report Id This property is required. String - The saved report ID in which to list resources.
- filters
Changes to this property will trigger replacement.
Custom Tables Filter>
- compartment
Id This property is required. string - The compartment ID in which to list resources.
- saved
Report Id This property is required. string - The saved report ID in which to list resources.
- filters
Changes to this property will trigger replacement.
Custom Tables Filter[]
- 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.
Get Custom Tables Filter]
- compartment
Id This property is required. String - The compartment ID in which to list resources.
- saved
Report Id This property is required. String - The saved report ID in which to list resources.
- filters
Changes to this property will trigger replacement.
getCustomTables Result
The following output properties are available:
- Compartment
Id string - The custom table compartment OCID.
- Custom
Table List<GetCollections Custom Tables Custom Table Collection> - The list of custom_table_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Saved
Report stringId - The custom table associated saved report OCID.
- Filters
List<Get
Custom Tables Filter>
- Compartment
Id string - The custom table compartment OCID.
- Custom
Table []GetCollections Custom Tables Custom Table Collection - The list of custom_table_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Saved
Report stringId - The custom table associated saved report OCID.
- Filters
[]Get
Custom Tables Filter
- compartment
Id String - The custom table compartment OCID.
- custom
Table List<GetCollections Custom Tables Custom Table Collection> - The list of custom_table_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- saved
Report StringId - The custom table associated saved report OCID.
- filters
List<Get
Custom Tables Filter>
- compartment
Id string - The custom table compartment OCID.
- custom
Table GetCollections Custom Tables Custom Table Collection[] - The list of custom_table_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- saved
Report stringId - The custom table associated saved report OCID.
- filters
Get
Custom Tables Filter[]
- compartment_
id str - The custom table compartment OCID.
- custom_
table_ Sequence[meteringcomputation.collections Get 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[meteringcomputation.
Get Custom Tables Filter]
- compartment
Id String - The custom table compartment OCID.
- custom
Table List<Property Map>Collections - The list of custom_table_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- saved
Report StringId - The custom table associated saved report OCID.
- filters List<Property Map>
Supporting Types
GetCustomTablesCustomTableCollection
- Items
This property is required. List<GetCustom Tables Custom Table Collection Item>
- Items
This property is required. []GetCustom Tables Custom Table Collection Item
- items
This property is required. List<GetCustom Tables Custom Table Collection Item>
- items
This property is required. GetCustom Tables Custom Table Collection Item[]
- items
This property is required. Sequence[meteringcomputation.Get Custom Tables Custom Table Collection Item]
- items
This property is required. List<Property Map>
GetCustomTablesCustomTableCollectionItem
- Compartment
Id This property is required. string - The compartment ID in which to list resources.
- Id
This property is required. string - The custom table OCID.
- Saved
Custom Tables This property is required. List<GetCustom Tables Custom Table Collection Item Saved Custom Table> - The custom table for Cost Analysis UI rendering.
- Saved
Report Id This property is required. string - The saved report ID in which to list resources.
- Compartment
Id This property is required. string - The compartment ID in which to list resources.
- Id
This property is required. string - The custom table OCID.
- Saved
Custom Tables This property is required. []GetCustom Tables Custom Table Collection Item Saved Custom Table - The custom table for Cost Analysis UI rendering.
- Saved
Report Id This property is required. string - The saved report ID in which to list resources.
- compartment
Id This property is required. String - The compartment ID in which to list resources.
- id
This property is required. String - The custom table OCID.
- saved
Custom Tables This property is required. List<GetCustom Tables Custom Table Collection Item Saved Custom Table> - The custom table for Cost Analysis UI rendering.
- saved
Report Id This property is required. String - The saved report ID in which to list resources.
- compartment
Id This property is required. string - The compartment ID in which to list resources.
- id
This property is required. string - The custom table OCID.
- saved
Custom Tables This property is required. GetCustom Tables Custom Table Collection Item Saved Custom Table[] - The custom table for Cost Analysis UI rendering.
- saved
Report Id 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.Get Custom Tables Custom Table Collection Item Saved Custom Table] - 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.
- compartment
Id This property is required. String - The compartment ID in which to list resources.
- id
This property is required. String - The custom table OCID.
- saved
Custom Tables This property is required. List<Property Map> - The custom table for Cost Analysis UI rendering.
- saved
Report Id This property is required. String - The saved report ID in which to list resources.
GetCustomTablesCustomTableCollectionItemSavedCustomTable
- Column
Group Bies 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"]
- Compartment
Depth This property is required. double - The compartment depth level.
- Display
Name This property is required. string - The name of the custom table.
This property is required. 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"]
- Row
Group Bies 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.
- Column
Group Bies 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"]
- Compartment
Depth This property is required. float64 - The compartment depth level.
- Display
Name This property is required. string - The name of the custom table.
This property is required. []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 Bies 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.
- column
Group Bies 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"]
- compartment
Depth This property is required. Double - The compartment depth level.
- display
Name This property is required. String - The name of the custom table.
This property is required. 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"]
- row
Group Bies 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.
- column
Group Bies 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"]
- compartment
Depth This property is required. number - The compartment depth level.
- display
Name This property is required. string - The name of the custom table.
This property is required. 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 Bies 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.
This property is required. Sequence[meteringcomputation.Get Custom 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_ 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.
- column
Group Bies 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"]
- compartment
Depth This property is required. Number - The compartment depth level.
- display
Name This property is required. String - The name of the custom table.
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"]
- row
Group Bies 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
GetCustomTablesFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.