sap.sap_operations.btp_global_account_info module – Get information about a SAP BTP global account.
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_global_account_info
.
New in sap.sap_operations 1.26.0
Synopsis
Get information about a SAP BTP global account.
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 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. |
|
Client ID to use for authentication. |
|
Client secret to use for authentication. |
|
Expand the response with additional information. Choices:
|
|
Login to use for authentication. This is usually an email address. |
|
Password to use for authentication. |
|
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: Get SAP BTP global account information
sap.sap_operations.btp_global_account_info:
login: username@host.com
password: SecretPassword ## not secret
api_endpoint: https://accounts-service.cfapps.eu10.hana.ondemand.com
client_id: "{{ lookup('env', 'BTP_CLIENT_ID') }}"
client_secret: "{{ lookup('env', 'BTP_CLIENT_SECRET') }}"
authorize_service_url: 'https://accounts-service.cfapps.eu10.hana.ondemand.com/oauth/authorize'
token_service_url: 'https://example-global-account.authentication.eu10.hana.ondemand.com/oauth/token'
expand: true
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Dictionary with SAP BTP global account information. Returned: success Sample: |
|
List with SAP BTP global account directories [Feature Set B] Returned: only if the are subdirectories in the global directory Sample: |
|
The commercial model of the account. Returned: always Sample: |
|
Indicates if the account is consumption based. Returned: always Sample: |
|
The status of the account contract. Returned: always Sample: |
|
The timestamp when the account was created. Returned: always Sample: |
|
The display name of the account. Returned: always Sample: |
|
The state of the account entity. Returned: always Sample: |
|
The geographical access level of the account. Returned: always Sample: |
|
The globally unique identifier of the account. Returned: always Sample: |
|
The type of license the account holds. Returned: always Sample: |
|
The timestamp when the account was last modified. Returned: always Sample: |
|
The timestamp when the account is due for renewal. Returned: always Sample: |
|
A message describing the state of the account. Returned: always Sample: |
|
A list of subaccounts associated with the account. Returned: always |
|
Indicates if beta features are enabled for the subaccount. Returned: always Sample: |
|
The timestamp when the subaccount was created. Returned: always Sample: |
|
The display name of the subaccount. Returned: always Sample: |
|
The globally unique identifier for the parent account. Returned: always Sample: |
|
globally unique identifier for the subaccount. Returned: always Sample: |
|
The region where the subaccount is located. Returned: always Sample: |
|
The state of the subaccount. Returned: always Sample: |
|
The subdomain assigned to the subaccount. Returned: always Sample: |
|
The subdomain assigned to the global account. Returned: always Sample: |