sap.sap_operations.btp_subaccount module – Manage SAP BTP global account subaccounts
Note
This module is part of the sap.sap_operations collection.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install sap.sap_operations
.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: sap.sap_operations.btp_subaccount
.
New in sap.sap_operations 1.27.0
Synopsis
It is not yet possible to remove existing subaccount with this plugin
Subaccount will not be updated if there is already subaccount with same subdomain.
This action plugin is using SAP BTP API, see <api.sap.com> for more details.
This is ansible action plugin, this means it will run on ansible controller, not on managed node.
This module allows managing SAP BTP global account subaccounts, including creation and information retrieval.
This plugin does not support running with python 2. It requires python 3.6 or higher.
Note
This module has a corresponding action plugin.
Requirements
The below requirements are needed on the host that executes this module.
python >= 3.6
requests
oauth2_client
Parameters
Parameter |
Comments |
---|---|
API endpoint to use. For example |
|
URL of the authorization service. |
|
Specifies if the subaccount should have beta features enabled. Choices:
|
|
Client ID to use for authentication. |
|
Client secret to use for authentication. |
|
Description of the subaccount to be created or managed. |
|
The display name for the subaccount. |
|
Login to use for authentication. This is usually an email address. |
|
Password to use for authentication. |
|
The region where the subaccount will be created. |
|
A list of emails for the subaccount administrators. |
|
The subdomain for the subaccount Should be globally unique |
|
URL of the token service. |
Notes
Note
This module is community supported
Module interface (parameters, output) expected to be stable but not guaranteed
Module planned to be released on Ansible Automation Hub after collecting some feedback
There is no guarantee that this module will be officially supported by Red Hat
This is ansible action plugin, not module
Meaning this plugin will be always executed on ansible controller.
See Also
See also
- SAP BTP API Accounts service API
SAP BTP API Accounts service API
- Administration and operations section for SAP BTP on help.sap.com
Administration and operations section for SAP BTP on help.sap.com
Examples
---
- name: Create a new subaccount in SAP BTP
sap.sap_operations.btp_subaccount:
description: "Development environment"
beta_enabled: true
display_name: "Dev Environment"
region: "eu10"
subaccount_admins:
- "admin@example.com"
subdomain: "dev-env"
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
The result of the Ansible plugin operation, containing details about the subaccount. Returned: success Sample: |
|
Indicates if the beta features are enabled for the subaccount. Returned: always |
|
The state of content automation for the subaccount, if applicable. Returned: when applicable |
|
The identifier of the user who created the subaccount. Returned: when available |
|
The timestamp when the subaccount was created. Returned: always |
|
A brief description of the subaccount. Returned: always |
|
The display name of the subaccount. Returned: always |
|
The GUID of the global account to which the subaccount belongs. Returned: always |
|
The unique identifier of the subaccount. Returned: always |
|
The timestamp when the subaccount was last modified. Returned: always |
|
The GUID of the parent account. Returned: always |
|
The type of the parent account. Returned: always |
|
The region in which the subaccount is located. Returned: always |
|
The current state of the subaccount. Returned: always |
|
A message providing additional details about the state of the subaccount. Returned: always |
|
The subdomain assigned to the subaccount. Returned: always |
|
The technical name of the subaccount. Returned: always |
|
Indicates whether the subaccount is used for production purposes. Returned: always |