すべてのプロダクト
Search
ドキュメントセンター

Security Center:Sophon_tools コンポーネント

最終更新日:Jul 11, 2025

sophon_tools コンポーネントは、現在のサービスリージョンに対応するドメインマッピング(domainMap)から適切なドメインを選択します。

機能説明

操作

説明

シナリオ

getDomainByRegion

現在のサービスリージョンに基づいて、domainMap から対応するドメインを選択します。

プレイブックが他のリージョンに複製される場合、異なるリージョンは異なるドメインに対応します。 この場合、プレイブックを変更する必要があります。 このコンポーネントを使用し、ドメインマッピング関係を構成することにより、SOAR サービスはサービスリージョンに基づいて対応するドメインを取得するため、プレイブックを変更する必要がなくなります。

コンポーネント構成例

このトピックでは、sophon_tools コンポーネントの各操作のパラメーター構成例を示します。 これらの例は、テストプレイブックとしてインポートできます。 可視化フローエディターを使用すると、各操作の構成パラメーターをより直観的に理解してテストし、コンポーネントの機能ロジックと使用方法を簡単に習得できます。 手順については、「プレイブックのインポート」をご参照ください。

説明

サンプルデータを JSON ファイルとして最初に保存してください。

サンプルデータ

{
    "cells": [
        {
            // プレイブック開始ノード。プレイブックには開始ノードが 1 つだけ必要で、プレイブックの入力データ構成が必要です。
            "position": {
                "x": -610, 
                "y": -175
            }, 
            "size": {
                "width": 36, 
                "height": 36
            }, 
            "attrs": {
                "body": {
                    "fill": "white", 
                    "strokeOpacity": 0.95, 
                    "stroke": "#63ba4d", 
                    "strokeWidth": 2
                }, 
                "label": {
                    "text": "start", 
                    "fontSize": 12, 
                    "refX": 0.5, 
                    "refY": "100%", 
                    "refY2": 4, 
                    "textAnchor": "middle", 
                    "textVerticalAnchor": "top"
                }, 
                "path": {
                    "stroke": "#63ba4d"
                }
            }, 
            "visible": true, 
            "shape": "circle", 
            "id": "58d87b7d-28d9-4f0e-b135-4adc4f1a70e4", 
            "zIndex": 1, 
            "data": {
                "nodeType": "startEvent", 
                "appType": "basic", 
                "nodeName": "start", 
                "icon": "icon-circle", 
                "description": "The playbook start node. A playbook must have one and only one start node, which requires input data configuration for the playbook."
            }, 
            "markup": [
                {
                    "tagName": "circle", 
                    "selector": "body"
                }, 
                {
                    "tagName": "text", 
                    "selector": "label"
                }
            ], 
            "isNode": true
        }, 
        {

            "shape": "custom-edge", 
            "attrs": {
                "line": {
                    "stroke": "#63ba4d", 
                    "targetMarker": {
                        "stroke": "#63ba4d"
                    }
                }
            }, 
            "zIndex": 1, 
            "id": "5293c3f9-e1c9-4a49-b0eb-635067dc67e8", 
            "data": {
                "nodeType": "sequenceFlow", 
                "appType": "basic", 
                "isRequired": true, 
                "icon": "icon-upper-right-arrow"
            }, 
            "isNode": false, 
            "source": {
                "cell": "58d87b7d-28d9-4f0e-b135-4adc4f1a70e4"
            }, 
            "target": {
                "cell": "822f61c0-8a34-4e7c-84a1-294c21b11cd6"
            }, 
            "router": {
                "name": "manhattan", 
                "args": {
                    "padding": 5, 
                    "excludeHiddenNodes": true, 
                    "excludeNodes": [
                        "clone_node_id"
                    ]
                }
            }, 
            "vertices": [ ], 
            "visible": true
        }, 
        {
            // 終了
            "position": {
                "x": -70, 
                "y": -170
            }, 
            "size": {
                "width": 36, 
                "height": 36
            }, 
            "attrs": {
                "body": {
                    "fill": "white", 
                    "strokeOpacity": 0.95, 
                    "stroke": "#63ba4d", 
                    "strokeWidth": 2
                }, 
                "path": {
                    "r": 12, 
                    "refX": "50%", 
                    "refY": "50%", 
                    "fill": "#63ba4d", 
                    "strokeOpacity": 0.95, 
                    "stroke": "#63ba4d", 
                    "strokeWidth": 4
                }, 
                "label": {
                    "text": "end", 
                    "fontSize": 12, 
                    "refX": 0.5, 
                    "refY": "100%", 
                    "refY2": 4, 
                    "textAnchor": "middle", 
                    "textVerticalAnchor": "top"
                }
            }, 
            "visible": true, 
            "shape": "circle", 
            "id": "317dd1be-2d20-460e-977e-1fc936ffb583", 
            "zIndex": 1, 
            "data": {
                "nodeType": "endEvent", 
                "appType": "basic", 
                "nodeName": "end", 
                "icon": "icon-radio-off-full", 
                "description": "end"
            }, 
            "markup": [
                {
                    "tagName": "circle", 
                    "selector": "body"
                }, 
                {
                    "tagName": "circle", 
                    "selector": "path"
                }, 
                {
                    "tagName": "text", 
                    "selector": "label"
                }
            ], 
            "isNode": true
        }, 
        {
            // リージョン構成に基づいてドメインを取得します。デフォルトでは defaultDomain を使用します。現在、ap-southeast-1 と cn-shanghai のみをサポートしています。プレイブック実行レイヤーは、ランタイム環境に基づいて対応するドメインを選択します。
            "position": {
                "x": -420, 
                "y": -190
            }, 
            "size": {
                "width": 137, 
                "height": 66
            }, 
            "view": "react-shape-view", 
            "attrs": {
                "label": {
                    "text": "sophon_tools_1"
                }
            }, 
            "shape": "activity", 
            "id": "822f61c0-8a34-4e7c-84a1-294c21b11cd6", 
            "data": {
                "componentName": "sophon_tools", 
                "appType": "component", 
                "nodeType": "action", 
                "icon": "https://sophon-gen-v2.oss-cn-zhangjiakou.aliyuncs.com/componentUpload/1706772985014_sophon_tools_logo.png?Expires=1745635432&OSSAccessKeyId=STS.NXFP************&Signature=GAu8FWgRyY5cZeRQv1clIvWSZqw%3D&security-token=CAIS2AJ1q6Ft5B2yfSjIr5vzG87foZl22KyFUBLSokwYY%2Fh22qDsqTz2IHhMenFpAegcv%2Fw%2BlGFZ6%2F8elrp6SJtIXleCZtF94oxN9h2gb4fb4yUAIjSK0s%2FLI3OaLjKm9u2wCryLYbGwU%2FOpbE%2B%2B5U0X6LDmdDKkckW4OJmS8%2FBOZcgWWQ%2FKBlgvRq0hRG1YpdQdKGHaONu0LxfumRCwNkdzvRdmgm4NgsbWgO%2Fks0OP3AOrlrBN%2Bdiuf8T9NvMBZskvD42Hu8VtbbfE3SJq7BxHybx7lqQs%2B02c5onDWwAJu0%2FXa7uEo4wydVNjFbM9A65Dqufxn%2Fpgt%2Braj4X7xhhEIOVJSSPbSZBbSxJNvU1RXDxQVcEYWxylurjnXvF%2Bs5c2%2B8hAf0rM946UoJvc3YDI5hWbc8mJsTnhSSTAEIv%2By8ptqoFOtH7DkLTHWR7hCtv2306G8%2BSFMytAXxqAASheMaPI1EtW9vmzJTiUzI1Mpy%2FK1KMvL%2B5YrTITRTgQenkGkLFgTOTzW2VSuoF6w%2BpSA8UDTPnYZlyFlgELihq4wDNkqqrtUToxub0PrpMEESyGVIWbCAK0XljETFRtwl7eMM99EaqvKTN8r6%2Bhxw2xWIDH5k25760sl0KS5qaCIAA%3D", 
                "ownType": "user", 
                "zIndex": 1, 
                "tenantId": "baba", 
                "customInput": false, 
                "description": "Obtains the domain based on the region configuration, using defaultDomain by default. Currently only supports ap-southeast-1 and cn-shanghai. The playbook execution layer will select the corresponding domain based on the runtime environment.", 
                "id": 0, 
                "name": "getDomainByRegion", 
                "operateType": "general", 
                "parameters": [
                    {
                        // デフォルトのドメインアドレス
                        "dataType": "String", 
                        "defaultValue": "", 
                        "description": "Default domain address", 
                        "enDescription": "", 
                        "name": "defaultDomain", 
                        "needCascader": false, 
                        "required": true, 
                        "tags": ""
                    }, 
                    {
                        // ドメインアドレス構成情報
                        "dataType": "Complex", 
                        "defaultValue": "", 
                        "description": "Domain address configuration information", 
                        "enDescription": "", 
                        "name": "domainMap", 
                        "needCascader": false, 
                        "required": true, 
                        "tags": ""
                    }
                ], 
                "riskLevel": 2, 
                "nodeName": "sophon_tools_1", 
                "actionName": "getDomainByRegion", 
                "actionDisplayName": "getDomainByRegion", 
                "cascaderValue": [ ], 
                "valueData": {
                    "defaultDomain": "cn-hangzhou.ecs.aliyun.com", 
                    "domainMap": "[{\"fieldName\":\"cn-hangzhou\",\"fieldValue\":\"cn-hangzhou.ecs.aliyun.com\"},{\"fieldName\":\"cn-shanghai\",\"fieldValue\":\"cn-shanghai.ecs.aliyun.com\"}]"
                }, 
                "status": "success"
            }, 
            "zIndex": 1
        }, 
        {

            "shape": "custom-edge", 
            "attrs": {
                "line": {
                    "stroke": "#63ba4d", 
                    "targetMarker": {
                        "stroke": "#63ba4d"
                    }
                }
            }, 
            "zIndex": 1, 
            "id": "a614bb79-ff0e-4ed7-8064-ac9c5ad6835d", 
            "data": {
                "nodeType": "sequenceFlow", 
                "appType": "basic", 
                "isRequired": true, 
                "icon": "icon-upper-right-arrow"
            }, 
            "isNode": false, 
            "router": {
                "name": "manhattan", 
                "args": {
                    "padding": 5, 
                    "excludeHiddenNodes": true, 
                    "excludeNodes": [
                        "clone_node_id"
                    ]
                }
            }, 
            "source": {
                "cell": "822f61c0-8a34-4e7c-84a1-294c21b11cd6"
            }, 
            "target": {
                "cell": "317dd1be-2d20-460e-977e-1fc936ffb583"
            }, 
            "vertices": [ ], 
            "visible": true
        }
    ]
}

GetDomainByRegion 操作

パラメーター

説明

defaultDomain

デフォルトのドメインアドレス。 domainMap が構成されていない場合、または domainMap に現在のリージョンに対応するドメインアドレスが構成されていない場合は、このアドレスが使用されます。

例: cn-shanghai.ecs.aliyun.com。

domainMap

ドメインアドレス構成情報。 キーは regionId で、値はドメインアドレスです。

例:

  • cn-shanghai: cn-shanghai.ecs.aliyun.com

  • ap-southeast-1: ap-southeast-1.ecs.aliyun.com

重要

現在、cn-shanghai と ap-southeast-1 リージョンのみがサポートされています。