Skip to content

CustomTable Sample

This page is generated from the checked-in sample manifest at config/samples/usageapi_v1beta1_customtable.yaml.

Field Value
Resource usageapi/CustomTable
API Version usageapi.oracle.com/v1beta1
Source Path config/samples/usageapi_v1beta1_customtable.yaml
#
# 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