Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.CapacityManagement.getOccCustomerGroup
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
This data source provides details about a specific Occ Customer Group resource in Oracle Cloud Infrastructure Capacity Management service.
Gets information about the specified customer group.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testOccCustomerGroup = oci.CapacityManagement.getOccCustomerGroup({
occCustomerGroupId: testOccCustomerGroupOciCapacityManagementOccCustomerGroup.id,
});
import pulumi
import pulumi_oci as oci
test_occ_customer_group = oci.CapacityManagement.get_occ_customer_group(occ_customer_group_id=test_occ_customer_group_oci_capacity_management_occ_customer_group["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/CapacityManagement"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := CapacityManagement.GetOccCustomerGroup(ctx, &capacitymanagement.GetOccCustomerGroupArgs{
OccCustomerGroupId: testOccCustomerGroupOciCapacityManagementOccCustomerGroup.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testOccCustomerGroup = Oci.CapacityManagement.GetOccCustomerGroup.Invoke(new()
{
OccCustomerGroupId = testOccCustomerGroupOciCapacityManagementOccCustomerGroup.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.CapacityManagement.CapacityManagementFunctions;
import com.pulumi.oci.CapacityManagement.inputs.GetOccCustomerGroupArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var testOccCustomerGroup = CapacityManagementFunctions.getOccCustomerGroup(GetOccCustomerGroupArgs.builder()
.occCustomerGroupId(testOccCustomerGroupOciCapacityManagementOccCustomerGroup.id())
.build());
}
}
variables:
testOccCustomerGroup:
fn::invoke:
Function: oci:CapacityManagement:getOccCustomerGroup
Arguments:
occCustomerGroupId: ${testOccCustomerGroupOciCapacityManagementOccCustomerGroup.id}
Using getOccCustomerGroup
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getOccCustomerGroup(args: GetOccCustomerGroupArgs, opts?: InvokeOptions): Promise<GetOccCustomerGroupResult>
function getOccCustomerGroupOutput(args: GetOccCustomerGroupOutputArgs, opts?: InvokeOptions): Output<GetOccCustomerGroupResult>
def get_occ_customer_group(occ_customer_group_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetOccCustomerGroupResult
def get_occ_customer_group_output(occ_customer_group_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetOccCustomerGroupResult]
func GetOccCustomerGroup(ctx *Context, args *GetOccCustomerGroupArgs, opts ...InvokeOption) (*GetOccCustomerGroupResult, error)
func GetOccCustomerGroupOutput(ctx *Context, args *GetOccCustomerGroupOutputArgs, opts ...InvokeOption) GetOccCustomerGroupResultOutput
> Note: This function is named GetOccCustomerGroup
in the Go SDK.
public static class GetOccCustomerGroup
{
public static Task<GetOccCustomerGroupResult> InvokeAsync(GetOccCustomerGroupArgs args, InvokeOptions? opts = null)
public static Output<GetOccCustomerGroupResult> Invoke(GetOccCustomerGroupInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetOccCustomerGroupResult> getOccCustomerGroup(GetOccCustomerGroupArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:CapacityManagement/getOccCustomerGroup:getOccCustomerGroup
arguments:
# arguments dictionary
The following arguments are supported:
- Occ
Customer stringGroup Id - The OCID of the customer group.
- Occ
Customer stringGroup Id - The OCID of the customer group.
- occ
Customer StringGroup Id - The OCID of the customer group.
- occ
Customer stringGroup Id - The OCID of the customer group.
- occ_
customer_ strgroup_ id - The OCID of the customer group.
- occ
Customer StringGroup Id - The OCID of the customer group.
getOccCustomerGroup Result
The following output properties are available:
- Compartment
Id string - The OCID of the tenancy containing the customer group.
- Customers
Lists List<GetOcc Customer Group Customers List> - A list containing all the customers that belong to this customer group
- Dictionary<string, object>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Description string
- The description about the customer group.
- Display
Name string - The display name of the customer group.
- Dictionary<string, object>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
Details 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.
- Occ
Customer stringGroup Id - The OCID of the customer group.
- State string
- The current lifecycle state of the resource.
- Status string
- To determine whether the customer group is enabled/disabled.
- Dictionary<string, object>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time when the customer group was created.
- Time
Updated string - The time when the customer group was last updated.
- Compartment
Id string - The OCID of the tenancy containing the customer group.
- Customers
Lists []GetOcc Customer Group Customers List - A list containing all the customers that belong to this customer group
- map[string]interface{}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Description string
- The description about the customer group.
- Display
Name string - The display name of the customer group.
- map[string]interface{}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
Details 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.
- Occ
Customer stringGroup Id - The OCID of the customer group.
- State string
- The current lifecycle state of the resource.
- Status string
- To determine whether the customer group is enabled/disabled.
- map[string]interface{}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time when the customer group was created.
- Time
Updated string - The time when the customer group was last updated.
- compartment
Id String - The OCID of the tenancy containing the customer group.
- customers
Lists List<GetOcc Customer Group Customers List> - A list containing all the customers that belong to this customer group
- Map<String,Object>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description String
- The description about the customer group.
- display
Name String - The display name of the customer group.
- Map<String,Object>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details 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.
- occ
Customer StringGroup Id - The OCID of the customer group.
- state String
- The current lifecycle state of the resource.
- status String
- To determine whether the customer group is enabled/disabled.
- Map<String,Object>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time when the customer group was created.
- time
Updated String - The time when the customer group was last updated.
- compartment
Id string - The OCID of the tenancy containing the customer group.
- customers
Lists GetOcc Customer Group Customers List[] - A list containing all the customers that belong to this customer group
- {[key: string]: any}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description string
- The description about the customer group.
- display
Name string - The display name of the customer group.
- {[key: string]: any}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id string
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details 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.
- occ
Customer stringGroup Id - The OCID of the customer group.
- state string
- The current lifecycle state of the resource.
- status string
- To determine whether the customer group is enabled/disabled.
- {[key: string]: any}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string - The time when the customer group was created.
- time
Updated string - The time when the customer group was last updated.
- compartment_
id str - The OCID of the tenancy containing the customer group.
- customers_
lists Sequence[capacitymanagement.Get Occ Customer Group Customers List] - A list containing all the customers that belong to this customer group
- Mapping[str, Any]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description str
- The description about the customer group.
- display_
name str - The display name of the customer group.
- Mapping[str, Any]
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id str
- The provider-assigned unique ID for this managed resource.
- 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.
- occ_
customer_ strgroup_ id - The OCID of the customer group.
- state str
- The current lifecycle state of the resource.
- status str
- To determine whether the customer group is enabled/disabled.
- 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 customer group was created.
- time_
updated str - The time when the customer group was last updated.
- compartment
Id String - The OCID of the tenancy containing the customer group.
- customers
Lists List<Property Map> - A list containing all the customers that belong to this customer group
- Map<Any>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description String
- The description about the customer group.
- display
Name String - The display name of the customer group.
- Map<Any>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details 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.
- occ
Customer StringGroup Id - The OCID of the customer group.
- state String
- The current lifecycle state of the resource.
- status String
- To determine whether the customer group is enabled/disabled.
- Map<Any>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time when the customer group was created.
- time
Updated String - The time when the customer group was last updated.
Supporting Types
GetOccCustomerGroupCustomersList
- Description string
- The description about the customer group.
- Display
Name string - The display name of the customer group.
- Occ
Customer stringGroup Id - The OCID of the customer group.
- Status string
- To determine whether the customer group is enabled/disabled.
- Tenancy
Id string - The OCID of the tenancy belonging to the customer.
- Description string
- The description about the customer group.
- Display
Name string - The display name of the customer group.
- Occ
Customer stringGroup Id - The OCID of the customer group.
- Status string
- To determine whether the customer group is enabled/disabled.
- Tenancy
Id string - The OCID of the tenancy belonging to the customer.
- description String
- The description about the customer group.
- display
Name String - The display name of the customer group.
- occ
Customer StringGroup Id - The OCID of the customer group.
- status String
- To determine whether the customer group is enabled/disabled.
- tenancy
Id String - The OCID of the tenancy belonging to the customer.
- description string
- The description about the customer group.
- display
Name string - The display name of the customer group.
- occ
Customer stringGroup Id - The OCID of the customer group.
- status string
- To determine whether the customer group is enabled/disabled.
- tenancy
Id string - The OCID of the tenancy belonging to the customer.
- description str
- The description about the customer group.
- display_
name str - The display name of the customer group.
- occ_
customer_ strgroup_ id - The OCID of the customer group.
- status str
- To determine whether the customer group is enabled/disabled.
- tenancy_
id str - The OCID of the tenancy belonging to the customer.
- description String
- The description about the customer group.
- display
Name String - The display name of the customer group.
- occ
Customer StringGroup Id - The OCID of the customer group.
- status String
- To determine whether the customer group is enabled/disabled.
- tenancy
Id String - The OCID of the tenancy belonging to the customer.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi