1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. CapacityManagement
  5. OccCapacityRequest
Oracle Cloud Infrastructure v2.4.0 published on Thursday, Jul 25, 2024 by Pulumi

oci.CapacityManagement.OccCapacityRequest

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.4.0 published on Thursday, Jul 25, 2024 by Pulumi

    This resource provides the Occ Capacity Request resource in Oracle Cloud Infrastructure Capacity Management service.

    Create Capacity Request. Updates the OccCapacityRequest by evaluating a sequence of instructions.

    Example Usage

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    resources:
      testOccCapacityRequest:
        type: oci:CapacityManagement:OccCapacityRequest
        name: test_occ_capacity_request
        properties:
          availabilityDomain: ${occCapacityRequestAvailabilityDomain}
          compartmentId: ${compartmentId}
          dateExpectedCapacityHandover: ${occCapacityRequestDateExpectedCapacityHandover}
          details:
            - demandQuantity: ${occCapacityRequestDetailsDemandQuantity}
              resourceName: ${testResource.name}
              resourceType: ${occCapacityRequestDetailsResourceType}
              workloadType: ${occCapacityRequestDetailsWorkloadType}
              actualHandoverQuantity: ${occCapacityRequestDetailsActualHandoverQuantity}
              dateActualHandover: ${occCapacityRequestDetailsDateActualHandover}
              dateExpectedHandover: ${occCapacityRequestDetailsDateExpectedHandover}
              expectedHandoverQuantity: ${occCapacityRequestDetailsExpectedHandoverQuantity}
          displayName: ${occCapacityRequestDisplayName}
          namespace: ${occCapacityRequestNamespace}
          occAvailabilityCatalogId: ${testOccAvailabilityCatalog.id}
          occCapacityRequestId: ${occCapacityRequestOccCapacityRequestId}
          region: ${occCapacityRequestRegion}
          definedTags:
            foo-namespace.bar-key: value
          description: ${occCapacityRequestDescription}
          freeformTags:
            bar-key: value
          lifecycleDetails: ${occCapacityRequestLifecycleDetails}
          patchOperations:
            - operation: ${occCapacityRequestPatchOperationsOperation}
              selection: ${occCapacityRequestPatchOperationsSelection}
              from: ${occCapacityRequestPatchOperationsFrom}
              position: ${occCapacityRequestPatchOperationsPosition}
              selectedItem: ${occCapacityRequestPatchOperationsSelectedItem}
              value: ${occCapacityRequestPatchOperationsValue}
              values: ${occCapacityRequestPatchOperationsValues}
          requestState: ${occCapacityRequestRequestState}
    

    Create OccCapacityRequest Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new OccCapacityRequest(name: string, args: OccCapacityRequestArgs, opts?: CustomResourceOptions);
    @overload
    def OccCapacityRequest(resource_name: str,
                           args: OccCapacityRequestArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def OccCapacityRequest(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           namespace: Optional[str] = None,
                           occ_availability_catalog_id: Optional[str] = None,
                           date_expected_capacity_handover: Optional[str] = None,
                           region: Optional[str] = None,
                           availability_domain: Optional[str] = None,
                           details: Optional[Sequence[_capacitymanagement.OccCapacityRequestDetailArgs]] = None,
                           compartment_id: Optional[str] = None,
                           display_name: Optional[str] = None,
                           description: Optional[str] = None,
                           freeform_tags: Optional[Mapping[str, Any]] = None,
                           lifecycle_details: Optional[str] = None,
                           patch_operations: Optional[Sequence[_capacitymanagement.OccCapacityRequestPatchOperationArgs]] = None,
                           defined_tags: Optional[Mapping[str, Any]] = None,
                           request_state: Optional[str] = None)
    func NewOccCapacityRequest(ctx *Context, name string, args OccCapacityRequestArgs, opts ...ResourceOption) (*OccCapacityRequest, error)
    public OccCapacityRequest(string name, OccCapacityRequestArgs args, CustomResourceOptions? opts = null)
    public OccCapacityRequest(String name, OccCapacityRequestArgs args)
    public OccCapacityRequest(String name, OccCapacityRequestArgs args, CustomResourceOptions options)
    
    type: oci:CapacityManagement:OccCapacityRequest
    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 OccCapacityRequestArgs
    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 OccCapacityRequestArgs
    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 OccCapacityRequestArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OccCapacityRequestArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OccCapacityRequestArgs
    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 occCapacityRequestResource = new Oci.CapacityManagement.OccCapacityRequest("occCapacityRequestResource", new()
    {
        Namespace = "string",
        OccAvailabilityCatalogId = "string",
        DateExpectedCapacityHandover = "string",
        Region = "string",
        AvailabilityDomain = "string",
        Details = new[]
        {
            new Oci.CapacityManagement.Inputs.OccCapacityRequestDetailArgs
            {
                DemandQuantity = "string",
                ResourceName = "string",
                ResourceType = "string",
                WorkloadType = "string",
                ActualHandoverQuantity = "string",
                DateActualHandover = "string",
                DateExpectedHandover = "string",
                ExpectedHandoverQuantity = "string",
            },
        },
        CompartmentId = "string",
        DisplayName = "string",
        Description = "string",
        FreeformTags = 
        {
            { "string", "any" },
        },
        LifecycleDetails = "string",
        PatchOperations = new[]
        {
            new Oci.CapacityManagement.Inputs.OccCapacityRequestPatchOperationArgs
            {
                From = "string",
                Operation = "string",
                Selection = "string",
                Value = 
                {
                    { "string", "any" },
                },
                Position = "string",
                SelectedItem = "string",
            },
        },
        DefinedTags = 
        {
            { "string", "any" },
        },
        RequestState = "string",
    });
    
    example, err := CapacityManagement.NewOccCapacityRequest(ctx, "occCapacityRequestResource", &CapacityManagement.OccCapacityRequestArgs{
    	Namespace:                    pulumi.String("string"),
    	OccAvailabilityCatalogId:     pulumi.String("string"),
    	DateExpectedCapacityHandover: pulumi.String("string"),
    	Region:                       pulumi.String("string"),
    	AvailabilityDomain:           pulumi.String("string"),
    	Details: capacitymanagement.OccCapacityRequestDetailArray{
    		&capacitymanagement.OccCapacityRequestDetailArgs{
    			DemandQuantity:           pulumi.String("string"),
    			ResourceName:             pulumi.String("string"),
    			ResourceType:             pulumi.String("string"),
    			WorkloadType:             pulumi.String("string"),
    			ActualHandoverQuantity:   pulumi.String("string"),
    			DateActualHandover:       pulumi.String("string"),
    			DateExpectedHandover:     pulumi.String("string"),
    			ExpectedHandoverQuantity: pulumi.String("string"),
    		},
    	},
    	CompartmentId: pulumi.String("string"),
    	DisplayName:   pulumi.String("string"),
    	Description:   pulumi.String("string"),
    	FreeformTags: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	LifecycleDetails: pulumi.String("string"),
    	PatchOperations: capacitymanagement.OccCapacityRequestPatchOperationArray{
    		&capacitymanagement.OccCapacityRequestPatchOperationArgs{
    			From:      pulumi.String("string"),
    			Operation: pulumi.String("string"),
    			Selection: pulumi.String("string"),
    			Value: pulumi.Map{
    				"string": pulumi.Any("any"),
    			},
    			Position:     pulumi.String("string"),
    			SelectedItem: pulumi.String("string"),
    		},
    	},
    	DefinedTags: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    	RequestState: pulumi.String("string"),
    })
    
    var occCapacityRequestResource = new OccCapacityRequest("occCapacityRequestResource", OccCapacityRequestArgs.builder()
        .namespace("string")
        .occAvailabilityCatalogId("string")
        .dateExpectedCapacityHandover("string")
        .region("string")
        .availabilityDomain("string")
        .details(OccCapacityRequestDetailArgs.builder()
            .demandQuantity("string")
            .resourceName("string")
            .resourceType("string")
            .workloadType("string")
            .actualHandoverQuantity("string")
            .dateActualHandover("string")
            .dateExpectedHandover("string")
            .expectedHandoverQuantity("string")
            .build())
        .compartmentId("string")
        .displayName("string")
        .description("string")
        .freeformTags(Map.of("string", "any"))
        .lifecycleDetails("string")
        .patchOperations(OccCapacityRequestPatchOperationArgs.builder()
            .from("string")
            .operation("string")
            .selection("string")
            .value(Map.of("string", "any"))
            .position("string")
            .selectedItem("string")
            .build())
        .definedTags(Map.of("string", "any"))
        .requestState("string")
        .build());
    
    occ_capacity_request_resource = oci.capacity_management.OccCapacityRequest("occCapacityRequestResource",
        namespace="string",
        occ_availability_catalog_id="string",
        date_expected_capacity_handover="string",
        region="string",
        availability_domain="string",
        details=[oci.capacity_management.OccCapacityRequestDetailArgs(
            demand_quantity="string",
            resource_name="string",
            resource_type="string",
            workload_type="string",
            actual_handover_quantity="string",
            date_actual_handover="string",
            date_expected_handover="string",
            expected_handover_quantity="string",
        )],
        compartment_id="string",
        display_name="string",
        description="string",
        freeform_tags={
            "string": "any",
        },
        lifecycle_details="string",
        patch_operations=[oci.capacity_management.OccCapacityRequestPatchOperationArgs(
            from_="string",
            operation="string",
            selection="string",
            value={
                "string": "any",
            },
            position="string",
            selected_item="string",
        )],
        defined_tags={
            "string": "any",
        },
        request_state="string")
    
    const occCapacityRequestResource = new oci.capacitymanagement.OccCapacityRequest("occCapacityRequestResource", {
        namespace: "string",
        occAvailabilityCatalogId: "string",
        dateExpectedCapacityHandover: "string",
        region: "string",
        availabilityDomain: "string",
        details: [{
            demandQuantity: "string",
            resourceName: "string",
            resourceType: "string",
            workloadType: "string",
            actualHandoverQuantity: "string",
            dateActualHandover: "string",
            dateExpectedHandover: "string",
            expectedHandoverQuantity: "string",
        }],
        compartmentId: "string",
        displayName: "string",
        description: "string",
        freeformTags: {
            string: "any",
        },
        lifecycleDetails: "string",
        patchOperations: [{
            from: "string",
            operation: "string",
            selection: "string",
            value: {
                string: "any",
            },
            position: "string",
            selectedItem: "string",
        }],
        definedTags: {
            string: "any",
        },
        requestState: "string",
    });
    
    type: oci:CapacityManagement:OccCapacityRequest
    properties:
        availabilityDomain: string
        compartmentId: string
        dateExpectedCapacityHandover: string
        definedTags:
            string: any
        description: string
        details:
            - actualHandoverQuantity: string
              dateActualHandover: string
              dateExpectedHandover: string
              demandQuantity: string
              expectedHandoverQuantity: string
              resourceName: string
              resourceType: string
              workloadType: string
        displayName: string
        freeformTags:
            string: any
        lifecycleDetails: string
        namespace: string
        occAvailabilityCatalogId: string
        patchOperations:
            - from: string
              operation: string
              position: string
              selectedItem: string
              selection: string
              value:
                string: any
        region: string
        requestState: string
    

    OccCapacityRequest Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The OccCapacityRequest resource accepts the following input properties:

    AvailabilityDomain string
    The availability domain (AD) for which the capacity request is made. If this is specified then the capacity will be validated and fulfilled within the scope of this AD.
    CompartmentId string
    Since all resources are at tenancy level hence this will be the ocid of the tenancy where operation is to be performed.
    DateExpectedCapacityHandover string
    The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled.
    Details List<OccCapacityRequestDetail>
    A list of different resources requested by the user.
    DisplayName string
    (Updatable) An user-friendly name for the capacity request. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    Namespace string
    The name of the Oracle Cloud Infrastructure service in consideration. For example, Compute, Exadata, and so on.
    OccAvailabilityCatalogId string
    The OCID of the availability catalog against which capacity request is made.
    Region string
    The name of the region for which the capacity request is made.
    DefinedTags Dictionary<string, object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    Description string
    Meaningful text about the capacity request.
    FreeformTags Dictionary<string, object>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    LifecycleDetails string
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed State.
    PatchOperations List<OccCapacityRequestPatchOperation>
    (Updatable)
    RequestState string

    (Updatable) The subset of request states available for creating the capacity request.

    ** 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

    AvailabilityDomain string
    The availability domain (AD) for which the capacity request is made. If this is specified then the capacity will be validated and fulfilled within the scope of this AD.
    CompartmentId string
    Since all resources are at tenancy level hence this will be the ocid of the tenancy where operation is to be performed.
    DateExpectedCapacityHandover string
    The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled.
    Details []OccCapacityRequestDetailArgs
    A list of different resources requested by the user.
    DisplayName string
    (Updatable) An user-friendly name for the capacity request. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    Namespace string
    The name of the Oracle Cloud Infrastructure service in consideration. For example, Compute, Exadata, and so on.
    OccAvailabilityCatalogId string
    The OCID of the availability catalog against which capacity request is made.
    Region string
    The name of the region for which the capacity request is made.
    DefinedTags map[string]interface{}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    Description string
    Meaningful text about the capacity request.
    FreeformTags map[string]interface{}
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    LifecycleDetails string
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed State.
    PatchOperations []OccCapacityRequestPatchOperationArgs
    (Updatable)
    RequestState string

    (Updatable) The subset of request states available for creating the capacity request.

    ** 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

    availabilityDomain String
    The availability domain (AD) for which the capacity request is made. If this is specified then the capacity will be validated and fulfilled within the scope of this AD.
    compartmentId String
    Since all resources are at tenancy level hence this will be the ocid of the tenancy where operation is to be performed.
    dateExpectedCapacityHandover String
    The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled.
    details List<OccCapacityRequestDetail>
    A list of different resources requested by the user.
    displayName String
    (Updatable) An user-friendly name for the capacity request. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    namespace String
    The name of the Oracle Cloud Infrastructure service in consideration. For example, Compute, Exadata, and so on.
    occAvailabilityCatalogId String
    The OCID of the availability catalog against which capacity request is made.
    region String
    The name of the region for which the capacity request is made.
    definedTags Map<String,Object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description String
    Meaningful text about the capacity request.
    freeformTags Map<String,Object>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    lifecycleDetails String
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed State.
    patchOperations List<OccCapacityRequestPatchOperation>
    (Updatable)
    requestState String

    (Updatable) The subset of request states available for creating the capacity request.

    ** 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

    availabilityDomain string
    The availability domain (AD) for which the capacity request is made. If this is specified then the capacity will be validated and fulfilled within the scope of this AD.
    compartmentId string
    Since all resources are at tenancy level hence this will be the ocid of the tenancy where operation is to be performed.
    dateExpectedCapacityHandover string
    The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled.
    details OccCapacityRequestDetail[]
    A list of different resources requested by the user.
    displayName string
    (Updatable) An user-friendly name for the capacity request. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    namespace string
    The name of the Oracle Cloud Infrastructure service in consideration. For example, Compute, Exadata, and so on.
    occAvailabilityCatalogId string
    The OCID of the availability catalog against which capacity request is made.
    region string
    The name of the region for which the capacity request is made.
    definedTags {[key: string]: any}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description string
    Meaningful text about the capacity request.
    freeformTags {[key: string]: any}
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    lifecycleDetails string
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed State.
    patchOperations OccCapacityRequestPatchOperation[]
    (Updatable)
    requestState string

    (Updatable) The subset of request states available for creating the capacity request.

    ** 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
    The availability domain (AD) for which the capacity request is made. If this is specified then the capacity will be validated and fulfilled within the scope of this AD.
    compartment_id str
    Since all resources are at tenancy level hence this will be the ocid of the tenancy where operation is to be performed.
    date_expected_capacity_handover str
    The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled.
    details Sequence[capacitymanagement.OccCapacityRequestDetailArgs]
    A list of different resources requested by the user.
    display_name str
    (Updatable) An user-friendly name for the capacity request. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    namespace str
    The name of the Oracle Cloud Infrastructure service in consideration. For example, Compute, Exadata, and so on.
    occ_availability_catalog_id str
    The OCID of the availability catalog against which capacity request is made.
    region str
    The name of the region for which the capacity request is made.
    defined_tags Mapping[str, Any]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description str
    Meaningful text about the capacity request.
    freeform_tags Mapping[str, Any]
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    lifecycle_details str
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed State.
    patch_operations Sequence[capacitymanagement.OccCapacityRequestPatchOperationArgs]
    (Updatable)
    request_state str

    (Updatable) The subset of request states available for creating the capacity request.

    ** 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

    availabilityDomain String
    The availability domain (AD) for which the capacity request is made. If this is specified then the capacity will be validated and fulfilled within the scope of this AD.
    compartmentId String
    Since all resources are at tenancy level hence this will be the ocid of the tenancy where operation is to be performed.
    dateExpectedCapacityHandover String
    The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled.
    details List<Property Map>
    A list of different resources requested by the user.
    displayName String
    (Updatable) An user-friendly name for the capacity request. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    namespace String
    The name of the Oracle Cloud Infrastructure service in consideration. For example, Compute, Exadata, and so on.
    occAvailabilityCatalogId String
    The OCID of the availability catalog against which capacity request is made.
    region String
    The name of the region for which the capacity request is made.
    definedTags Map<Any>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description String
    Meaningful text about the capacity request.
    freeformTags Map<Any>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    lifecycleDetails String
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed State.
    patchOperations List<Property Map>
    (Updatable)
    requestState String

    (Updatable) The subset of request states available for creating the capacity request.

    ** 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

    Outputs

    All input properties are implicitly available as output properties. Additionally, the OccCapacityRequest resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    OccCustomerGroupId string
    The OCID of the customer group to which this customer belongs to.
    State string
    The current lifecycle state of the resource.
    SystemTags Dictionary<string, object>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time when the capacity request was created.
    TimeUpdated string
    The time when the capacity request was updated.
    Id string
    The provider-assigned unique ID for this managed resource.
    OccCustomerGroupId string
    The OCID of the customer group to which this customer belongs to.
    State string
    The current lifecycle state of the resource.
    SystemTags map[string]interface{}
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time when the capacity request was created.
    TimeUpdated string
    The time when the capacity request was updated.
    id String
    The provider-assigned unique ID for this managed resource.
    occCustomerGroupId String
    The OCID of the customer group to which this customer belongs to.
    state String
    The current lifecycle state of the resource.
    systemTags Map<String,Object>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time when the capacity request was created.
    timeUpdated String
    The time when the capacity request was updated.
    id string
    The provider-assigned unique ID for this managed resource.
    occCustomerGroupId string
    The OCID of the customer group to which this customer belongs to.
    state string
    The current lifecycle state of the resource.
    systemTags {[key: string]: any}
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The time when the capacity request was created.
    timeUpdated string
    The time when the capacity request was updated.
    id str
    The provider-assigned unique ID for this managed resource.
    occ_customer_group_id str
    The OCID of the customer group to which this customer belongs to.
    state str
    The current lifecycle state of the resource.
    system_tags 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 time when the capacity request was created.
    time_updated str
    The time when the capacity request was updated.
    id String
    The provider-assigned unique ID for this managed resource.
    occCustomerGroupId String
    The OCID of the customer group to which this customer belongs to.
    state String
    The current lifecycle state of the resource.
    systemTags Map<Any>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time when the capacity request was created.
    timeUpdated String
    The time when the capacity request was updated.

    Look up Existing OccCapacityRequest Resource

    Get an existing OccCapacityRequest 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?: OccCapacityRequestState, opts?: CustomResourceOptions): OccCapacityRequest
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            availability_domain: Optional[str] = None,
            compartment_id: Optional[str] = None,
            date_expected_capacity_handover: Optional[str] = None,
            defined_tags: Optional[Mapping[str, Any]] = None,
            description: Optional[str] = None,
            details: Optional[Sequence[_capacitymanagement.OccCapacityRequestDetailArgs]] = None,
            display_name: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, Any]] = None,
            lifecycle_details: Optional[str] = None,
            namespace: Optional[str] = None,
            occ_availability_catalog_id: Optional[str] = None,
            occ_customer_group_id: Optional[str] = None,
            patch_operations: Optional[Sequence[_capacitymanagement.OccCapacityRequestPatchOperationArgs]] = None,
            region: Optional[str] = None,
            request_state: Optional[str] = None,
            state: Optional[str] = None,
            system_tags: Optional[Mapping[str, Any]] = None,
            time_created: Optional[str] = None,
            time_updated: Optional[str] = None) -> OccCapacityRequest
    func GetOccCapacityRequest(ctx *Context, name string, id IDInput, state *OccCapacityRequestState, opts ...ResourceOption) (*OccCapacityRequest, error)
    public static OccCapacityRequest Get(string name, Input<string> id, OccCapacityRequestState? state, CustomResourceOptions? opts = null)
    public static OccCapacityRequest get(String name, Output<String> id, OccCapacityRequestState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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.
    The following state arguments are supported:
    AvailabilityDomain string
    The availability domain (AD) for which the capacity request is made. If this is specified then the capacity will be validated and fulfilled within the scope of this AD.
    CompartmentId string
    Since all resources are at tenancy level hence this will be the ocid of the tenancy where operation is to be performed.
    DateExpectedCapacityHandover string
    The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled.
    DefinedTags Dictionary<string, object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    Description string
    Meaningful text about the capacity request.
    Details List<OccCapacityRequestDetail>
    A list of different resources requested by the user.
    DisplayName string
    (Updatable) An user-friendly name for the capacity request. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    FreeformTags Dictionary<string, object>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    LifecycleDetails string
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed State.
    Namespace string
    The name of the Oracle Cloud Infrastructure service in consideration. For example, Compute, Exadata, and so on.
    OccAvailabilityCatalogId string
    The OCID of the availability catalog against which capacity request is made.
    OccCustomerGroupId string
    The OCID of the customer group to which this customer belongs to.
    PatchOperations List<OccCapacityRequestPatchOperation>
    (Updatable)
    Region string
    The name of the region for which the capacity request is made.
    RequestState string

    (Updatable) The subset of request states available for creating the capacity request.

    ** 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

    State string
    The current lifecycle state of the resource.
    SystemTags Dictionary<string, object>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time when the capacity request was created.
    TimeUpdated string
    The time when the capacity request was updated.
    AvailabilityDomain string
    The availability domain (AD) for which the capacity request is made. If this is specified then the capacity will be validated and fulfilled within the scope of this AD.
    CompartmentId string
    Since all resources are at tenancy level hence this will be the ocid of the tenancy where operation is to be performed.
    DateExpectedCapacityHandover string
    The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled.
    DefinedTags map[string]interface{}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    Description string
    Meaningful text about the capacity request.
    Details []OccCapacityRequestDetailArgs
    A list of different resources requested by the user.
    DisplayName string
    (Updatable) An user-friendly name for the capacity request. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    FreeformTags map[string]interface{}
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    LifecycleDetails string
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed State.
    Namespace string
    The name of the Oracle Cloud Infrastructure service in consideration. For example, Compute, Exadata, and so on.
    OccAvailabilityCatalogId string
    The OCID of the availability catalog against which capacity request is made.
    OccCustomerGroupId string
    The OCID of the customer group to which this customer belongs to.
    PatchOperations []OccCapacityRequestPatchOperationArgs
    (Updatable)
    Region string
    The name of the region for which the capacity request is made.
    RequestState string

    (Updatable) The subset of request states available for creating the capacity request.

    ** 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

    State string
    The current lifecycle state of the resource.
    SystemTags map[string]interface{}
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time when the capacity request was created.
    TimeUpdated string
    The time when the capacity request was updated.
    availabilityDomain String
    The availability domain (AD) for which the capacity request is made. If this is specified then the capacity will be validated and fulfilled within the scope of this AD.
    compartmentId String
    Since all resources are at tenancy level hence this will be the ocid of the tenancy where operation is to be performed.
    dateExpectedCapacityHandover String
    The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled.
    definedTags Map<String,Object>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description String
    Meaningful text about the capacity request.
    details List<OccCapacityRequestDetail>
    A list of different resources requested by the user.
    displayName String
    (Updatable) An user-friendly name for the capacity request. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags Map<String,Object>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    lifecycleDetails String
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed State.
    namespace String
    The name of the Oracle Cloud Infrastructure service in consideration. For example, Compute, Exadata, and so on.
    occAvailabilityCatalogId String
    The OCID of the availability catalog against which capacity request is made.
    occCustomerGroupId String
    The OCID of the customer group to which this customer belongs to.
    patchOperations List<OccCapacityRequestPatchOperation>
    (Updatable)
    region String
    The name of the region for which the capacity request is made.
    requestState String

    (Updatable) The subset of request states available for creating the capacity request.

    ** 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

    state String
    The current lifecycle state of the resource.
    systemTags Map<String,Object>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time when the capacity request was created.
    timeUpdated String
    The time when the capacity request was updated.
    availabilityDomain string
    The availability domain (AD) for which the capacity request is made. If this is specified then the capacity will be validated and fulfilled within the scope of this AD.
    compartmentId string
    Since all resources are at tenancy level hence this will be the ocid of the tenancy where operation is to be performed.
    dateExpectedCapacityHandover string
    The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled.
    definedTags {[key: string]: any}
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description string
    Meaningful text about the capacity request.
    details OccCapacityRequestDetail[]
    A list of different resources requested by the user.
    displayName string
    (Updatable) An user-friendly name for the capacity request. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags {[key: string]: any}
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    lifecycleDetails string
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed State.
    namespace string
    The name of the Oracle Cloud Infrastructure service in consideration. For example, Compute, Exadata, and so on.
    occAvailabilityCatalogId string
    The OCID of the availability catalog against which capacity request is made.
    occCustomerGroupId string
    The OCID of the customer group to which this customer belongs to.
    patchOperations OccCapacityRequestPatchOperation[]
    (Updatable)
    region string
    The name of the region for which the capacity request is made.
    requestState string

    (Updatable) The subset of request states available for creating the capacity request.

    ** 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

    state string
    The current lifecycle state of the resource.
    systemTags {[key: string]: any}
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The time when the capacity request was created.
    timeUpdated string
    The time when the capacity request was updated.
    availability_domain str
    The availability domain (AD) for which the capacity request is made. If this is specified then the capacity will be validated and fulfilled within the scope of this AD.
    compartment_id str
    Since all resources are at tenancy level hence this will be the ocid of the tenancy where operation is to be performed.
    date_expected_capacity_handover str
    The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled.
    defined_tags Mapping[str, Any]
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description str
    Meaningful text about the capacity request.
    details Sequence[capacitymanagement.OccCapacityRequestDetailArgs]
    A list of different resources requested by the user.
    display_name str
    (Updatable) An user-friendly name for the capacity request. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeform_tags Mapping[str, Any]
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    lifecycle_details str
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed State.
    namespace str
    The name of the Oracle Cloud Infrastructure service in consideration. For example, Compute, Exadata, and so on.
    occ_availability_catalog_id str
    The OCID of the availability catalog against which capacity request is made.
    occ_customer_group_id str
    The OCID of the customer group to which this customer belongs to.
    patch_operations Sequence[capacitymanagement.OccCapacityRequestPatchOperationArgs]
    (Updatable)
    region str
    The name of the region for which the capacity request is made.
    request_state str

    (Updatable) The subset of request states available for creating the capacity request.

    ** 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

    state str
    The current lifecycle state of the resource.
    system_tags 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 time when the capacity request was created.
    time_updated str
    The time when the capacity request was updated.
    availabilityDomain String
    The availability domain (AD) for which the capacity request is made. If this is specified then the capacity will be validated and fulfilled within the scope of this AD.
    compartmentId String
    Since all resources are at tenancy level hence this will be the ocid of the tenancy where operation is to be performed.
    dateExpectedCapacityHandover String
    The date by which the capacity requested by customers before dateFinalCustomerOrder needs to be fulfilled.
    definedTags Map<Any>
    (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description String
    Meaningful text about the capacity request.
    details List<Property Map>
    A list of different resources requested by the user.
    displayName String
    (Updatable) An user-friendly name for the capacity request. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags Map<Any>
    (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    lifecycleDetails String
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in a Failed State.
    namespace String
    The name of the Oracle Cloud Infrastructure service in consideration. For example, Compute, Exadata, and so on.
    occAvailabilityCatalogId String
    The OCID of the availability catalog against which capacity request is made.
    occCustomerGroupId String
    The OCID of the customer group to which this customer belongs to.
    patchOperations List<Property Map>
    (Updatable)
    region String
    The name of the region for which the capacity request is made.
    requestState String

    (Updatable) The subset of request states available for creating the capacity request.

    ** 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

    state String
    The current lifecycle state of the resource.
    systemTags Map<Any>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time when the capacity request was created.
    timeUpdated String
    The time when the capacity request was updated.

    Supporting Types

    OccCapacityRequestDetail, OccCapacityRequestDetailArgs

    DemandQuantity string
    The number of compute server's with name required by the user.
    ResourceName string
    The name of the COMPUTE server shape for which the request is made. Do not use CAPACITY_CONSTRAINT as the resource name.
    ResourceType string
    The type of the resource against which the user wants to place a capacity request.
    WorkloadType string
    The type of the workload (Generic/ROW).
    ActualHandoverQuantity string
    The actual handed over quantity of resources at the time of request resolution.
    DateActualHandover string
    The date on which the actual handover quantity of resources is delivered.
    DateExpectedHandover string
    The date on which the latest increment to supplied quantity of resources was delivered.
    ExpectedHandoverQuantity string
    The incremental quantity of resources supplied as the provisioning is underway.
    DemandQuantity string
    The number of compute server's with name required by the user.
    ResourceName string
    The name of the COMPUTE server shape for which the request is made. Do not use CAPACITY_CONSTRAINT as the resource name.
    ResourceType string
    The type of the resource against which the user wants to place a capacity request.
    WorkloadType string
    The type of the workload (Generic/ROW).
    ActualHandoverQuantity string
    The actual handed over quantity of resources at the time of request resolution.
    DateActualHandover string
    The date on which the actual handover quantity of resources is delivered.
    DateExpectedHandover string
    The date on which the latest increment to supplied quantity of resources was delivered.
    ExpectedHandoverQuantity string
    The incremental quantity of resources supplied as the provisioning is underway.
    demandQuantity String
    The number of compute server's with name required by the user.
    resourceName String
    The name of the COMPUTE server shape for which the request is made. Do not use CAPACITY_CONSTRAINT as the resource name.
    resourceType String
    The type of the resource against which the user wants to place a capacity request.
    workloadType String
    The type of the workload (Generic/ROW).
    actualHandoverQuantity String
    The actual handed over quantity of resources at the time of request resolution.
    dateActualHandover String
    The date on which the actual handover quantity of resources is delivered.
    dateExpectedHandover String
    The date on which the latest increment to supplied quantity of resources was delivered.
    expectedHandoverQuantity String
    The incremental quantity of resources supplied as the provisioning is underway.
    demandQuantity string
    The number of compute server's with name required by the user.
    resourceName string
    The name of the COMPUTE server shape for which the request is made. Do not use CAPACITY_CONSTRAINT as the resource name.
    resourceType string
    The type of the resource against which the user wants to place a capacity request.
    workloadType string
    The type of the workload (Generic/ROW).
    actualHandoverQuantity string
    The actual handed over quantity of resources at the time of request resolution.
    dateActualHandover string
    The date on which the actual handover quantity of resources is delivered.
    dateExpectedHandover string
    The date on which the latest increment to supplied quantity of resources was delivered.
    expectedHandoverQuantity string
    The incremental quantity of resources supplied as the provisioning is underway.
    demand_quantity str
    The number of compute server's with name required by the user.
    resource_name str
    The name of the COMPUTE server shape for which the request is made. Do not use CAPACITY_CONSTRAINT as the resource name.
    resource_type str
    The type of the resource against which the user wants to place a capacity request.
    workload_type str
    The type of the workload (Generic/ROW).
    actual_handover_quantity str
    The actual handed over quantity of resources at the time of request resolution.
    date_actual_handover str
    The date on which the actual handover quantity of resources is delivered.
    date_expected_handover str
    The date on which the latest increment to supplied quantity of resources was delivered.
    expected_handover_quantity str
    The incremental quantity of resources supplied as the provisioning is underway.
    demandQuantity String
    The number of compute server's with name required by the user.
    resourceName String
    The name of the COMPUTE server shape for which the request is made. Do not use CAPACITY_CONSTRAINT as the resource name.
    resourceType String
    The type of the resource against which the user wants to place a capacity request.
    workloadType String
    The type of the workload (Generic/ROW).
    actualHandoverQuantity String
    The actual handed over quantity of resources at the time of request resolution.
    dateActualHandover String
    The date on which the actual handover quantity of resources is delivered.
    dateExpectedHandover String
    The date on which the latest increment to supplied quantity of resources was delivered.
    expectedHandoverQuantity String
    The incremental quantity of resources supplied as the provisioning is underway.

    OccCapacityRequestPatchOperation, OccCapacityRequestPatchOperationArgs

    From string
    (Updatable)
    Operation string
    (Updatable) The operation can be one of these values: INSERT, INSERT_MULTIPLE, MERGE, MOVE, PROHIBIT, REMOVE, REPLACE, REQUIRE
    Selection string
    (Updatable)
    Value Dictionary<string, object>
    (Updatable)
    Position string
    (Updatable)
    SelectedItem string
    (Updatable)
    From string
    (Updatable)
    Operation string
    (Updatable) The operation can be one of these values: INSERT, INSERT_MULTIPLE, MERGE, MOVE, PROHIBIT, REMOVE, REPLACE, REQUIRE
    Selection string
    (Updatable)
    Value map[string]interface{}
    (Updatable)
    Position string
    (Updatable)
    SelectedItem string
    (Updatable)
    from String
    (Updatable)
    operation String
    (Updatable) The operation can be one of these values: INSERT, INSERT_MULTIPLE, MERGE, MOVE, PROHIBIT, REMOVE, REPLACE, REQUIRE
    selection String
    (Updatable)
    value Map<String,Object>
    (Updatable)
    position String
    (Updatable)
    selectedItem String
    (Updatable)
    from string
    (Updatable)
    operation string
    (Updatable) The operation can be one of these values: INSERT, INSERT_MULTIPLE, MERGE, MOVE, PROHIBIT, REMOVE, REPLACE, REQUIRE
    selection string
    (Updatable)
    value {[key: string]: any}
    (Updatable)
    position string
    (Updatable)
    selectedItem string
    (Updatable)
    from_ str
    (Updatable)
    operation str
    (Updatable) The operation can be one of these values: INSERT, INSERT_MULTIPLE, MERGE, MOVE, PROHIBIT, REMOVE, REPLACE, REQUIRE
    selection str
    (Updatable)
    value Mapping[str, Any]
    (Updatable)
    position str
    (Updatable)
    selected_item str
    (Updatable)
    from String
    (Updatable)
    operation String
    (Updatable) The operation can be one of these values: INSERT, INSERT_MULTIPLE, MERGE, MOVE, PROHIBIT, REMOVE, REPLACE, REQUIRE
    selection String
    (Updatable)
    value Map<Any>
    (Updatable)
    position String
    (Updatable)
    selectedItem String
    (Updatable)

    Import

    OccCapacityRequests can be imported using the id, e.g.

    $ pulumi import oci:CapacityManagement/occCapacityRequest:OccCapacityRequest test_occ_capacity_request "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.
    oci logo
    Oracle Cloud Infrastructure v2.4.0 published on Thursday, Jul 25, 2024 by Pulumi