Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:MeteringComputation/getCustomTables:getCustomTables
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The compartment ID in which to list resources.
- Saved
Report stringId - The saved report ID in which to list resources.
- Filters
List<Get
Custom Tables Filter>
- Compartment
Id string - The compartment ID in which to list resources.
- Saved
Report stringId - The saved report ID in which to list resources.
- Filters
[]Get
Custom Tables Filter
- compartment
Id String - The compartment ID in which to list resources.
- saved
Report StringId - The saved report ID in which to list resources.
- filters
List<Get
Custom Tables Filter>
- compartment
Id string - The compartment ID in which to list resources.
- saved
Report stringId - The saved report ID in which to list resources.
- filters
Get
Custom Tables Filter[]
- compartment_
id str - The compartment ID in which to list resources.
- saved_
report_ strid - The saved report ID in which to list resources.
- filters
Sequence[meteringcomputation.
Get Custom Tables Filter]
- compartment
Id String - The compartment ID in which to list resources.
- saved
Report StringId - The saved report ID in which to list resources.
- filters List<Property Map>
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
GetCustomTablesCustomTableCollectionItem
- Compartment
Id string - The compartment ID in which to list resources.
- Id string
- The custom table OCID.
- Saved
Custom List<GetTables Custom Tables Custom Table Collection Item Saved Custom Table> - The custom table for Cost Analysis UI rendering.
- Saved
Report stringId - The saved report ID in which to list resources.
- Compartment
Id string - The compartment ID in which to list resources.
- Id string
- The custom table OCID.
- Saved
Custom []GetTables Custom Tables Custom Table Collection Item Saved Custom Table - The custom table for Cost Analysis UI rendering.
- Saved
Report stringId - The saved report ID in which to list resources.
- compartment
Id String - The compartment ID in which to list resources.
- id String
- The custom table OCID.
- saved
Custom List<GetTables Custom Tables Custom Table Collection Item Saved Custom Table> - The custom table for Cost Analysis UI rendering.
- saved
Report StringId - The saved report ID in which to list resources.
- compartment
Id string - The compartment ID in which to list resources.
- id string
- The custom table OCID.
- saved
Custom GetTables Custom Tables Custom Table Collection Item Saved Custom Table[] - The custom table for Cost Analysis UI rendering.
- saved
Report stringId - 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_ Sequence[meteringcomputation.tables Get Custom Tables Custom Table Collection Item Saved Custom Table] - The custom table for Cost Analysis UI rendering.
- saved_
report_ strid - The saved report ID in which to list resources.
- compartment
Id String - The compartment ID in which to list resources.
- id String
- The custom table OCID.
- saved
Custom List<Property Map>Tables - The custom table for Cost Analysis UI rendering.
- saved
Report StringId - The saved report ID in which to list resources.
GetCustomTablesCustomTableCollectionItemSavedCustomTable
- Column
Group 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"]
- Compartment
Depth double - The compartment depth level.
- Display
Name string - The name of the custom table.
- List<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 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.
- Column
Group []stringBies - The column groupBy key list. example:
["tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", "tenantName"]
- Compartment
Depth float64 - The compartment depth level.
- Display
Name string - The name of the custom table.
- []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 []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.
- column
Group 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"]
- compartment
Depth Double - The compartment depth level.
- display
Name String - The name of the custom table.
- List<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 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.
- column
Group string[]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 number - The compartment depth level.
- display
Name string - The name of the custom table.
- 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 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[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_ 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.
- column
Group 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"]
- compartment
Depth Number - The compartment depth level.
- display
Name 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"]
- row
Group 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.
GetCustomTablesCustomTableCollectionItemSavedCustomTableGroupByTag
GetCustomTablesFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.