1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. CapacityManagement
  5. OccCustomerGroupOccCustomer
Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi

oci.CapacityManagement.OccCustomerGroupOccCustomer

Explore with Pulumi AI

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

Create customer.

Example Usage

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

const testOccCustomerGroupOccCustomer = new oci.capacitymanagement.OccCustomerGroupOccCustomer("test_occ_customer_group_occ_customer", {
    displayName: occCustomerGroupOccCustomerDisplayName,
    occCustomerGroupId: testOccCustomerGroup.id,
    tenancyId: testTenancy.id,
    description: occCustomerGroupOccCustomerDescription,
    status: occCustomerGroupOccCustomerStatus,
});
Copy
import pulumi
import pulumi_oci as oci

test_occ_customer_group_occ_customer = oci.capacity_management.OccCustomerGroupOccCustomer("test_occ_customer_group_occ_customer",
    display_name=occ_customer_group_occ_customer_display_name,
    occ_customer_group_id=test_occ_customer_group["id"],
    tenancy_id=test_tenancy["id"],
    description=occ_customer_group_occ_customer_description,
    status=occ_customer_group_occ_customer_status)
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := capacitymanagement.NewOccCustomerGroupOccCustomer(ctx, "test_occ_customer_group_occ_customer", &capacitymanagement.OccCustomerGroupOccCustomerArgs{
			DisplayName:        pulumi.Any(occCustomerGroupOccCustomerDisplayName),
			OccCustomerGroupId: pulumi.Any(testOccCustomerGroup.Id),
			TenancyId:          pulumi.Any(testTenancy.Id),
			Description:        pulumi.Any(occCustomerGroupOccCustomerDescription),
			Status:             pulumi.Any(occCustomerGroupOccCustomerStatus),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testOccCustomerGroupOccCustomer = new Oci.CapacityManagement.OccCustomerGroupOccCustomer("test_occ_customer_group_occ_customer", new()
    {
        DisplayName = occCustomerGroupOccCustomerDisplayName,
        OccCustomerGroupId = testOccCustomerGroup.Id,
        TenancyId = testTenancy.Id,
        Description = occCustomerGroupOccCustomerDescription,
        Status = occCustomerGroupOccCustomerStatus,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.CapacityManagement.OccCustomerGroupOccCustomer;
import com.pulumi.oci.CapacityManagement.OccCustomerGroupOccCustomerArgs;
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 testOccCustomerGroupOccCustomer = new OccCustomerGroupOccCustomer("testOccCustomerGroupOccCustomer", OccCustomerGroupOccCustomerArgs.builder()
            .displayName(occCustomerGroupOccCustomerDisplayName)
            .occCustomerGroupId(testOccCustomerGroup.id())
            .tenancyId(testTenancy.id())
            .description(occCustomerGroupOccCustomerDescription)
            .status(occCustomerGroupOccCustomerStatus)
            .build());

    }
}
Copy
resources:
  testOccCustomerGroupOccCustomer:
    type: oci:CapacityManagement:OccCustomerGroupOccCustomer
    name: test_occ_customer_group_occ_customer
    properties:
      displayName: ${occCustomerGroupOccCustomerDisplayName}
      occCustomerGroupId: ${testOccCustomerGroup.id}
      tenancyId: ${testTenancy.id}
      description: ${occCustomerGroupOccCustomerDescription}
      status: ${occCustomerGroupOccCustomerStatus}
Copy

Create OccCustomerGroupOccCustomer Resource

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

Constructor syntax

new OccCustomerGroupOccCustomer(name: string, args: OccCustomerGroupOccCustomerArgs, opts?: CustomResourceOptions);
@overload
def OccCustomerGroupOccCustomer(resource_name: str,
                                args: OccCustomerGroupOccCustomerArgs,
                                opts: Optional[ResourceOptions] = None)

@overload
def OccCustomerGroupOccCustomer(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                display_name: Optional[str] = None,
                                occ_customer_group_id: Optional[str] = None,
                                tenancy_id: Optional[str] = None,
                                description: Optional[str] = None,
                                status: Optional[str] = None)
func NewOccCustomerGroupOccCustomer(ctx *Context, name string, args OccCustomerGroupOccCustomerArgs, opts ...ResourceOption) (*OccCustomerGroupOccCustomer, error)
public OccCustomerGroupOccCustomer(string name, OccCustomerGroupOccCustomerArgs args, CustomResourceOptions? opts = null)
public OccCustomerGroupOccCustomer(String name, OccCustomerGroupOccCustomerArgs args)
public OccCustomerGroupOccCustomer(String name, OccCustomerGroupOccCustomerArgs args, CustomResourceOptions options)
type: oci:CapacityManagement:OccCustomerGroupOccCustomer
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. OccCustomerGroupOccCustomerArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. OccCustomerGroupOccCustomerArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. OccCustomerGroupOccCustomerArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. OccCustomerGroupOccCustomerArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. OccCustomerGroupOccCustomerArgs
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 occCustomerGroupOccCustomerResource = new Oci.CapacityManagement.OccCustomerGroupOccCustomer("occCustomerGroupOccCustomerResource", new()
{
    DisplayName = "string",
    OccCustomerGroupId = "string",
    TenancyId = "string",
    Description = "string",
    Status = "string",
});
Copy
example, err := CapacityManagement.NewOccCustomerGroupOccCustomer(ctx, "occCustomerGroupOccCustomerResource", &CapacityManagement.OccCustomerGroupOccCustomerArgs{
	DisplayName:        pulumi.String("string"),
	OccCustomerGroupId: pulumi.String("string"),
	TenancyId:          pulumi.String("string"),
	Description:        pulumi.String("string"),
	Status:             pulumi.String("string"),
})
Copy
var occCustomerGroupOccCustomerResource = new OccCustomerGroupOccCustomer("occCustomerGroupOccCustomerResource", OccCustomerGroupOccCustomerArgs.builder()
    .displayName("string")
    .occCustomerGroupId("string")
    .tenancyId("string")
    .description("string")
    .status("string")
    .build());
Copy
occ_customer_group_occ_customer_resource = oci.capacity_management.OccCustomerGroupOccCustomer("occCustomerGroupOccCustomerResource",
    display_name="string",
    occ_customer_group_id="string",
    tenancy_id="string",
    description="string",
    status="string")
Copy
const occCustomerGroupOccCustomerResource = new oci.capacitymanagement.OccCustomerGroupOccCustomer("occCustomerGroupOccCustomerResource", {
    displayName: "string",
    occCustomerGroupId: "string",
    tenancyId: "string",
    description: "string",
    status: "string",
});
Copy
type: oci:CapacityManagement:OccCustomerGroupOccCustomer
properties:
    description: string
    displayName: string
    occCustomerGroupId: string
    status: string
    tenancyId: string
Copy

OccCustomerGroupOccCustomer 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 OccCustomerGroupOccCustomer resource accepts the following input properties:

DisplayName This property is required. string
(Updatable) The display name for the customer.
OccCustomerGroupId
This property is required.
Changes to this property will trigger replacement.
string
The OCID of the customer group.
TenancyId
This property is required.
Changes to this property will trigger replacement.
string

The OCID of the tenancy belonging to the customer.

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

Description string
(Updatable) The description about the customer group.
Status string
(Updatable) To determine whether the customer is enabled/disabled.
DisplayName This property is required. string
(Updatable) The display name for the customer.
OccCustomerGroupId
This property is required.
Changes to this property will trigger replacement.
string
The OCID of the customer group.
TenancyId
This property is required.
Changes to this property will trigger replacement.
string

The OCID of the tenancy belonging to the customer.

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

Description string
(Updatable) The description about the customer group.
Status string
(Updatable) To determine whether the customer is enabled/disabled.
displayName This property is required. String
(Updatable) The display name for the customer.
occCustomerGroupId
This property is required.
Changes to this property will trigger replacement.
String
The OCID of the customer group.
tenancyId
This property is required.
Changes to this property will trigger replacement.
String

The OCID of the tenancy belonging to the customer.

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

description String
(Updatable) The description about the customer group.
status String
(Updatable) To determine whether the customer is enabled/disabled.
displayName This property is required. string
(Updatable) The display name for the customer.
occCustomerGroupId
This property is required.
Changes to this property will trigger replacement.
string
The OCID of the customer group.
tenancyId
This property is required.
Changes to this property will trigger replacement.
string

The OCID of the tenancy belonging to the customer.

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

description string
(Updatable) The description about the customer group.
status string
(Updatable) To determine whether the customer is enabled/disabled.
display_name This property is required. str
(Updatable) The display name for the customer.
occ_customer_group_id
This property is required.
Changes to this property will trigger replacement.
str
The OCID of the customer group.
tenancy_id
This property is required.
Changes to this property will trigger replacement.
str

The OCID of the tenancy belonging to the customer.

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

description str
(Updatable) The description about the customer group.
status str
(Updatable) To determine whether the customer is enabled/disabled.
displayName This property is required. String
(Updatable) The display name for the customer.
occCustomerGroupId
This property is required.
Changes to this property will trigger replacement.
String
The OCID of the customer group.
tenancyId
This property is required.
Changes to this property will trigger replacement.
String

The OCID of the tenancy belonging to the customer.

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

description String
(Updatable) The description about the customer group.
status String
(Updatable) To determine whether the customer is enabled/disabled.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing OccCustomerGroupOccCustomer Resource

Get an existing OccCustomerGroupOccCustomer 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?: OccCustomerGroupOccCustomerState, opts?: CustomResourceOptions): OccCustomerGroupOccCustomer
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        description: Optional[str] = None,
        display_name: Optional[str] = None,
        occ_customer_group_id: Optional[str] = None,
        status: Optional[str] = None,
        tenancy_id: Optional[str] = None) -> OccCustomerGroupOccCustomer
