mirror of
https://github.com/oscarhermoso/terraform-provider-binarylane
synced 2026-10-18 05:36:04 +11:00
104 lines
2.8 KiB
JSON
104 lines
2.8 KiB
JSON
{
|
|
"datasources": [
|
|
{
|
|
"name": "server",
|
|
"schema": {
|
|
"attributes": [
|
|
{
|
|
"name": "id",
|
|
"int64": {
|
|
"computed_optional_required": "required",
|
|
"description": "The ID of the server to fetch."
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"provider": {
|
|
"name": "binarylane"
|
|
},
|
|
"resources": [
|
|
{
|
|
"name": "server",
|
|
"schema": {
|
|
"attributes": [
|
|
{
|
|
"name": "backups",
|
|
"bool": {
|
|
"computed_optional_required": "computed_optional",
|
|
"description": "If true this will enable two daily backups for the server. Options.daily_backups will override this value if provided. Setting this to false has no effect.\n"
|
|
}
|
|
},
|
|
{
|
|
"name": "image",
|
|
"string": {
|
|
"computed_optional_required": "required",
|
|
"description": "The slug of the selected operating system."
|
|
}
|
|
},
|
|
{
|
|
"name": "name",
|
|
"string": {
|
|
"computed_optional_required": "computed_optional",
|
|
"description": "The hostname of your server, such as vps01.yourcompany.com. If not provided, the server will be created with a random name."
|
|
}
|
|
},
|
|
{
|
|
"name": "password",
|
|
"string": {
|
|
"computed_optional_required": "computed_optional",
|
|
"description": "If this is provided the specified or default remote user's account password will be set to this value. Only valid if the server supports password change actions (check server.password_change_supported via the servers endpoint). If omitted and the server supports password change actions a random password will be generated and emailed to the account email address.\n"
|
|
}
|
|
},
|
|
{
|
|
"name": "region",
|
|
"string": {
|
|
"computed_optional_required": "required",
|
|
"description": "The slug of the selected region.",
|
|
"validators": [
|
|
{
|
|
"custom": {
|
|
"imports": [
|
|
{
|
|
"path": "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
|
|
}
|
|
],
|
|
"schema_definition": "stringvalidator.LengthAtLeast(1)"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "size",
|
|
"string": {
|
|
"computed_optional_required": "required",
|
|
"description": "The slug of the selected size.",
|
|
"validators": [
|
|
{
|
|
"custom": {
|
|
"imports": [
|
|
{
|
|
"path": "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
|
|
}
|
|
],
|
|
"schema_definition": "stringvalidator.LengthAtLeast(1)"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "id",
|
|
"int64": {
|
|
"computed_optional_required": "computed_optional",
|
|
"description": "The ID of the server to fetch."
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"version": "0.1"
|
|
} |