Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.CapacityManagement.getNamespaceOccOverviews
Explore with Pulumi AI
This data source provides the list of Namespace Occ Overviews in Oracle Cloud Infrastructure Capacity Management service.
Lists an overview of all resources in that namespace in a given time interval.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testNamespaceOccOverviews = oci.CapacityManagement.getNamespaceOccOverviews({
compartmentId: compartmentId,
namespace: namespaceOccOverviewNamespace,
from: namespaceOccOverviewFrom,
to: namespaceOccOverviewTo,
workloadType: namespaceOccOverviewWorkloadType,
});
import pulumi
import pulumi_oci as oci
test_namespace_occ_overviews = oci.CapacityManagement.get_namespace_occ_overviews(compartment_id=compartment_id,
namespace=namespace_occ_overview_namespace,
from_=namespace_occ_overview_from,
to=namespace_occ_overview_to,
workload_type=namespace_occ_overview_workload_type)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/CapacityManagement"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := CapacityManagement.GetNamespaceOccOverviews(ctx, &capacitymanagement.GetNamespaceOccOverviewsArgs{
CompartmentId: compartmentId,
Namespace: namespaceOccOverviewNamespace,
From: pulumi.StringRef(namespaceOccOverviewFrom),
To: pulumi.StringRef(namespaceOccOverviewTo),
WorkloadType: pulumi.StringRef(namespaceOccOverviewWorkloadType),
}, 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 testNamespaceOccOverviews = Oci.CapacityManagement.GetNamespaceOccOverviews.Invoke(new()
{
CompartmentId = compartmentId,
Namespace = namespaceOccOverviewNamespace,
From = namespaceOccOverviewFrom,
To = namespaceOccOverviewTo,
WorkloadType = namespaceOccOverviewWorkloadType,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.CapacityManagement.CapacityManagementFunctions;
import com.pulumi.oci.CapacityManagement.inputs.GetNamespaceOccOverviewsArgs;
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 testNamespaceOccOverviews = CapacityManagementFunctions.getNamespaceOccOverviews(GetNamespaceOccOverviewsArgs.builder()
.compartmentId(compartmentId)
.namespace(namespaceOccOverviewNamespace)
.from(namespaceOccOverviewFrom)
.to(namespaceOccOverviewTo)
.workloadType(namespaceOccOverviewWorkloadType)
.build());
}
}
variables:
testNamespaceOccOverviews:
fn::invoke:
Function: oci:CapacityManagement:getNamespaceOccOverviews
Arguments:
compartmentId: ${compartmentId}
namespace: ${namespaceOccOverviewNamespace}
from: ${namespaceOccOverviewFrom}
to: ${namespaceOccOverviewTo}
workloadType: ${namespaceOccOverviewWorkloadType}
Using getNamespaceOccOverviews
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 getNamespaceOccOverviews(args: GetNamespaceOccOverviewsArgs, opts?: InvokeOptions): Promise<GetNamespaceOccOverviewsResult>
function getNamespaceOccOverviewsOutput(args: GetNamespaceOccOverviewsOutputArgs, opts?: InvokeOptions): Output<GetNamespaceOccOverviewsResult>
def get_namespace_occ_overviews(compartment_id: Optional[str] = None,
filters: Optional[Sequence[_capacitymanagement.GetNamespaceOccOverviewsFilter]] = None,
from_: Optional[str] = None,
namespace: Optional[str] = None,
to: Optional[str] = None,
workload_type: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNamespaceOccOverviewsResult
def get_namespace_occ_overviews_output(compartment_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_capacitymanagement.GetNamespaceOccOverviewsFilterArgs]]]] = None,
from_: Optional[pulumi.Input[str]] = None,
namespace: Optional[pulumi.Input[str]] = None,
to: Optional[pulumi.Input[str]] = None,
workload_type: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNamespaceOccOverviewsResult]
func GetNamespaceOccOverviews(ctx *Context, args *GetNamespaceOccOverviewsArgs, opts ...InvokeOption) (*GetNamespaceOccOverviewsResult, error)
func GetNamespaceOccOverviewsOutput(ctx *Context, args *GetNamespaceOccOverviewsOutputArgs, opts ...InvokeOption) GetNamespaceOccOverviewsResultOutput
> Note: This function is named GetNamespaceOccOverviews
in the Go SDK.
public static class GetNamespaceOccOverviews
{
public static Task<GetNamespaceOccOverviewsResult> InvokeAsync(GetNamespaceOccOverviewsArgs args, InvokeOptions? opts = null)
public static Output<GetNamespaceOccOverviewsResult> Invoke(GetNamespaceOccOverviewsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetNamespaceOccOverviewsResult> getNamespaceOccOverviews(GetNamespaceOccOverviewsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:CapacityManagement/getNamespaceOccOverviews:getNamespaceOccOverviews
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes.
- Namespace string
- The namespace by which we would filter the list.
- Filters
List<Get
Namespace Occ Overviews Filter> - From string
- The month corresponding to this date would be considered as the starting point of the time period against which we would like to perform an aggregation.
- To string
- The month corresponding to this date would be considered as the ending point of the time period against which we would like to perform an aggregation.
- Workload
Type string - Workload type using the resources in an availability catalog can be filtered.
- Compartment
Id string - The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes.
- Namespace string
- The namespace by which we would filter the list.
- Filters
[]Get
Namespace Occ Overviews Filter - From string
- The month corresponding to this date would be considered as the starting point of the time period against which we would like to perform an aggregation.
- To string
- The month corresponding to this date would be considered as the ending point of the time period against which we would like to perform an aggregation.
- Workload
Type string - Workload type using the resources in an availability catalog can be filtered.
- compartment
Id String - The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes.
- namespace String
- The namespace by which we would filter the list.
- filters
List<Get
Namespace Occ Overviews Filter> - from String
- The month corresponding to this date would be considered as the starting point of the time period against which we would like to perform an aggregation.
- to String
- The month corresponding to this date would be considered as the ending point of the time period against which we would like to perform an aggregation.
- workload
Type String - Workload type using the resources in an availability catalog can be filtered.
- compartment
Id string - The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes.
- namespace string
- The namespace by which we would filter the list.
- filters
Get
Namespace Occ Overviews Filter[] - from string
- The month corresponding to this date would be considered as the starting point of the time period against which we would like to perform an aggregation.
- to string
- The month corresponding to this date would be considered as the ending point of the time period against which we would like to perform an aggregation.
- workload
Type string - Workload type using the resources in an availability catalog can be filtered.
- compartment_
id str - The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes.
- namespace str
- The namespace by which we would filter the list.
- filters
Sequence[capacitymanagement.
Get Namespace Occ Overviews Filter] - from_ str
- The month corresponding to this date would be considered as the starting point of the time period against which we would like to perform an aggregation.
- to str
- The month corresponding to this date would be considered as the ending point of the time period against which we would like to perform an aggregation.
- workload_
type str - Workload type using the resources in an availability catalog can be filtered.
- compartment
Id String - The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes.
- namespace String
- The namespace by which we would filter the list.
- filters List<Property Map>
- from String
- The month corresponding to this date would be considered as the starting point of the time period against which we would like to perform an aggregation.
- to String
- The month corresponding to this date would be considered as the ending point of the time period against which we would like to perform an aggregation.
- workload
Type String - Workload type using the resources in an availability catalog can be filtered.
getNamespaceOccOverviews Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment from which the api call is made. This will be used for authorizing the request.
- Id string
- The provider-assigned unique ID for this managed resource.
- Namespace string
- Occ
Overview List<GetCollections Namespace Occ Overviews Occ Overview Collection> - The list of occ_overview_collection.
- Filters
List<Get
Namespace Occ Overviews Filter> - From string
- To string
- Workload
Type string
- Compartment
Id string - The OCID of the compartment from which the api call is made. This will be used for authorizing the request.
- Id string
- The provider-assigned unique ID for this managed resource.
- Namespace string
- Occ
Overview []GetCollections Namespace Occ Overviews Occ Overview Collection - The list of occ_overview_collection.
- Filters
[]Get
Namespace Occ Overviews Filter - From string
- To string
- Workload
Type string
- compartment
Id String - The OCID of the compartment from which the api call is made. This will be used for authorizing the request.
- id String
- The provider-assigned unique ID for this managed resource.
- namespace String
- occ
Overview List<GetCollections Namespace Occ Overviews Occ Overview Collection> - The list of occ_overview_collection.
- filters
List<Get
Namespace Occ Overviews Filter> - from String
- to String
- workload
Type String
- compartment
Id string - The OCID of the compartment from which the api call is made. This will be used for authorizing the request.
- id string
- The provider-assigned unique ID for this managed resource.
- namespace string
- occ
Overview GetCollections Namespace Occ Overviews Occ Overview Collection[] - The list of occ_overview_collection.
- filters
Get
Namespace Occ Overviews Filter[] - from string
- to string
- workload
Type string
- compartment_
id str - The OCID of the compartment from which the api call is made. This will be used for authorizing the request.
- id str
- The provider-assigned unique ID for this managed resource.
- namespace str
- occ_
overview_ Sequence[capacitymanagement.collections Get Namespace Occ Overviews Occ Overview Collection] - The list of occ_overview_collection.
- filters
Sequence[capacitymanagement.
Get Namespace Occ Overviews Filter] - from_ str
- to str
- workload_
type str
- compartment
Id String - The OCID of the compartment from which the api call is made. This will be used for authorizing the request.
- id String
- The provider-assigned unique ID for this managed resource.
- namespace String
- occ
Overview List<Property Map>Collections - The list of occ_overview_collection.
- filters List<Property Map>
- from String
- to String
- workload
Type String
Supporting Types
GetNamespaceOccOverviewsFilter
GetNamespaceOccOverviewsOccOverviewCollection
- Items
List<Get
Namespace Occ Overviews Occ Overview Collection Item> - An array of overview summary.
- Items
[]Get
Namespace Occ Overviews Occ Overview Collection Item - An array of overview summary.
- items
List<Get
Namespace Occ Overviews Occ Overview Collection Item> - An array of overview summary.
- items
Get
Namespace Occ Overviews Occ Overview Collection Item[] - An array of overview summary.
- items
Sequence[capacitymanagement.
Get Namespace Occ Overviews Occ Overview Collection Item] - An array of overview summary.
- items List<Property Map>
- An array of overview summary.
GetNamespaceOccOverviewsOccOverviewCollectionItem
- Capacity
Requests stringBlob - A raw json blob containing all the capacity requests corresponding to the resource name
- Compartment
Id string - The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes.
- Period
Value string - The name of the month along with year for which this summary corresponds to.
- Resource
Name string - The name of the resource for which we have aggregated the value.
- Total
Available string - The quantity of the resource which is available at the end of the period of aggregationDetails model in consideration.
- Total
Cancelled string - The quantity of the resource which is cancelled by the customer. Once the capacity request was submitted, the customer can still cancel it. This field sums up those values.
- Total
Demanded string - The quantity of the resource which is demanded by customers via capacity requests against the resource name at the end of the time period in consideration for overview.
- Total
Rejected string - The quantity of the resource which is rejected by Oracle.
- Total
Supplied string - The quantity of the resource which is supplied by Oracle to the customer against the resource name at the end of the time period in consideration.
- Total
Unfulfilled string - The quantity of the resource which Oracle was unable to supply. For a given capacity request, Oracle sometimes cannot supply the entire value demanded by the customer. In such cases a partial value is provided, thereby leaving behind a portion of unfulfilled values. This field sums that up.
- Unit string
- The unit e.g SERVER in which the above values like totalAvailable, totalSupplied etc is measured.
- Workload
Type stringBreakdown Blob - A raw json blob containing breakdown of totalAvailable, totalDemanded, totalSupplied, totalRejected, totalCancelled and totalUnfulfilled by workload types
- Capacity
Requests stringBlob - A raw json blob containing all the capacity requests corresponding to the resource name
- Compartment
Id string - The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes.
- Period
Value string - The name of the month along with year for which this summary corresponds to.
- Resource
Name string - The name of the resource for which we have aggregated the value.
- Total
Available string - The quantity of the resource which is available at the end of the period of aggregationDetails model in consideration.
- Total
Cancelled string - The quantity of the resource which is cancelled by the customer. Once the capacity request was submitted, the customer can still cancel it. This field sums up those values.
- Total
Demanded string - The quantity of the resource which is demanded by customers via capacity requests against the resource name at the end of the time period in consideration for overview.
- Total
Rejected string - The quantity of the resource which is rejected by Oracle.
- Total
Supplied string - The quantity of the resource which is supplied by Oracle to the customer against the resource name at the end of the time period in consideration.
- Total
Unfulfilled string - The quantity of the resource which Oracle was unable to supply. For a given capacity request, Oracle sometimes cannot supply the entire value demanded by the customer. In such cases a partial value is provided, thereby leaving behind a portion of unfulfilled values. This field sums that up.
- Unit string
- The unit e.g SERVER in which the above values like totalAvailable, totalSupplied etc is measured.
- Workload
Type stringBreakdown Blob - A raw json blob containing breakdown of totalAvailable, totalDemanded, totalSupplied, totalRejected, totalCancelled and totalUnfulfilled by workload types
- capacity
Requests StringBlob - A raw json blob containing all the capacity requests corresponding to the resource name
- compartment
Id String - The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes.
- period
Value String - The name of the month along with year for which this summary corresponds to.
- resource
Name String - The name of the resource for which we have aggregated the value.
- total
Available String - The quantity of the resource which is available at the end of the period of aggregationDetails model in consideration.
- total
Cancelled String - The quantity of the resource which is cancelled by the customer. Once the capacity request was submitted, the customer can still cancel it. This field sums up those values.
- total
Demanded String - The quantity of the resource which is demanded by customers via capacity requests against the resource name at the end of the time period in consideration for overview.
- total
Rejected String - The quantity of the resource which is rejected by Oracle.
- total
Supplied String - The quantity of the resource which is supplied by Oracle to the customer against the resource name at the end of the time period in consideration.
- total
Unfulfilled String - The quantity of the resource which Oracle was unable to supply. For a given capacity request, Oracle sometimes cannot supply the entire value demanded by the customer. In such cases a partial value is provided, thereby leaving behind a portion of unfulfilled values. This field sums that up.
- unit String
- The unit e.g SERVER in which the above values like totalAvailable, totalSupplied etc is measured.
- workload
Type StringBreakdown Blob - A raw json blob containing breakdown of totalAvailable, totalDemanded, totalSupplied, totalRejected, totalCancelled and totalUnfulfilled by workload types
- capacity
Requests stringBlob - A raw json blob containing all the capacity requests corresponding to the resource name
- compartment
Id string - The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes.
- period
Value string - The name of the month along with year for which this summary corresponds to.
- resource
Name string - The name of the resource for which we have aggregated the value.
- total
Available string - The quantity of the resource which is available at the end of the period of aggregationDetails model in consideration.
- total
Cancelled string - The quantity of the resource which is cancelled by the customer. Once the capacity request was submitted, the customer can still cancel it. This field sums up those values.
- total
Demanded string - The quantity of the resource which is demanded by customers via capacity requests against the resource name at the end of the time period in consideration for overview.
- total
Rejected string - The quantity of the resource which is rejected by Oracle.
- total
Supplied string - The quantity of the resource which is supplied by Oracle to the customer against the resource name at the end of the time period in consideration.
- total
Unfulfilled string - The quantity of the resource which Oracle was unable to supply. For a given capacity request, Oracle sometimes cannot supply the entire value demanded by the customer. In such cases a partial value is provided, thereby leaving behind a portion of unfulfilled values. This field sums that up.
- unit string
- The unit e.g SERVER in which the above values like totalAvailable, totalSupplied etc is measured.
- workload
Type stringBreakdown Blob - A raw json blob containing breakdown of totalAvailable, totalDemanded, totalSupplied, totalRejected, totalCancelled and totalUnfulfilled by workload types
- capacity_
requests_ strblob - A raw json blob containing all the capacity requests corresponding to the resource name
- compartment_
id str - The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes.
- period_
value str - The name of the month along with year for which this summary corresponds to.
- resource_
name str - The name of the resource for which we have aggregated the value.
- total_
available str - The quantity of the resource which is available at the end of the period of aggregationDetails model in consideration.
- total_
cancelled str - The quantity of the resource which is cancelled by the customer. Once the capacity request was submitted, the customer can still cancel it. This field sums up those values.
- total_
demanded str - The quantity of the resource which is demanded by customers via capacity requests against the resource name at the end of the time period in consideration for overview.
- total_
rejected str - The quantity of the resource which is rejected by Oracle.
- total_
supplied str - The quantity of the resource which is supplied by Oracle to the customer against the resource name at the end of the time period in consideration.
- total_
unfulfilled str - The quantity of the resource which Oracle was unable to supply. For a given capacity request, Oracle sometimes cannot supply the entire value demanded by the customer. In such cases a partial value is provided, thereby leaving behind a portion of unfulfilled values. This field sums that up.
- unit str
- The unit e.g SERVER in which the above values like totalAvailable, totalSupplied etc is measured.
- workload_
type_ strbreakdown_ blob - A raw json blob containing breakdown of totalAvailable, totalDemanded, totalSupplied, totalRejected, totalCancelled and totalUnfulfilled by workload types
- capacity
Requests StringBlob - A raw json blob containing all the capacity requests corresponding to the resource name
- compartment
Id String - The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes.
- period
Value String - The name of the month along with year for which this summary corresponds to.
- resource
Name String - The name of the resource for which we have aggregated the value.
- total
Available String - The quantity of the resource which is available at the end of the period of aggregationDetails model in consideration.
- total
Cancelled String - The quantity of the resource which is cancelled by the customer. Once the capacity request was submitted, the customer can still cancel it. This field sums up those values.
- total
Demanded String - The quantity of the resource which is demanded by customers via capacity requests against the resource name at the end of the time period in consideration for overview.
- total
Rejected String - The quantity of the resource which is rejected by Oracle.
- total
Supplied String - The quantity of the resource which is supplied by Oracle to the customer against the resource name at the end of the time period in consideration.
- total
Unfulfilled String - The quantity of the resource which Oracle was unable to supply. For a given capacity request, Oracle sometimes cannot supply the entire value demanded by the customer. In such cases a partial value is provided, thereby leaving behind a portion of unfulfilled values. This field sums that up.
- unit String
- The unit e.g SERVER in which the above values like totalAvailable, totalSupplied etc is measured.
- workload
Type StringBreakdown Blob - A raw json blob containing breakdown of totalAvailable, totalDemanded, totalSupplied, totalRejected, totalCancelled and totalUnfulfilled by workload types
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.