func GetOccCustomerGroupOccCustomer(ctx *Context, name string, id IDInput, state *OccCustomerGroupOccCustomerState, opts ...ResourceOption) (*OccCustomerGroupOccCustomer, error)
public static OccCustomerGroupOccCustomer Get(string name, Input<string> id, OccCustomerGroupOccCustomerState? state, CustomResourceOptions? opts = null)
public static OccCustomerGroupOccCustomer get(String name, Output<String> id, OccCustomerGroupOccCustomerState state, CustomResourceOptions options)
resources:  _:    type: oci:CapacityManagement:OccCustomerGroupOccCustomer    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Description string
(Updatable) The description about the customer group.
DisplayName string
(Updatable) The display name for the customer.
OccCustomerGroupId Changes to this property will trigger replacement. string
The OCID of the customer group.
Status string
(Updatable) To determine whether the customer is enabled/disabled.
TenancyId Changes to this property will trigger replacement. string

The OCID of the tenancy belonging to the customer.

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

Description string
(Updatable) The description about the customer group.
DisplayName string
(Updatable) The display name for the customer.
OccCustomerGroupId Changes to this property will trigger replacement. string
The OCID of the customer group.
Status string
(Updatable) To determine whether the customer is enabled/disabled.
TenancyId Changes to this property will trigger replacement. string

