產生區塊腳本-Cloud Discovery APIGenerate block script - Cloud Discovery API

Applies to: Microsoft Cloud App Security

重要

Threat protection product names from Microsoft are changing. Read more about this and other updates here. We'll be updating names in products and in the docs in the near future.

注意

Office 365 Cloud App Security 不提供此要求。This request is not available for Office 365 Cloud App Security.

執行 GET 要求,為您的網路設備取得區塊腳本。Run the GET request to get a block script for your network appliance.

HTTP 要求HTTP request

GET /api/discovery_block_scripts/

要求 URL 參數Request URL parameters

參數Parameter 描述Description
formatformat 網路設備的格式。The format of the network appliance.

目前支援下列格式:The following formats are currently supported:

設備Appliance 格式Format
BlueCoat ProxySGBlueCoat ProxySG 102102
Cisco ASACisco ASA 104104
Fortinet FortiGateFortinet FortiGate 108108
Juniper SRXJuniper SRX 129129
Palo AltoPalo Alto 112112
WebsenseWebsense 135135
ZscalerZscaler 120120

注意

如果您找不到設備,請使用入口網站手動產生區塊腳本。If you can't find your appliance, generate a block script manually using the portal.

回應Response

此要求會以文字形式傳回區塊腳本。This request returns the block script as text.

範例Example

要求Request

以下是要求的範例。Here is an example of the request.

curl -XGET -H "Authorization:Token <your_token_key>" "https://<tenant_id>.<tenant_region>.contoso.com/api/discovery_block_scripts/?format=102&type=banned"

回應Response

url.domain=application.com deny
url.domain=application.be deny
url.domain=application.co deny

若您遇到任何問題,我們隨時提供協助。If you run into any problems, we're here to help. 若要取得產品問題的協助或支援,請建立支援票證To get assistance or support for your product issue, please open a support ticket.