You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
terraform-provider-decort/samples/cloudapi/resource_flipgroup/main.tf

68 lines
1.7 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#Расскомментируйте этот код,
#и внесите необходимые правки в версию и путь,
#чтобы работать с установленным вручную (не через hashicorp provider registry) провайдером
/*
terraform {
required_providers {
decort = {
source = "basis/decort/decort"
version = "<VERSION>"
}
}
}
*/
provider "decort" {
authenticator = "oauth2"
oauth2_url = "https://sso.digitalenergy.online"
controller_url = "https://mr4.digitalenergy.online"
app_id = ""
app_secret = ""
}
resource "decort_flipgroup" "fg" {
# ID аккаунта
# Обязательный параметр
# int
account_id = 999
# Наименование Flipgroup
# Обязательный параметр
# string
name = "flipgroup_name"
# Тип сети (EXTNET, ViNS)
# Обязательный параметр
# string
net_type = "EXTNET"
# ID сети
# Обязательный параметр
# int
net_id = 13
# Тип клиентов (в данный момент поддерживается только тип 'compute')
# Обязательный параметр
# string
client_type = "compute"
# IP-адрес
# Опциональный параметр
# string
ip = "127.0.0.1"
# Список клиентов, прикрепленных к флипгруппе
# Опциональный параметр
# []int
client_ids = [11269]
# Описание флипгруппы
# Опциональный параметр
# string
desc = "CHANGED"
}
output "fg_out" {
value = decort_flipgroup.fg
}