Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.MeteringComputation.getCustomTable
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 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/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:
- Custom
Table stringId - The custom table unique OCID.
- Custom
Table stringId - The custom table unique OCID.
- custom
Table StringId - The custom table unique OCID.
- custom
Table stringId - The custom table unique OCID.
- custom_
table_ strid - The custom table unique OCID.
- custom
Table StringId - The custom table unique OCID.
getCustomTable Result
The following output properties are available:
- Compartment
Id string - The custom table compartment OCID.
- Custom
Table stringId - Id string
- The custom table OCID.
- Saved
Custom List<GetTables Custom Table Saved Custom Table> - The custom table for Cost Analysis UI rendering.
- Saved
Report stringId - The custom table associated saved report OCID.
- Compartment
Id string - The custom table compartment OCID.
- Custom
Table stringId - Id string
- The custom table OCID.
- Saved
Custom []GetTables Custom Table Saved Custom Table - The custom table for Cost Analysis UI rendering.
- Saved
Report stringId - The custom table associated saved report OCID.
- compartment
Id String - The custom table compartment OCID.
- custom
Table StringId - id String
- The custom table OCID.
- saved
Custom List<GetTables Custom Table Saved Custom Table> - The custom table for Cost Analysis UI rendering.
- saved
Report StringId - The custom table associated saved report OCID.
- compartment
Id string - The custom table compartment OCID.
- custom
Table stringId - id string
- The custom table OCID.
- saved
Custom GetTables Custom Table Saved Custom Table[] - The custom table for Cost Analysis UI rendering.
- saved
Report stringId - The custom table associated saved report OCID.
- compartment_
id str - The custom table compartment OCID.
- custom_
table_ strid - id str
- The custom table OCID.
- saved_
custom_ Sequence[meteringcomputation.tables Get Custom Table Saved Custom Table] - The custom table for Cost Analysis UI rendering.
- saved_
report_ strid - The custom table associated saved report OCID.
- compartment
Id String - The custom table compartment OCID.
- custom
Table StringId - id String
- The custom table OCID.
- saved
Custom List<Property Map>Tables - The custom table for Cost Analysis UI rendering.
- saved
Report StringId - The custom table associated saved report OCID.
Supporting Types
GetCustomTableSavedCustomTable
- 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 Table 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 Table 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 Table 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 Table 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 Table 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.
GetCustomTableSavedCustomTableGroupByTag
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 v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi