1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. MeteringComputation
  5. getCustomTable
Oracle Cloud Infrastructure v2.18.0 published on Friday, Nov 22, 2024 by Pulumi

oci.MeteringComputation.getCustomTable

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.18.0 published on Friday, Nov 22, 2024 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,
    });
    
    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 GetCustomTable(ctx *Context, args *GetCustomTableArgs, opts ...InvokeOption) (*GetCustomTableResult, error)
    func GetCustomTableOutput(ctx *Context, args *GetCustomTableOutputArgs, opts ...InvokeOption) GetCustomTableResultOutput

    > 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)
    }
    public static CompletableFuture<GetCustomTableResult> getCustomTable(GetCustomTableArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:MeteringComputation/getCustomTable:getCustomTable
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CustomTableId string
    The custom table unique OCID.
    CustomTableId string
    The custom table unique OCID.
    customTableId String
    The custom table unique OCID.
    customTableId string
    The custom table unique OCID.
    custom_table_id str
    The custom table unique OCID.
    customTableId 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 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<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 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 []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 []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<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 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 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 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 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 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.

    GetCustomTableSavedCustomTableGroupByTag

    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.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.18.0 published on Friday, Nov 22, 2024 by Pulumi