# Managing Accounts and SLAs

# Managing Groups

This section describes how service provider and application groups are managed and provisioned:

- Summary of Tasks Related to Groups
- Reference: Attributes and Operations for ApplicationGroups

See Reference: Attributes and Operations for ApplicationGroups for information finding the operations in the Administration Console and for the name of the MBean.

Prior to registering application and service provider groups, SLAs must be created, see Defining Service Provider Group and Application Group SLAs.

## Summary of Tasks Related to Groups

### Application Groups

To... | Use...
--- | ---
Get information about the number of application groups | Operation: countApplicationGroups
Add, remove and get information about an application group. | Operation: addApplicationGroup Operation: removeApplicationGroup Operation: getApplicationGroup
List registered application groups. | Operation: listApplicationGroups
Define additional properties for an application group | Operation: setApplicationGroupProperties

### Service Provider Groups

To... | Use...
--- | ---
Get information about the number of service provider groups | Operation: countServiceProviderGroups
Add, remove and get information about a service provider group. | Operation: addServiceProviderGroup Operation: removeServiceProviderGroup Operation: getServiceProviderGroup
List registered service provider groups. | Operation: listServiceProviderGroups
Define additional properties for an service provider group | Operation: setServiceProviderGroupProperties

## Reference: Attributes and Operations for ApplicationGroups

Managed object: Container Services->AccountService->ApplicationGroups

MBean: com.bea.wlcp.wlng.account.management.ApplicationGroupMBean

Below is a list of operations for configuration and maintenance

- Operation: addApplicationGroup
- Operation: addServiceProviderGroup
- Operation: countApplicationGroups
- Operation: countServiceProviderGroups
- Operation: getApplicationGroup
- Operation: getServiceProviderGroup
- Operation: listApplicationGroups
- Operation: listServiceProviderGroups
- Operation: removeApplicationGroup
- Operation: removeServiceProviderGroup
- Operation: setApplicationGroupProperties
- Operation: setServiceProviderGroupProperties

#### Operation: addApplicationGroup

Scope: Domain

Adds a new application group.

Signature:

    addApplicationGroup(ApplicationGroupIdentifier: String)

Table 5-1 addApplicationGroup
addApplicationGroup
Parameter | Description
--- | ---
ApplicationGroupIdentifier | Unique ID for the application group.

#### Operation: addServiceProviderGroup

Scope: Domain

Adds a new service provider group.

Signature:

    addServiceProviderGroup( ServiceProviderGroupIdentifier: String)

Table 5-2 addServiceProviderGroup
addServiceProviderGroup
Parameter | Description
--- | ---
ServiceProviderGroupIdentifier | Unique ID for the service provider group.

#### Operation: countApplicationGroups

Scope: Domain

Displays the number of application groups.

Signature:

    countApplicationGroups()

Table 5-3 countApplicationGroups
countApplicationGroups
Parameter | Description
--- | ---
- | -

#### Operation: countServiceProviderGroups

Scope: Domain

Displays the number of service provider groups.

Signature:

    countServiceProviderGroups()

Table 5-4 countServiceProviderGroups
countServiceProviderGroups
Parameter | Description
--- | ---
- | -

#### Operation: getApplicationGroup

Scope: Domain

Displays information about an application group, including:

- Application group description
- Properties: see Account Properties

Signature:

    getApplicationGroup(ApplicationGroupIdentifier: String)

Table 5-5 getApplicationGroup
getApplicationGroup
Parameter | Description
--- | ---
ApplicationGroupIdentifier | ID of the application group whose description is desired.

#### Operation: getServiceProviderGroup

Scope: Domain

Displays information about a service provider group.

The information includes:

- Service provider group description.
- Properties: see Account Properties

Signature:

    getServiceProviderGroup(ServiceProviderGroupIdentifier: String)

Table 5-6 getServiceProviderGroup
getApplicationGroup
Parameter | Description
--- | ---
ServiceProviderGroupIdentifier | ID of the service provider group to get information for.

#### Operation: listApplicationGroups

Scope: Domain

Displays a list of application groups.

The resultant list contains application group IDs.

Signature:

    listApplicationGroups(Offset: int, Size: int)

Table 5-7 listApplicationGroups
listApplicationGroups
Parameter | Description
--- | ---
Offset | Offset in the list. Starts with 0 (zero)
Size | Size of the list. For no restrictions on the size of the list, use 0 (zero).

#### Operation: listServiceProviderGroups

Scope: Domain

Displays a list of service provider groups.

The resultant list contains service provider group IDs.

Signature:

    listServiceProviderGroups(Offset: int, Size: int)

Table 5-8 listServiceProviderGroups
listServiceProviderGroups
Parameter | Description
--- | ---
Offset | Offset in the list. Starts with 0 (zero)
Size | Size of the list. For no restrictions on the size of the list, use 0 (zero).

#### Operation: removeApplicationGroup

Scope: Domain

Removes an existing application group. The group must not have any applications associated with it.

Signature:

    removeApplicationGroup(ApplicationGroupIdentifier: String)

Table 5-9 removeApplicationGroup
removeApplicationGroup
Parameter | Description
--- | ---
ApplicationGroupIdentifier | ID for the application group.

#### Operation: removeServiceProviderGroup

Scope: Domain

Removes an existing service provider group. The group must not have any service providers associated with it.

Signature:

    removeServiceProviderGroup(ServiceProviderGroupIdentifier: String)

Table 5-10 removeServiceProviderGroup
removeServiceProviderGroup
Parameter | Description
--- | ---
ServiceProviderGroupIdentifier | ID for the service provider group.

#### Operation: setApplicationGroupProperties

Specifies properties for an application group: see Account Properties.

Note: | Only applicable when accessing the MBean directly.

Signature:

    setApplicationGroupProperties(ApplicationGroupIdentifier: String, Properties: Set<Map.Entry<String, String>>)

Table 5-11 setApplicationAccountProperties
setApplicationAccountProperties
Parameter | Description
--- | ---
ApplicationGroupIdentifier | ID of the application group whose properties are to be set.
Properties | See Account Properties.

#### Operation: setServiceProviderGroupProperties

Specifies properties for a service provider group: see Account Properties.

Note: | Only applicable when accessing the MBean directly.

Signature:

    setServiceProviderGroupProperties(ServiceProviderGroupIdentifier: String, Properties: Set<Map.Entry<String, String>>)

Table 5-12 setServiceProviderGroupProperties
setServiceProviderGroupProperties
Parameter | Description
--- | ---
ServiceProviderGroupIdentifier | ID of the service provider group whose properties are to be set.
Properties | See Account Properties.