你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ScanRulesetsOperations 类

ScanRulesetsOperations 操作。

不应直接实例化此类。 相反,应创建一个客户端实例来实例化它,并将其作为属性附加。

继承
builtins.object
ScanRulesetsOperations

构造函数

ScanRulesetsOperations(client, config, serializer, deserializer)

参数

client
必需

服务请求的客户端。

config
必需

服务客户端的配置。

serializer
必需

对象模型序列化程序。

deserializer
必需

对象模型反序列化程序。

方法

create_or_update

创建或汇报扫描规则集。

delete

删除扫描规则集。

get

获取扫描规则集。

list_all

列出数据目录中的扫描规则集。

create_or_update

创建或汇报扫描规则集。

create_or_update(scan_ruleset_name: str, body: Any = None, **kwargs: Any) -> Any

参数

scan_ruleset_name
str
必需
body
Any
必需

返回

JSON 对象

返回类型

Any

例外

示例


   kind = 'AdlsGen1ScanRuleset' or 'AdlsGen2ScanRuleset' or 'AmazonAccountScanRuleset' or 'AmazonPostgreSqlScanRuleset' or 'AmazonS3ScanRuleset' or 'AmazonSqlScanRuleset' or 'AzureCosmosDbScanRuleset' or 'AzureDataExplorerScanRuleset' or 'AzureFileServiceScanRuleset' or 'AzureMySqlScanRuleset' or 'AzurePostgreSqlScanRuleset' or 'AzureResourceGroupScanRuleset' or 'AzureSqlDataWarehouseScanRuleset' or 'AzureSqlDatabaseScanRuleset' or 'AzureSqlDatabaseManagedInstanceScanRuleset' or 'AzureStorageScanRuleset' or 'AzureSubscriptionScanRuleset' or 'AzureSynapseScanRuleset' or 'AzureSynapseWorkspaceScanRuleset' or 'OracleScanRuleset' or 'PowerBIScanRuleset' or 'SapEccScanRuleset' or 'SapS4HanaScanRuleset' or 'SqlServerDatabaseScanRuleset' or 'TeradataScanRuleset'

   # JSON input template you can fill out and use as your body input.
   body = {
       "id": "str",  # Optional.
       "name": "str",  # Optional.
       "scanRulesetType": "str",  # Optional. Possible values include: "Custom", "System".
       "status": "str",  # Optional. Possible values include: "Enabled", "Disabled".
       "version": 0,  # Optional.
       kind: ScanRuleset
   }

   # response body for status code(s): 200, 201
   response.json() == {
       "id": "str",  # Optional.
       "name": "str",  # Optional.
       "scanRulesetType": "str",  # Optional. Possible values include: "Custom", "System".
       "status": "str",  # Optional. Possible values include: "Enabled", "Disabled".
       "version": 0,  # Optional.
       kind: ScanRuleset
   }

delete

删除扫描规则集。

delete(scan_ruleset_name: str, **kwargs: Any) -> Any | None

参数

scan_ruleset_name
str
必需

返回

JSON 对象

返回类型

Any,

例外

示例


   # response body for status code(s): 200
   response.json() == {
       "id": "str",  # Optional.
       "name": "str",  # Optional.
       "scanRulesetType": "str",  # Optional. Possible values include: "Custom", "System".
       "status": "str",  # Optional. Possible values include: "Enabled", "Disabled".
       "version": 0,  # Optional.
       kind: ScanRuleset
   }

get

获取扫描规则集。

get(scan_ruleset_name: str, **kwargs: Any) -> Any

参数

scan_ruleset_name
str
必需

返回

JSON 对象

返回类型

Any

例外

示例


   # response body for status code(s): 200
   response.json() == {
       "id": "str",  # Optional.
       "name": "str",  # Optional.
       "scanRulesetType": "str",  # Optional. Possible values include: "Custom", "System".
       "status": "str",  # Optional. Possible values include: "Enabled", "Disabled".
       "version": 0,  # Optional.
       kind: ScanRuleset
   }

list_all

列出数据目录中的扫描规则集。

list_all(**kwargs: Any) -> Iterable[Any]

返回

类似于 JSON 对象的实例的迭代器

返回类型

例外

示例


   # response body for status code(s): 200
   response.json() == {
       "count": 0.0,  # Optional.
       "nextLink": "str",  # Optional.
       "value": [
           {
               "id": "str",  # Optional.
               "name": "str",  # Optional.
               "scanRulesetType": "str",  # Optional. Possible values include: "Custom", "System".
               "status": "str",  # Optional. Possible values include: "Enabled", "Disabled".
               "version": 0,  # Optional.
               kind: ScanRuleset
           }
       ]
   }