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.
/*
Примериспользования
Ресурсаsnapshot
Ресурспозволяет:
1.Создаватьsnapshot
2.Удалятьsnapshot
3.Откатыватьsnapshot
*/
#Расскомментируйте этот код,
#и внесите необходимые правки в версию и путь,
#чтобы работать с установленным вручную (не через hashicorp provider registry) провайдером
/*
terraform{
required_providers{
decort={
version="<VERSION>"
source="basis/decort/decort"
}
}
}
*/
provider"decort" {
authenticator="decs3o"
#controller_url = <DECORT_CONTROLLER_URL>
controller_url="https://ds1.digitalenergy.online"
#oauth2_url = <DECORT_SSO_URL>
oauth2_url="https://sso.digitalenergy.online"
allow_unverified_ssl=true
}
resource"decort_snapshot" "s" {
#обязательный параметр
#id вычислительной мощности
#тип - число
compute_id=24074
#обязательный параметр
#наименование snapshot
#тип - строка
label="test_ssht_3"
#опциональный параметр
#флаг отката
#тип - булев тип
#по-уолчанию - false
#если флаг был измеен с false на true, то произойдет откат