跳至内容

equinix_fabric_service_tokens(数据源)

Fabric V4 API 兼容的数据资源,允许用户获取给定搜索数据集的服务令牌。

补充文件:

用法示例

data "equinix_fabric_service_tokens" "service-tokens" {
filter {
property = "/type"
operator = "="
values = "EVPL_VC"
}
filter {
property = "/state"
operator = "="
values = ["INACTIVE"]
}
pagination {
offset = 0
limit = 5
total = 25
}
}

output "number_of_returned_service_tokens" {
value = length(data.equinix_fabric_service_tokens.service-tokens.data)
}

output "first_service_token_id" {
value = data.equinix_fabric_service_tokens.service-tokens.data.0.id
}

output "first_service_token_type" {
value = data.equinix_fabric_service_tokens.service-tokens.data.0.type
}

output "first_service_token_expiration_date_time" {
value = data.equinix_fabric_service_tokens.service-tokens.data.0.expiration_date_time
}

output "first_service_token_supported_bandwidths" {
value = data.equinix_fabric_service_tokens.service-tokens.data.0.service_token_connection.0.supported_bandwidths
}

output "first_service_token_virtual_device_type" {
value = data.equinix_fabric_service_tokens.service-tokens.data.0.service_token_connection.0.z_side.0.access_point_selectors.0.virtual_device.0.type
}

output "first_service_token_virtual_device_uuid" {
value = data.equinix_fabric_service_tokens.service-tokens.data.0.service_token_connection.0.z_side.0.access_point_selectors.0.virtual_device.0.uuid
}

output "first_service_token_interface_type" {
value = data.equinix_fabric_service_tokens.service-tokens.data.0.service_token_connection.0.z_side.0.access_point_selectors.0.interface.0.type
}

output "first_service_token_interface_uuid" {
value = data.equinix_fabric_service_tokens.service-tokens.data.0.service_token_connection.0.z_side.0.access_point_selectors.0.interface.0.id
}

模式

需要

  • filter(阻止列表,最小值:1,最大值:10)数据源搜索请求的过滤器(有关嵌套架构,请参见下文

可选

  • pagination(块集,最大值:1)数据源搜索请求的分页详细信息(有关嵌套架构,请参见下文

只读

  • data(对象列表)服务令牌列表(有关嵌套模式,请参见下文
  • id(字符串)此资源的 ID。

filter 的嵌套模式

必需的:

  • operator(字符串)可用于筛选属性的运算符。可以是以下运算符之一:[ "=", "!=", "[NOT] LIKE", "[NOT] IN", "ILIKE" ]
  • property(字符串)用于筛选请求的 API 响应属性。可以是以下值之一:"/type", "/name", "/project/projectId", "/uuid", "/state"
  • values(字符串列表)要应用属性+运算符组合以筛选数据搜索的值

pagination 的嵌套模式

选修的:

  • limit(数字)每页请求的元素数量。数字必须介于 1 和 100 之间。默认值为 20。
  • offset(数字)分页请求的页面偏移量。第一个元素的索引。默认值为 0。
  • total(数字)返回的元素总数。

只读:

  • next(字符串)相对于响应中最后一个项目的 URL。
  • previous(字符串)相对于响应中第一个项目的 URL。

data 的嵌套模式

只读:

  • account(对象集合)(有关嵌套模式,请参见下文
  • change_log(对象集合)(有关嵌套模式,请参见下文
  • description(字符串)
  • expiration_date_time(字符串)
  • href(字符串)
  • issuer_side(字符串)
  • name(字符串)
  • notifications(对象集合)(嵌套模式请参见下方
  • project(对象集合)(有关嵌套模式,请参见下文
  • service_token_connection(对象集合)(有关嵌套模式,请参见下文
  • state(字符串)
  • type(字符串)
  • uuid(字符串)

data.account 的嵌套模式

只读:

  • account_name(字符串)
  • account_number(数字)
  • global_cust_id(字符串)
  • global_org_id(字符串)
  • global_organization_name(字符串)
  • org_id(数字)
  • organization_name(字符串)
  • ucm_id(字符串)

data.change_log 的嵌套模式

只读:

  • created_by(字符串)
  • created_by_email(字符串)
  • created_by_full_name(字符串)
  • created_date_time(字符串)
  • deleted_by(字符串)
  • deleted_by_email(字符串)
  • deleted_by_full_name(字符串)
  • deleted_date_time(字符串)
  • updated_by(字符串)
  • updated_by_email(字符串)
  • updated_by_full_name(字符串)
  • updated_date_time(字符串)

data.notifications 的嵌套模式

只读:

  • emails(字符串列表)
  • send_interval(字符串)
  • type(字符串)

data.project 的嵌套模式

只读:

  • href(字符串)
  • project_id(字符串)

data.service_token_connection 的嵌套模式

只读:

  • a_side(对象集合)(有关嵌套模式,请参见下文
  • allow_custom_bandwidth(布尔值)
  • allow_remote_connection(布尔值)
  • bandwidth_limit(数字)
  • supported_bandwidths(数字列表)
  • type(字符串)
  • uuid(字符串)
  • z_side(对象集合)(有关嵌套模式,请参见下文

data.service_token_connection.a_side 的嵌套模式

只读:

  • access_point_selectors(对象列表)(有关嵌套模式,请参见下方

data.service_token_connection.a_side.access_point_selectors 的嵌套模式

只读:

  • interface(对象集合)(有关嵌套模式,请参见下方
  • link_protocol(对象集合)(有关嵌套模式,请参见下方
  • network(对象集合)(有关嵌套模式,请参见下方
  • port(对象集合)(有关嵌套模式,请参见下方
  • type(字符串)
  • virtual_device(对象集合)(有关嵌套模式,请参见下方

data.service_token_connection.a_side.access_point_selectors.interface 的嵌套模式

只读:

  • id(数字)
  • type(字符串)
  • uuid(字符串)

只读:

  • type(字符串)
  • vlan_c_tag(数字)
  • vlan_s_tag(数字)
  • vlan_tag(数字)

data.service_token_connection.a_side.access_point_selectors.network 的嵌套模式

只读:

  • href(字符串)
  • location(对象集合)(有关嵌套模式,请参见下方
  • name(字符串)
  • scope(字符串)
  • type(字符串)
  • uuid(字符串)

data.service_token_connection.a_side.access_point_selectors.network.location 的嵌套模式

只读:

  • ibx(字符串)
  • metro_code(字符串)
  • metro_name(字符串)
  • region(字符串)

data.service_token_connection.a_side.access_point_selectors.port 的嵌套模式

只读:

  • account_name(字符串)
  • bandwidth(数字)
  • cvp_id(数字)
  • encapsulation_protocol_type(字符串)
  • href(字符串)
  • location(对象集合)(有关嵌套模式,请参见下方
  • port_name(字符串)
  • priority(字符串)
  • type(字符串)
  • uuid(字符串)

data.service_token_connection.a_side.access_point_selectors.port.location 的嵌套模式

只读:

  • ibx(字符串)
  • metro_code(字符串)
  • metro_name(字符串)
  • region(字符串)

data.service_token_connection.a_side.access_point_selectors.virtual_device 的嵌套模式

只读:

  • cluster(字符串)
  • href(字符串)
  • name(字符串)
  • type(字符串)
  • uuid(字符串)

data.service_token_connection.z_side 的嵌套模式

只读:

  • access_point_selectors(对象列表)(有关嵌套模式,请参见下方

data.service_token_connection.z_side.access_point_selectors 的嵌套模式

只读:

  • interface(对象集合)(有关嵌套模式,请参见下方
  • link_protocol(对象集合)(有关嵌套模式,请参见下方
  • network(对象集合)(有关嵌套模式,请参见下方
  • port(对象集合)(有关嵌套模式,请参见下方
  • type(字符串)
  • virtual_device(对象集合)(有关嵌套模式,请参见下方

data.service_token_connection.z_side.access_point_selectors.interface 的嵌套模式

只读:

  • id(数字)
  • type(字符串)
  • uuid(字符串)

只读:

  • type(字符串)
  • vlan_c_tag(数字)
  • vlan_s_tag(数字)
  • vlan_tag(数字)

data.service_token_connection.z_side.access_point_selectors.network 的嵌套模式

只读:

  • href(字符串)
  • location(对象集合)(有关嵌套模式,请参见下方
  • name(字符串)
  • scope(字符串)
  • type(字符串)
  • uuid(字符串)

data.service_token_connection.z_side.access_point_selectors.network.location 的嵌套模式

只读:

  • ibx(字符串)
  • metro_code(字符串)
  • metro_name(字符串)
  • region(字符串)

data.service_token_connection.z_side.access_point_selectors.port 的嵌套模式

只读:

  • account_name(字符串)
  • bandwidth(数字)
  • cvp_id(数字)
  • encapsulation_protocol_type(字符串)
  • href(字符串)
  • location(对象集合)(有关嵌套模式,请参见下方
  • port_name(字符串)
  • priority(字符串)
  • type(字符串)
  • uuid(字符串)

data.service_token_connection.z_side.access_point_selectors.port.location 的嵌套模式

只读:

  • ibx(字符串)
  • metro_code(字符串)
  • metro_name(字符串)
  • region(字符串)

data.service_token_connection.z_side.access_point_selectors.virtual_device 的嵌套模式

只读:

  • cluster(字符串)
  • href(字符串)
  • name(字符串)
  • type(字符串)
  • uuid(字符串)
此页面有帮助吗?