environment
This topic describes the verbs, command-line arguments, and API parameters available for the environment noun in the BMC Cloud Lifecycle Management SDK.
create
Use environment-create from the command line to create a new environment.
Use environment_create in the API to create a new environment. This command returns a LogicalHostingEnvironment API object with the same attributes and relationships.
obj.guid # returns the GUID
obj.name # returns the name
...
Command-line argument | API parameter | Description | Required? |
---|---|---|---|
--name | name | Name of the new environment. | Yes |
--environmentblueprint | blueprint | Name or GUID of the environment blueprint. | Yes |
--provider | provider | Name of the provider in which the environment resides. | Yes |
--environmentblueprintversion | environmentBlueprintVersion | An environment blueprint specific version, otherwise the latest version will be used by default. |
|
--allowspublicip | allowsPublicIP | Allow public IP for the new environment. |
|
--description | description | A description of the new environment. |
|
--podname | podName | Name of the pod in the environment. |
|
--acount | account | Name of the BMC Cloud Lifecycle Management account that corresponds to an Amazon Web Services account. |
|
--region | region | Name of the Amazon Web Services region. |
|
--publicip | publicip | IP address and mask address values. |
|
--waitfor |
| Time in seconds to wait for response from the server, otherwise return running task details. |
|
| gcac | GenericCloudAPIClient instance/user authentication |
|
delete
Use environment-delete from the command line to delete an environment.
Use environment_delete in the API to delete an environment. This command returns a LogicalHostingEnvironment API object with the same attributes and relationships.
obj.guid # returns the GUID
obj.name # returns the name
...
Command-line argument | API parameter | Description | Required? |
---|---|---|---|
--name | environmentName | Name of the environment to delete. | Yes |
--providername | providerName | Name of the provider in which the environment resides. | Yes |
| gcac | GenericCloudAPIClient instance/user authentication |
|
list
Use environment-list from the command line to list available environments.
Use environment_list in the API to list available environments. This command returns a list of LogicalHostingEnvironment API objects with the same attributes and relationships.
obj[n].guid returns the GUID
obj[n].name returns the name
...
Command-line argument | API parameter | Description | Required? |
---|---|---|---|
provider | provider | Name of the provider in which the environment resides. | Yes |
account | account | Name of the BMC Cloud Lifecycle Management account that corresponds to an Amazon Web Service account. |
|
isonboard | isonboard | Indicates that environments not yet onboarded should be listed. For the command line, this parameter does not need a value. For the API, specify True, False, or None. |
|
-l |
| List all fields. This parameter does not need a value. |
|
-u |
| List only GUIDs. This parameter does not need a value. |
|
-n |
| List only names. This parameter does not need a value. |
|
-s |
| List GUIDs, names, and status (if applicable). This parameter does not need a value. |
|
-k |
| List the field names specified as the value for this parameter. |
|
--filter | filters | Filter the output according to the specified criteria. |
|
| gcac | GenericCloudAPIClient instance/user authentication |
|
map-to
Use environment-map-to from the command line to map compute pools, tenants, or tags to an environment.
Use environment_map in the API to map compute pools, tenants, or tags to an environment. This command returns a LogicalHostingEnvironment API object with the same attributes and relationships.
obj.guid # returns the GUID
obj.name # returns the name
...
Command-line argument | API parameter | Description | Required? |
---|---|---|---|
--providername | providerName | Name of the provider. | Yes |
--environmentname | environmentName | Name of the environment. | Yes |
--computepoolname | listOfStaticPoolNames | Name of a compute pool to map to the environment. |
|
--tenantname | listOfTenantNames | Name of a tenant to map to the environment. |
|
--tag | tagList | Tag or tags to map to the environment. Any tags or tag groups specified here will be created if they do not already exist. |
|
--waitfor |
| Time in seconds to wait for a response from the server, otherwise return running task details. |
|
| gcac | GenericCloudAPIClient instance/user authentication |
|
offboard
Use environment-offboard from the command line to offboard the specified environment.
Use environment_offboard in the API to offboard the specified environment. This command returns a LogicalHostingEnvironment API object with the same attributes and relationships.
obj.guid # returns the GUID
obj.name # returns the name
...
Command-line argument | API parameter | Description | Required? |
---|---|---|---|
--environment | environment | Name or GUID of an environment to offboard. | Yes |
--provider | provider | Name or GUID of a provider. | Yes |
--waitfor |
| Time in seconds to wait for a response from the server, otherwise return running task details. |
|
| gcac | GenericCloudAPIClient instance/user authentication. |
|
onboard
Use environment-onboard from the command line to onboard the specified environment.
Use environment_onboard in the API to onboard the specified environment. This command returns a LogicalHostingEnvironment API object with the same attributes and relationships.
obj.guid # returns the GUID
obj.name # returns the name
...
Command-line argument | API parameter | Description | Required? |
---|---|---|---|
--environment | environment | Name or GUID of an environment to onboard. | Yes |
--provider | provider | Name or GUID of a provider. | Yes |
--account | account | Name of the BMC Cloud Lifecycle Management account that corresponds to an Amazon Web Service account. |
|
--waitfor |
| Time in seconds to wait for a response from the server, otherwise return running task details. |
|
| gcac | GenericCloudAPIClient instance/user authentication. |
|
reprovision
Use environment-reprovision from the command line to re-provision an environment with a newer version of a blueprint.
Use environment_reprovision from the command line to re-provision an environment with a newer version of a blueprint. This command returns a LogicalHostingEnvironment API object with the same attributes and relationships.
Command-line argument | API parameter | Description | Required? |
---|---|---|---|
--environmentname | environment | Name or GUID of the environment to re-provision. | Yes |
--blueprint | blueprint | Name or GUID of the new environment blueprint. | Yes |
--version | version | A specific environment blueprint version number, otherwise the latest version will be used by default |
|
| gcac | GenericCloudAPIClient instance/user authentication |
|
unmap-to
Use environment-unmap-to from the command line to unmap compute pools, tenants, or tags from an environment.
Use environment_unmap in the API to unmap compute pools, tenants, or tags from an environment. This command returns a LogicalHostingEnvironment API object with the same attributes and relationships.
obj.guid # returns the GUID
obj.name # returns the name
...
Command-line argument | API parameter | Description | Required? |
---|---|---|---|
--providername | providerName | Name of the provider. | Yes |
--environmentname | environmentName | Name of the environment. | Yes |
--computepoolname | listOfStaticPoolNames | Name of a compute pool to unmap from the environment. |
|
--tenantname | listOfTenantNames | Name of a tenant to unmap from the environment. |
|
--tag | tagList | Tag or tags to unmap from the environment. |
|
--waitfor |
| Time in seconds to wait for a response from the server, otherwise return running task details. |
|
| gcac | GenericCloudAPIClient instance/user authentication |
|