The OCID of the tenancy belonging to the customer.

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

description String
(Updatable) The description about the customer group.
displayName String
(Updatable) The display name for the customer.
occCustomerGroupId Changes to this property will trigger replacement. String
The OCID of the customer group.
status String
(Updatable) To determine whether the customer is enabled/disabled.
tenancyId Changes to this property will trigger replacement. String

The OCID of the tenancy belonging to the customer.

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

description string
(Updatable) The description about the customer group.
displayName string
(Updatable) The display name for the customer.
occCustomerGroupId Changes to this property will trigger replacement. string
The OCID of the customer group.
status string
(Updatable) To determine whether the customer is enabled/disabled.
tenancyId Changes to this property will trigger replacement. string

The OCID of the tenancy belonging to the customer.

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

description str
(Updatable) The description about the customer group.
display_name str
(Updatable) The display name for the customer.
occ_customer_group_id Changes to this property will trigger replacement. str
The OCID of the customer group.
status str
(Updatable) To determine whether the customer is enabled/disabled.
tenancy_id Changes to this property will trigger replacement. str

The OCID of the tenancy belonging to the customer.

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

description String
(Updatable) The description about the customer group.
displayName String
(Updatable) The display name for the customer.
occCustomerGroupId Changes to this property will trigger replacement. String
The OCID of the customer group.
status String
(Updatable) To determine whether the customer is enabled/disabled.
tenancyId Changes to this property will trigger replacement. String

The OCID of the tenancy belonging to the customer.

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

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

$ pulumi import oci:CapacityManagement/occCustomerGroupOccCustomer:OccCustomerGroupOccCustomer test_occ_customer_group_occ_customer "id"
Copy

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.