oci.CapacityManagement.OccmDemandSignalItem
Explore with Pulumi AI
This resource provides the Occm Demand Signal Item resource in Oracle Cloud Infrastructure Capacity Management service.
This API will create a demand signal item representing a resource request. This needs to be grouped under a demand signal.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testOccmDemandSignalItem = new oci.capacitymanagement.OccmDemandSignalItem("test_occm_demand_signal_item", {
compartmentId: compartmentId,
demandQuantity: occmDemandSignalItemDemandQuantity,
demandSignalCatalogResourceId: testResource.id,
demandSignalId: testDemandSignal.id,
region: occmDemandSignalItemRegion,
requestType: occmDemandSignalItemRequestType,
resourceProperties: occmDemandSignalItemResourceProperties,
timeNeededBefore: occmDemandSignalItemTimeNeededBefore,
availabilityDomain: occmDemandSignalItemAvailabilityDomain,
definedTags: {
"foo-namespace.bar-key": "value",
},
freeformTags: {
"bar-key": "value",
},
notes: occmDemandSignalItemNotes,
targetCompartmentId: testCompartment.id,
});
import pulumi
import pulumi_oci as oci
test_occm_demand_signal_item = oci.capacity_management.OccmDemandSignalItem("test_occm_demand_signal_item",
compartment_id=compartment_id,
demand_quantity=occm_demand_signal_item_demand_quantity,
demand_signal_catalog_resource_id=test_resource["id"],
demand_signal_id=test_demand_signal["id"],
region=occm_demand_signal_item_region,
request_type=occm_demand_signal_item_request_type,
resource_properties=occm_demand_signal_item_resource_properties,
time_needed_before=occm_demand_signal_item_time_needed_before,
availability_domain=occm_demand_signal_item_availability_domain,
defined_tags={
"foo-namespace.bar-key": "value",
},
freeform_tags={
"bar-key": "value",
},
notes=occm_demand_signal_item_notes,
target_compartment_id=test_compartment["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.NewOccmDemandSignalItem(ctx, "test_occm_demand_signal_item", &capacitymanagement.OccmDemandSignalItemArgs{
CompartmentId: pulumi.Any(compartmentId),
DemandQuantity: pulumi.Any(occmDemandSignalItemDemandQuantity),
DemandSignalCatalogResourceId: pulumi.Any(testResource.Id),
DemandSignalId: pulumi.Any(testDemandSignal.Id),
Region: pulumi.Any(occmDemandSignalItemRegion),
RequestType: pulumi.Any(occmDemandSignalItemRequestType),
ResourceProperties: pulumi.Any(occmDemandSignalItemResourceProperties),
TimeNeededBefore: pulumi.Any(occmDemandSignalItemTimeNeededBefore),
AvailabilityDomain: pulumi.Any(occmDemandSignalItemAvailabilityDomain),
DefinedTags: pulumi.StringMap{
"foo-namespace.bar-key": pulumi.String("value"),
},
FreeformTags: pulumi.StringMap{
"bar-key": pulumi.String("value"),
},
Notes: pulumi.Any(occmDemandSignalItemNotes),
TargetCompartmentId: pulumi.Any(testCompartment.Id),
})
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 testOccmDemandSignalItem = new Oci.CapacityManagement.OccmDemandSignalItem("test_occm_demand_signal_item", new()
{
CompartmentId = compartmentId,
DemandQuantity = occmDemandSignalItemDemandQuantity,
DemandSignalCatalogResourceId = testResource.Id,
DemandSignalId = testDemandSignal.Id,
Region = occmDemandSignalItemRegion,
RequestType = occmDemandSignalItemRequestType,
ResourceProperties = occmDemandSignalItemResourceProperties,
TimeNeededBefore = occmDemandSignalItemTimeNeededBefore,
AvailabilityDomain = occmDemandSignalItemAvailabilityDomain,
DefinedTags =
{
{ "foo-namespace.bar-key", "value" },
},
FreeformTags =
{
{ "bar-key", "value" },
},
Notes = occmDemandSignalItemNotes,
TargetCompartmentId = testCompartment.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.CapacityManagement.OccmDemandSignalItem;
import com.pulumi.oci.CapacityManagement.OccmDemandSignalItemArgs;
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) {
var testOccmDemandSignalItem = new OccmDemandSignalItem("testOccmDemandSignalItem", OccmDemandSignalItemArgs.builder()
.compartmentId(compartmentId)
.demandQuantity(occmDemandSignalItemDemandQuantity)
.demandSignalCatalogResourceId(testResource.id())
.demandSignalId(testDemandSignal.id())
.region(occmDemandSignalItemRegion)
.requestType(occmDemandSignalItemRequestType)
.resourceProperties(occmDemandSignalItemResourceProperties)
.timeNeededBefore(occmDemandSignalItemTimeNeededBefore)
.availabilityDomain(occmDemandSignalItemAvailabilityDomain)
.definedTags(Map.of("foo-namespace.bar-key", "value"))
.freeformTags(Map.of("bar-key", "value"))
.notes(occmDemandSignalItemNotes)
.targetCompartmentId(testCompartment.id())
.build());
}
}
resources:
testOccmDemandSignalItem:
type: oci:CapacityManagement:OccmDemandSignalItem
name: test_occm_demand_signal_item
properties:
compartmentId: ${compartmentId}
demandQuantity: ${occmDemandSignalItemDemandQuantity}
demandSignalCatalogResourceId: ${testResource.id}
demandSignalId: ${testDemandSignal.id}
region: ${occmDemandSignalItemRegion}
requestType: ${occmDemandSignalItemRequestType}
resourceProperties: ${occmDemandSignalItemResourceProperties}
timeNeededBefore: ${occmDemandSignalItemTimeNeededBefore}
availabilityDomain: ${occmDemandSignalItemAvailabilityDomain}
definedTags:
foo-namespace.bar-key: value
freeformTags:
bar-key: value
notes: ${occmDemandSignalItemNotes}
targetCompartmentId: ${testCompartment.id}
Create OccmDemandSignalItem Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OccmDemandSignalItem(name: string, args: OccmDemandSignalItemArgs, opts?: CustomResourceOptions);
@overload
def OccmDemandSignalItem(resource_name: str,
args: OccmDemandSignalItemArgs,
opts: Optional[ResourceOptions] = None)
@overload
def OccmDemandSignalItem(resource_name: str,
opts: Optional[ResourceOptions] = None,
request_type: Optional[str] = None,
compartment_id: Optional[str] = None,
demand_quantity: Optional[str] = None,
demand_signal_catalog_resource_id: Optional[str] = None,
demand_signal_id: Optional[str] = None,
region: Optional[str] = None,
resource_properties: Optional[Mapping[str, str]] = None,
time_needed_before: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
notes: Optional[str] = None,
availability_domain: Optional[str] = None,
target_compartment_id: Optional[str] = None)
func NewOccmDemandSignalItem(ctx *Context, name string, args OccmDemandSignalItemArgs, opts ...ResourceOption) (*OccmDemandSignalItem, error)
public OccmDemandSignalItem(string name, OccmDemandSignalItemArgs args, CustomResourceOptions? opts = null)
public OccmDemandSignalItem(String name, OccmDemandSignalItemArgs args)
public OccmDemandSignalItem(String name, OccmDemandSignalItemArgs args, CustomResourceOptions options)
type: oci:CapacityManagement:OccmDemandSignalItem
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args OccmDemandSignalItemArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args OccmDemandSignalItemArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args OccmDemandSignalItemArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OccmDemandSignalItemArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OccmDemandSignalItemArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var occmDemandSignalItemResource = new Oci.CapacityManagement.OccmDemandSignalItem("occmDemandSignalItemResource", new()
{
RequestType = "string",
CompartmentId = "string",
DemandQuantity = "string",
DemandSignalCatalogResourceId = "string",
DemandSignalId = "string",
Region = "string",
ResourceProperties =
{
{ "string", "string" },
},
TimeNeededBefore = "string",
DefinedTags =
{
{ "string", "string" },
},
FreeformTags =
{
{ "string", "string" },
},
Notes = "string",
AvailabilityDomain = "string",
TargetCompartmentId = "string",
});
example, err := capacitymanagement.NewOccmDemandSignalItem(ctx, "occmDemandSignalItemResource", &capacitymanagement.OccmDemandSignalItemArgs{
RequestType: pulumi.String("string"),
CompartmentId: pulumi.String("string"),
DemandQuantity: pulumi.String("string"),
DemandSignalCatalogResourceId: pulumi.String("string"),
DemandSignalId: pulumi.String("string"),
Region: pulumi.String("string"),
ResourceProperties: pulumi.StringMap{
"string": pulumi.String("string"),
},
TimeNeededBefore: pulumi.String("string"),
DefinedTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
FreeformTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Notes: pulumi.String("string"),
AvailabilityDomain: pulumi.String("string"),
TargetCompartmentId: pulumi.String("string"),
})
var occmDemandSignalItemResource = new OccmDemandSignalItem("occmDemandSignalItemResource", OccmDemandSignalItemArgs.builder()
.requestType("string")
.compartmentId("string")
.demandQuantity("string")
.demandSignalCatalogResourceId("string")
.demandSignalId("string")
.region("string")
.resourceProperties(Map.of("string", "string"))
.timeNeededBefore("string")
.definedTags(Map.of("string", "string"))
.freeformTags(Map.of("string", "string"))
.notes("string")
.availabilityDomain("string")
.targetCompartmentId("string")
.build());
occm_demand_signal_item_resource = oci.capacitymanagement.OccmDemandSignalItem("occmDemandSignalItemResource",
request_type="string",
compartment_id="string",
demand_quantity="string",
demand_signal_catalog_resource_id="string",
demand_signal_id="string",
region="string",
resource_properties={
"string": "string",
},
time_needed_before="string",
defined_tags={
"string": "string",
},
freeform_tags={
"string": "string",
},
notes="string",
availability_domain="string",
target_compartment_id="string")
const occmDemandSignalItemResource = new oci.capacitymanagement.OccmDemandSignalItem("occmDemandSignalItemResource", {
requestType: "string",
compartmentId: "string",
demandQuantity: "string",
demandSignalCatalogResourceId: "string",
demandSignalId: "string",
region: "string",
resourceProperties: {
string: "string",
},
timeNeededBefore: "string",
definedTags: {
string: "string",
},
freeformTags: {
string: "string",
},
notes: "string",
availabilityDomain: "string",
targetCompartmentId: "string",
});
type: oci:CapacityManagement:OccmDemandSignalItem
properties:
availabilityDomain: string
compartmentId: string
definedTags:
string: string
demandQuantity: string
demandSignalCatalogResourceId: string
demandSignalId: string
freeformTags:
string: string
notes: string
region: string
requestType: string
resourceProperties:
string: string
targetCompartmentId: string
timeNeededBefore: string
OccmDemandSignalItem Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The OccmDemandSignalItem resource accepts the following input properties:
- Compartment
Id string - The OCID of the tenancy from which the demand signal item was created.
- Demand
Quantity string - (Updatable) The quantity of the resource that you want to demand from OCI.
- Demand
Signal stringCatalog Resource Id - The OCID of the correponding demand signal catalog resource.
- Demand
Signal stringId - The OCID of the demand signal under which we need to create this item.
- Region string
- (Updatable) The name of region for which you want to request the Oracle Cloud Infrastructure resource.
- Request
Type string - The type of request (DEMAND or RETURN) that you want to make for this demand signal item.
- Resource
Properties Dictionary<string, string> - (Updatable) A map of various properties associated with the Oracle Cloud Infrastructure resource.
- Time
Needed stringBefore (Updatable) the date before which you would ideally like the Oracle Cloud Infrastructure resource to be delivered to you.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Availability
Domain string - (Updatable) The name of the availability domain for which you want to request the Oracle Cloud Infrastructure resource. This is an optional parameter.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Dictionary<string, string>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Notes string
(Updatable) This field will serve as notes section for you. You can use this section to convey a message to Oracle Cloud Infrastructure regarding your resource request.
NOTE: The previous value gets overwritten with the new one for this once updated.
- Target
Compartment stringId - (Updatable) The OCID of the tenancy for which you want to request the Oracle Cloud Infrastructure resource for. This is an optional parameter.
- Compartment
Id string - The OCID of the tenancy from which the demand signal item was created.
- Demand
Quantity string - (Updatable) The quantity of the resource that you want to demand from OCI.
- Demand
Signal stringCatalog Resource Id - The OCID of the correponding demand signal catalog resource.
- Demand
Signal stringId - The OCID of the demand signal under which we need to create this item.
- Region string
- (Updatable) The name of region for which you want to request the Oracle Cloud Infrastructure resource.
- Request
Type string - The type of request (DEMAND or RETURN) that you want to make for this demand signal item.
- Resource
Properties map[string]string - (Updatable) A map of various properties associated with the Oracle Cloud Infrastructure resource.
- Time
Needed stringBefore (Updatable) the date before which you would ideally like the Oracle Cloud Infrastructure resource to be delivered to you.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Availability
Domain string - (Updatable) The name of the availability domain for which you want to request the Oracle Cloud Infrastructure resource. This is an optional parameter.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- map[string]string
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Notes string
(Updatable) This field will serve as notes section for you. You can use this section to convey a message to Oracle Cloud Infrastructure regarding your resource request.
NOTE: The previous value gets overwritten with the new one for this once updated.
- Target
Compartment stringId - (Updatable) The OCID of the tenancy for which you want to request the Oracle Cloud Infrastructure resource for. This is an optional parameter.
- compartment
Id String - The OCID of the tenancy from which the demand signal item was created.
- demand
Quantity String - (Updatable) The quantity of the resource that you want to demand from OCI.
- demand
Signal StringCatalog Resource Id - The OCID of the correponding demand signal catalog resource.
- demand
Signal StringId - The OCID of the demand signal under which we need to create this item.
- region String
- (Updatable) The name of region for which you want to request the Oracle Cloud Infrastructure resource.
- request
Type String - The type of request (DEMAND or RETURN) that you want to make for this demand signal item.
- resource
Properties Map<String,String> - (Updatable) A map of various properties associated with the Oracle Cloud Infrastructure resource.
- time
Needed StringBefore (Updatable) the date before which you would ideally like the Oracle Cloud Infrastructure resource to be delivered to you.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- availability
Domain String - (Updatable) The name of the availability domain for which you want to request the Oracle Cloud Infrastructure resource. This is an optional parameter.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Map<String,String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- notes String
(Updatable) This field will serve as notes section for you. You can use this section to convey a message to Oracle Cloud Infrastructure regarding your resource request.
NOTE: The previous value gets overwritten with the new one for this once updated.
- target
Compartment StringId - (Updatable) The OCID of the tenancy for which you want to request the Oracle Cloud Infrastructure resource for. This is an optional parameter.
- compartment
Id string - The OCID of the tenancy from which the demand signal item was created.
- demand
Quantity string - (Updatable) The quantity of the resource that you want to demand from OCI.
- demand
Signal stringCatalog Resource Id - The OCID of the correponding demand signal catalog resource.
- demand
Signal stringId - The OCID of the demand signal under which we need to create this item.
- region string
- (Updatable) The name of region for which you want to request the Oracle Cloud Infrastructure resource.
- request
Type string - The type of request (DEMAND or RETURN) that you want to make for this demand signal item.
- resource
Properties {[key: string]: string} - (Updatable) A map of various properties associated with the Oracle Cloud Infrastructure resource.
- time
Needed stringBefore (Updatable) the date before which you would ideally like the Oracle Cloud Infrastructure resource to be delivered to you.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- availability
Domain string - (Updatable) The name of the availability domain for which you want to request the Oracle Cloud Infrastructure resource. This is an optional parameter.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- {[key: string]: string}
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- notes string
(Updatable) This field will serve as notes section for you. You can use this section to convey a message to Oracle Cloud Infrastructure regarding your resource request.
NOTE: The previous value gets overwritten with the new one for this once updated.
- target
Compartment stringId - (Updatable) The OCID of the tenancy for which you want to request the Oracle Cloud Infrastructure resource for. This is an optional parameter.
- compartment_
id str - The OCID of the tenancy from which the demand signal item was created.
- demand_
quantity str - (Updatable) The quantity of the resource that you want to demand from OCI.
- demand_
signal_ strcatalog_ resource_ id - The OCID of the correponding demand signal catalog resource.
- demand_
signal_ strid - The OCID of the demand signal under which we need to create this item.
- region str
- (Updatable) The name of region for which you want to request the Oracle Cloud Infrastructure resource.
- request_
type str - The type of request (DEMAND or RETURN) that you want to make for this demand signal item.
- resource_
properties Mapping[str, str] - (Updatable) A map of various properties associated with the Oracle Cloud Infrastructure resource.
- time_
needed_ strbefore (Updatable) the date before which you would ideally like the Oracle Cloud Infrastructure resource to be delivered to you.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- availability_
domain str - (Updatable) The name of the availability domain for which you want to request the Oracle Cloud Infrastructure resource. This is an optional parameter.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Mapping[str, str]
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- notes str
(Updatable) This field will serve as notes section for you. You can use this section to convey a message to Oracle Cloud Infrastructure regarding your resource request.
NOTE: The previous value gets overwritten with the new one for this once updated.
- target_
compartment_ strid - (Updatable) The OCID of the tenancy for which you want to request the Oracle Cloud Infrastructure resource for. This is an optional parameter.
- compartment
Id String - The OCID of the tenancy from which the demand signal item was created.
- demand
Quantity String - (Updatable) The quantity of the resource that you want to demand from OCI.
- demand
Signal StringCatalog Resource Id - The OCID of the correponding demand signal catalog resource.
- demand
Signal StringId - The OCID of the demand signal under which we need to create this item.
- region String
- (Updatable) The name of region for which you want to request the Oracle Cloud Infrastructure resource.
- request
Type String - The type of request (DEMAND or RETURN) that you want to make for this demand signal item.
- resource
Properties Map<String> - (Updatable) A map of various properties associated with the Oracle Cloud Infrastructure resource.
- time
Needed StringBefore (Updatable) the date before which you would ideally like the Oracle Cloud Infrastructure resource to be delivered to you.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- availability
Domain String - (Updatable) The name of the availability domain for which you want to request the Oracle Cloud Infrastructure resource. This is an optional parameter.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Map<String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- notes String
(Updatable) This field will serve as notes section for you. You can use this section to convey a message to Oracle Cloud Infrastructure regarding your resource request.
NOTE: The previous value gets overwritten with the new one for this once updated.
- target
Compartment StringId - (Updatable) The OCID of the tenancy for which you want to request the Oracle Cloud Infrastructure resource for. This is an optional parameter.
Outputs
All input properties are implicitly available as output properties. Additionally, the OccmDemandSignalItem resource produces the following output properties:
- Demand
Signal stringNamespace - The name of the Oracle Cloud Infrastructure service in consideration for demand signal submission. For example: COMPUTE, NETWORK, GPU etc.
- Id string
- The provider-assigned unique ID for this managed resource.
- Resource
Name string - The name of the Oracle Cloud Infrastructure resource that you want to request.
- State string
- The current lifecycle state of the resource.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Demand
Signal stringNamespace - The name of the Oracle Cloud Infrastructure service in consideration for demand signal submission. For example: COMPUTE, NETWORK, GPU etc.
- Id string
- The provider-assigned unique ID for this managed resource.
- Resource
Name string - The name of the Oracle Cloud Infrastructure resource that you want to request.
- State string
- The current lifecycle state of the resource.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- demand
Signal StringNamespace - The name of the Oracle Cloud Infrastructure service in consideration for demand signal submission. For example: COMPUTE, NETWORK, GPU etc.
- id String
- The provider-assigned unique ID for this managed resource.
- resource
Name String - The name of the Oracle Cloud Infrastructure resource that you want to request.
- state String
- The current lifecycle state of the resource.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- demand
Signal stringNamespace - The name of the Oracle Cloud Infrastructure service in consideration for demand signal submission. For example: COMPUTE, NETWORK, GPU etc.
- id string
- The provider-assigned unique ID for this managed resource.
- resource
Name string - The name of the Oracle Cloud Infrastructure resource that you want to request.
- state string
- The current lifecycle state of the resource.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- demand_
signal_ strnamespace - The name of the Oracle Cloud Infrastructure service in consideration for demand signal submission. For example: COMPUTE, NETWORK, GPU etc.
- id str
- The provider-assigned unique ID for this managed resource.
- resource_
name str - The name of the Oracle Cloud Infrastructure resource that you want to request.
- state str
- The current lifecycle state of the resource.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- demand
Signal StringNamespace - The name of the Oracle Cloud Infrastructure service in consideration for demand signal submission. For example: COMPUTE, NETWORK, GPU etc.
- id String
- The provider-assigned unique ID for this managed resource.
- resource
Name String - The name of the Oracle Cloud Infrastructure resource that you want to request.
- state String
- The current lifecycle state of the resource.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
Look up Existing OccmDemandSignalItem Resource
Get an existing OccmDemandSignalItem resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: OccmDemandSignalItemState, opts?: CustomResourceOptions): OccmDemandSignalItem
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
availability_domain: Optional[str] = None,
compartment_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
demand_quantity: Optional[str] = None,
demand_signal_catalog_resource_id: Optional[str] = None,
demand_signal_id: Optional[str] = None,
demand_signal_namespace: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
notes: Optional[str] = None,
region: Optional[str] = None,
request_type: Optional[str] = None,
resource_name: Optional[str] = None,
resource_properties: Optional[Mapping[str, str]] = None,
state: Optional[str] = None,
system_tags: Optional[Mapping[str, str]] = None,
target_compartment_id: Optional[str] = None,
time_needed_before: Optional[str] = None) -> OccmDemandSignalItem
func GetOccmDemandSignalItem(ctx *Context, name string, id IDInput, state *OccmDemandSignalItemState, opts ...ResourceOption) (*OccmDemandSignalItem, error)
public static OccmDemandSignalItem Get(string name, Input<string> id, OccmDemandSignalItemState? state, CustomResourceOptions? opts = null)
public static OccmDemandSignalItem get(String name, Output<String> id, OccmDemandSignalItemState state, CustomResourceOptions options)
resources: _: type: oci:CapacityManagement:OccmDemandSignalItem get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Availability
Domain string - (Updatable) The name of the availability domain for which you want to request the Oracle Cloud Infrastructure resource. This is an optional parameter.
- Compartment
Id string - The OCID of the tenancy from which the demand signal item was created.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Demand
Quantity string - (Updatable) The quantity of the resource that you want to demand from OCI.
- Demand
Signal stringCatalog Resource Id - The OCID of the correponding demand signal catalog resource.
- Demand
Signal stringId - The OCID of the demand signal under which we need to create this item.
- Demand
Signal stringNamespace - The name of the Oracle Cloud Infrastructure service in consideration for demand signal submission. For example: COMPUTE, NETWORK, GPU etc.
- Dictionary<string, string>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Notes string
(Updatable) This field will serve as notes section for you. You can use this section to convey a message to Oracle Cloud Infrastructure regarding your resource request.
NOTE: The previous value gets overwritten with the new one for this once updated.
- Region string
- (Updatable) The name of region for which you want to request the Oracle Cloud Infrastructure resource.
- Request
Type string - The type of request (DEMAND or RETURN) that you want to make for this demand signal item.
- Resource
Name string - The name of the Oracle Cloud Infrastructure resource that you want to request.
- Resource
Properties Dictionary<string, string> - (Updatable) A map of various properties associated with the Oracle Cloud Infrastructure resource.
- State string
- The current lifecycle state of the resource.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Target
Compartment stringId - (Updatable) The OCID of the tenancy for which you want to request the Oracle Cloud Infrastructure resource for. This is an optional parameter.
- Time
Needed stringBefore (Updatable) the date before which you would ideally like the Oracle Cloud Infrastructure resource to be delivered to you.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Availability
Domain string - (Updatable) The name of the availability domain for which you want to request the Oracle Cloud Infrastructure resource. This is an optional parameter.
- Compartment
Id string - The OCID of the tenancy from which the demand signal item was created.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Demand
Quantity string - (Updatable) The quantity of the resource that you want to demand from OCI.
- Demand
Signal stringCatalog Resource Id - The OCID of the correponding demand signal catalog resource.
- Demand
Signal stringId - The OCID of the demand signal under which we need to create this item.
- Demand
Signal stringNamespace - The name of the Oracle Cloud Infrastructure service in consideration for demand signal submission. For example: COMPUTE, NETWORK, GPU etc.
- map[string]string
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Notes string
(Updatable) This field will serve as notes section for you. You can use this section to convey a message to Oracle Cloud Infrastructure regarding your resource request.
NOTE: The previous value gets overwritten with the new one for this once updated.
- Region string
- (Updatable) The name of region for which you want to request the Oracle Cloud Infrastructure resource.
- Request
Type string - The type of request (DEMAND or RETURN) that you want to make for this demand signal item.
- Resource
Name string - The name of the Oracle Cloud Infrastructure resource that you want to request.
- Resource
Properties map[string]string - (Updatable) A map of various properties associated with the Oracle Cloud Infrastructure resource.
- State string
- The current lifecycle state of the resource.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Target
Compartment stringId - (Updatable) The OCID of the tenancy for which you want to request the Oracle Cloud Infrastructure resource for. This is an optional parameter.
- Time
Needed stringBefore (Updatable) the date before which you would ideally like the Oracle Cloud Infrastructure resource to be delivered to you.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- availability
Domain String - (Updatable) The name of the availability domain for which you want to request the Oracle Cloud Infrastructure resource. This is an optional parameter.
- compartment
Id String - The OCID of the tenancy from which the demand signal item was created.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- demand
Quantity String - (Updatable) The quantity of the resource that you want to demand from OCI.
- demand
Signal StringCatalog Resource Id - The OCID of the correponding demand signal catalog resource.
- demand
Signal StringId - The OCID of the demand signal under which we need to create this item.
- demand
Signal StringNamespace - The name of the Oracle Cloud Infrastructure service in consideration for demand signal submission. For example: COMPUTE, NETWORK, GPU etc.
- Map<String,String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- notes String
(Updatable) This field will serve as notes section for you. You can use this section to convey a message to Oracle Cloud Infrastructure regarding your resource request.
NOTE: The previous value gets overwritten with the new one for this once updated.
- region String
- (Updatable) The name of region for which you want to request the Oracle Cloud Infrastructure resource.
- request
Type String - The type of request (DEMAND or RETURN) that you want to make for this demand signal item.
- resource
Name String - The name of the Oracle Cloud Infrastructure resource that you want to request.
- resource
Properties Map<String,String> - (Updatable) A map of various properties associated with the Oracle Cloud Infrastructure resource.
- state String
- The current lifecycle state of the resource.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- target
Compartment StringId - (Updatable) The OCID of the tenancy for which you want to request the Oracle Cloud Infrastructure resource for. This is an optional parameter.
- time
Needed StringBefore (Updatable) the date before which you would ideally like the Oracle Cloud Infrastructure resource to be delivered to you.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- availability
Domain string - (Updatable) The name of the availability domain for which you want to request the Oracle Cloud Infrastructure resource. This is an optional parameter.
- compartment
Id string - The OCID of the tenancy from which the demand signal item was created.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- demand
Quantity string - (Updatable) The quantity of the resource that you want to demand from OCI.
- demand
Signal stringCatalog Resource Id - The OCID of the correponding demand signal catalog resource.
- demand
Signal stringId - The OCID of the demand signal under which we need to create this item.
- demand
Signal stringNamespace - The name of the Oracle Cloud Infrastructure service in consideration for demand signal submission. For example: COMPUTE, NETWORK, GPU etc.
- {[key: string]: string}
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- notes string
(Updatable) This field will serve as notes section for you. You can use this section to convey a message to Oracle Cloud Infrastructure regarding your resource request.
NOTE: The previous value gets overwritten with the new one for this once updated.
- region string
- (Updatable) The name of region for which you want to request the Oracle Cloud Infrastructure resource.
- request
Type string - The type of request (DEMAND or RETURN) that you want to make for this demand signal item.
- resource
Name string - The name of the Oracle Cloud Infrastructure resource that you want to request.
- resource
Properties {[key: string]: string} - (Updatable) A map of various properties associated with the Oracle Cloud Infrastructure resource.
- state string
- The current lifecycle state of the resource.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- target
Compartment stringId - (Updatable) The OCID of the tenancy for which you want to request the Oracle Cloud Infrastructure resource for. This is an optional parameter.
- time
Needed stringBefore (Updatable) the date before which you would ideally like the Oracle Cloud Infrastructure resource to be delivered to you.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- availability_
domain str - (Updatable) The name of the availability domain for which you want to request the Oracle Cloud Infrastructure resource. This is an optional parameter.
- compartment_
id str - The OCID of the tenancy from which the demand signal item was created.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- demand_
quantity str - (Updatable) The quantity of the resource that you want to demand from OCI.
- demand_
signal_ strcatalog_ resource_ id - The OCID of the correponding demand signal catalog resource.
- demand_
signal_ strid - The OCID of the demand signal under which we need to create this item.
- demand_
signal_ strnamespace - The name of the Oracle Cloud Infrastructure service in consideration for demand signal submission. For example: COMPUTE, NETWORK, GPU etc.
- Mapping[str, str]
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- notes str
(Updatable) This field will serve as notes section for you. You can use this section to convey a message to Oracle Cloud Infrastructure regarding your resource request.
NOTE: The previous value gets overwritten with the new one for this once updated.
- region str
- (Updatable) The name of region for which you want to request the Oracle Cloud Infrastructure resource.
- request_
type str - The type of request (DEMAND or RETURN) that you want to make for this demand signal item.
- resource_
name str - The name of the Oracle Cloud Infrastructure resource that you want to request.
- resource_
properties Mapping[str, str] - (Updatable) A map of various properties associated with the Oracle Cloud Infrastructure resource.
- state str
- The current lifecycle state of the resource.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- target_
compartment_ strid - (Updatable) The OCID of the tenancy for which you want to request the Oracle Cloud Infrastructure resource for. This is an optional parameter.
- time_
needed_ strbefore (Updatable) the date before which you would ideally like the Oracle Cloud Infrastructure resource to be delivered to you.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- availability
Domain String - (Updatable) The name of the availability domain for which you want to request the Oracle Cloud Infrastructure resource. This is an optional parameter.
- compartment
Id String - The OCID of the tenancy from which the demand signal item was created.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- demand
Quantity String - (Updatable) The quantity of the resource that you want to demand from OCI.
- demand
Signal StringCatalog Resource Id - The OCID of the correponding demand signal catalog resource.
- demand
Signal StringId - The OCID of the demand signal under which we need to create this item.
- demand
Signal StringNamespace - The name of the Oracle Cloud Infrastructure service in consideration for demand signal submission. For example: COMPUTE, NETWORK, GPU etc.
- Map<String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- notes String
(Updatable) This field will serve as notes section for you. You can use this section to convey a message to Oracle Cloud Infrastructure regarding your resource request.
NOTE: The previous value gets overwritten with the new one for this once updated.
- region String
- (Updatable) The name of region for which you want to request the Oracle Cloud Infrastructure resource.
- request
Type String - The type of request (DEMAND or RETURN) that you want to make for this demand signal item.
- resource
Name String - The name of the Oracle Cloud Infrastructure resource that you want to request.
- resource
Properties Map<String> - (Updatable) A map of various properties associated with the Oracle Cloud Infrastructure resource.
- state String
- The current lifecycle state of the resource.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- target
Compartment StringId - (Updatable) The OCID of the tenancy for which you want to request the Oracle Cloud Infrastructure resource for. This is an optional parameter.
- time
Needed StringBefore (Updatable) the date before which you would ideally like the Oracle Cloud Infrastructure resource to be delivered to you.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Import
OccmDemandSignalItems can be imported using the id
, e.g.
$ pulumi import oci:CapacityManagement/occmDemandSignalItem:OccmDemandSignalItem test_occm_demand_signal_item "id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.