Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.CapacityManagement.getOccCustomerGroups
Explore with Pulumi AI
This data source provides the list of Occ Customer Groups in Oracle Cloud Infrastructure Capacity Management service.
Lists all the customer groups.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testOccCustomerGroups = oci.CapacityManagement.getOccCustomerGroups({
compartmentId: compartmentId,
displayName: occCustomerGroupDisplayName,
id: occCustomerGroupId,
status: occCustomerGroupStatus,
});
import pulumi
import pulumi_oci as oci
test_occ_customer_groups = oci.CapacityManagement.get_occ_customer_groups(compartment_id=compartment_id,
display_name=occ_customer_group_display_name,
id=occ_customer_group_id,
status=occ_customer_group_status)
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.GetOccCustomerGroups(ctx, &capacitymanagement.GetOccCustomerGroupsArgs{
CompartmentId: compartmentId,
DisplayName: pulumi.StringRef(occCustomerGroupDisplayName),
Id: pulumi.StringRef(occCustomerGroupId),
Status: pulumi.StringRef(occCustomerGroupStatus),
}, 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 testOccCustomerGroups = Oci.CapacityManagement.GetOccCustomerGroups.Invoke(new()
{
CompartmentId = compartmentId,
DisplayName = occCustomerGroupDisplayName,
Id = occCustomerGroupId,
Status = occCustomerGroupStatus,
});
});
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.GetOccCustomerGroupsArgs;
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 testOccCustomerGroups = CapacityManagementFunctions.getOccCustomerGroups(GetOccCustomerGroupsArgs.builder()
.compartmentId(compartmentId)
.displayName(occCustomerGroupDisplayName)
.id(occCustomerGroupId)
.status(occCustomerGroupStatus)
.build());
}
}
variables:
testOccCustomerGroups:
fn::invoke:
Function: oci:CapacityManagement:getOccCustomerGroups
Arguments:
compartmentId: ${compartmentId}
displayName: ${occCustomerGroupDisplayName}
id: ${occCustomerGroupId}
status: ${occCustomerGroupStatus}
Using getOccCustomerGroups
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 getOccCustomerGroups(args: GetOccCustomerGroupsArgs, opts?: InvokeOptions): Promise<GetOccCustomerGroupsResult>
function getOccCustomerGroupsOutput(args: GetOccCustomerGroupsOutputArgs, opts?: InvokeOptions): Output<GetOccCustomerGroupsResult>
def get_occ_customer_groups(compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[_capacitymanagement.GetOccCustomerGroupsFilter]] = None,
id: Optional[str] = None,
status: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetOccCustomerGroupsResult
def get_occ_customer_groups_output(compartment_id: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_capacitymanagement.GetOccCustomerGroupsFilterArgs]]]] = None,
id: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetOccCustomerGroupsResult]
func GetOccCustomerGroups(ctx *Context, args *GetOccCustomerGroupsArgs, opts ...InvokeOption) (*GetOccCustomerGroupsResult, error)
func GetOccCustomerGroupsOutput(ctx *Context, args *GetOccCustomerGroupsOutputArgs, opts ...InvokeOption) GetOccCustomerGroupsResultOutput
> Note: This function is named GetOccCustomerGroups
in the Go SDK.
public static class GetOccCustomerGroups
{
public static Task<GetOccCustomerGroupsResult> InvokeAsync(GetOccCustomerGroupsArgs args, InvokeOptions? opts = null)
public static Output<GetOccCustomerGroupsResult> Invoke(GetOccCustomerGroupsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetOccCustomerGroupsResult> getOccCustomerGroups(GetOccCustomerGroupsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:CapacityManagement/getOccCustomerGroups:getOccCustomerGroups
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes.
- Display
Name string - A filter to return only the resources that match the entire display name. The match is not case sensitive.
- Filters
List<Get
Occ Customer Groups Filter> - Id string
- A query filter to return the list result based on the customer group OCID. This is done for users who have INSPECT permission but do not have READ permission.
- Status string
- A query filter to return the list result based on status.
- Compartment
Id string - The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes.
- Display
Name string - A filter to return only the resources that match the entire display name. The match is not case sensitive.
- Filters
[]Get
Occ Customer Groups Filter - Id string
- A query filter to return the list result based on the customer group OCID. This is done for users who have INSPECT permission but do not have READ permission.
- Status string
- A query filter to return the list result based on status.
- compartment
Id String - The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes.
- display
Name String - A filter to return only the resources that match the entire display name. The match is not case sensitive.
- filters
List<Get
Occ Customer Groups Filter> - id String
- A query filter to return the list result based on the customer group OCID. This is done for users who have INSPECT permission but do not have READ permission.
- status String
- A query filter to return the list result based on status.
- compartment
Id string - The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes.
- display
Name string - A filter to return only the resources that match the entire display name. The match is not case sensitive.
- filters
Get
Occ Customer Groups Filter[] - id string
- A query filter to return the list result based on the customer group OCID. This is done for users who have INSPECT permission but do not have READ permission.
- status string
- A query filter to return the list result based on status.
- compartment_
id str - The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes.
- display_
name str - A filter to return only the resources that match the entire display name. The match is not case sensitive.
- filters
Sequence[capacitymanagement.
Get Occ Customer Groups Filter] - id str
- A query filter to return the list result based on the customer group OCID. This is done for users who have INSPECT permission but do not have READ permission.
- status str
- A query filter to return the list result based on status.
- compartment
Id String - The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes.
- display
Name String - A filter to return only the resources that match the entire display name. The match is not case sensitive.
- filters List<Property Map>
- id String
- A query filter to return the list result based on the customer group OCID. This is done for users who have INSPECT permission but do not have READ permission.
- status String
- A query filter to return the list result based on status.
getOccCustomerGroups Result
The following output properties are available:
- Compartment
Id string - The OCID of the tenancy containing the customer group.
- Occ
Customer List<GetGroup Collections Occ Customer Groups Occ Customer Group Collection> - The list of occ_customer_group_collection.
- Display
Name string - The display name of the customer group.
- Filters
List<Get
Occ Customer Groups Filter> - Id string
- The OCID of the customer group.
- Status string
- To determine whether the customer group is enabled/disabled.
- Compartment
Id string - The OCID of the tenancy containing the customer group.
- Occ
Customer []GetGroup Collections Occ Customer Groups Occ Customer Group Collection - The list of occ_customer_group_collection.
- Display
Name string - The display name of the customer group.
- Filters
[]Get
Occ Customer Groups Filter - Id string
- The OCID of the customer group.
- Status string
- To determine whether the customer group is enabled/disabled.
- compartment
Id String - The OCID of the tenancy containing the customer group.
- occ
Customer List<GetGroup Collections Occ Customer Groups Occ Customer Group Collection> - The list of occ_customer_group_collection.
- display
Name String - The display name of the customer group.
- filters
List<Get
Occ Customer Groups Filter> - id String
- The OCID of the customer group.
- status String
- To determine whether the customer group is enabled/disabled.
- compartment
Id string - The OCID of the tenancy containing the customer group.
- occ
Customer GetGroup Collections Occ Customer Groups Occ Customer Group Collection[] - The list of occ_customer_group_collection.
- display
Name string - The display name of the customer group.
- filters
Get
Occ Customer Groups Filter[] - id string
- The OCID of the customer group.
- status string
- To determine whether the customer group is enabled/disabled.
- compartment_
id str - The OCID of the tenancy containing the customer group.
- occ_
customer_ Sequence[capacitymanagement.group_ collections Get Occ Customer Groups Occ Customer Group Collection] - The list of occ_customer_group_collection.
- display_
name str - The display name of the customer group.
- filters
Sequence[capacitymanagement.
Get Occ Customer Groups Filter] - id str
- The OCID of the customer group.
- status str
- To determine whether the customer group is enabled/disabled.
- compartment
Id String - The OCID of the tenancy containing the customer group.
- occ
Customer List<Property Map>Group Collections - The list of occ_customer_group_collection.
- display
Name String - The display name of the customer group.
- filters List<Property Map>
- id String
- The OCID of the customer group.
- status String
- To determine whether the customer group is enabled/disabled.
Supporting Types
GetOccCustomerGroupsFilter
GetOccCustomerGroupsOccCustomerGroupCollection
GetOccCustomerGroupsOccCustomerGroupCollectionItem
- Compartment
Id string - The ocid of the compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes.
- Customers
Lists List<GetOcc Customer Groups Occ Customer Group Collection Item Customers List> - A list containing all the customers that belong to this customer group
- Dictionary<string, string>
- 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 - A filter to return only the resources that match the entire display name. The match is not case sensitive.
- Dictionary<string, string>
- 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
- A query filter to return the list result based on the customer group OCID. This is done for users who have INSPECT permission but do not have READ permission.
- 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.
- State string
- The current lifecycle state of the resource.
- Status string
- A query filter to return the list result based on status.
- Dictionary<string, string>
- 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 compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes.
- Customers
Lists []GetOcc Customer Groups Occ Customer Group Collection Item Customers List - A list containing all the customers that belong to this customer group
- map[string]string
- 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 - A filter to return only the resources that match the entire display name. The match is not case sensitive.
- map[string]string
- 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
- A query filter to return the list result based on the customer group OCID. This is done for users who have INSPECT permission but do not have READ permission.
- 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.
- State string
- The current lifecycle state of the resource.
- Status string
- A query filter to return the list result based on status.
- map[string]string
- 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 compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes.
- customers
Lists List<GetOcc Customer Groups Occ Customer Group Collection Item Customers List> - A list containing all the customers that belong to this customer group
- Map<String,String>
- 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 - A filter to return only the resources that match the entire display name. The match is not case sensitive.
- Map<String,String>
- 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
- A query filter to return the list result based on the customer group OCID. This is done for users who have INSPECT permission but do not have READ permission.
- 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.
- state String
- The current lifecycle state of the resource.
- status String
- A query filter to return the list result based on status.
- Map<String,String>
- 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 compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes.
- customers
Lists GetOcc Customer Groups Occ Customer Group Collection Item Customers List[] - A list containing all the customers that belong to this customer group
- {[key: string]: string}
- 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 - A filter to return only the resources that match the entire display name. The match is not case sensitive.
- {[key: string]: string}
- 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
- A query filter to return the list result based on the customer group OCID. This is done for users who have INSPECT permission but do not have READ permission.
- 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.
- state string
- The current lifecycle state of the resource.
- status string
- A query filter to return the list result based on status.
- {[key: string]: string}
- 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 compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes.
- customers_
lists Sequence[capacitymanagement.Get Occ Customer Groups Occ Customer Group Collection Item Customers List] - A list containing all the customers that belong to this customer group
- Mapping[str, str]
- 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 - A filter to return only the resources that match the entire display name. The match is not case sensitive.
- Mapping[str, str]
- 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
- A query filter to return the list result based on the customer group OCID. This is done for users who have INSPECT permission but do not have READ permission.
- 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.
- state str
- The current lifecycle state of the resource.
- status str
- A query filter to return the list result based on status.
- Mapping[str, str]
- 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 compartment or tenancy in which resources are to be listed. This will also be used for authorization purposes.
- customers
Lists List<Property Map> - A list containing all the customers that belong to this customer group
- Map<String>
- 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 - A filter to return only the resources that match the entire display name. The match is not case sensitive.
- Map<String>
- 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
- A query filter to return the list result based on the customer group OCID. This is done for users who have INSPECT permission but do not have READ permission.
- 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.
- state String
- The current lifecycle state of the resource.
- status String
- A query filter to return the list result based on status.
- Map<String>
- 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.
GetOccCustomerGroupsOccCustomerGroupCollectionItemCustomersList
- Description string
- The description about the customer group.
- Display
Name string - A filter to return only the resources that match the entire display name. The match is not case sensitive.
- Occ
Customer stringGroup Id - The OCID of the customer group.
- Status string
- A query filter to return the list result based on status.
- Tenancy
Id string - The OCID of the tenancy belonging to the customer.
- Description string
- The description about the customer group.
- Display
Name string - A filter to return only the resources that match the entire display name. The match is not case sensitive.
- Occ
Customer stringGroup Id - The OCID of the customer group.
- Status string
- A query filter to return the list result based on status.
- Tenancy
Id string - The OCID of the tenancy belonging to the customer.
- description String
- The description about the customer group.
- display
Name String - A filter to return only the resources that match the entire display name. The match is not case sensitive.
- occ
Customer StringGroup Id - The OCID of the customer group.
- status String
- A query filter to return the list result based on status.
- tenancy
Id String - The OCID of the tenancy belonging to the customer.
- description string
- The description about the customer group.
- display
Name string - A filter to return only the resources that match the entire display name. The match is not case sensitive.
- occ
Customer stringGroup Id - The OCID of the customer group.
- status string
- A query filter to return the list result based on status.
- tenancy
Id string - The OCID of the tenancy belonging to the customer.
- description str
- The description about the customer group.
- display_
name str - A filter to return only the resources that match the entire display name. The match is not case sensitive.
- occ_
customer_ strgroup_ id - The OCID of the customer group.
- status str
- A query filter to return the list result based on status.
- tenancy_
id str - The OCID of the tenancy belonging to the customer.
- description String
- The description about the customer group.
- display
Name String - A filter to return only the resources that match the entire display name. The match is not case sensitive.
- occ
Customer StringGroup Id - The OCID of the customer group.
- status String
- A query filter to return the list result based on status.
- 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.