1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DemandSignal
  5. getOccDemandSignal
Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi

oci.DemandSignal.getOccDemandSignal

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi

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

Gets information about a OccDemandSignal.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testOccDemandSignal = oci.DemandSignal.getOccDemandSignal({
    occDemandSignalId: testOccDemandSignalOciDemandSignalOccDemandSignal.id,
});
Copy
import pulumi
import pulumi_oci as oci

test_occ_demand_signal = oci.DemandSignal.get_occ_demand_signal(occ_demand_signal_id=test_occ_demand_signal_oci_demand_signal_occ_demand_signal["id"])
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/demandsignal"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := demandsignal.GetOccDemandSignal(ctx, &demandsignal.GetOccDemandSignalArgs{
			OccDemandSignalId: testOccDemandSignalOciDemandSignalOccDemandSignal.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testOccDemandSignal = Oci.DemandSignal.GetOccDemandSignal.Invoke(new()
    {
        OccDemandSignalId = testOccDemandSignalOciDemandSignalOccDemandSignal.Id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DemandSignal.DemandSignalFunctions;
import com.pulumi.oci.DemandSignal.inputs.GetOccDemandSignalArgs;
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 testOccDemandSignal = DemandSignalFunctions.getOccDemandSignal(GetOccDemandSignalArgs.builder()
            .occDemandSignalId(testOccDemandSignalOciDemandSignalOccDemandSignal.id())
            .build());

    }
}
Copy
variables:
  testOccDemandSignal:
    fn::invoke:
      function: oci:DemandSignal:getOccDemandSignal
      arguments:
        occDemandSignalId: ${testOccDemandSignalOciDemandSignalOccDemandSignal.id}
Copy

