datasource

package
v0.0.36 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AccessList = map[string]schema.Attribute{
	"id": schema.Int64Attribute{
		Description: "The ID of the access list.",
		Required:    true,
	},
	"created_on": schema.StringAttribute{
		Description: "The date and time the access list was created.",
		Computed:    true,
	},
	"modified_on": schema.StringAttribute{
		Description: "The date and time the access list was last modified.",
		Computed:    true,
	},
	"name": schema.StringAttribute{
		Description: "The name of the access list.",
		Computed:    true,
	},
	"owner_user_id": schema.Int64Attribute{
		Description: "The ID of the user that owns the access list.",
		Computed:    true,
	},
	"authorization": schema.ListNestedAttribute{
		Description: "The authorization items of the access list.",
		Computed:    true,
		NestedObject: schema.NestedAttributeObject{
			Attributes: AccessListAuthorization,
		},
	},
	"access": schema.ListNestedAttribute{
		Description: "The access items of the access list.",
		Computed:    true,
		NestedObject: schema.NestedAttributeObject{
			Attributes: AccessListAccess,
		},
	},
	"pass_auth": schema.BoolAttribute{
		Description: "Whether or not to pass the authorization header to the upstream server.",
		Computed:    true,
	},
	"satisfy_any": schema.BoolAttribute{
		Description: "Whether or not to satisfy any of the authorization items.",
		Computed:    true,
	},
	"meta": schema.MapAttribute{
		Description: "The meta data associated with the access list.",
		ElementType: types.StringType,
		Computed:    true,
	},
}
View Source
var AccessListAccess = map[string]schema.Attribute{
	"id": schema.Int64Attribute{
		Description: "The ID of the access item.",
		Computed:    true,
	},
	"created_on": schema.StringAttribute{
		Description: "The date and time the access item was created.",
		Computed:    true,
	},
	"modified_on": schema.StringAttribute{
		Description: "The date and time the access item was last modified.",
		Computed:    true,
	},
	"address": schema.StringAttribute{
		Description: "The address of the access item.",
		Computed:    true,
	},
	"directive": schema.StringAttribute{
		Description: "The directive of the access item.",
		Computed:    true,
	},
	"meta": schema.MapAttribute{
		Description: "The meta data associated with the authorization item.",
		ElementType: types.StringType,
		Computed:    true,
	},
}
View Source
var AccessListAuthorization = map[string]schema.Attribute{
	"id": schema.Int64Attribute{
		Description: "The ID of the authorization item.",
		Computed:    true,
	},
	"created_on": schema.StringAttribute{
		Description: "The date and time the authorization item was created.",
		Computed:    true,
	},
	"modified_on": schema.StringAttribute{
		Description: "The date and time the authorization item was last modified.",
		Computed:    true,
	},
	"username": schema.StringAttribute{
		Description: "The username of the authorization item.",
		Computed:    true,
	},
	"password_hint": schema.StringAttribute{
		Description: "The password hint of the authorization item.",
		Computed:    true,
		Sensitive:   true,
	},
	"meta": schema.MapAttribute{
		Description: "The meta data associated with the authorization item.",
		ElementType: types.StringType,
		Computed:    true,
	},
}
View Source
var AccessLists = map[string]schema.Attribute{
	"access_lists": schema.ListNestedAttribute{
		Description: "The access lists.",
		Computed:    true,
		NestedObject: schema.NestedAttributeObject{
			Attributes: utils.MergeMaps(AccessList, nestedAccessList),
		},
	},
}
View Source
var Certificate = map[string]schema.Attribute{
	"id": schema.Int64Attribute{
		Description: "The ID of the certificate.",
		Required:    true,
	},
	"created_on": schema.StringAttribute{
		Description: "The date and time the certificate was created.",
		Computed:    true,
	},
	"modified_on": schema.StringAttribute{
		Description: "The date and time the certificate was last modified.",
		Computed:    true,
	},
	"provider_name": schema.StringAttribute{
		Description: "The provider of the certificate.",
		Computed:    true,
	},
	"nice_name": schema.StringAttribute{
		Description: "The nice name of the certificate.",
		Computed:    true,
	},
	"domain_names": schema.ListAttribute{
		Description: "The domain names associated with the certificate.",
		Computed:    true,
		ElementType: types.StringType,
	},
	"expires_on": schema.StringAttribute{
		Description: "The date and time the certificate expires.",
		Computed:    true,
	},
	"meta": schema.MapAttribute{
		Description: "The meta data associated with the certificate.",
		ElementType: types.StringType,
		Computed:    true,
	},
}
View Source
var Certificates = map[string]schema.Attribute{
	"certificates": schema.ListNestedAttribute{
		Description: "The certificates.",
		Computed:    true,
		NestedObject: schema.NestedAttributeObject{
			Attributes: utils.MergeMaps(Certificate, nestedCertificate),
		},
	},
}
View Source
var DeadHost = map[string]schema.Attribute{
	"id": schema.Int64Attribute{
		Description: "The ID of the dead host.",
		Required:    true,
	},
	"created_on": schema.StringAttribute{
		Description: "The date and time the dead host was created.",
		Computed:    true,
	},
	"modified_on": schema.StringAttribute{
		Description: "The date and time the dead host was last modified.",
		Computed:    true,
	},
	"owner_user_id": schema.Int64Attribute{
		Description: "The ID of the user that owns the dead host.",
		Computed:    true,
	},
	"domain_names": schema.ListAttribute{
		Description: "The domain names associated with the dead host.",
		Computed:    true,
		ElementType: types.StringType,
	},
	"certificate_id": schema.StringAttribute{
		Description: "The ID of the certificate used by the dead host.",
		Computed:    true,
	},
	"ssl_forced": schema.BoolAttribute{
		Description: "Whether SSL is forced for the dead host.",
		Computed:    true,
	},
	"hsts_enabled": schema.BoolAttribute{
		Description: "Whether HSTS is enabled for the dead host.",
		Computed:    true,
	},
	"hsts_subdomains": schema.BoolAttribute{
		Description: "Whether HSTS is enabled for subdomains of the dead host.",
		Computed:    true,
	},
	"http2_support": schema.BoolAttribute{
		Description: "Whether HTTP/2 is supported for the dead host.",
		Computed:    true,
	},
	"advanced_config": schema.StringAttribute{
		Description: "The advanced configuration used by the dead host.",
		Computed:    true,
	},
	"enabled": schema.BoolAttribute{
		Description: "Whether the dead host is enabled.",
		Computed:    true,
	},
	"meta": schema.MapAttribute{
		Description: "The meta data associated with the dead host.",
		ElementType: types.StringType,
		Computed:    true,
	},
}
View Source
var DeadHosts = map[string]schema.Attribute{
	"dead_hosts": schema.ListNestedAttribute{
		Description: "The dead hosts.",
		Computed:    true,
		NestedObject: schema.NestedAttributeObject{
			Attributes: utils.MergeMaps(ProxyHost, nestedDeadHost),
		},
	},
}
View Source
var ProxyHost = map[string]schema.Attribute{
	"id": schema.Int64Attribute{
		Description: "The ID of the proxy host.",
		Required:    true,
	},
	"created_on": schema.StringAttribute{
		Description: "The date and time the proxy host was created.",
		Computed:    true,
	},
	"modified_on": schema.StringAttribute{
		Description: "The date and time the proxy host was last modified.",
		Computed:    true,
	},
	"owner_user_id": schema.Int64Attribute{
		Description: "The ID of the user that owns the proxy host.",
		Computed:    true,
	},
	"domain_names": schema.ListAttribute{
		Description: "The domain names associated with the proxy host.",
		Computed:    true,
		ElementType: types.StringType,
	},
	"forward_scheme": schema.StringAttribute{
		Description: "The scheme used to forward requests to the proxy host. Can be either `http` or `https`.",
		Computed:    true,
	},
	"forward_host": schema.StringAttribute{
		Description: "The host used to forward requests to the proxy host.",
		Computed:    true,
	},
	"forward_port": schema.Int64Attribute{
		Description: "The port used to forward requests to the proxy host.",
		Computed:    true,
	},
	"certificate_id": schema.StringAttribute{
		Description: "The ID of the certificate used by the proxy host.",
		Computed:    true,
	},
	"ssl_forced": schema.BoolAttribute{
		Description: "Whether SSL is forced for the proxy host.",
		Computed:    true,
	},
	"hsts_enabled": schema.BoolAttribute{
		Description: "Whether HSTS is enabled for the proxy host.",
		Computed:    true,
	},
	"hsts_subdomains": schema.BoolAttribute{
		Description: "Whether HSTS is enabled for subdomains of the proxy host.",
		Computed:    true,
	},
	"http2_support": schema.BoolAttribute{
		Description: "Whether HTTP/2 is supported for the proxy host.",
		Computed:    true,
	},
	"block_exploits": schema.BoolAttribute{
		Description: "Whether exploits are blocked for the proxy host.",
		Computed:    true,
	},
	"caching_enabled": schema.BoolAttribute{
		Description: "Whether caching is enabled for the proxy host.",
		Computed:    true,
	},
	"allow_websocket_upgrade": schema.BoolAttribute{
		Description: "Whether websocket upgrades are allowed for the proxy host.",
		Computed:    true,
	},
	"access_list_id": schema.Int64Attribute{
		Description: "The ID of the access list used by the proxy host.",
		Computed:    true,
	},
	"advanced_config": schema.StringAttribute{
		Description: "The advanced configuration used by the proxy host.",
		Computed:    true,
	},
	"enabled": schema.BoolAttribute{
		Description: "Whether the proxy host is enabled.",
		Computed:    true,
	},
	"meta": schema.MapAttribute{
		Description: "The meta data associated with the proxy host.",
		ElementType: types.StringType,
		Computed:    true,
	},
	"locations": schema.ListNestedAttribute{
		Description: "The locations associated with the proxy host.",
		Computed:    true,
		NestedObject: schema.NestedAttributeObject{
			Attributes: ProxyHostLocation,
		},
	},
}
View Source
var ProxyHostLocation = map[string]schema.Attribute{
	"path": schema.StringAttribute{
		Description: "The path associated with the location.",
		Computed:    true,
	},
	"forward_scheme": schema.StringAttribute{
		Description: "The scheme used to forward requests to the location. Can be either `http` or `https`.",
		Computed:    true,
	},
	"forward_host": schema.StringAttribute{
		Description: "The host used to forward requests to the location.",
		Computed:    true,
	},
	"forward_port": schema.Int64Attribute{
		Description: "The port used to forward requests to the location.",
		Computed:    true,
	},
	"advanced_config": schema.StringAttribute{
		Description: "The advanced configuration used by the location.",
		Computed:    true,
	},
}
View Source
var ProxyHosts = map[string]schema.Attribute{
	"proxy_hosts": schema.ListNestedAttribute{
		Description: "The proxy hosts.",
		Computed:    true,
		NestedObject: schema.NestedAttributeObject{
			Attributes: utils.MergeMaps(ProxyHost, nestedProxyHost),
		},
	},
}
View Source
var RedirectionHost = map[string]schema.Attribute{
	"id": schema.Int64Attribute{
		Description: "The ID of the redirection host.",
		Required:    true,
	},
	"created_on": schema.StringAttribute{
		Description: "The date and time the redirection host was created.",
		Computed:    true,
	},
	"modified_on": schema.StringAttribute{
		Description: "The date and time the redirection host was last modified.",
		Computed:    true,
	},
	"owner_user_id": schema.Int64Attribute{
		Description: "The ID of the user that owns the redirection host.",
		Computed:    true,
	},
	"domain_names": schema.ListAttribute{
		Description: "The domain names associated with the redirection host.",
		Computed:    true,
		ElementType: types.StringType,
	},
	"forward_scheme": schema.StringAttribute{
		Description: "The scheme used to forward requests to the redirection host. Can be either `auto`, `http` or `https`.",
		Computed:    true,
	},
	"forward_domain_name": schema.StringAttribute{
		Description: "The domain name used to forward requests to the redirection host.",
		Computed:    true,
	},
	"forward_http_code": schema.Int64Attribute{
		Description: "The HTTP code used to forward requests to the redirection host.",
		Computed:    true,
	},
	"certificate_id": schema.StringAttribute{
		Description: "The ID of the certificate used by the redirection host.",
		Computed:    true,
	},
	"ssl_forced": schema.BoolAttribute{
		Description: "Whether SSL is forced for the redirection host.",
		Computed:    true,
	},
	"hsts_enabled": schema.BoolAttribute{
		Description: "Whether HSTS is enabled for the redirection host.",
		Computed:    true,
	},
	"hsts_subdomains": schema.BoolAttribute{
		Description: "Whether HSTS is enabled for subdomains of the redirection host.",
		Computed:    true,
	},
	"http2_support": schema.BoolAttribute{
		Description: "Whether HTTP/2 is supported for the redirection host.",
		Computed:    true,
	},
	"preserve_path": schema.BoolAttribute{
		Description: "Whether the path is preserved for the redirection host.",
		Computed:    true,
	},
	"block_exploits": schema.BoolAttribute{
		Description: "Whether exploits are blocked for the redirection host.",
		Computed:    true,
	},
	"advanced_config": schema.StringAttribute{
		Description: "The advanced configuration used by the redirection host.",
		Computed:    true,
	},
	"enabled": schema.BoolAttribute{
		Description: "Whether the redirection host is enabled.",
		Computed:    true,
	},
	"meta": schema.MapAttribute{
		Description: "The meta data associated with the redirection host.",
		ElementType: types.StringType,
		Computed:    true,
	},
}
View Source
var RedirectionHosts = map[string]schema.Attribute{
	"redirection_hosts": schema.ListNestedAttribute{
		Description: "The redirection hosts.",
		Computed:    true,
		NestedObject: schema.NestedAttributeObject{
			Attributes: utils.MergeMaps(RedirectionHost, nestedRedirectionHost),
		},
	},
}
View Source
var Stream = map[string]schema.Attribute{
	"id": schema.Int64Attribute{
		Description: "The ID of the stream.",
		Required:    true,
	},
	"created_on": schema.StringAttribute{
		Description: "The date and time the stream was created.",
		Computed:    true,
	},
	"modified_on": schema.StringAttribute{
		Description: "The date and time the stream was last modified.",
		Computed:    true,
	},
	"owner_user_id": schema.Int64Attribute{
		Description: "The ID of the user that owns the stream.",
		Computed:    true,
	},
	"incoming_port": schema.Int64Attribute{
		Description: "The incoming port of the stream.",
		Computed:    true,
	},
	"forwarding_host": schema.StringAttribute{
		Description: "The forwarding host of the stream.",
		Computed:    true,
	},
	"forwarding_port": schema.Int64Attribute{
		Description: "The forwarding port of the stream.",
		Computed:    true,
	},
	"tcp_forwarding": schema.BoolAttribute{
		Description: "Whether TCP forwarding is enabled.",
		Computed:    true,
	},
	"udp_forwarding": schema.BoolAttribute{
		Description: "Whether UDP forwarding is enabled.",
		Computed:    true,
	},
	"enabled": schema.BoolAttribute{
		Description: "Whether the stream is enabled.",
		Computed:    true,
	},
	"meta": schema.MapAttribute{
		Description: "The meta data associated with the stream.",
		ElementType: types.StringType,
		Computed:    true,
	},
}
View Source
var Streams = map[string]schema.Attribute{
	"streams": schema.ListNestedAttribute{
		Description: "The streams.",
		Computed:    true,
		NestedObject: schema.NestedAttributeObject{
			Attributes: utils.MergeMaps(Stream, nestedStream),
		},
	},
}
View Source
var User = map[string]schema.Attribute{
	"id": schema.Int64Attribute{
		Description: "The ID of the user.",
		Required:    true,
	},
	"created_on": schema.StringAttribute{
		Description: "The date and time the user was created.",
		Computed:    true,
	},
	"modified_on": schema.StringAttribute{
		Description: "The date and time the user was last modified.",
		Computed:    true,
	},
	"name": schema.StringAttribute{
		Description: "The name of the user.",
		Computed:    true,
	},
	"nickname": schema.StringAttribute{
		Description: "The nickname of the user.",
		Computed:    true,
	},
	"email": schema.StringAttribute{
		Description: "The email of the user.",
		Computed:    true,
	},
	"avatar": schema.StringAttribute{
		Description: "The avatar of the user.",
		Computed:    true,
	},
	"is_disabled": schema.BoolAttribute{
		Description: "Whether the user is disabled.",
		Computed:    true,
	},
	"roles": schema.ListAttribute{
		Description: "The roles of the user.",
		Computed:    true,
		ElementType: types.StringType,
	},
	"permissions": schema.SingleNestedAttribute{
		Description: "The permissions of the user.",
		Computed:    true,
		Attributes:  UserPermissions,
	},
	"meta": schema.MapAttribute{
		Description: "The meta data associated with the user.",
		ElementType: types.StringType,
		Computed:    true,
	},
}
View Source
var UserMe = utils.MergeMaps(User, meUser)
View Source
var UserPermissions = map[string]schema.Attribute{
	"access_lists": schema.StringAttribute{
		Description: "The permission value for the access lists.",
		Computed:    true,
	},
	"certificates": schema.StringAttribute{
		Description: "The permission value for the certificates.",
		Computed:    true,
	},
	"dead_hosts": schema.StringAttribute{
		Description: "The permission value for the dead hosts.",
		Computed:    true,
	},
	"proxy_hosts": schema.StringAttribute{
		Description: "The permission value for the proxy hosts.",
		Computed:    true,
	},
	"redirection_hosts": schema.StringAttribute{
		Description: "The permission value for the redirection hosts.",
		Computed:    true,
	},
	"streams": schema.StringAttribute{
		Description: "The permission value for the streams.",
		Computed:    true,
	},
	"visibility": schema.StringAttribute{
		Description: "The level of visibility for the user.",
		Computed:    true,
	},
}
View Source
var Users = map[string]schema.Attribute{
	"users": schema.ListNestedAttribute{
		Description: "The users.",
		Computed:    true,
		NestedObject: schema.NestedAttributeObject{
			Attributes: utils.MergeMaps(User, nestedCertificate),
		},
	},
}
View Source
var Version = map[string]schema.Attribute{
	"major": schema.Int64Attribute{
		Description: "The major version number.",
		Computed:    true,
	},
	"minor": schema.Int64Attribute{
		Description: "The minor version number.",
		Computed:    true,
	},
	"revision": schema.Int64Attribute{
		Description: "The revision version number.",
		Computed:    true,
	},
	"version": schema.StringAttribute{
		Description: "The full version.",
		Computed:    true,
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL