cisco.ise.sponsored_guest_portal_info 模块 – 赞助访客门户的信息模块

注意

此模块是 cisco.ise 集合(版本 2.9.6)的一部分。

如果您使用的是 ansible 包,则可能已经安装了此集合。它不包含在 ansible-core 中。要检查它是否已安装,请运行 ansible-galaxy collection list

要安装它,请使用:ansible-galaxy collection install cisco.ise。您需要满足其他要求才能使用此模块,请参阅 要求 以了解详细信息。

要在剧本中使用它,请指定:cisco.ise.sponsored_guest_portal_info

cisco.ise 1.0.0 中的新增功能

概要

  • 获取所有赞助访客门户。

  • 通过 ID 获取赞助访客门户。

  • 此 API 允许客户端通过 ID 获取赞助访客门户。

  • 此 API 允许客户端获取所有赞助访客门户。

注意

此模块具有相应的 操作插件

要求

在执行此模块的主机上需要以下要求。

  • ciscoisesdk >= 2.2.3

  • python >= 3.5

参数

参数

注释

filter

list / elements=string

过滤器查询参数。**简单过滤**应通过过滤器查询字符串参数提供。过滤器的结构是由点分隔的字段、运算符和值的三元组。可以发送多个过滤器。所有过滤器条件通用的逻辑运算符默认将是 AND,并且可以通过使用“filterType=or”查询字符串参数来更改。

每个资源数据模型描述应指定属性是否为过滤字段。

“EQ”运算符描述“等于”。

“NEQ”运算符描述“不等于”。

“GT”运算符描述“大于”。

“LT”运算符描述“小于”。

“STARTSW”运算符描述“以...开头”。

“NSTARTSW”运算符描述“不以...开头”。

“ENDSW”运算符描述“以...结尾”。

“NENDSW”运算符描述“不以...结尾”。

“CONTAINS”运算符描述“包含”。

“NCONTAINS”运算符描述“不包含”。

filterType

string

FilterType 查询参数。所有过滤器条件通用的逻辑运算符默认将是 AND,并且可以使用该参数进行更改。

id

string

Id 路径参数。

ise_debug

boolean

用于启用调试的 Identity Services Engine SDK 标志。

选项

  • false ← (默认)

  • true

ise_hostname

string / 必需

Identity Services Engine 主机名。

ise_password

string / 必需

用于身份验证的 Identity Services Engine 密码。

ise_single_request_timeout

integer

在 cisco.ise 3.0.0 中添加

RESTful HTTP 请求的超时时间(以秒为单位)。

默认: 60

ise_username

string / 必需

用于身份验证的 Identity Services Engine 用户名。

ise_uses_api_gateway

boolean

在 cisco.ise 1.1.0 中添加

通知 SDK 是否使用 Identity Services Engine 的 API 网关发送请求的标志。

如果为 true,它将使用 ISE 的 API 网关并将请求发送到 https://{{ise_hostname}}。

如果为 false,它将请求发送到 https://{{ise_hostname}}:{{port}},其中端口值取决于使用的服务(ERS、Mnt、UI、PxGrid)。

选项

  • false

  • true ← (默认)

ise_uses_csrf_token

boolean

在 cisco.ise 3.0.0 中添加

通知 SDK 我们是否将 CSRF 令牌发送到 ISE 的 ERS API 的标志。

如果为 True,则 SDK 假定您的 ISE CSRF 检查已启用。

如果为 True,则假定您需要 SDK 为您自动管理 CSRF 令牌。

选项

  • false ← (默认)

  • true

ise_verify

boolean

用于启用或禁用 SSL 证书验证的标志。

选项

  • false

  • true ← (默认)

ise_version

string

通知 SDK 要使用的 Identity Services Engine 版本。

默认: "3.1_Patch_1"

ise_wait_on_rate_limit

boolean

用于启用自动速率限制处理的 Identity Services Engine SDK 标志。

选项

  • false

  • true ← (默认)

page

integer

页面查询参数。页码。

size

integer

大小查询参数。每页返回的对象数。

sortasc

string

Sortasc 查询参数。升序排序。

sortdsc

string

Sortdsc 查询参数。降序排序。

注释

注意

  • 使用的 SDK 方法是 sponsored_guest_portal.SponsoredGuestPortal.get_sponsored_guest_portal_by_id、sponsored_guest_portal.SponsoredGuestPortal.get_sponsored_guest_portals_generator,

  • 使用的路径是 get /ers/config/sponsoredguestportal、get /ers/config/sponsoredguestportal/{id},

  • 支持 check_mode

  • 该插件在控制节点上运行,不使用任何 ansible 连接插件,而是使用 Cisco ISE SDK 中的嵌入式连接管理器

  • 以 ise_ 开头的参数由 Cisco ISE Python SDK 用于建立连接

示例

- name: Get all Sponsored Guest Portal
  cisco.ise.sponsored_guest_portal_info:
    ise_hostname: "{{ise_hostname}}"
    ise_username: "{{ise_username}}"
    ise_password: "{{ise_password}}"
    ise_verify: "{{ise_verify}}"
    page: 1
    size: 20
    sortasc: string
    sortdsc: string
    filter: []
    filterType: AND
  register: result

- name: Get Sponsored Guest Portal by id
  cisco.ise.sponsored_guest_portal_info:
    ise_hostname: "{{ise_hostname}}"
    ise_username: "{{ise_username}}"
    ise_password: "{{ise_password}}"
    ise_verify: "{{ise_verify}}"
    id: string
  register: result

返回值

通用返回值已在此处记录,以下是此模块特有的字段

描述

ise_response

字典

由 Cisco ISE Python SDK 返回的包含响应的字典或列表

返回: 总是

示例: {"customizations": {"globalCustomizations": {"backgroundImage": {"data": "string"}, "bannerImage": {"data": "string"}, "bannerTitle": "string", "contactText": "string", "desktopLogoImage": {"data": "string"}, "footerElement": "string", "mobileLogoImage": {"data": "string"}}, "language": {"viewLanguage": "string"}, "pageCustomizations": {"data": [{"key": "string", "value": "string"}]}, "portalTheme": {"id": "string", "name": "string", "themeData": "string"}, "portalTweakSettings": {"bannerColor": "string", "bannerTextColor": "string", "pageBackgroundColor": "string", "pageLabelAndTextColor": "string"}}, "description": "string", "id": "string", "link": {"href": "string", "rel": "string", "type": "string"}, "name": "string", "portalTestUrl": "string", "portalType": "string", "settings": {"aupSettings": {"displayFrequency": "string", "displayFrequencyIntervalDays": 0, "includeAup": true, "requireAupScrolling": true, "requireScrolling": true, "skipAupForEmployees": true, "useDiffAupForEmployees": true}, "authSuccessSettings": {"redirectUrl": "string", "successRedirect": "string"}, "byodSettings": {"byodRegistrationSettings": {"endPointIdentityGroupId": "string", "showDeviceID": true}, "byodRegistrationSuccessSettings": {"redirectUrl": "string", "successRedirect": "string"}, "byodWelcomeSettings": {"aupDisplay": "string", "enableBYOD": true, "enableGuestAccess": true, "includeAup": true, "requireAupAcceptance": true, "requireMDM": true, "requireScrolling": true}}, "guestChangePasswordSettings": {"allowChangePasswdAtFirstLogin": true}, "guestDeviceRegistrationSettings": {"allowGuestsToRegisterDevices": true, "autoRegisterGuestDevices": true}, "loginPageSettings": {"accessCode": "string", "allowAlternateGuestPortal": true, "allowForgotPassword": true, "allowGuestToChangePassword": true, "allowGuestToCreateAccounts": true, "aupDisplay": "string", "includeAup": true, "maxFailedAttemptsBeforeRateLimit": 0, "requireAccessCode": true, "requireAupAcceptance": true, "socialConfigs": [{"socialMediaType": "string", "socialMediaValue": "string"}], "timeBetweenLoginsDuringRateLimit": 0}, "portalSettings": {"allowedInterfaces": ["string"], "alwaysUsedLanguage": "string", "assignedGuestTypeForEmployee": "string", "authenticationMethod": "string", "certificateGroupTag": "string", "displayLang": "string", "fallbackLanguage": "string", "httpsPort": 0}, "postAccessBannerSettings": {"includePostAccessBanner": true}, "postLoginBannerSettings": {"includePostAccessBanner": true}, "supportInfoSettings": {"defaultEmptyFieldValue": "string", "emptyFieldDisplay": "string", "includeBrowserUserAgent": true, "includeFailureCode": true, "includeIpAddress": true, "includeMacAddr": true, "includePolicyServer": true, "includeSupportInfoPage": true}}}

ise_responses

列表 / 元素=字典

在 cisco.ise 1.1.0 中添加

由 Cisco ISE Python SDK 返回的包含响应的字典或列表

返回: 总是

