1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. CapacityManagement
  5. getInternalOccmDemandSignals
Oracle Cloud Infrastructure v3.3.0 published on Thursday, Jul 17, 2025 by Pulumi

oci.CapacityManagement.getInternalOccmDemandSignals

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v3.3.0 published on Thursday, Jul 17, 2025 by Pulumi

    This data source provides the list of Internal Occm Demand Signals in Oracle Cloud Infrastructure Capacity Management service.

    This is an internal GET call is used to list all demand signals within the compartment passed as a query parameter.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testInternalOccmDemandSignals = oci.CapacityManagement.getInternalOccmDemandSignals({
        compartmentId: compartmentId,
        occCustomerGroupId: testOccCustomerGroup.id,
        displayName: internalOccmDemandSignalDisplayName,
        id: internalOccmDemandSignalId,
        lifecycleDetails: internalOccmDemandSignalLifecycleDetails,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_internal_occm_demand_signals = oci.CapacityManagement.get_internal_occm_demand_signals(compartment_id=compartment_id,
        occ_customer_group_id=test_occ_customer_group["id"],
        display_name=internal_occm_demand_signal_display_name,
        id=internal_occm_demand_signal_id,
        lifecycle_details=internal_occm_demand_signal_lifecycle_details)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/capacitymanagement"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := capacitymanagement.GetInternalOccmDemandSignals(ctx, &capacitymanagement.GetInternalOccmDemandSignalsArgs{
    			CompartmentId:      compartmentId,
    			OccCustomerGroupId: testOccCustomerGroup.Id,
    			DisplayName:        pulumi.StringRef(internalOccmDemandSignalDisplayName),
    			Id:                 pulumi.StringRef(internalOccmDemandSignalId),
    			LifecycleDetails:   pulumi.StringRef(internalOccmDemandSignalLifecycleDetails),
    		}, 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 testInternalOccmDemandSignals = Oci.CapacityManagement.GetInternalOccmDemandSignals.Invoke(new()
        {
            CompartmentId = compartmentId,
            OccCustomerGroupId = testOccCustomerGroup.Id,
            DisplayName = internalOccmDemandSignalDisplayName,
            Id = internalOccmDemandSignalId,
            LifecycleDetails = internalOccmDemandSignalLifecycleDetails,
        });
    
    });
    
    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.GetInternalOccmDemandSignalsArgs;
    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 testInternalOccmDemandSignals = CapacityManagementFunctions.getInternalOccmDemandSignals(GetInternalOccmDemandSignalsArgs.builder()
                .compartmentId(compartmentId)
                .occCustomerGroupId(testOccCustomerGroup.id())
                .displayName(internalOccmDemandSignalDisplayName)
                .id(internalOccmDemandSignalId)
                .lifecycleDetails(internalOccmDemandSignalLifecycleDetails)
                .build());
    
        }
    }
    
    variables:
      testInternalOccmDemandSignals:
        fn::invoke:
          function: oci:CapacityManagement:getInternalOccmDemandSignals
          arguments:
            compartmentId: ${compartmentId}
            occCustomerGroupId: ${testOccCustomerGroup.id}
            displayName: ${internalOccmDemandSignalDisplayName}
            id: ${internalOccmDemandSignalId}
            lifecycleDetails: ${internalOccmDemandSignalLifecycleDetails}
    

    Using getInternalOccmDemandSignals

    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 getInternalOccmDemandSignals(args: GetInternalOccmDemandSignalsArgs, opts?: InvokeOptions): Promise<GetInternalOccmDemandSignalsResult>
    function getInternalOccmDemandSignalsOutput(args: GetInternalOccmDemandSignalsOutputArgs, opts?: InvokeOptions): Output<GetInternalOccmDemandSignalsResult>
    def get_internal_occm_demand_signals(compartment_id: Optional[str] = None,
                                         display_name: Optional[str] = None,
                                         filters: Optional[Sequence[GetInternalOccmDemandSignalsFilter]] = None,
                                         id: Optional[str] = None,
                                         lifecycle_details: Optional[str] = None,
                                         occ_customer_group_id: Optional[str] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetInternalOccmDemandSignalsResult
    def get_internal_occm_demand_signals_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                         display_name: Optional[pulumi.Input[str]] = None,
                                         filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetInternalOccmDemandSignalsFilterArgs]]]] = None,
                                         id: Optional[pulumi.Input[str]] = None,
                                         lifecycle_details: Optional[pulumi.Input[str]] = None,
                                         occ_customer_group_id: Optional[pulumi.Input[str]] = None,
                                         opts: Optional[InvokeOptions] = None) -> Output[GetInternalOccmDemandSignalsResult]
    func GetInternalOccmDemandSignals(ctx *Context, args *GetInternalOccmDemandSignalsArgs, opts ...InvokeOption) (*GetInternalOccmDemandSignalsResult, error)
    func GetInternalOccmDemandSignalsOutput(ctx *Context, args *GetInternalOccmDemandSignalsOutputArgs, opts ...InvokeOption) GetInternalOccmDemandSignalsResultOutput

    > Note: This function is named GetInternalOccmDemandSignals in the Go SDK.

    public static class GetInternalOccmDemandSignals 
    {
        public static Task<GetInternalOccmDemandSignalsResult> InvokeAsync(GetInternalOccmDemandSignalsArgs args, InvokeOptions? opts = null)
        public static Output<GetInternalOccmDemandSignalsResult> Invoke(GetInternalOccmDemandSignalsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetInternalOccmDemandSignalsResult> getInternalOccmDemandSignals(GetInternalOccmDemandSignalsArgs args, InvokeOptions options)
    public static Output<GetInternalOccmDemandSignalsResult> getInternalOccmDemandSignals(GetInternalOccmDemandSignalsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:CapacityManagement/getInternalOccmDemandSignals:getInternalOccmDemandSignals
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes.
    OccCustomerGroupId string
    The customer group ocid by which we would filter the list.
    DisplayName string
    A filter to return only the resources that match the entire display name. The match is not case sensitive.
    Filters List<GetInternalOccmDemandSignalsFilter>
    Id string
    A query parameter to filter the list of demand signals based on it's OCID.
    LifecycleDetails string
    A query parameter to filter the list of demand signals based on its state.
    CompartmentId string
    The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes.
    OccCustomerGroupId string
    The customer group ocid by which we would filter the list.
    DisplayName string
    A filter to return only the resources that match the entire display name. The match is not case sensitive.
    Filters []GetInternalOccmDemandSignalsFilter
    Id string
    A query parameter to filter the list of demand signals based on it's OCID.
    LifecycleDetails string
    A query parameter to filter the list of demand signals based on its state.
    compartmentId String
    The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes.
    occCustomerGroupId String
    The customer group ocid by which we would filter the list.
    displayName String
    A filter to return only the resources that match the entire display name. The match is not case sensitive.
    filters List<GetInternalOccmDemandSignalsFilter>
    id String
    A query parameter to filter the list of demand signals based on it's OCID.
    lifecycleDetails String
    A query parameter to filter the list of demand signals based on its state.
    compartmentId string
    The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes.
    occCustomerGroupId string
    The customer group ocid by which we would filter the list.
    displayName string
    A filter to return only the resources that match the entire display name. The match is not case sensitive.
    filters GetInternalOccmDemandSignalsFilter[]
    id string
    A query parameter to filter the list of demand signals based on it's OCID.
    lifecycleDetails string
    A query parameter to filter the list of demand signals based on its state.
    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.
    occ_customer_group_id str
    The customer group ocid by which we would filter the list.
    display_name str
    A filter to return only the resources that match the entire display name. The match is not case sensitive.
    filters Sequence[GetInternalOccmDemandSignalsFilter]
    id str
    A query parameter to filter the list of demand signals based on it's OCID.
    lifecycle_details str
    A query parameter to filter the list of demand signals based on its state.
    compartmentId String
    The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes.
    occCustomerGroupId String
    The customer group ocid by which we would filter the list.
    displayName String
    A filter to return only the resources that match the entire display name. The match is not case sensitive.
    filters List<Property Map>
    id String
    A query parameter to filter the list of demand signals based on it's OCID.
    lifecycleDetails String
    A query parameter to filter the list of demand signals based on its state.

    getInternalOccmDemandSignals Result

    The following output properties are available:

    CompartmentId string
    The OCID of the tenancy from which the request to create the demand signal was made.
    InternalOccmDemandSignalCollections List<GetInternalOccmDemandSignalsInternalOccmDemandSignalCollection>
    The list of internal_occm_demand_signal_collection.
    OccCustomerGroupId string
    The OCID of the customer group in which the demand signal is created.
    DisplayName string
    The display name of the demand signal.
    Filters List<GetInternalOccmDemandSignalsFilter>
    Id string
    The OCID of the demand signal.
    LifecycleDetails string
    The different states associated with a demand signal.
    CompartmentId string
    The OCID of the tenancy from which the request to create the demand signal was made.
    InternalOccmDemandSignalCollections []GetInternalOccmDemandSignalsInternalOccmDemandSignalCollection
    The list of internal_occm_demand_signal_collection.
    OccCustomerGroupId string
    The OCID of the customer group in which the demand signal is created.
    DisplayName string
    The display name of the demand signal.
    Filters []GetInternalOccmDemandSignalsFilter
    Id string
    The OCID of the demand signal.
    LifecycleDetails string
    The different states associated with a demand signal.
    compartmentId String
    The OCID of the tenancy from which the request to create the demand signal was made.
    internalOccmDemandSignalCollections List<GetInternalOccmDemandSignalsInternalOccmDemandSignalCollection>
    The list of internal_occm_demand_signal_collection.
    occCustomerGroupId String
    The OCID of the customer group in which the demand signal is created.
    displayName String
    The display name of the demand signal.
    filters List<GetInternalOccmDemandSignalsFilter>
    id String
    The OCID of the demand signal.
    lifecycleDetails String
    The different states associated with a demand signal.
    compartmentId string
    The OCID of the tenancy from which the request to create the demand signal was made.
    internalOccmDemandSignalCollections GetInternalOccmDemandSignalsInternalOccmDemandSignalCollection[]
    The list of internal_occm_demand_signal_collection.
    occCustomerGroupId string
    The OCID of the customer group in which the demand signal is created.
    displayName string
    The display name of the demand signal.
    filters GetInternalOccmDemandSignalsFilter[]
    id string
    The OCID of the demand signal.
    lifecycleDetails string
    The different states associated with a demand signal.
    compartment_id str
    The OCID of the tenancy from which the request to create the demand signal was made.
    internal_occm_demand_signal_collections Sequence[GetInternalOccmDemandSignalsInternalOccmDemandSignalCollection]
    The list of internal_occm_demand_signal_collection.
    occ_customer_group_id str
    The OCID of the customer group in which the demand signal is created.
    display_name str
    The display name of the demand signal.
    filters Sequence[GetInternalOccmDemandSignalsFilter]
    id str
    The OCID of the demand signal.
    lifecycle_details str
    The different states associated with a demand signal.
    compartmentId String
    The OCID of the tenancy from which the request to create the demand signal was made.
    internalOccmDemandSignalCollections List<Property Map>
    The list of internal_occm_demand_signal_collection.
    occCustomerGroupId String
    The OCID of the customer group in which the demand signal is created.
    displayName String
    The display name of the demand signal.
    filters List<Property Map>
    id String
    The OCID of the demand signal.
    lifecycleDetails String
    The different states associated with a demand signal.

    Supporting Types

    GetInternalOccmDemandSignalsFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetInternalOccmDemandSignalsInternalOccmDemandSignalCollection

    GetInternalOccmDemandSignalsInternalOccmDemandSignalCollectionItem

    CompartmentId string
    The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes.
    DefinedTags Dictionary<string, string>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    Description string
    A short description about the demand signal.
    DisplayName string
    A filter to return only the resources that match the entire display name. The match is not case sensitive.
    FreeformTags Dictionary<string, string>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    Id string
    A query parameter to filter the list of demand signals based on it's OCID.
    LifecycleDetails string
    A query parameter to filter the list of demand signals based on its state.
    OccCustomerGroupId string
    The customer group ocid by which we would filter the list.
    OccmDemandSignalId string
    State string
    The current lifecycle state of the demand signal.
    SystemTags Dictionary<string, string>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time when the demand signal was created.
    TimeUpdated string
    The time when the demand signal was last updated.
    CompartmentId string
    The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes.
    DefinedTags map[string]string
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    Description string
    A short description about the demand signal.
    DisplayName string
    A filter to return only the resources that match the entire display name. The match is not case sensitive.
    FreeformTags map[string]string
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    Id string
    A query parameter to filter the list of demand signals based on it's OCID.
    LifecycleDetails string
    A query parameter to filter the list of demand signals based on its state.
    OccCustomerGroupId string
    The customer group ocid by which we would filter the list.
    OccmDemandSignalId string
    State string
    The current lifecycle state of the demand signal.
    SystemTags map[string]string
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time when the demand signal was created.
    TimeUpdated string
    The time when the demand signal was last updated.
    compartmentId String
    The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes.
    definedTags Map<String,String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description String
    A short description about the demand signal.
    displayName String
    A filter to return only the resources that match the entire display name. The match is not case sensitive.
    freeformTags Map<String,String>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id String
    A query parameter to filter the list of demand signals based on it's OCID.
    lifecycleDetails String
    A query parameter to filter the list of demand signals based on its state.
    occCustomerGroupId String
    The customer group ocid by which we would filter the list.
    occmDemandSignalId String
    state String
    The current lifecycle state of the demand signal.
    systemTags Map<String,String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time when the demand signal was created.
    timeUpdated String
    The time when the demand signal was last updated.
    compartmentId string
    The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes.
    definedTags {[key: string]: string}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description string
    A short description about the demand signal.
    displayName string
    A filter to return only the resources that match the entire display name. The match is not case sensitive.
    freeformTags {[key: string]: string}
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id string
    A query parameter to filter the list of demand signals based on it's OCID.
    lifecycleDetails string
    A query parameter to filter the list of demand signals based on its state.
    occCustomerGroupId string
    The customer group ocid by which we would filter the list.
    occmDemandSignalId string
    state string
    The current lifecycle state of the demand signal.
    systemTags {[key: string]: string}
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The time when the demand signal was created.
    timeUpdated string
    The time when the demand signal was last updated.
    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.
    defined_tags Mapping[str, str]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description str
    A short description about the demand signal.
    display_name str
    A filter to return only the resources that match the entire display name. The match is not case sensitive.
    freeform_tags Mapping[str, str]
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id str
    A query parameter to filter the list of demand signals based on it's OCID.
    lifecycle_details str
    A query parameter to filter the list of demand signals based on its state.
    occ_customer_group_id str
    The customer group ocid by which we would filter the list.
    occm_demand_signal_id str
    state str
    The current lifecycle state of the demand signal.
    system_tags Mapping[str, str]
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    The time when the demand signal was created.
    time_updated str
    The time when the demand signal was last updated.
    compartmentId String
    The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes.
    definedTags Map<String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description String
    A short description about the demand signal.
    displayName String
    A filter to return only the resources that match the entire display name. The match is not case sensitive.
    freeformTags Map<String>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    id String
    A query parameter to filter the list of demand signals based on it's OCID.
    lifecycleDetails String
    A query parameter to filter the list of demand signals based on its state.
    occCustomerGroupId String
    The customer group ocid by which we would filter the list.
    occmDemandSignalId String
    state String
    The current lifecycle state of the demand signal.
    systemTags Map<String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time when the demand signal was created.
    timeUpdated String
    The time when the demand signal was last updated.

    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 v3.3.0 published on Thursday, Jul 17, 2025 by Pulumi