Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.DemandSignal.getOccDemandSignals
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
This data source provides the list of Occ Demand Signals in Oracle Cloud Infrastructure Demand Signal service.
Gets a list of OccDemandSignals.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testOccDemandSignals = oci.DemandSignal.getOccDemandSignals({
compartmentId: compartmentId,
displayName: occDemandSignalDisplayName,
id: occDemandSignalId,
state: occDemandSignalState,
});
import pulumi
import pulumi_oci as oci
test_occ_demand_signals = oci.DemandSignal.get_occ_demand_signals(compartment_id=compartment_id,
display_name=occ_demand_signal_display_name,
id=occ_demand_signal_id,
state=occ_demand_signal_state)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/DemandSignal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := DemandSignal.GetOccDemandSignals(ctx, &demandsignal.GetOccDemandSignalsArgs{
CompartmentId: pulumi.StringRef(compartmentId),
DisplayName: pulumi.StringRef(occDemandSignalDisplayName),
Id: pulumi.StringRef(occDemandSignalId),
State: pulumi.StringRef(occDemandSignalState),
}, 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 testOccDemandSignals = Oci.DemandSignal.GetOccDemandSignals.Invoke(new()
{
CompartmentId = compartmentId,
DisplayName = occDemandSignalDisplayName,
Id = occDemandSignalId,
State = occDemandSignalState,
});
});
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.GetOccDemandSignalsArgs;
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 testOccDemandSignals = DemandSignalFunctions.getOccDemandSignals(GetOccDemandSignalsArgs.builder()
.compartmentId(compartmentId)
.displayName(occDemandSignalDisplayName)
.id(occDemandSignalId)
.state(occDemandSignalState)
.build());
}
}
variables:
testOccDemandSignals:
fn::invoke:
Function: oci:DemandSignal:getOccDemandSignals
Arguments:
compartmentId: ${compartmentId}
displayName: ${occDemandSignalDisplayName}
id: ${occDemandSignalId}
state: ${occDemandSignalState}
Using getOccDemandSignals
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 getOccDemandSignals(args: GetOccDemandSignalsArgs, opts?: InvokeOptions): Promise<GetOccDemandSignalsResult>
function getOccDemandSignalsOutput(args: GetOccDemandSignalsOutputArgs, opts?: InvokeOptions): Output<GetOccDemandSignalsResult>
def get_occ_demand_signals(compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[_demandsignal.GetOccDemandSignalsFilter]] = None,
id: Optional[str] = None,
state: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetOccDemandSignalsResult
def get_occ_demand_signals_output(compartment_id: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_demandsignal.GetOccDemandSignalsFilterArgs]]]] = None,
id: Optional[pulumi.Input[str]] = None,
state: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetOccDemandSignalsResult]
func GetOccDemandSignals(ctx *Context, args *GetOccDemandSignalsArgs, opts ...InvokeOption) (*GetOccDemandSignalsResult, error)
func GetOccDemandSignalsOutput(ctx *Context, args *GetOccDemandSignalsOutputArgs, opts ...InvokeOption) GetOccDemandSignalsResultOutput
> Note: This function is named GetOccDemandSignals
in the Go SDK.
public static class GetOccDemandSignals
{
public static Task<GetOccDemandSignalsResult> InvokeAsync(GetOccDemandSignalsArgs args, InvokeOptions? opts = null)
public static Output<GetOccDemandSignalsResult> Invoke(GetOccDemandSignalsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetOccDemandSignalsResult> getOccDemandSignals(GetOccDemandSignalsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:DemandSignal/getOccDemandSignals:getOccDemandSignals
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Display
Name string - A filter to return only resources that match the given display name exactly.
- Filters
List<Get
Occ Demand Signals Filter> - Id string
- The OCID of the OccDemandSignal.
- State string
- A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Display
Name string - A filter to return only resources that match the given display name exactly.
- Filters
[]Get
Occ Demand Signals Filter - Id string
- The OCID of the OccDemandSignal.
- State string
- A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
- compartment
Id String - The OCID of the compartment in which to list resources.
- display
Name String - A filter to return only resources that match the given display name exactly.
- filters
List<Get
Occs Filter> - id String
- The OCID of the OccDemandSignal.
- state String
- A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
- compartment
Id string - The OCID of the compartment in which to list resources.
- display
Name string - A filter to return only resources that match the given display name exactly.
- filters
Get
Occ Demand Signals Filter[] - id string
- The OCID of the OccDemandSignal.
- state string
- A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
- compartment_
id str - The OCID of the compartment in which to list resources.
- display_
name str - A filter to return only resources that match the given display name exactly.
- filters
Sequence[demandsignal.
Get Occ Demand Signals Filter] - id str
- The OCID of the OccDemandSignal.
- state str
- A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
- compartment
Id String - The OCID of the compartment in which to list resources.
- display
Name String - A filter to return only resources that match the given display name exactly.
- filters List<Property Map>
- id String
- The OCID of the OccDemandSignal.
- state String
- A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
getOccDemandSignals Result
The following output properties are available:
- Occ
Demand List<GetSignal Collections Occ Demand Signals Occ Demand Signal Collection> - The list of occ_demand_signal_collection.
- Compartment
Id string - The OCID of the compartment.
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable.
- Filters
List<Get
Occ Demand Signals Filter> - Id string
- The OCID of the OccDemandSignal.
- State string
- The current state of the OccDemandSignal.
- Occ
Demand []GetSignal Collections Occ Demand Signals Occ Demand Signal Collection - The list of occ_demand_signal_collection.
- Compartment
Id string - The OCID of the compartment.
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable.
- Filters
[]Get
Occ Demand Signals Filter - Id string
- The OCID of the OccDemandSignal.
- State string
- The current state of the OccDemandSignal.
- occ
Demand List<GetSignal Collections Occs Occ Collection> - The list of occ_demand_signal_collection.
- compartment
Id String - The OCID of the compartment.
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable.
- filters
List<Get
Occs Filter> - id String
- The OCID of the OccDemandSignal.
- state String
- The current state of the OccDemandSignal.
- occ
Demand GetSignal Collections Occ Demand Signals Occ Demand Signal Collection[] - The list of occ_demand_signal_collection.
- compartment
Id string - The OCID of the compartment.
- display
Name string - A user-friendly name. Does not have to be unique, and it's changeable.
- filters
Get
Occ Demand Signals Filter[] - id string
- The OCID of the OccDemandSignal.
- state string
- The current state of the OccDemandSignal.
- occ_
demand_ Sequence[demandsignal.signal_ collections Get Occ Demand Signals Occ Demand Signal Collection] - The list of occ_demand_signal_collection.
- compartment_
id str - The OCID of the compartment.
- display_
name str - A user-friendly name. Does not have to be unique, and it's changeable.
- filters
Sequence[demandsignal.
Get Occ Demand Signals Filter] - id str
- The OCID of the OccDemandSignal.
- state str
- The current state of the OccDemandSignal.
- occ
Demand List<Property Map>Signal Collections - The list of occ_demand_signal_collection.
- compartment
Id String - The OCID of the compartment.
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable.
- filters List<Property Map>
- id String
- The OCID of the OccDemandSignal.
- state String
- The current state of the OccDemandSignal.
Supporting Types
GetOccDemandSignalsFilter
GetOccDemandSignalsOccDemandSignalCollection
GetOccDemandSignalsOccDemandSignalCollectionItem
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Dictionary<string, object>
- 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 filter to return only resources that match the given display name exactly.
- Dictionary<string, object>
- 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 Signals Occ Demand Signal Collection Item Occ Demand Signal> - The OccDemandSignal data.
- Patch
Operations List<GetOcc Demand Signals Occ Demand Signal Collection Item Patch Operation> - State string
- A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
- Dictionary<string, object>
- 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 in which to list resources.
- map[string]interface{}
- 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 filter to return only resources that match the given display name exactly.
- map[string]interface{}
- 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 Signals Occ Demand Signal Collection Item Occ Demand Signal - The OccDemandSignal data.
- Patch
Operations []GetOcc Demand Signals Occ Demand Signal Collection Item Patch Operation - State string
- A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
- map[string]interface{}
- 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 in which to list resources.
- Map<String,Object>
- 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 filter to return only resources that match the given display name exactly.
- Map<String,Object>
- 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 Occs Occ Collection Item Occ> - The OccDemandSignal data.
- patch
Operations List<GetOccs Occ Collection Item Patch Operation> - state String
- A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
- Map<String,Object>
- 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 in which to list resources.
- {[key: string]: any}
- 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 filter to return only resources that match the given display name exactly.
- {[key: string]: any}
- 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 Signals Occ Demand Signal Collection Item Occ Demand Signal[] - The OccDemandSignal data.
- patch
Operations GetOcc Demand Signals Occ Demand Signal Collection Item Patch Operation[] - state string
- A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
- {[key: string]: any}
- 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 in which to list resources.
- Mapping[str, Any]
- 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 filter to return only resources that match the given display name exactly.
- Mapping[str, Any]
- 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 Signals Occ Demand Signal Collection Item Occ Demand Signal] - The OccDemandSignal data.
- patch_
operations Sequence[demandsignal.Get Occ Demand Signals Occ Demand Signal Collection Item Patch Operation] - state str
- A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
- Mapping[str, Any]
- 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 in which to list resources.
- Map<Any>
- 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 filter to return only resources that match the given display name exactly.
- Map<Any>
- 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
- A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
- Map<Any>
- 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
GetOccDemandSignalsOccDemandSignalCollectionItemOccDemandSignal
- Resource
Type string - The name of the resource for the data.
- Units string
- The units of the data.
- Values
List<Get
Occ Demand Signals Occ Demand Signal Collection Item 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 Signals Occ Demand Signal Collection Item 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
Occs Occ Collection Item 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 Signals Occ Demand Signal Collection Item 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 Signals Occ Demand Signal Collection Item 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.
GetOccDemandSignalsOccDemandSignalCollectionItemOccDemandSignalValue
- 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.
GetOccDemandSignalsOccDemandSignalCollectionItemPatchOperation
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 v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi