Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.DemandSignal.getOccDemandSignal
Explore with Pulumi AI
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,
});
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"])
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
})
}
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,
});
});
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());
}
}
variables:
testOccDemandSignal:
fn::invoke:
Function: oci:DemandSignal:getOccDemandSignal
Arguments:
occDemandSignalId: ${testOccDemandSignalOciDemandSignalOccDemandSignal.id}
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>
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]
func GetOccDemandSignal(ctx *Context, args *GetOccDemandSignalArgs, opts ...InvokeOption) (*GetOccDemandSignalResult, error)
func GetOccDemandSignalOutput(ctx *Context, args *GetOccDemandSignalOutputArgs, opts ...InvokeOption) GetOccDemandSignalResultOutput
> 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)
}
public static CompletableFuture<GetOccDemandSignalResult> getOccDemandSignal(GetOccDemandSignalArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:DemandSignal/getOccDemandSignal:getOccDemandSignal
arguments:
# arguments dictionary
The following arguments are supported:
- Occ
Demand stringSignal Id - The OCID of the OccDemandSignal.
- Occ
Demand stringSignal Id - The OCID of the OccDemandSignal.
- occ
Demand StringSignal Id - The OCID of the OccDemandSignal.
- occ
Demand stringSignal Id - The OCID of the OccDemandSignal.
- occ_
demand_ strsignal_ id - The OCID of the OccDemandSignal.
- occ
Demand StringSignal Id - The OCID of the OccDemandSignal.
getOccDemandSignal Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment.
- 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"}
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable.
- 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.
- Is
Active bool - Indicator of whether to share the data with Oracle.
- Lifecycle
Details 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.
- Occ
Demand stringSignal Id - Occ
Demand List<GetSignals Occ Demand Signal Occ Demand Signal> - The OccDemandSignal data.
- Patch
Operations List<GetOcc Demand Signal Patch Operation> - State string
- The current state of the OccDemandSignal.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The date and time the OccDemandSignal was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- Time
Updated 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 string - The OCID of the compartment.
- 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"}
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable.
- 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.
- Is
Active bool - Indicator of whether to share the data with Oracle.
- Lifecycle
Details 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.
- Occ
Demand stringSignal Id - Occ
Demand []GetSignals Occ Demand Signal Occ Demand Signal - The OccDemandSignal data.
- Patch
Operations []GetOcc Demand Signal Patch Operation - State string
- The current state of the OccDemandSignal.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The date and time the OccDemandSignal was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- Time
Updated 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 String - The OCID of the compartment.
- 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"}
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable.
- 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.
- is
Active Boolean - Indicator of whether to share the data with Oracle.
- lifecycle
Details 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.
- occ
Demand StringSignal Id - occ
Demand List<GetSignals Occ Occ> - The OccDemandSignal data.
- patch
Operations List<GetOcc Patch Operation> - state String
- The current state of the OccDemandSignal.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The date and time the OccDemandSignal was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- time
Updated 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 string - The OCID of the compartment.
- {[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"}
- display
Name string - A user-friendly name. Does not have to be unique, and it's changeable.
- {[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.
- is
Active boolean - Indicator of whether to share the data with Oracle.
- lifecycle
Details 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.
- occ
Demand stringSignal Id - occ
Demand GetSignals Occ Demand Signal Occ Demand Signal[] - The OccDemandSignal data.
- patch
Operations GetOcc Demand Signal Patch Operation[] - state string
- The current state of the OccDemandSignal.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string - The date and time the OccDemandSignal was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- time
Updated 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.
- 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.
- 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_ strsignal_ id - occ_
demand_ Sequence[demandsignal.signals Get Occ Demand Signal Occ Demand Signal] - The OccDemandSignal data.
- patch_
operations Sequence[demandsignal.Get Occ Demand Signal Patch Operation] - state str
- The current state of the OccDemandSignal.
- 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
- compartment
Id String - The OCID of the compartment.
- 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"}
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable.
- 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.
- is
Active Boolean - Indicator of whether to share the data with Oracle.
- lifecycle
Details 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.
- occ
Demand StringSignal Id - occ
Demand List<Property Map>Signals - The OccDemandSignal data.
- patch
Operations List<Property Map> - state String
- The current state of the OccDemandSignal.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The date and time the OccDemandSignal was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- time
Updated 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
- Resource
Type string - The name of the resource for the data.
- Units string
- The units of the data.
- Values
List<Get
Occ Demand Signal Occ Demand Signal Value> - The values of forecast.
- Resource
Type string - The name of the resource for the data.
- Units string
- The units of the data.
- Values
[]Get
Occ Demand Signal Occ Demand Signal Value - The values of forecast.
- resource
Type String - The name of the resource for the data.
- units String
- The units of the data.
- values
List<Get
Occ Occ Value> - The values of forecast.
- resource
Type string - The name of the resource for the data.
- units string
- The units of the data.
- values
Get
Occ Demand Signal Occ Demand Signal Value[] - The values of forecast.
- resource_
type str - The name of the resource for the data.
- units str
- The units of the data.
- values
Sequence[demandsignal.
Get Occ Demand Signal Occ Demand Signal Value] - The values of forecast.
- resource
Type String - The name of the resource for the data.
- units String
- The units of the data.
- values List<Property Map>
- The values of forecast.
GetOccDemandSignalOccDemandSignalValue
- Comments string
- Space provided for users to make comments regarding the value.
- Time
Expected string - The date of the Demand Signal Value.
- Value double
- The Demand Signal Value.
- Comments string
- Space provided for users to make comments regarding the value.
- Time
Expected string - The date of the Demand Signal Value.
- Value float64
- The Demand Signal Value.
- comments String
- Space provided for users to make comments regarding the value.
- time
Expected String - The date of the Demand Signal Value.
- value Double
- The Demand Signal Value.
- comments string
- Space provided for users to make comments regarding the value.
- time
Expected string - The date of the Demand Signal Value.
- value number
- The Demand Signal Value.
- comments str
- Space provided for users to make comments regarding the value.
- time_
expected str - The date of the Demand Signal Value.
- value float
- The Demand Signal Value.
- comments String
- Space provided for users to make comments regarding the value.
- time
Expected String - The date of the Demand Signal Value.
- value Number
- The Demand Signal Value.
GetOccDemandSignalPatchOperation
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.