Use this topic to create new server, cluster, application, or authorization group objects for your configuration.
Using the PropertiesBasedConfiguration command group for the AdminTask object, you can use properties files to create configuration objects in your environment.
AdminTask.createPropertiesFileTemplates('[-propertiesFileName authorizationGroup.template
-configType AuthorizationGroup]')
#
# Create parameters
# Replace the line `SKIP=true` with 'SKIP=false' under each section that is needed
# Set necessary parameters under each command or step sections
# Invoke applyConfigProperties command using this properties file.
#
ResourceType=AuthorizationGroup
ImplementingResourceType=AuthorizationGroup
ResourceId=AuthorizationGroup=
SKIP=true
CreateDeleteCommandProperties=true
#
#
#Properties
#
authorizationGroupName=authorizationGroupName #String,required
commandName=createAuthorizationGroup
Modify the new AuthorizationGroup template file by setting the required parameters. You can also modify the optional parameters, but you must modify the required parameters. Change the SKIP required property value from SKIP=true to SKIP=false to indicate that the system should apply the properties in the specific section of the properties file to the configuration. To ignore a specific section of a properties file, set the SKIP property to SKIP=true.
#
# Create parameters
# Replace the line `SKIP=true` with 'SKIP=false' under each section that is needed
# Set necessary parameters under each command or step sections
# Invoke applyConfigProperties command using this properties file.
#
ResourceType=AuthorizationGroup
ImplementingResourceType=AuthorizationGroup
ResourceId=AuthorizationGroup=
SKIP=false
CreateDeleteCommandProperties=true
#
#
#Properties
#
authorizationGroupName=ag1 #String,required
commandName=createAuthorizationGroup
AdminTask.applyConfigProperties('[-propertiesFileName authorizationGroup.template]')
The command creates the ag1 authorization group in your configuration.
AdminConfig.save()