The sophon_tools component selects the appropriate domain from the domain mapping (domainMap) for the current service region.
Feature description
Action | Description | Scenarios |
getDomainByRegion | Selects the corresponding domain from the domainMap based on the current service region. | When a playbook is replicated to other regions, different regions correspond to different domains. In this case, you need to modify the playbook. By using this component and configuring domain mapping relationships, the SOAR service will obtain the corresponding domain based on the service region, eliminating the need to modify the playbook. |
Configuration example
This topic provides parameter configuration examples for each action of the sophon_tools component, which you can import as test playbooks. Through the visualization flow editor, you can more intuitively understand and test the configuration parameters of each action, easily mastering the functional logic and usage of the component. For the procedure, see Import playbooks.
Please save the example data as a JSON file first.
GetDomainByRegion action
Parameter | Description |
defaultDomain | The default domain address. If domainMap is not configured or the domain address corresponding to the current region is not configured in domainMap, this address will be used. For example: cn-shanghai.ecs.aliyun.com. |
domainMap | Domain address configuration information. The key is the regionId and the value is the domain address. For example:
Important Currently only cn-shanghai and ap-southeast-1 regions are supported. |