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

oci.CapacityManagement.getOccmDemandSignal

Explore with Pulumi AI

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

    This data source provides details about a specific Occm Demand Signal resource in Oracle Cloud Infrastructure Capacity Management service.

    This is a GET API which gets the detailed information about a specific demand signal.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testOccmDemandSignal = oci.CapacityManagement.getOccmDemandSignal({
        occmDemandSignalId: testOccmDemandSignalOciCapacityManagementOccmDemandSignal.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_occm_demand_signal = oci.CapacityManagement.get_occm_demand_signal(occm_demand_signal_id=test_occm_demand_signal_oci_capacity_management_occm_demand_signal["id"])
    
    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.GetOccmDemandSignal(ctx, &capacitymanagement.GetOccmDemandSignalArgs{
    			OccmDemandSignalId: testOccmDemandSignalOciCapacityManagementOccmDemandSignal.Id,
    		}, 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 testOccmDemandSignal = Oci.CapacityManagement.GetOccmDemandSignal.Invoke(new()
        {
            OccmDemandSignalId = testOccmDemandSignalOciCapacityManagementOccmDemandSignal.Id,
        });
    
    });
    
    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.GetOccmDemandSignalArgs;
    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 testOccmDemandSignal = CapacityManagementFunctions.getOccmDemandSignal(GetOccmDemandSignalArgs.builder()
                .occmDemandSignalId(testOccmDemandSignalOciCapacityManagementOccmDemandSignal.id())
                .build());
    
        }
    }
    
    variables:
      testOccmDemandSignal:
        fn::invoke:
          function: oci:CapacityManagement:getOccmDemandSignal
          arguments:
            occmDemandSignalId: ${testOccmDemandSignalOciCapacityManagementOccmDemandSignal.id}
    

    Using getOccmDemandSignal

    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 getOccmDemandSignal(args: GetOccmDemandSignalArgs, opts?: InvokeOptions): Promise<GetOccmDemandSignalResult>
    function getOccmDemandSignalOutput(args: GetOccmDemandSignalOutputArgs, opts?: InvokeOptions): Output<GetOccmDemandSignalResult>
    def get_occm_demand_signal(occm_demand_signal_id: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetOccmDemandSignalResult
    def get_occm_demand_signal_output(occm_demand_signal_id: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetOccmDemandSignalResult]
    func LookupOccmDemandSignal(ctx *Context, args *LookupOccmDemandSignalArgs, opts ...InvokeOption) (*LookupOccmDemandSignalResult, error)
    func LookupOccmDemandSignalOutput(ctx *Context, args *LookupOccmDemandSignalOutputArgs, opts ...InvokeOption) LookupOccmDemandSignalResultOutput

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

    public static class GetOccmDemandSignal 
    {
        public static Task<GetOccmDemandSignalResult> InvokeAsync(GetOccmDemandSignalArgs args, InvokeOptions? opts = null)
        public static Output<GetOccmDemandSignalResult> Invoke(GetOccmDemandSignalInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetOccmDemandSignalResult> getOccmDemandSignal(GetOccmDemandSignalArgs args, InvokeOptions options)
    public static Output<GetOccmDemandSignalResult> getOccmDemandSignal(GetOccmDemandSignalArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:CapacityManagement/getOccmDemandSignal:getOccmDemandSignal
      arguments:
        # arguments dictionary

    The following arguments are supported:

    OccmDemandSignalId string
    The OCID of the demand signal.
    OccmDemandSignalId string
    The OCID of the demand signal.
    occmDemandSignalId String
    The OCID of the demand signal.
    occmDemandSignalId string
    The OCID of the demand signal.
    occm_demand_signal_id str
    The OCID of the demand signal.
    occmDemandSignalId String
    The OCID of the demand signal.

    getOccmDemandSignal 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.
    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
    The display name of the demand signal.
    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
    The OCID of the demand signal.
    LifecycleDetails string
    The different states associated with a demand signal.
    OccmDemandSignalId string
    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 tenancy from which the request to create the demand signal was made.
    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
    The display name of the demand signal.
    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
    The OCID of the demand signal.
    LifecycleDetails string
    The different states associated with a demand signal.
    OccmDemandSignalId string
    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 tenancy from which the request to create the demand signal was made.
    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
    The display name of the demand signal.
    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
    The OCID of the demand signal.
    lifecycleDetails String
    The different states associated with a demand signal.
    occmDemandSignalId String
    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 tenancy from which the request to create the demand signal was made.
    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
    The display name of the demand signal.
    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
    The OCID of the demand signal.
    lifecycleDetails string
    The different states associated with a demand signal.
    occmDemandSignalId string
    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 tenancy from which the request to create the demand signal was made.
    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
    The display name of the demand signal.
    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
    The OCID of the demand signal.
    lifecycle_details str
    The different states associated with a demand signal.
    occm_demand_signal_id str
    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 tenancy from which the request to create the demand signal was made.
    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
    The display name of the demand signal.
    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
    The OCID of the demand signal.
    lifecycleDetails String
    The different states associated with a demand signal.
    occmDemandSignalId String
    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