Using getOccDemandSignal

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 getOccDemandSignal(args: GetOccDemandSignalArgs, opts?: InvokeOptions): Promise<GetOccDemandSignalResult>
function getOccDemandSignalOutput(args: GetOccDemandSignalOutputArgs, opts?: InvokeOptions): Output<GetOccDemandSignalResult>
Copy
def get_occ_demand_signal(occ_demand_signal_id: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetOccDemandSignalResult
def get_occ_demand_signal_output(occ_demand_signal_id: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetOccDemandSignalResult]
Copy
func GetOccDemandSignal(ctx *Context, args *GetOccDemandSignalArgs, opts ...InvokeOption) (*GetOccDemandSignalResult, error)
func GetOccDemandSignalOutput(ctx *Context, args *GetOccDemandSignalOutputArgs, opts ...InvokeOption) GetOccDemandSignalResultOutput
Copy

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

public static class GetOccDemandSignal 
{
    public static Task<GetOccDemandSignalResult> InvokeAsync(GetOccDemandSignalArgs args, InvokeOptions? opts = null)
    public static Output<GetOccDemandSignalResult> Invoke(GetOccDemandSignalInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetOccDemandSignalResult> getOccDemandSignal(GetOccDemandSignalArgs args, InvokeOptions options)
public static Output<GetOccDemandSignalResult> getOccDemandSignal(GetOccDemandSignalArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:DemandSignal/getOccDemandSignal:getOccDemandSignal
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

OccDemandSignalId This property is required. string
The OCID of the OccDemandSignal.
OccDemandSignalId This property is required. string
The OCID of the OccDemandSignal.
occDemandSignalId This property is required. String
The OCID of the OccDemandSignal.
occDemandSignalId This property is required. string
The OCID of the OccDemandSignal.
occ_demand_signal_id This property is required. str
The OCID of the OccDemandSignal.
occDemandSignalId This property is required. String
The OCID of the OccDemandSignal.

getOccDemandSignal Result

The following output properties are available:

CompartmentId string
The OCID of the compartment.
DefinedTags Dictionary<string, string>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
DisplayName string
A user-friendly name. Does not have to be unique, and it's changeable.
FreeformTags Dictionary<string, string>
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
Id string
The OCID of the OccDemandSignal.
IsActive bool
Indicator of whether to share the data with Oracle.
LifecycleDetails string
A message that describes the current state of the OccDemandSignal in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
OccDemandSignalId string
OccDemandSignals List<GetOccDemandSignalOccDemandSignal>
The OccDemandSignal data.
PatchOperations List<GetOccDemandSignalPatchOperation>
State string
The current state of the OccDemandSignal.
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 date and time the OccDemandSignal was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
TimeUpdated string
The date and time the OccDemandSignal was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
CompartmentId string
The OCID of the compartment.
DefinedTags map[string]string
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
DisplayName string
A user-friendly name. Does not have to be unique, and it's changeable.
FreeformTags map[string]string
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
Id string
The OCID of the OccDemandSignal.
IsActive bool
Indicator of whether to share the data with Oracle.
LifecycleDetails string
A message that describes the current state of the OccDemandSignal in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
OccDemandSignalId string
OccDemandSignals []GetOccDemandSignalOccDemandSignal
The OccDemandSignal data.
PatchOperations []GetOccDemandSignalPatchOperation
State string
The current state of the OccDemandSignal.
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 date and time the OccDemandSignal was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
TimeUpdated string
The date and time the OccDemandSignal was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
compartmentId String
The OCID of the compartment.
definedTags Map<String,String>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
displayName String
A user-friendly name. Does not have to be unique, and it's changeable.
freeformTags Map<String,String>
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
id String
The OCID of the OccDemandSignal.
isActive Boolean
Indicator of whether to share the data with Oracle.
lifecycleDetails String
A message that describes the current state of the OccDemandSignal in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
occDemandSignalId String
occDemandSignals List<GetOccOcc>
The OccDemandSignal data.
patchOperations List<GetOccPatchOperation>
state String
The current state of the OccDemandSignal.
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 date and time the OccDemandSignal was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
timeUpdated String
The date and time the OccDemandSignal was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
compartmentId string
The OCID of the compartment.
definedTags {[key: string]: string}
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
displayName string
A user-friendly name. Does not have to be unique, and it's changeable.
freeformTags {[key: string]: string}
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
id string
The OCID of the OccDemandSignal.
isActive boolean
Indicator of whether to share the data with Oracle.
lifecycleDetails string
A message that describes the current state of the OccDemandSignal in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
occDemandSignalId string
occDemandSignals GetOccDemandSignalOccDemandSignal[]
The OccDemandSignal data.
patchOperations GetOccDemandSignalPatchOperation[]
state string
The current state of the OccDemandSignal.
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 date and time the OccDemandSignal was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
timeUpdated string
The date and time the OccDemandSignal was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
compartment_id str
The OCID of the compartment.
defined_tags Mapping[str, str]
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
display_name str
A user-friendly name. Does not have to be unique, and it's changeable.
freeform_tags Mapping[str, str]
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
id str
The OCID of the OccDemandSignal.
is_active bool
Indicator of whether to share the data with Oracle.
lifecycle_details str
A message that describes the current state of the OccDemandSignal in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
occ_demand_signal_id str
occ_demand_signals Sequence[demandsignal.GetOccDemandSignalOccDemandSignal]
The OccDemandSignal data.
patch_operations Sequence[demandsignal.GetOccDemandSignalPatchOperation]
state str
The current state of the OccDemandSignal.
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 date and time the OccDemandSignal was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
time_updated str
The date and time the OccDemandSignal was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
compartmentId String
The OCID of the compartment.
definedTags Map<String>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
displayName String
A user-friendly name. Does not have to be unique, and it's changeable.
freeformTags Map<String>
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
id String
The OCID of the OccDemandSignal.
isActive Boolean
Indicator of whether to share the data with Oracle.
lifecycleDetails String
A message that describes the current state of the OccDemandSignal in more detail. For example, can be used to provide actionable information for a resource in the Failed state.
occDemandSignalId String
occDemandSignals List<Property Map>
The OccDemandSignal data.
patchOperations List<Property Map>
state String
The current state of the OccDemandSignal.
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 date and time the OccDemandSignal was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
timeUpdated String
The date and time the OccDemandSignal was updated, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z

Supporting Types

GetOccDemandSignalOccDemandSignal

ResourceType This property is required. string
The name of the resource for the data.
Units This property is required. string
The units of the data.
Values This property is required. List<GetOccDemandSignalOccDemandSignalValue>
The values of forecast.
ResourceType This property is required. string
The name of the resource for the data.
Units This property is required. string
The units of the data.
Values This property is required. []GetOccDemandSignalOccDemandSignalValue
The values of forecast.
resourceType This property is required. String
The name of the resource for the data.
units This property is required. String
The units of the data.
values This property is required. List<GetOccOccValue>
The values of forecast.
resourceType This property is required. string
The name of the resource for the data.
units This property is required. string
The units of the data.
values This property is required. GetOccDemandSignalOccDemandSignalValue[]
The values of forecast.
resource_type This property is required. str
The name of the resource for the data.
units This property is required. str
The units of the data.
values This property is required. Sequence[demandsignal.GetOccDemandSignalOccDemandSignalValue]
The values of forecast.
resourceType This property is required. String
The name of the resource for the data.
units This property is required. String
The units of the data.
values This property is required. List<Property Map>
The values of forecast.

GetOccDemandSignalOccDemandSignalValue

Comments This property is required. string
Space provided for users to make comments regarding the value.
TimeExpected This property is required. string
The date of the Demand Signal Value.
Value This property is required. double
The Demand Signal Value.
Comments This property is required. string
Space provided for users to make comments regarding the value.
TimeExpected This property is required. string
The date of the Demand Signal Value.
Value This property is required. float64
The Demand Signal Value.
comments This property is required. String
Space provided for users to make comments regarding the value.
timeExpected This property is required. String
The date of the Demand Signal Value.
value This property is required. Double
The Demand Signal Value.
comments This property is required. string
Space provided for users to make comments regarding the value.
timeExpected This property is required. string
The date of the Demand Signal Value.
value This property is required. number
The Demand Signal Value.
comments This property is required. str
Space provided for users to make comments regarding the value.
time_expected This property is required. str
The date of the Demand Signal Value.
value This property is required. float
The Demand Signal Value.
comments This property is required. String
Space provided for users to make comments regarding the value.
timeExpected This property is required. String
The date of the Demand Signal Value.
value This property is required. Number
The Demand Signal Value.

GetOccDemandSignalPatchOperation

From This property is required. string
Operation This property is required. string
Position This property is required. string
SelectedItem This property is required. string
Selection This property is required. string
Value This property is required. Dictionary<string, string>
The Demand Signal Value.
From This property is required. string
Operation This property is required. string
Position This property is required. string
SelectedItem This property is required. string
Selection This property is required. string
Value This property is required. map[string]string
The Demand Signal Value.
from This property is required. String
operation This property is required. String
position This property is required. String
selectedItem This property is required. String
selection This property is required. String
value This property is required. Map<String,String>
The Demand Signal Value.
from This property is required. string
operation This property is required. string
position This property is required. string
selectedItem This property is required. string
selection This property is required. string
value This property is required. {[key: string]: string}
The Demand Signal Value.
from_ This property is required. str
operation This property is required. str
position This property is required. str
selected_item This property is required. str
selection This property is required. str
value This property is required. Mapping[str, str]
The Demand Signal Value.
from This property is required. String
operation This property is required. String
position This property is required. String
selectedItem This property is required. String
selection This property is required. String
value This property is required. Map<String>
The Demand Signal Value.

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.
Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi