mso

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HTTP_METHODS = []string{"GET", "PUT", "PATCH", "POST", "DELETE"}

Functions

func GetPolicyByName added in v1.5.0

func GetPolicyByName(cont *container.Container, policyName string, templateElements ...string) (*container.Container, error)

func GetPolicyIndexByKeyAndValue added in v1.5.0

func GetPolicyIndexByKeyAndValue(cont *container.Container, policyIdentifier, policyIdentifierValue string, templateElements ...string) (int, error)

func GetPolicyNameFromResourceId added in v1.5.0

func GetPolicyNameFromResourceId(input, policyType string) (string, error)

func GetSiteViaName

func GetSiteViaName(msoClient *client.Client, name string) (*container.Container, error)

func GetTemplateIdByNameAndType added in v1.6.0

func GetTemplateIdByNameAndType(msoClient *client.Client, templateName, templateType string) (interface{}, error)

func GetTemplateIdFromResourceId added in v1.5.0

func GetTemplateIdFromResourceId(input string) (string, error)

func GetTenantNameViaTemplateName

func GetTenantNameViaTemplateName(msoClient *client.Client, id string, tempName string) (string, error)

Gets tenant name by doing the following GET and loop through all the schemas and check if the schema is present ("api/v1/schemas/list-identity") GET and loop through all the templates in the schema and check if the template is present If template present then get tenantId from template contents GET tenant_name from tenantId "api/v1/tenants/{id}"

func MakeRestRequest

func MakeRestRequest(cli *client.Client, path, method, payload string) (*container.Container, error)

func Provider

func Provider() terraform.ResourceProvider

func StringLenValidator

func StringLenValidator(lengt int) schema.SchemaValidateFunc

Types

type Config

type Config struct {
	Username   string
	Password   string
	IsInsecure bool
	ProxyUrl   string
	URL        string
	Domain     string
	Platform   string
	MaxRetries int
}

Config

func (Config) Valid

func (c Config) Valid() error

Source Files

Jump to

Keyboard shortcuts

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