示例: "[\n  {\n    \"id\": \"字符串\",\n    \"name\": \"字符串\",\n    \"description\": \"字符串\",\n    \"portalType\": \"字符串\",\n    \"portalTestUrl\": \"字符串\",\n    \"settings\": {\n      \"portalSettings\": {\n        \"httpsPort\": 0,\n        \"allowedInterfaces\": [\n          \"字符串\"\n        ],\n        \"certificateGroupTag\": \"字符串\",\n        \"authenticationMethod\": \"字符串\",\n        \"assignedGuestTypeForEmployee\": \"字符串\",\n        \"displayLang\": \"字符串\",\n        \"fallbackLanguage\": \"字符串\",\n        \"alwaysUsedLanguage\": \"字符串\"\n      },\n      \"loginPageSettings\": {\n        \"requireAccessCode\": true,\n        \"maxFailedAttemptsBeforeRateLimit\": 0,\n        \"timeBetweenLoginsDuringRateLimit\": 0,\n        \"includeAup\": true,\n        \"aupDisplay\": \"字符串\",\n        \"requireAupAcceptance\": true,\n        \"accessCode\": \"字符串\",\n        \"allowGuestToCreateAccounts\": true,\n        \"allowForgotPassword\": true,\n        \"allowGuestToChangePassword\": true,\n        \"allowAlternateGuestPortal\": true,\n        \"socialConfigs\": [\n          {\n            \"socialMediaType\": \"字符串\",\n            \"socialMediaValue\": \"字符串\"\n          }\n        ]\n      },\n      \"aupSettings\": {\n        \"includeAup\": true,\n        \"requireAupScrolling\": true,\n        \"useDiffAupForEmployees\": true,\n        \"skipAupForEmployees\": true,\n        \"displayFrequencyIntervalDays\": 0,\n        \"requireScrolling\": true,\n        \"displayFrequency\": \"字符串\"\n      },\n      \"guestChangePasswordSettings\": {\n        \"allowChangePasswdAtFirstLogin\": true\n      },\n      \"guestDeviceRegistrationSettings\": {\n        \"autoRegisterGuestDevices\": true,\n        \"allowGuestsToRegisterDevices\": true\n      },\n      \"byodSettings\": {\n        \"byodWelcomeSettings\": {\n          \"enableBYOD\": true,\n          \"enableGuestAccess\": true,\n          \"requireMDM\": true,\n          \"includeAup\": true,\n          \"aupDisplay\": \"字符串\",\n          \"requireAupAcceptance\": true,\n          \"requireScrolling\": true\n        },\n        \"byodRegistrationSettings\": {\n          \"showDeviceID\": true,\n          \"endPointIdentityGroupId\": \"字符串\"\n        },\n        \"byodRegistrationSuccessSettings\": {\n          \"successRedirect\": \"字符串\",\n          \"redirectUrl\": \"字符串\"\n        }\n      },\n      \"postAccessBannerSettings\": {\n        \"includePostAccessBanner\": true\n      },\n      \"authSuccessSettings\": {\n        \"successRedirect\": \"字符串\",\n        \"redirectUrl\": \"字符串\"\n      },\n      \"postLoginBannerSettings\": {\n        \"includePostAccessBanner\": true\n      },\n      \"supportInfoSettings\": {\n        \"includeSupportInfoPage\": true,\n        \"includeMacAddr\": true,\n        \"includeIpAddress\": true,\n        \"includeBrowserUserAgent\": true,\n        \"includePolicyServer\": true,\n        \"includeFailureCode\": true,\n        \"emptyFieldDisplay\": \"字符串\",\n        \"defaultEmptyFieldValue\": \"字符串\"\n      }\n    },\n    \"customizations\": {\n      \"portalTheme\": {\n        \"id\": \"字符串\",\n        \"name\": \"字符串\",\n        \"themeData\": \"字符串\"\n      },\n      \"portalTweakSettings\": {\n        \"bannerColor\": \"字符串\",\n        \"bannerTextColor\": \"字符串\",\n        \"pageBackgroundColor\": \"字符串\",\n        \"pageLabelAndTextColor\": \"字符串\"\n      },\n      \"language\": {\n        \"viewLanguage\": \"字符串\"\n      },\n      \"globalCustomizations\": {\n        \"mobileLogoImage\": {\n          \"data\": \"字符串\"\n        },\n        \"desktopLogoImage\": {\n          \"data\": \"字符串\"\n        },\n        \"bannerImage\": {\n          \"data\": \"字符串\"\n        },\n        \"backgroundImage\": {\n          \"data\": \"字符串\"\n        },\n        \"bannerTitle\": \"字符串\",\n        \"contactText\": \"字符串\",\n        \"footerElement\": \"字符串\"\n      },\n      \"pageCustomizations\": {\n        \"data\": [\n          {\n            \"key\": \"字符串\",\n            \"value\": \"字符串\"\n          }\n        ]\n      }\n    },\n    \"link\": {\n      \"rel\": \"字符串\",\n      \"href\": \"字符串\",\n      \"type\": \"字符串\"\n    }\n  }\n]\n"

作者

  • Rafael Campos (@racampos)