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

oci.CapacityManagement.getOccmDemandSignals

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 Occm Demand Signals in Oracle Cloud Infrastructure Capacity Management service.

    This 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 testOccmDemandSignals = oci.CapacityManagement.getOccmDemandSignals({
        compartmentId: compartmentId,
        displayName: occmDemandSignalDisplayName,
        id: occmDemandSignalId,
        lifecycleDetails: occmDemandSignalLifecycleDetails,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_occm_demand_signals = oci.CapacityManagement.get_occm_demand_signals(compartment_id=compartment_id,
        display_name=occm_demand_signal_display_name,
        id=occm_demand_signal_id,
        lifecycle_details=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.GetOccmDemandSignals(ctx, &capacitymanagement.GetOccmDemandSignalsArgs{
    			CompartmentId:    compartmentId,
    			DisplayName:      pulumi.StringRef(occmDemandSignalDisplayName),
    			Id:               pulumi.StringRef(occmDemandSignalId),
    			LifecycleDetails: pulumi.StringRef(occmDemandSignalLifecycleDetails),
    		}, 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 testOccmDemandSignals = Oci.CapacityManagement.GetOccmDemandSignals.Invoke(new()
        {
            CompartmentId = compartmentId,
            DisplayName = occmDemandSignalDisplayName,
            Id = occmDemandSignalId,
            LifecycleDetails = occmDemandSignalLifecycleDetails,
        });
    
    });
    
    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.GetOccmDemandSignalsArgs;
    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 testOccmDemandSignals = CapacityManagementFunctions.getOccmDemandSignals(GetOccmDemandSignalsArgs.builder()
                .compartmentId(compartmentId)
                .displayName(occmDemandSignalDisplayName)
                .id(occmDemandSignalId)
                .lifecycleDetails(occmDemandSignalLifecycleDetails)
                .build());
    
        }
    }
    
    variables:
      testOccmDemandSignals:
        fn::invoke:
          function: oci:CapacityManagement:getOccmDemandSignals
          arguments:
            compartmentId: ${compartmentId}
            displayName: ${occmDemandSignalDisplayName}
            id: ${occmDemandSignalId}
            lifecycleDetails: ${occmDemandSignalLifecycleDetails}
    

    Using getOccmDemandSignals

    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 getOccmDemandSignals(args: GetOccmDemandSignalsArgs, opts?: InvokeOptions): Promise<GetOccmDemandSignalsResult>
    function getOccmDemandSignalsOutput(args: GetOccmDemandSignalsOutputArgs, opts?: InvokeOptions): Output<GetOccmDemandSignalsResult>
    def get_occm_demand_signals(compartment_id: Optional[str] = None,
                                display_name: Optional[str] = None,
                                filters: Optional[Sequence[GetOccmDemandSignalsFilter]] = None,
                                id: Optional[str] = None,
                                lifecycle_details: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetOccmDemandSignalsResult
    def get_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[GetOccmDemandSignalsFilterArgs]]]] = None,
                                id: Optional[pulumi.Input[str]] = None,
                                lifecycle_details: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetOccmDemandSignalsResult]
    func GetOccmDemandSignals(ctx *Context, args *GetOccmDemandSignalsArgs, opts ...InvokeOption) (*GetOccmDemandSignalsResult, error)
    func GetOccmDemandSignalsOutput(ctx *Context, args *GetOccmDemandSignalsOutputArgs, opts ...InvokeOption) GetOccmDemandSignalsResultOutput

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

    public static class GetOccmDemandSignals 
    {
        public static Task<GetOccmDemandSignalsResult> InvokeAsync(GetOccmDemandSignalsArgs args, InvokeOptions? opts = null)
        public static Output<GetOccmDemandSignalsResult> Invoke(GetOccmDemandSignalsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetOccmDemandSignalsResult> getOccmDemandSignals(GetOccmDemandSignalsArgs args, InvokeOptions options)
    public static Output<GetOccmDemandSignalsResult> getOccmDemandSignals(GetOccmDemandSignalsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:CapacityManagement/getOccmDemandSignals:getOccmDemandSignals
      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.
    DisplayName string
    A filter to return only the resources that match the entire display name. The match is not case sensitive.
    Filters List<GetOccmDemandSignalsFilter>
    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.
    DisplayName string
    A filter to return only the resources that match the entire display name. The match is not case sensitive.
    Filters []GetOccmDemandSignalsFilter
    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.
    displayName String
    A filter to return only the resources that match the entire display name. The match is not case sensitive.
    filters List<GetOccmDemandSignalsFilter>
    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.
    displayName string
    A filter to return only the resources that match the entire display name. The match is not case sensitive.
    filters GetOccmDemandSignalsFilter[]
    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.
    display_name str
    A filter to return only the resources that match the entire display name. The match is not case sensitive.
    filters Sequence[GetOccmDemandSignalsFilter]
    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.
    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.

    getOccmDemandSignals 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.
    OccmDemandSignalCollections List<GetOccmDemandSignalsOccmDemandSignalCollection>
    The list of occm_demand_signal_collection.
    DisplayName string
    The display name of the demand signal.
    Filters List<GetOccmDemandSignalsFilter>
    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.
    OccmDemandSignalCollections []GetOccmDemandSignalsOccmDemandSignalCollection
    The list of occm_demand_signal_collection.
    DisplayName string
    The display name of the demand signal.
    Filters []GetOccmDemandSignalsFilter
    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.
    occmDemandSignalCollections List<GetOccmDemandSignalsOccmDemandSignalCollection>
    The list of occm_demand_signal_collection.
    displayName String
    The display name of the demand signal.
    filters List<GetOccmDemandSignalsFilter>
    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.
    occmDemandSignalCollections GetOccmDemandSignalsOccmDemandSignalCollection[]
    The list of occm_demand_signal_collection.
    displayName string
    The display name of the demand signal.
    filters GetOccmDemandSignalsFilter[]
    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.
    occm_demand_signal_collections Sequence[GetOccmDemandSignalsOccmDemandSignalCollection]
    The list of occm_demand_signal_collection.
    display_name str
    The display name of the demand signal.
    filters Sequence[GetOccmDemandSignalsFilter]
    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.
    occmDemandSignalCollections List<Property Map>
    The list of occm_demand_signal_collection.
    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

    GetOccmDemandSignalsFilter

    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

    GetOccmDemandSignalsOccmDemandSignalCollection

    GetOccmDemandSignalsOccmDemandSignalCollectionItem

    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
    Meaningful text 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.
    State string
    The current lifecycle state of the resource.
    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
    Meaningful text 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.
    State string
    The current lifecycle state of the resource.
    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
    Meaningful text 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.
    state String
    The current lifecycle state of the resource.
    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
    Meaningful text 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.
    state string
    The current lifecycle state of the resource.
    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
    Meaningful text 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.
    state str
    The current lifecycle state of the resource.
    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
    Meaningful text 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.
    state String
    The current lifecycle state of the resource.
    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