Skip to content

Usage API: CustomTable

Manage OCI Usage API resources from Kubernetes. This page is generated from checked-in package metadata, CRD schemas, and sample manifests.

Resource Snapshot

Field Value
Service usageapi
Resource CustomTable
API Version usageapi.oracle.com/v1beta1
Package Usage API
Support Status Preview
Latest Released Version v2.1.0-alpha
Install Namespace oci-service-operator-usageapi-system

Spec Fields

This summary shows the top-level spec fields. Use the full API reference for nested fields, defaults, and enum values.

Field Description Type Required
compartmentId The compartment OCID. string Yes
savedCustomTable CustomTableSavedCustomTable defines nested fields for CustomTable.SavedCustomTable. object Yes
savedReportId The associated saved report OCID. string Yes

Status Fields

This summary shows the top-level status fields. Use the full API reference for nested fields, defaults, and enum values.

Field Description Type Required
compartmentId The custom table compartment OCID. string No
id The custom table OCID. string No
savedCustomTable CustomTableSavedCustomTable defines nested fields for CustomTable.SavedCustomTable. object No
savedReportId The custom table associated saved report OCID. string No
status - object Yes

Sample Manifest

This example is generated from the checked-in sample manifest at config/samples/usageapi_v1beta1_customtable.yaml. Replace placeholder values before applying it.

Open the rendered sample page

#
# Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
#

#
# Replace the OCI identifiers below before running e2e.
# Update metadata.name and spec.savedCustomTable.displayName if you want to force a
# fresh create instead of binding to an existing CustomTable with the same saved
# report scope and rendered table shape.
#
apiVersion: usageapi.oracle.com/v1beta1
kind: CustomTable
metadata:
  name: customtable-sample
spec:
  compartmentId: ocid1.compartment.oc1..exampleuniqueID
  savedReportId: ocid1.savedreport.oc1..exampleuniqueID
  savedCustomTable:
    displayName: "customtable-sample"
    rowGroupBy:
      - compartmentId
    columnGroupBy:
      - service
    groupByTag:
      - namespace: oracle
        key: createdBy
    compartmentDepth: 2
    version: 1