Oracle Cloud Infrastructure

v0.5.0 published on Monday, Sep 12, 2022 by Pulumi

getCustomTables

This data source provides the list of Custom Tables in Oracle Cloud Infrastructure Metering Computation service.

Returns the saved custom table list.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testCustomTables = Oci.MeteringComputation.GetCustomTables.Invoke(new()
    {
        CompartmentId = @var.Compartment_id,
        SavedReportId = oci_metering_computation_saved_report.Test_saved_report.Id,
    });

});
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/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: _var.Compartment_id,
			SavedReportId: oci_metering_computation_saved_report.Test_saved_report.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
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(var_.compartment_id())
            .savedReportId(oci_metering_computation_saved_report.test_saved_report().id())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_custom_tables = oci.MeteringComputation.get_custom_tables(compartment_id=var["compartment_id"],
    saved_report_id=oci_metering_computation_saved_report["test_saved_report"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testCustomTables = oci.MeteringComputation.getCustomTables({
    compartmentId: _var.compartment_id,
    savedReportId: oci_metering_computation_saved_report.test_saved_report.id,
});
variables:
  testCustomTables:
    Fn::Invoke:
      Function: oci:MeteringComputation:getCustomTables
      Arguments:
        compartmentId: ${var.compartment_id}
        savedReportId: ${oci_metering_computation_saved_report.test_saved_report.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)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:MeteringComputation/getCustomTables:getCustomTables
  Arguments:
    # Arguments dictionary

The following arguments are supported:

CompartmentId string

The compartment ID in which to list resources.

SavedReportId string

The saved report ID in which to list resources.

Filters List<GetCustomTablesFilter>
CompartmentId string

The compartment ID in which to list resources.

SavedReportId string

The saved report ID in which to list resources.

Filters []GetCustomTablesFilter
compartmentId String

The compartment ID in which to list resources.

savedReportId String

The saved report ID in which to list resources.

filters List<GetCustomTablesFilter>
compartmentId string

The compartment ID in which to list resources.

savedReportId string

The saved report ID in which to list resources.

filters GetCustomTablesFilter[]
compartment_id str

The compartment ID in which to list resources.

saved_report_id str

The saved report ID in which to list resources.

filters GetCustomTablesFilter]
compartmentId String

The compartment ID in which to list resources.

savedReportId String

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.

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 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 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

GetCustomTablesCustomTableCollectionItem

CompartmentId string

The compartment ID in which to list resources.

Id string

The custom table OCID.

SavedCustomTables List<GetCustomTablesCustomTableCollectionItemSavedCustomTable>

The custom table for Cost Analysis UI rendering.

SavedReportId string

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.

SavedCustomTables []GetCustomTablesCustomTableCollectionItemSavedCustomTable

The custom table for Cost Analysis UI rendering.

SavedReportId string

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.

savedCustomTables List<GetCustomTablesCustomTableCollectionItemSavedCustomTable>

The custom table for Cost Analysis UI rendering.

savedReportId String

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.

savedCustomTables GetCustomTablesCustomTableCollectionItemSavedCustomTable[]

The custom table for Cost Analysis UI rendering.

savedReportId string

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_tables GetCustomTablesCustomTableCollectionItemSavedCustomTable]

The custom table for Cost Analysis UI rendering.

saved_report_id str

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.

savedCustomTables List<Property Map>

The custom table for Cost Analysis UI rendering.

savedReportId String

The saved report ID in which to list resources.

GetCustomTablesCustomTableCollectionItemSavedCustomTable

ColumnGroupBies 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 double

The compartment depth level.

DisplayName string

The name of the custom table.

GroupByTags 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 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 double

The version of the custom table.

ColumnGroupBies []string

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.

GroupByTags []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 []string

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.

columnGroupBies 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 Double

The compartment depth level.

displayName String

The name of the custom table.

groupByTags 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 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 Double

The version of the custom table.

columnGroupBies string[]

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.

groupByTags 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 string[]

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_bies 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 float

The compartment depth level.

display_name str

The name of the custom table.

group_by_tags 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 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 float

The version of the custom table.

columnGroupBies 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 Number

The compartment depth level.

displayName String

The name of the custom table.

groupByTags 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 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 Number

The version of the custom table.

GetCustomTablesCustomTableCollectionItemSavedCustomTableGroupByTag

Key string

The tag key.

Namespace string

The tag namespace.

Value string

The tag value.

Key string

The tag key.

Namespace string

The tag namespace.

Value string

The tag value.

key String

The tag key.

namespace String

The tag namespace.

value String

The tag value.

key string

The tag key.

namespace string

The tag namespace.

value string

The tag value.

key str

The tag key.

namespace str

The tag namespace.

value str

The tag value.

key String

The tag key.

namespace String

The tag namespace.

value String

The tag value.

GetCustomTablesFilter

Name string
Values List<string>
Regex bool
Name string
Values []string
Regex bool
name String
values List<String>
regex Boolean
name string
values string[]
regex boolean
name str
values Sequence[str]
regex bool
name String
values List<String>
regex Boolean

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.