tenancy

package
v0.0.0-...-a632b15 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Contact

type Contact struct {
	pulumi.CustomResourceState

	Email    pulumi.StringPtrOutput   `pulumi:"email"`
	GroupId  pulumi.IntPtrOutput      `pulumi:"groupId"`
	Name     pulumi.StringOutput      `pulumi:"name"`
	Phone    pulumi.StringPtrOutput   `pulumi:"phone"`
	Tags     pulumi.StringArrayOutput `pulumi:"tags"`
	TagsAlls pulumi.StringArrayOutput `pulumi:"tagsAlls"`
}

From the [official documentation](https://docs.netbox.dev/en/stable/features/contacts/#contacts_1):

> A contact should represent an individual or permanent point of contact. Each contact must define a name, and may optionally include a title, phone number, email address, and related details. > > Contacts are reused for assignments, so each unique contact must be created only once and can be assigned to any number of NetBox objects, and there is no limit to the number of assigned contacts an object may have. Most core objects in NetBox can have contacts assigned to them.

## Example Usage

```go package main

import (

"github.com/NatzkaLabsOpenSource/pulumi-netbox/sdk/go/netbox/tenancy"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := tenancy.NewContact(ctx, "test", &tenancy.ContactArgs{
			Name:  pulumi.String("John Doe"),
			Email: pulumi.String("test@example.com"),
			Phone: pulumi.String("123-123123"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetContact

func GetContact(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ContactState, opts ...pulumi.ResourceOption) (*Contact, error)

GetContact gets an existing Contact resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewContact

func NewContact(ctx *pulumi.Context,
	name string, args *ContactArgs, opts ...pulumi.ResourceOption) (*Contact, error)

NewContact registers a new resource with the given unique name, arguments, and options.

func (*Contact) ElementType

func (*Contact) ElementType() reflect.Type

func (*Contact) ToContactOutput

func (i *Contact) ToContactOutput() ContactOutput

func (*Contact) ToContactOutputWithContext

func (i *Contact) ToContactOutputWithContext(ctx context.Context) ContactOutput

type ContactArgs

type ContactArgs struct {
	Email   pulumi.StringPtrInput
	GroupId pulumi.IntPtrInput
	Name    pulumi.StringPtrInput
	Phone   pulumi.StringPtrInput
	Tags    pulumi.StringArrayInput
}

The set of arguments for constructing a Contact resource.

func (ContactArgs) ElementType

func (ContactArgs) ElementType() reflect.Type

type ContactArray

type ContactArray []ContactInput

func (ContactArray) ElementType

func (ContactArray) ElementType() reflect.Type

func (ContactArray) ToContactArrayOutput

func (i ContactArray) ToContactArrayOutput() ContactArrayOutput

func (ContactArray) ToContactArrayOutputWithContext

func (i ContactArray) ToContactArrayOutputWithContext(ctx context.Context) ContactArrayOutput

type ContactArrayInput

type ContactArrayInput interface {
	pulumi.Input

	ToContactArrayOutput() ContactArrayOutput
	ToContactArrayOutputWithContext(context.Context) ContactArrayOutput
}

ContactArrayInput is an input type that accepts ContactArray and ContactArrayOutput values. You can construct a concrete instance of `ContactArrayInput` via:

ContactArray{ ContactArgs{...} }

type ContactArrayOutput

type ContactArrayOutput struct{ *pulumi.OutputState }

func (ContactArrayOutput) ElementType

func (ContactArrayOutput) ElementType() reflect.Type

func (ContactArrayOutput) Index

func (ContactArrayOutput) ToContactArrayOutput

func (o ContactArrayOutput) ToContactArrayOutput() ContactArrayOutput

func (ContactArrayOutput) ToContactArrayOutputWithContext

func (o ContactArrayOutput) ToContactArrayOutputWithContext(ctx context.Context) ContactArrayOutput

type ContactAssignment

type ContactAssignment struct {
	pulumi.CustomResourceState

	ContactId   pulumi.IntOutput    `pulumi:"contactId"`
	ContentType pulumi.StringOutput `pulumi:"contentType"`
	ObjectId    pulumi.IntOutput    `pulumi:"objectId"`
	// Valid values are `primary`, `secondary`, `tertiary` and `inactive`.
	Priority pulumi.StringPtrOutput `pulumi:"priority"`
	RoleId   pulumi.IntOutput       `pulumi:"roleId"`
}

From the [official documentation](https://docs.netbox.dev/en/stable/features/contacts#contactassignments_1):

> Much like tenancy, contact assignment enables you to track ownership of resources modeled in NetBox.

## Example Usage

```go package main

import (

"github.com/NatzkaLabsOpenSource/pulumi-netbox/sdk/go/netbox/tenancy"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		test, err := tenancy.NewContact(ctx, "test", &tenancy.ContactArgs{
			Name: pulumi.String("test"),
		})
		if err != nil {
			return err
		}
		testContactRole, err := tenancy.NewContactRole(ctx, "test", &tenancy.ContactRoleArgs{
			Name: pulumi.String("test"),
		})
		if err != nil {
			return err
		}
		// Assumes that a device with id 123 exists
		_, err = tenancy.NewContactAssignment(ctx, "test", &tenancy.ContactAssignmentArgs{
			ContentType: pulumi.String("dcim.device"),
			ObjectId:    pulumi.Int(123),
			ContactId:   test.ID(),
			RoleId:      testContactRole.ID(),
			Priority:    pulumi.String("primary"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetContactAssignment

func GetContactAssignment(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ContactAssignmentState, opts ...pulumi.ResourceOption) (*ContactAssignment, error)

GetContactAssignment gets an existing ContactAssignment resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewContactAssignment

func NewContactAssignment(ctx *pulumi.Context,
	name string, args *ContactAssignmentArgs, opts ...pulumi.ResourceOption) (*ContactAssignment, error)

NewContactAssignment registers a new resource with the given unique name, arguments, and options.

func (*ContactAssignment) ElementType

func (*ContactAssignment) ElementType() reflect.Type

func (*ContactAssignment) ToContactAssignmentOutput

func (i *ContactAssignment) ToContactAssignmentOutput() ContactAssignmentOutput

func (*ContactAssignment) ToContactAssignmentOutputWithContext

func (i *ContactAssignment) ToContactAssignmentOutputWithContext(ctx context.Context) ContactAssignmentOutput

type ContactAssignmentArgs

type ContactAssignmentArgs struct {
	ContactId   pulumi.IntInput
	ContentType pulumi.StringInput
	ObjectId    pulumi.IntInput
	// Valid values are `primary`, `secondary`, `tertiary` and `inactive`.
	Priority pulumi.StringPtrInput
	RoleId   pulumi.IntInput
}

The set of arguments for constructing a ContactAssignment resource.

func (ContactAssignmentArgs) ElementType

func (ContactAssignmentArgs) ElementType() reflect.Type

type ContactAssignmentArray

type ContactAssignmentArray []ContactAssignmentInput

func (ContactAssignmentArray) ElementType

func (ContactAssignmentArray) ElementType() reflect.Type

func (ContactAssignmentArray) ToContactAssignmentArrayOutput

func (i ContactAssignmentArray) ToContactAssignmentArrayOutput() ContactAssignmentArrayOutput

func (ContactAssignmentArray) ToContactAssignmentArrayOutputWithContext

func (i ContactAssignmentArray) ToContactAssignmentArrayOutputWithContext(ctx context.Context) ContactAssignmentArrayOutput

type ContactAssignmentArrayInput

type ContactAssignmentArrayInput interface {
	pulumi.Input

	ToContactAssignmentArrayOutput() ContactAssignmentArrayOutput
	ToContactAssignmentArrayOutputWithContext(context.Context) ContactAssignmentArrayOutput
}

ContactAssignmentArrayInput is an input type that accepts ContactAssignmentArray and ContactAssignmentArrayOutput values. You can construct a concrete instance of `ContactAssignmentArrayInput` via:

ContactAssignmentArray{ ContactAssignmentArgs{...} }

type ContactAssignmentArrayOutput

type ContactAssignmentArrayOutput struct{ *pulumi.OutputState }

func (ContactAssignmentArrayOutput) ElementType

func (ContactAssignmentArrayOutput) Index

func (ContactAssignmentArrayOutput) ToContactAssignmentArrayOutput

func (o ContactAssignmentArrayOutput) ToContactAssignmentArrayOutput() ContactAssignmentArrayOutput

func (ContactAssignmentArrayOutput) ToContactAssignmentArrayOutputWithContext

func (o ContactAssignmentArrayOutput) ToContactAssignmentArrayOutputWithContext(ctx context.Context) ContactAssignmentArrayOutput

type ContactAssignmentInput

type ContactAssignmentInput interface {
	pulumi.Input

	ToContactAssignmentOutput() ContactAssignmentOutput
	ToContactAssignmentOutputWithContext(ctx context.Context) ContactAssignmentOutput
}

type ContactAssignmentMap

type ContactAssignmentMap map[string]ContactAssignmentInput

func (ContactAssignmentMap) ElementType

func (ContactAssignmentMap) ElementType() reflect.Type

func (ContactAssignmentMap) ToContactAssignmentMapOutput

func (i ContactAssignmentMap) ToContactAssignmentMapOutput() ContactAssignmentMapOutput

func (ContactAssignmentMap) ToContactAssignmentMapOutputWithContext

func (i ContactAssignmentMap) ToContactAssignmentMapOutputWithContext(ctx context.Context) ContactAssignmentMapOutput

type ContactAssignmentMapInput

type ContactAssignmentMapInput interface {
	pulumi.Input

	ToContactAssignmentMapOutput() ContactAssignmentMapOutput
	ToContactAssignmentMapOutputWithContext(context.Context) ContactAssignmentMapOutput
}

ContactAssignmentMapInput is an input type that accepts ContactAssignmentMap and ContactAssignmentMapOutput values. You can construct a concrete instance of `ContactAssignmentMapInput` via:

ContactAssignmentMap{ "key": ContactAssignmentArgs{...} }

type ContactAssignmentMapOutput

type ContactAssignmentMapOutput struct{ *pulumi.OutputState }

func (ContactAssignmentMapOutput) ElementType

func (ContactAssignmentMapOutput) ElementType() reflect.Type

func (ContactAssignmentMapOutput) MapIndex

func (ContactAssignmentMapOutput) ToContactAssignmentMapOutput

func (o ContactAssignmentMapOutput) ToContactAssignmentMapOutput() ContactAssignmentMapOutput

func (ContactAssignmentMapOutput) ToContactAssignmentMapOutputWithContext

func (o ContactAssignmentMapOutput) ToContactAssignmentMapOutputWithContext(ctx context.Context) ContactAssignmentMapOutput

type ContactAssignmentOutput

type ContactAssignmentOutput struct{ *pulumi.OutputState }

func (ContactAssignmentOutput) ContactId

func (ContactAssignmentOutput) ContentType

func (ContactAssignmentOutput) ElementType

func (ContactAssignmentOutput) ElementType() reflect.Type

func (ContactAssignmentOutput) ObjectId

func (ContactAssignmentOutput) Priority

Valid values are `primary`, `secondary`, `tertiary` and `inactive`.

func (ContactAssignmentOutput) RoleId

func (ContactAssignmentOutput) ToContactAssignmentOutput

func (o ContactAssignmentOutput) ToContactAssignmentOutput() ContactAssignmentOutput

func (ContactAssignmentOutput) ToContactAssignmentOutputWithContext

func (o ContactAssignmentOutput) ToContactAssignmentOutputWithContext(ctx context.Context) ContactAssignmentOutput

type ContactAssignmentState

type ContactAssignmentState struct {
	ContactId   pulumi.IntPtrInput
	ContentType pulumi.StringPtrInput
	ObjectId    pulumi.IntPtrInput
	// Valid values are `primary`, `secondary`, `tertiary` and `inactive`.
	Priority pulumi.StringPtrInput
	RoleId   pulumi.IntPtrInput
}

func (ContactAssignmentState) ElementType

func (ContactAssignmentState) ElementType() reflect.Type

type ContactGroup

type ContactGroup struct {
	pulumi.CustomResourceState

	Description pulumi.StringPtrOutput `pulumi:"description"`
	Name        pulumi.StringOutput    `pulumi:"name"`
	ParentId    pulumi.IntPtrOutput    `pulumi:"parentId"`
	Slug        pulumi.StringOutput    `pulumi:"slug"`
}

From the [official documentation](https://docs.netbox.dev/en/stable/features/contacts/#contact-groups):

> Contacts can be grouped arbitrarily into a recursive hierarchy, and a contact can be assigned to a group at any level within the hierarchy.

## Example Usage

```go package main

import (

"github.com/NatzkaLabsOpenSource/pulumi-netbox/sdk/go/netbox/tenancy"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := tenancy.NewContactGroup(ctx, "test", &tenancy.ContactGroupArgs{
			Name: pulumi.String("test"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetContactGroup

func GetContactGroup(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ContactGroupState, opts ...pulumi.ResourceOption) (*ContactGroup, error)

GetContactGroup gets an existing ContactGroup resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewContactGroup

func NewContactGroup(ctx *pulumi.Context,
	name string, args *ContactGroupArgs, opts ...pulumi.ResourceOption) (*ContactGroup, error)

NewContactGroup registers a new resource with the given unique name, arguments, and options.

func (*ContactGroup) ElementType

func (*ContactGroup) ElementType() reflect.Type

func (*ContactGroup) ToContactGroupOutput

func (i *ContactGroup) ToContactGroupOutput() ContactGroupOutput

func (*ContactGroup) ToContactGroupOutputWithContext

func (i *ContactGroup) ToContactGroupOutputWithContext(ctx context.Context) ContactGroupOutput

type ContactGroupArgs

type ContactGroupArgs struct {
	Description pulumi.StringPtrInput
	Name        pulumi.StringPtrInput
	ParentId    pulumi.IntPtrInput
	Slug        pulumi.StringPtrInput
}

The set of arguments for constructing a ContactGroup resource.

func (ContactGroupArgs) ElementType

func (ContactGroupArgs) ElementType() reflect.Type

type ContactGroupArray

type ContactGroupArray []ContactGroupInput

func (ContactGroupArray) ElementType

func (ContactGroupArray) ElementType() reflect.Type

func (ContactGroupArray) ToContactGroupArrayOutput

func (i ContactGroupArray) ToContactGroupArrayOutput() ContactGroupArrayOutput

func (ContactGroupArray) ToContactGroupArrayOutputWithContext

func (i ContactGroupArray) ToContactGroupArrayOutputWithContext(ctx context.Context) ContactGroupArrayOutput

type ContactGroupArrayInput

type ContactGroupArrayInput interface {
	pulumi.Input

	ToContactGroupArrayOutput() ContactGroupArrayOutput
	ToContactGroupArrayOutputWithContext(context.Context) ContactGroupArrayOutput
}

ContactGroupArrayInput is an input type that accepts ContactGroupArray and ContactGroupArrayOutput values. You can construct a concrete instance of `ContactGroupArrayInput` via:

ContactGroupArray{ ContactGroupArgs{...} }

type ContactGroupArrayOutput

type ContactGroupArrayOutput struct{ *pulumi.OutputState }

func (ContactGroupArrayOutput) ElementType

func (ContactGroupArrayOutput) ElementType() reflect.Type

func (ContactGroupArrayOutput) Index

func (ContactGroupArrayOutput) ToContactGroupArrayOutput

func (o ContactGroupArrayOutput) ToContactGroupArrayOutput() ContactGroupArrayOutput

func (ContactGroupArrayOutput) ToContactGroupArrayOutputWithContext

func (o ContactGroupArrayOutput) ToContactGroupArrayOutputWithContext(ctx context.Context) ContactGroupArrayOutput

type ContactGroupInput

type ContactGroupInput interface {
	pulumi.Input

	ToContactGroupOutput() ContactGroupOutput
	ToContactGroupOutputWithContext(ctx context.Context) ContactGroupOutput
}

type ContactGroupMap

type ContactGroupMap map[string]ContactGroupInput

func (ContactGroupMap) ElementType

func (ContactGroupMap) ElementType() reflect.Type

func (ContactGroupMap) ToContactGroupMapOutput

func (i ContactGroupMap) ToContactGroupMapOutput() ContactGroupMapOutput

func (ContactGroupMap) ToContactGroupMapOutputWithContext

func (i ContactGroupMap) ToContactGroupMapOutputWithContext(ctx context.Context) ContactGroupMapOutput

type ContactGroupMapInput

type ContactGroupMapInput interface {
	pulumi.Input

	ToContactGroupMapOutput() ContactGroupMapOutput
	ToContactGroupMapOutputWithContext(context.Context) ContactGroupMapOutput
}

ContactGroupMapInput is an input type that accepts ContactGroupMap and ContactGroupMapOutput values. You can construct a concrete instance of `ContactGroupMapInput` via:

ContactGroupMap{ "key": ContactGroupArgs{...} }

type ContactGroupMapOutput

type ContactGroupMapOutput struct{ *pulumi.OutputState }

func (ContactGroupMapOutput) ElementType

func (ContactGroupMapOutput) ElementType() reflect.Type

func (ContactGroupMapOutput) MapIndex

func (ContactGroupMapOutput) ToContactGroupMapOutput

func (o ContactGroupMapOutput) ToContactGroupMapOutput() ContactGroupMapOutput

func (ContactGroupMapOutput) ToContactGroupMapOutputWithContext

func (o ContactGroupMapOutput) ToContactGroupMapOutputWithContext(ctx context.Context) ContactGroupMapOutput

type ContactGroupOutput

type ContactGroupOutput struct{ *pulumi.OutputState }

func (ContactGroupOutput) Description

func (o ContactGroupOutput) Description() pulumi.StringPtrOutput

func (ContactGroupOutput) ElementType

func (ContactGroupOutput) ElementType() reflect.Type

func (ContactGroupOutput) Name

func (ContactGroupOutput) ParentId

func (o ContactGroupOutput) ParentId() pulumi.IntPtrOutput

func (ContactGroupOutput) Slug

func (ContactGroupOutput) ToContactGroupOutput

func (o ContactGroupOutput) ToContactGroupOutput() ContactGroupOutput

func (ContactGroupOutput) ToContactGroupOutputWithContext

func (o ContactGroupOutput) ToContactGroupOutputWithContext(ctx context.Context) ContactGroupOutput

type ContactGroupState

type ContactGroupState struct {
	Description pulumi.StringPtrInput
	Name        pulumi.StringPtrInput
	ParentId    pulumi.IntPtrInput
	Slug        pulumi.StringPtrInput
}

func (ContactGroupState) ElementType

func (ContactGroupState) ElementType() reflect.Type

type ContactInput

type ContactInput interface {
	pulumi.Input

	ToContactOutput() ContactOutput
	ToContactOutputWithContext(ctx context.Context) ContactOutput
}

type ContactMap

type ContactMap map[string]ContactInput

func (ContactMap) ElementType

func (ContactMap) ElementType() reflect.Type

func (ContactMap) ToContactMapOutput

func (i ContactMap) ToContactMapOutput() ContactMapOutput

func (ContactMap) ToContactMapOutputWithContext

func (i ContactMap) ToContactMapOutputWithContext(ctx context.Context) ContactMapOutput

type ContactMapInput

type ContactMapInput interface {
	pulumi.Input

	ToContactMapOutput() ContactMapOutput
	ToContactMapOutputWithContext(context.Context) ContactMapOutput
}

ContactMapInput is an input type that accepts ContactMap and ContactMapOutput values. You can construct a concrete instance of `ContactMapInput` via:

ContactMap{ "key": ContactArgs{...} }

type ContactMapOutput

type ContactMapOutput struct{ *pulumi.OutputState }

func (ContactMapOutput) ElementType

func (ContactMapOutput) ElementType() reflect.Type

func (ContactMapOutput) MapIndex

func (ContactMapOutput) ToContactMapOutput

func (o ContactMapOutput) ToContactMapOutput() ContactMapOutput

func (ContactMapOutput) ToContactMapOutputWithContext

func (o ContactMapOutput) ToContactMapOutputWithContext(ctx context.Context) ContactMapOutput

type ContactOutput

type ContactOutput struct{ *pulumi.OutputState }

func (ContactOutput) ElementType

func (ContactOutput) ElementType() reflect.Type

func (ContactOutput) Email

func (ContactOutput) GroupId

func (o ContactOutput) GroupId() pulumi.IntPtrOutput

func (ContactOutput) Name

func (ContactOutput) Phone

func (ContactOutput) Tags

func (ContactOutput) TagsAlls

func (o ContactOutput) TagsAlls() pulumi.StringArrayOutput

func (ContactOutput) ToContactOutput

func (o ContactOutput) ToContactOutput() ContactOutput

func (ContactOutput) ToContactOutputWithContext

func (o ContactOutput) ToContactOutputWithContext(ctx context.Context) ContactOutput

type ContactRole

type ContactRole struct {
	pulumi.CustomResourceState

	Name pulumi.StringOutput `pulumi:"name"`
	Slug pulumi.StringOutput `pulumi:"slug"`
}

From the [official documentation](https://docs.netbox.dev/en/stable/features/contacts/#contactroles):

> A contact role defines the relationship of a contact to an assigned object. For example, you might define roles for administrative, operational, and emergency contacts

## Example Usage

```go package main

import (

"github.com/NatzkaLabsOpenSource/pulumi-netbox/sdk/go/netbox/tenancy"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := tenancy.NewContactRole(ctx, "test", &tenancy.ContactRoleArgs{
			Name: pulumi.String("test"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetContactRole

func GetContactRole(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ContactRoleState, opts ...pulumi.ResourceOption) (*ContactRole, error)

GetContactRole gets an existing ContactRole resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewContactRole

func NewContactRole(ctx *pulumi.Context,
	name string, args *ContactRoleArgs, opts ...pulumi.ResourceOption) (*ContactRole, error)

NewContactRole registers a new resource with the given unique name, arguments, and options.

func (*ContactRole) ElementType

func (*ContactRole) ElementType() reflect.Type

func (*ContactRole) ToContactRoleOutput

func (i *ContactRole) ToContactRoleOutput() ContactRoleOutput

func (*ContactRole) ToContactRoleOutputWithContext

func (i *ContactRole) ToContactRoleOutputWithContext(ctx context.Context) ContactRoleOutput

type ContactRoleArgs

type ContactRoleArgs struct {
	Name pulumi.StringPtrInput
	Slug pulumi.StringPtrInput
}

The set of arguments for constructing a ContactRole resource.

func (ContactRoleArgs) ElementType

func (ContactRoleArgs) ElementType() reflect.Type

type ContactRoleArray

type ContactRoleArray []ContactRoleInput

func (ContactRoleArray) ElementType

func (ContactRoleArray) ElementType() reflect.Type

func (ContactRoleArray) ToContactRoleArrayOutput

func (i ContactRoleArray) ToContactRoleArrayOutput() ContactRoleArrayOutput

func (ContactRoleArray) ToContactRoleArrayOutputWithContext

func (i ContactRoleArray) ToContactRoleArrayOutputWithContext(ctx context.Context) ContactRoleArrayOutput

type ContactRoleArrayInput

type ContactRoleArrayInput interface {
	pulumi.Input

	ToContactRoleArrayOutput() ContactRoleArrayOutput
	ToContactRoleArrayOutputWithContext(context.Context) ContactRoleArrayOutput
}

ContactRoleArrayInput is an input type that accepts ContactRoleArray and ContactRoleArrayOutput values. You can construct a concrete instance of `ContactRoleArrayInput` via:

ContactRoleArray{ ContactRoleArgs{...} }

type ContactRoleArrayOutput

type ContactRoleArrayOutput struct{ *pulumi.OutputState }

func (ContactRoleArrayOutput) ElementType

func (ContactRoleArrayOutput) ElementType() reflect.Type

func (ContactRoleArrayOutput) Index

func (ContactRoleArrayOutput) ToContactRoleArrayOutput

func (o ContactRoleArrayOutput) ToContactRoleArrayOutput() ContactRoleArrayOutput

func (ContactRoleArrayOutput) ToContactRoleArrayOutputWithContext

func (o ContactRoleArrayOutput) ToContactRoleArrayOutputWithContext(ctx context.Context) ContactRoleArrayOutput

type ContactRoleInput

type ContactRoleInput interface {
	pulumi.Input

	ToContactRoleOutput() ContactRoleOutput
	ToContactRoleOutputWithContext(ctx context.Context) ContactRoleOutput
}

type ContactRoleMap

type ContactRoleMap map[string]ContactRoleInput

func (ContactRoleMap) ElementType

func (ContactRoleMap) ElementType() reflect.Type

func (ContactRoleMap) ToContactRoleMapOutput

func (i ContactRoleMap) ToContactRoleMapOutput() ContactRoleMapOutput

func (ContactRoleMap) ToContactRoleMapOutputWithContext

func (i ContactRoleMap) ToContactRoleMapOutputWithContext(ctx context.Context) ContactRoleMapOutput

type ContactRoleMapInput

type ContactRoleMapInput interface {
	pulumi.Input

	ToContactRoleMapOutput() ContactRoleMapOutput
	ToContactRoleMapOutputWithContext(context.Context) ContactRoleMapOutput
}

ContactRoleMapInput is an input type that accepts ContactRoleMap and ContactRoleMapOutput values. You can construct a concrete instance of `ContactRoleMapInput` via:

ContactRoleMap{ "key": ContactRoleArgs{...} }

type ContactRoleMapOutput

type ContactRoleMapOutput struct{ *pulumi.OutputState }

func (ContactRoleMapOutput) ElementType

func (ContactRoleMapOutput) ElementType() reflect.Type

func (ContactRoleMapOutput) MapIndex

func (ContactRoleMapOutput) ToContactRoleMapOutput

func (o ContactRoleMapOutput) ToContactRoleMapOutput() ContactRoleMapOutput

func (ContactRoleMapOutput) ToContactRoleMapOutputWithContext

func (o ContactRoleMapOutput) ToContactRoleMapOutputWithContext(ctx context.Context) ContactRoleMapOutput

type ContactRoleOutput

type ContactRoleOutput struct{ *pulumi.OutputState }

func (ContactRoleOutput) ElementType

func (ContactRoleOutput) ElementType() reflect.Type

func (ContactRoleOutput) Name

func (ContactRoleOutput) Slug

func (ContactRoleOutput) ToContactRoleOutput

func (o ContactRoleOutput) ToContactRoleOutput() ContactRoleOutput

func (ContactRoleOutput) ToContactRoleOutputWithContext

func (o ContactRoleOutput) ToContactRoleOutputWithContext(ctx context.Context) ContactRoleOutput

type ContactRoleState

type ContactRoleState struct {
	Name pulumi.StringPtrInput
	Slug pulumi.StringPtrInput
}

func (ContactRoleState) ElementType

func (ContactRoleState) ElementType() reflect.Type

type ContactState

type ContactState struct {
	Email    pulumi.StringPtrInput
	GroupId  pulumi.IntPtrInput
	Name     pulumi.StringPtrInput
	Phone    pulumi.StringPtrInput
	Tags     pulumi.StringArrayInput
	TagsAlls pulumi.StringArrayInput
}

func (ContactState) ElementType

func (ContactState) ElementType() reflect.Type

type GetTenantsArgs

type GetTenantsArgs struct {
	Filters []GetTenantsFilter `pulumi:"filters"`
	// Defaults to `1000`.
	Limit *int `pulumi:"limit"`
}

A collection of arguments for invoking getTenants.

type GetTenantsFilter

type GetTenantsFilter struct {
	Name  string `pulumi:"name"`
	Value string `pulumi:"value"`
}

type GetTenantsFilterArgs

type GetTenantsFilterArgs struct {
	Name  pulumi.StringInput `pulumi:"name"`
	Value pulumi.StringInput `pulumi:"value"`
}

func (GetTenantsFilterArgs) ElementType

func (GetTenantsFilterArgs) ElementType() reflect.Type

func (GetTenantsFilterArgs) ToGetTenantsFilterOutput

func (i GetTenantsFilterArgs) ToGetTenantsFilterOutput() GetTenantsFilterOutput

func (GetTenantsFilterArgs) ToGetTenantsFilterOutputWithContext

func (i GetTenantsFilterArgs) ToGetTenantsFilterOutputWithContext(ctx context.Context) GetTenantsFilterOutput

type GetTenantsFilterArray

type GetTenantsFilterArray []GetTenantsFilterInput

func (GetTenantsFilterArray) ElementType

func (GetTenantsFilterArray) ElementType() reflect.Type

func (GetTenantsFilterArray) ToGetTenantsFilterArrayOutput

func (i GetTenantsFilterArray) ToGetTenantsFilterArrayOutput() GetTenantsFilterArrayOutput

func (GetTenantsFilterArray) ToGetTenantsFilterArrayOutputWithContext

func (i GetTenantsFilterArray) ToGetTenantsFilterArrayOutputWithContext(ctx context.Context) GetTenantsFilterArrayOutput

type GetTenantsFilterArrayInput

type GetTenantsFilterArrayInput interface {
	pulumi.Input

	ToGetTenantsFilterArrayOutput() GetTenantsFilterArrayOutput
	ToGetTenantsFilterArrayOutputWithContext(context.Context) GetTenantsFilterArrayOutput
}

GetTenantsFilterArrayInput is an input type that accepts GetTenantsFilterArray and GetTenantsFilterArrayOutput values. You can construct a concrete instance of `GetTenantsFilterArrayInput` via:

GetTenantsFilterArray{ GetTenantsFilterArgs{...} }

type GetTenantsFilterArrayOutput

type GetTenantsFilterArrayOutput struct{ *pulumi.OutputState }

func (GetTenantsFilterArrayOutput) ElementType

func (GetTenantsFilterArrayOutput) Index

func (GetTenantsFilterArrayOutput) ToGetTenantsFilterArrayOutput

func (o GetTenantsFilterArrayOutput) ToGetTenantsFilterArrayOutput() GetTenantsFilterArrayOutput

func (GetTenantsFilterArrayOutput) ToGetTenantsFilterArrayOutputWithContext

func (o GetTenantsFilterArrayOutput) ToGetTenantsFilterArrayOutputWithContext(ctx context.Context) GetTenantsFilterArrayOutput

type GetTenantsFilterInput

type GetTenantsFilterInput interface {
	pulumi.Input

	ToGetTenantsFilterOutput() GetTenantsFilterOutput
	ToGetTenantsFilterOutputWithContext(context.Context) GetTenantsFilterOutput
}

GetTenantsFilterInput is an input type that accepts GetTenantsFilterArgs and GetTenantsFilterOutput values. You can construct a concrete instance of `GetTenantsFilterInput` via:

GetTenantsFilterArgs{...}

type GetTenantsFilterOutput

type GetTenantsFilterOutput struct{ *pulumi.OutputState }

func (GetTenantsFilterOutput) ElementType

func (GetTenantsFilterOutput) ElementType() reflect.Type

func (GetTenantsFilterOutput) Name

func (GetTenantsFilterOutput) ToGetTenantsFilterOutput

func (o GetTenantsFilterOutput) ToGetTenantsFilterOutput() GetTenantsFilterOutput

func (GetTenantsFilterOutput) ToGetTenantsFilterOutputWithContext

func (o GetTenantsFilterOutput) ToGetTenantsFilterOutputWithContext(ctx context.Context) GetTenantsFilterOutput

func (GetTenantsFilterOutput) Value

type GetTenantsOutputArgs

type GetTenantsOutputArgs struct {
	Filters GetTenantsFilterArrayInput `pulumi:"filters"`
	// Defaults to `1000`.
	Limit pulumi.IntPtrInput `pulumi:"limit"`
}

A collection of arguments for invoking getTenants.

func (GetTenantsOutputArgs) ElementType

func (GetTenantsOutputArgs) ElementType() reflect.Type

type GetTenantsResult

type GetTenantsResult struct {
	Filters []GetTenantsFilter `pulumi:"filters"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// Defaults to `1000`.
	Limit   *int               `pulumi:"limit"`
	Tenants []GetTenantsTenant `pulumi:"tenants"`
}

A collection of values returned by getTenants.

func GetTenants

func GetTenants(ctx *pulumi.Context, args *GetTenantsArgs, opts ...pulumi.InvokeOption) (*GetTenantsResult, error)

type GetTenantsResultOutput

type GetTenantsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getTenants.

func (GetTenantsResultOutput) ElementType

func (GetTenantsResultOutput) ElementType() reflect.Type

func (GetTenantsResultOutput) Filters

func (GetTenantsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetTenantsResultOutput) Limit

Defaults to `1000`.

func (GetTenantsResultOutput) Tenants

func (GetTenantsResultOutput) ToGetTenantsResultOutput

func (o GetTenantsResultOutput) ToGetTenantsResultOutput() GetTenantsResultOutput

func (GetTenantsResultOutput) ToGetTenantsResultOutputWithContext

func (o GetTenantsResultOutput) ToGetTenantsResultOutputWithContext(ctx context.Context) GetTenantsResultOutput

type GetTenantsTenant

type GetTenantsTenant struct {
	CircuitCount   int                           `pulumi:"circuitCount"`
	ClusterCount   int                           `pulumi:"clusterCount"`
	Comments       string                        `pulumi:"comments"`
	Created        string                        `pulumi:"created"`
	CustomFields   map[string]string             `pulumi:"customFields"`
	Description    string                        `pulumi:"description"`
	DeviceCount    int                           `pulumi:"deviceCount"`
	Id             int                           `pulumi:"id"`
	IpAddressCount int                           `pulumi:"ipAddressCount"`
	LastUpdated    string                        `pulumi:"lastUpdated"`
	Name           string                        `pulumi:"name"`
	PrefixCount    int                           `pulumi:"prefixCount"`
	RackCount      int                           `pulumi:"rackCount"`
	SiteCount      int                           `pulumi:"siteCount"`
	Slug           string                        `pulumi:"slug"`
	TenantGroups   []GetTenantsTenantTenantGroup `pulumi:"tenantGroups"`
	VlanCount      int                           `pulumi:"vlanCount"`
	VmCount        int                           `pulumi:"vmCount"`
	VrfCount       int                           `pulumi:"vrfCount"`
}

type GetTenantsTenantArgs

type GetTenantsTenantArgs struct {
	CircuitCount   pulumi.IntInput                       `pulumi:"circuitCount"`
	ClusterCount   pulumi.IntInput                       `pulumi:"clusterCount"`
	Comments       pulumi.StringInput                    `pulumi:"comments"`
	Created        pulumi.StringInput                    `pulumi:"created"`
	CustomFields   pulumi.StringMapInput                 `pulumi:"customFields"`
	Description    pulumi.StringInput                    `pulumi:"description"`
	DeviceCount    pulumi.IntInput                       `pulumi:"deviceCount"`
	Id             pulumi.IntInput                       `pulumi:"id"`
	IpAddressCount pulumi.IntInput                       `pulumi:"ipAddressCount"`
	LastUpdated    pulumi.StringInput                    `pulumi:"lastUpdated"`
	Name           pulumi.StringInput                    `pulumi:"name"`
	PrefixCount    pulumi.IntInput                       `pulumi:"prefixCount"`
	RackCount      pulumi.IntInput                       `pulumi:"rackCount"`
	SiteCount      pulumi.IntInput                       `pulumi:"siteCount"`
	Slug           pulumi.StringInput                    `pulumi:"slug"`
	TenantGroups   GetTenantsTenantTenantGroupArrayInput `pulumi:"tenantGroups"`
	VlanCount      pulumi.IntInput                       `pulumi:"vlanCount"`
	VmCount        pulumi.IntInput                       `pulumi:"vmCount"`
	VrfCount       pulumi.IntInput                       `pulumi:"vrfCount"`
}

func (GetTenantsTenantArgs) ElementType

func (GetTenantsTenantArgs) ElementType() reflect.Type

func (GetTenantsTenantArgs) ToGetTenantsTenantOutput

func (i GetTenantsTenantArgs) ToGetTenantsTenantOutput() GetTenantsTenantOutput

func (GetTenantsTenantArgs) ToGetTenantsTenantOutputWithContext

func (i GetTenantsTenantArgs) ToGetTenantsTenantOutputWithContext(ctx context.Context) GetTenantsTenantOutput

type GetTenantsTenantArray

type GetTenantsTenantArray []GetTenantsTenantInput

func (GetTenantsTenantArray) ElementType

func (GetTenantsTenantArray) ElementType() reflect.Type

func (GetTenantsTenantArray) ToGetTenantsTenantArrayOutput

func (i GetTenantsTenantArray) ToGetTenantsTenantArrayOutput() GetTenantsTenantArrayOutput

func (GetTenantsTenantArray) ToGetTenantsTenantArrayOutputWithContext

func (i GetTenantsTenantArray) ToGetTenantsTenantArrayOutputWithContext(ctx context.Context) GetTenantsTenantArrayOutput

type GetTenantsTenantArrayInput

type GetTenantsTenantArrayInput interface {
	pulumi.Input

	ToGetTenantsTenantArrayOutput() GetTenantsTenantArrayOutput
	ToGetTenantsTenantArrayOutputWithContext(context.Context) GetTenantsTenantArrayOutput
}

GetTenantsTenantArrayInput is an input type that accepts GetTenantsTenantArray and GetTenantsTenantArrayOutput values. You can construct a concrete instance of `GetTenantsTenantArrayInput` via:

GetTenantsTenantArray{ GetTenantsTenantArgs{...} }

type GetTenantsTenantArrayOutput

type GetTenantsTenantArrayOutput struct{ *pulumi.OutputState }

func (GetTenantsTenantArrayOutput) ElementType

func (GetTenantsTenantArrayOutput) Index

func (GetTenantsTenantArrayOutput) ToGetTenantsTenantArrayOutput

func (o GetTenantsTenantArrayOutput) ToGetTenantsTenantArrayOutput() GetTenantsTenantArrayOutput

func (GetTenantsTenantArrayOutput) ToGetTenantsTenantArrayOutputWithContext

func (o GetTenantsTenantArrayOutput) ToGetTenantsTenantArrayOutputWithContext(ctx context.Context) GetTenantsTenantArrayOutput

type GetTenantsTenantInput

type GetTenantsTenantInput interface {
	pulumi.Input

	ToGetTenantsTenantOutput() GetTenantsTenantOutput
	ToGetTenantsTenantOutputWithContext(context.Context) GetTenantsTenantOutput
}

GetTenantsTenantInput is an input type that accepts GetTenantsTenantArgs and GetTenantsTenantOutput values. You can construct a concrete instance of `GetTenantsTenantInput` via:

GetTenantsTenantArgs{...}

type GetTenantsTenantOutput

type GetTenantsTenantOutput struct{ *pulumi.OutputState }

func (GetTenantsTenantOutput) CircuitCount

func (o GetTenantsTenantOutput) CircuitCount() pulumi.IntOutput

func (GetTenantsTenantOutput) ClusterCount

func (o GetTenantsTenantOutput) ClusterCount() pulumi.IntOutput

func (GetTenantsTenantOutput) Comments

func (GetTenantsTenantOutput) Created

func (GetTenantsTenantOutput) CustomFields

func (GetTenantsTenantOutput) Description

func (o GetTenantsTenantOutput) Description() pulumi.StringOutput

func (GetTenantsTenantOutput) DeviceCount

func (o GetTenantsTenantOutput) DeviceCount() pulumi.IntOutput

func (GetTenantsTenantOutput) ElementType

func (GetTenantsTenantOutput) ElementType() reflect.Type

func (GetTenantsTenantOutput) Id

func (GetTenantsTenantOutput) IpAddressCount

func (o GetTenantsTenantOutput) IpAddressCount() pulumi.IntOutput

func (GetTenantsTenantOutput) LastUpdated

func (o GetTenantsTenantOutput) LastUpdated() pulumi.StringOutput

func (GetTenantsTenantOutput) Name

func (GetTenantsTenantOutput) PrefixCount

func (o GetTenantsTenantOutput) PrefixCount() pulumi.IntOutput

func (GetTenantsTenantOutput) RackCount

func (o GetTenantsTenantOutput) RackCount() pulumi.IntOutput

func (GetTenantsTenantOutput) SiteCount

func (o GetTenantsTenantOutput) SiteCount() pulumi.IntOutput

func (GetTenantsTenantOutput) Slug

func (GetTenantsTenantOutput) TenantGroups

func (GetTenantsTenantOutput) ToGetTenantsTenantOutput

func (o GetTenantsTenantOutput) ToGetTenantsTenantOutput() GetTenantsTenantOutput

func (GetTenantsTenantOutput) ToGetTenantsTenantOutputWithContext

func (o GetTenantsTenantOutput) ToGetTenantsTenantOutputWithContext(ctx context.Context) GetTenantsTenantOutput

func (GetTenantsTenantOutput) VlanCount

func (o GetTenantsTenantOutput) VlanCount() pulumi.IntOutput

func (GetTenantsTenantOutput) VmCount

func (GetTenantsTenantOutput) VrfCount

type GetTenantsTenantTenantGroup

type GetTenantsTenantTenantGroup struct {
	Id          int    `pulumi:"id"`
	Name        string `pulumi:"name"`
	Slug        string `pulumi:"slug"`
	TenantCount int    `pulumi:"tenantCount"`
}

type GetTenantsTenantTenantGroupArgs

type GetTenantsTenantTenantGroupArgs struct {
	Id          pulumi.IntInput    `pulumi:"id"`
	Name        pulumi.StringInput `pulumi:"name"`
	Slug        pulumi.StringInput `pulumi:"slug"`
	TenantCount pulumi.IntInput    `pulumi:"tenantCount"`
}

func (GetTenantsTenantTenantGroupArgs) ElementType

func (GetTenantsTenantTenantGroupArgs) ToGetTenantsTenantTenantGroupOutput

func (i GetTenantsTenantTenantGroupArgs) ToGetTenantsTenantTenantGroupOutput() GetTenantsTenantTenantGroupOutput

func (GetTenantsTenantTenantGroupArgs) ToGetTenantsTenantTenantGroupOutputWithContext

func (i GetTenantsTenantTenantGroupArgs) ToGetTenantsTenantTenantGroupOutputWithContext(ctx context.Context) GetTenantsTenantTenantGroupOutput

type GetTenantsTenantTenantGroupArray

type GetTenantsTenantTenantGroupArray []GetTenantsTenantTenantGroupInput

func (GetTenantsTenantTenantGroupArray) ElementType

func (GetTenantsTenantTenantGroupArray) ToGetTenantsTenantTenantGroupArrayOutput

func (i GetTenantsTenantTenantGroupArray) ToGetTenantsTenantTenantGroupArrayOutput() GetTenantsTenantTenantGroupArrayOutput

func (GetTenantsTenantTenantGroupArray) ToGetTenantsTenantTenantGroupArrayOutputWithContext

func (i GetTenantsTenantTenantGroupArray) ToGetTenantsTenantTenantGroupArrayOutputWithContext(ctx context.Context) GetTenantsTenantTenantGroupArrayOutput

type GetTenantsTenantTenantGroupArrayInput

type GetTenantsTenantTenantGroupArrayInput interface {
	pulumi.Input

	ToGetTenantsTenantTenantGroupArrayOutput() GetTenantsTenantTenantGroupArrayOutput
	ToGetTenantsTenantTenantGroupArrayOutputWithContext(context.Context) GetTenantsTenantTenantGroupArrayOutput
}

GetTenantsTenantTenantGroupArrayInput is an input type that accepts GetTenantsTenantTenantGroupArray and GetTenantsTenantTenantGroupArrayOutput values. You can construct a concrete instance of `GetTenantsTenantTenantGroupArrayInput` via:

GetTenantsTenantTenantGroupArray{ GetTenantsTenantTenantGroupArgs{...} }

type GetTenantsTenantTenantGroupArrayOutput

type GetTenantsTenantTenantGroupArrayOutput struct{ *pulumi.OutputState }

func (GetTenantsTenantTenantGroupArrayOutput) ElementType

func (GetTenantsTenantTenantGroupArrayOutput) Index

func (GetTenantsTenantTenantGroupArrayOutput) ToGetTenantsTenantTenantGroupArrayOutput

func (o GetTenantsTenantTenantGroupArrayOutput) ToGetTenantsTenantTenantGroupArrayOutput() GetTenantsTenantTenantGroupArrayOutput

func (GetTenantsTenantTenantGroupArrayOutput) ToGetTenantsTenantTenantGroupArrayOutputWithContext

func (o GetTenantsTenantTenantGroupArrayOutput) ToGetTenantsTenantTenantGroupArrayOutputWithContext(ctx context.Context) GetTenantsTenantTenantGroupArrayOutput

type GetTenantsTenantTenantGroupInput

type GetTenantsTenantTenantGroupInput interface {
	pulumi.Input

	ToGetTenantsTenantTenantGroupOutput() GetTenantsTenantTenantGroupOutput
	ToGetTenantsTenantTenantGroupOutputWithContext(context.Context) GetTenantsTenantTenantGroupOutput
}

GetTenantsTenantTenantGroupInput is an input type that accepts GetTenantsTenantTenantGroupArgs and GetTenantsTenantTenantGroupOutput values. You can construct a concrete instance of `GetTenantsTenantTenantGroupInput` via:

GetTenantsTenantTenantGroupArgs{...}

type GetTenantsTenantTenantGroupOutput

type GetTenantsTenantTenantGroupOutput struct{ *pulumi.OutputState }

func (GetTenantsTenantTenantGroupOutput) ElementType

func (GetTenantsTenantTenantGroupOutput) Id

func (GetTenantsTenantTenantGroupOutput) Name

func (GetTenantsTenantTenantGroupOutput) Slug

func (GetTenantsTenantTenantGroupOutput) TenantCount

func (GetTenantsTenantTenantGroupOutput) ToGetTenantsTenantTenantGroupOutput

func (o GetTenantsTenantTenantGroupOutput) ToGetTenantsTenantTenantGroupOutput() GetTenantsTenantTenantGroupOutput

func (GetTenantsTenantTenantGroupOutput) ToGetTenantsTenantTenantGroupOutputWithContext

func (o GetTenantsTenantTenantGroupOutput) ToGetTenantsTenantTenantGroupOutputWithContext(ctx context.Context) GetTenantsTenantTenantGroupOutput

type LookupContactArgs

type LookupContactArgs struct {
	Description *string `pulumi:"description"`
	// At least one of `name` or `slug` must be given.
	Name *string `pulumi:"name"`
	// At least one of `name` or `slug` must be given.
	Slug *string `pulumi:"slug"`
}

A collection of arguments for invoking getContact.

type LookupContactGroupArgs

type LookupContactGroupArgs struct {
	Name string `pulumi:"name"`
}

A collection of arguments for invoking getContactGroup.

type LookupContactGroupOutputArgs

type LookupContactGroupOutputArgs struct {
	Name pulumi.StringInput `pulumi:"name"`
}

A collection of arguments for invoking getContactGroup.

func (LookupContactGroupOutputArgs) ElementType

type LookupContactGroupResult

type LookupContactGroupResult struct {
	Description string `pulumi:"description"`
	// The provider-assigned unique ID for this managed resource.
	Id       string `pulumi:"id"`
	Name     string `pulumi:"name"`
	ParentId int    `pulumi:"parentId"`
	Slug     string `pulumi:"slug"`
}

A collection of values returned by getContactGroup.

type LookupContactGroupResultOutput

type LookupContactGroupResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getContactGroup.

func (LookupContactGroupResultOutput) Description

func (LookupContactGroupResultOutput) ElementType

func (LookupContactGroupResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (LookupContactGroupResultOutput) Name

func (LookupContactGroupResultOutput) ParentId

func (LookupContactGroupResultOutput) Slug

func (LookupContactGroupResultOutput) ToLookupContactGroupResultOutput

func (o LookupContactGroupResultOutput) ToLookupContactGroupResultOutput() LookupContactGroupResultOutput

func (LookupContactGroupResultOutput) ToLookupContactGroupResultOutputWithContext

func (o LookupContactGroupResultOutput) ToLookupContactGroupResultOutputWithContext(ctx context.Context) LookupContactGroupResultOutput

type LookupContactOutputArgs

type LookupContactOutputArgs struct {
	Description pulumi.StringPtrInput `pulumi:"description"`
	// At least one of `name` or `slug` must be given.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// At least one of `name` or `slug` must be given.
	Slug pulumi.StringPtrInput `pulumi:"slug"`
}

A collection of arguments for invoking getContact.

func (LookupContactOutputArgs) ElementType

func (LookupContactOutputArgs) ElementType() reflect.Type

type LookupContactResult

type LookupContactResult struct {
	Description *string `pulumi:"description"`
	GroupId     int     `pulumi:"groupId"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// At least one of `name` or `slug` must be given.
	Name string `pulumi:"name"`
	// At least one of `name` or `slug` must be given.
	Slug string `pulumi:"slug"`
}

A collection of values returned by getContact.

func LookupContact

func LookupContact(ctx *pulumi.Context, args *LookupContactArgs, opts ...pulumi.InvokeOption) (*LookupContactResult, error)

type LookupContactResultOutput

type LookupContactResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getContact.

func (LookupContactResultOutput) Description

func (LookupContactResultOutput) ElementType

func (LookupContactResultOutput) ElementType() reflect.Type

func (LookupContactResultOutput) GroupId

func (LookupContactResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (LookupContactResultOutput) Name

At least one of `name` or `slug` must be given.

func (LookupContactResultOutput) Slug

At least one of `name` or `slug` must be given.

func (LookupContactResultOutput) ToLookupContactResultOutput

func (o LookupContactResultOutput) ToLookupContactResultOutput() LookupContactResultOutput

func (LookupContactResultOutput) ToLookupContactResultOutputWithContext

func (o LookupContactResultOutput) ToLookupContactResultOutputWithContext(ctx context.Context) LookupContactResultOutput

type LookupContactRoleArgs

type LookupContactRoleArgs struct {
	// At least one of `name` or `slug` must be given.
	Name *string `pulumi:"name"`
	// At least one of `name` or `slug` must be given.
	Slug *string `pulumi:"slug"`
}

A collection of arguments for invoking getContactRole.

type LookupContactRoleOutputArgs

type LookupContactRoleOutputArgs struct {
	// At least one of `name` or `slug` must be given.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// At least one of `name` or `slug` must be given.
	Slug pulumi.StringPtrInput `pulumi:"slug"`
}

A collection of arguments for invoking getContactRole.

func (LookupContactRoleOutputArgs) ElementType

type LookupContactRoleResult

type LookupContactRoleResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// At least one of `name` or `slug` must be given.
	Name string `pulumi:"name"`
	// At least one of `name` or `slug` must be given.
	Slug string `pulumi:"slug"`
}

A collection of values returned by getContactRole.

type LookupContactRoleResultOutput

type LookupContactRoleResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getContactRole.

func (LookupContactRoleResultOutput) ElementType

func (LookupContactRoleResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (LookupContactRoleResultOutput) Name

At least one of `name` or `slug` must be given.

func (LookupContactRoleResultOutput) Slug

At least one of `name` or `slug` must be given.

func (LookupContactRoleResultOutput) ToLookupContactRoleResultOutput

func (o LookupContactRoleResultOutput) ToLookupContactRoleResultOutput() LookupContactRoleResultOutput

func (LookupContactRoleResultOutput) ToLookupContactRoleResultOutputWithContext

func (o LookupContactRoleResultOutput) ToLookupContactRoleResultOutputWithContext(ctx context.Context) LookupContactRoleResultOutput

type LookupTenantArgs

type LookupTenantArgs struct {
	Description *string `pulumi:"description"`
	// At least one of `name` or `slug` must be given.
	Name *string `pulumi:"name"`
	// At least one of `name` or `slug` must be given.
	Slug *string `pulumi:"slug"`
}

A collection of arguments for invoking getTenant.

type LookupTenantGroupArgs

type LookupTenantGroupArgs struct {
	Name string `pulumi:"name"`
}

A collection of arguments for invoking getTenantGroup.

type LookupTenantGroupOutputArgs

type LookupTenantGroupOutputArgs struct {
	Name pulumi.StringInput `pulumi:"name"`
}

A collection of arguments for invoking getTenantGroup.

func (LookupTenantGroupOutputArgs) ElementType

type LookupTenantGroupResult

type LookupTenantGroupResult struct {
	Description string `pulumi:"description"`
	// The provider-assigned unique ID for this managed resource.
	Id       string `pulumi:"id"`
	Name     string `pulumi:"name"`
	ParentId int    `pulumi:"parentId"`
	Slug     string `pulumi:"slug"`
}

A collection of values returned by getTenantGroup.

type LookupTenantGroupResultOutput

type LookupTenantGroupResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getTenantGroup.

func (LookupTenantGroupResultOutput) Description

func (LookupTenantGroupResultOutput) ElementType

func (LookupTenantGroupResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (LookupTenantGroupResultOutput) Name

func (LookupTenantGroupResultOutput) ParentId

func (LookupTenantGroupResultOutput) Slug

func (LookupTenantGroupResultOutput) ToLookupTenantGroupResultOutput

func (o LookupTenantGroupResultOutput) ToLookupTenantGroupResultOutput() LookupTenantGroupResultOutput

func (LookupTenantGroupResultOutput) ToLookupTenantGroupResultOutputWithContext

func (o LookupTenantGroupResultOutput) ToLookupTenantGroupResultOutputWithContext(ctx context.Context) LookupTenantGroupResultOutput

type LookupTenantOutputArgs

type LookupTenantOutputArgs struct {
	Description pulumi.StringPtrInput `pulumi:"description"`
	// At least one of `name` or `slug` must be given.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// At least one of `name` or `slug` must be given.
	Slug pulumi.StringPtrInput `pulumi:"slug"`
}

A collection of arguments for invoking getTenant.

func (LookupTenantOutputArgs) ElementType

func (LookupTenantOutputArgs) ElementType() reflect.Type

type LookupTenantResult

type LookupTenantResult struct {
	Description *string `pulumi:"description"`
	GroupId     int     `pulumi:"groupId"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// At least one of `name` or `slug` must be given.
	Name string `pulumi:"name"`
	// At least one of `name` or `slug` must be given.
	Slug string `pulumi:"slug"`
}

A collection of values returned by getTenant.

func LookupTenant

func LookupTenant(ctx *pulumi.Context, args *LookupTenantArgs, opts ...pulumi.InvokeOption) (*LookupTenantResult, error)

## Example Usage

```go package main

import (

"github.com/NatzkaLabsOpenSource/pulumi-netbox/sdk/go/netbox/tenancy"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := tenancy.LookupTenant(ctx, &tenancy.LookupTenantArgs{
			Name: pulumi.StringRef("Customer A"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type LookupTenantResultOutput

type LookupTenantResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getTenant.

func (LookupTenantResultOutput) Description

func (LookupTenantResultOutput) ElementType

func (LookupTenantResultOutput) ElementType() reflect.Type

func (LookupTenantResultOutput) GroupId

func (LookupTenantResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (LookupTenantResultOutput) Name

At least one of `name` or `slug` must be given.

func (LookupTenantResultOutput) Slug

At least one of `name` or `slug` must be given.

func (LookupTenantResultOutput) ToLookupTenantResultOutput

func (o LookupTenantResultOutput) ToLookupTenantResultOutput() LookupTenantResultOutput

func (LookupTenantResultOutput) ToLookupTenantResultOutputWithContext

func (o LookupTenantResultOutput) ToLookupTenantResultOutputWithContext(ctx context.Context) LookupTenantResultOutput

type Tenant

type Tenant struct {
	pulumi.CustomResourceState

	Description pulumi.StringPtrOutput   `pulumi:"description"`
	GroupId     pulumi.IntPtrOutput      `pulumi:"groupId"`
	Name        pulumi.StringOutput      `pulumi:"name"`
	Slug        pulumi.StringOutput      `pulumi:"slug"`
	Tags        pulumi.StringArrayOutput `pulumi:"tags"`
	TagsAlls    pulumi.StringArrayOutput `pulumi:"tagsAlls"`
}

From the [official documentation](https://docs.netbox.dev/en/stable/features/tenancy/#tenants):

> A tenant represents a discrete grouping of resources used for administrative purposes. Typically, tenants are used to represent individual customers or internal departments within an organization. > > Tenant assignment is used to signify the ownership of an object in NetBox. As such, each object may only be owned by a single tenant. For example, if you have a firewall dedicated to a particular customer, you would assign it to the tenant which represents that customer. However, if the firewall serves multiple customers, it doesn't belong to any particular customer, so tenant assignment would not be appropriate.

## Example Usage

```go package main

import (

"github.com/NatzkaLabsOpenSource/pulumi-netbox/sdk/go/netbox/tenancy"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := tenancy.NewTenant(ctx, "customer_a", &tenancy.TenantArgs{
			Name: pulumi.String("Customer A"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetTenant

func GetTenant(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TenantState, opts ...pulumi.ResourceOption) (*Tenant, error)

GetTenant gets an existing Tenant resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewTenant

func NewTenant(ctx *pulumi.Context,
	name string, args *TenantArgs, opts ...pulumi.ResourceOption) (*Tenant, error)

NewTenant registers a new resource with the given unique name, arguments, and options.

func (*Tenant) ElementType

func (*Tenant) ElementType() reflect.Type

func (*Tenant) ToTenantOutput

func (i *Tenant) ToTenantOutput() TenantOutput

func (*Tenant) ToTenantOutputWithContext

func (i *Tenant) ToTenantOutputWithContext(ctx context.Context) TenantOutput

type TenantArgs

type TenantArgs struct {
	Description pulumi.StringPtrInput
	GroupId     pulumi.IntPtrInput
	Name        pulumi.StringPtrInput
	Slug        pulumi.StringPtrInput
	Tags        pulumi.StringArrayInput
}

The set of arguments for constructing a Tenant resource.

func (TenantArgs) ElementType

func (TenantArgs) ElementType() reflect.Type

type TenantArray

type TenantArray []TenantInput

func (TenantArray) ElementType

func (TenantArray) ElementType() reflect.Type

func (TenantArray) ToTenantArrayOutput

func (i TenantArray) ToTenantArrayOutput() TenantArrayOutput

func (TenantArray) ToTenantArrayOutputWithContext

func (i TenantArray) ToTenantArrayOutputWithContext(ctx context.Context) TenantArrayOutput

type TenantArrayInput

type TenantArrayInput interface {
	pulumi.Input

	ToTenantArrayOutput() TenantArrayOutput
	ToTenantArrayOutputWithContext(context.Context) TenantArrayOutput
}

TenantArrayInput is an input type that accepts TenantArray and TenantArrayOutput values. You can construct a concrete instance of `TenantArrayInput` via:

TenantArray{ TenantArgs{...} }

type TenantArrayOutput

type TenantArrayOutput struct{ *pulumi.OutputState }

func (TenantArrayOutput) ElementType

func (TenantArrayOutput) ElementType() reflect.Type

func (TenantArrayOutput) Index

func (TenantArrayOutput) ToTenantArrayOutput

func (o TenantArrayOutput) ToTenantArrayOutput() TenantArrayOutput

func (TenantArrayOutput) ToTenantArrayOutputWithContext

func (o TenantArrayOutput) ToTenantArrayOutputWithContext(ctx context.Context) TenantArrayOutput

type TenantGroup

type TenantGroup struct {
	pulumi.CustomResourceState

	Description pulumi.StringPtrOutput `pulumi:"description"`
	Name        pulumi.StringOutput    `pulumi:"name"`
	ParentId    pulumi.IntPtrOutput    `pulumi:"parentId"`
	Slug        pulumi.StringOutput    `pulumi:"slug"`
}

From the [official documentation](https://docs.netbox.dev/en/stable/features/tenancy/#tenant-groups):

> Tenants can be organized by custom groups. For instance, you might create one group called "Customers" and one called "Departments." The assignment of a tenant to a group is optional. > > Tenant groups may be nested recursively to achieve a multi-level hierarchy. For example, you might have a group called "Customers" containing subgroups of individual tenants grouped by product or account team.

## Example Usage

```go package main

import (

"github.com/NatzkaLabsOpenSource/pulumi-netbox/sdk/go/netbox/tenancy"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := tenancy.NewTenantGroup(ctx, "test", &tenancy.TenantGroupArgs{
			Name: pulumi.String("test-tenant-group"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetTenantGroup

func GetTenantGroup(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TenantGroupState, opts ...pulumi.ResourceOption) (*TenantGroup, error)

GetTenantGroup gets an existing TenantGroup resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewTenantGroup

func NewTenantGroup(ctx *pulumi.Context,
	name string, args *TenantGroupArgs, opts ...pulumi.ResourceOption) (*TenantGroup, error)

NewTenantGroup registers a new resource with the given unique name, arguments, and options.

func (*TenantGroup) ElementType

func (*TenantGroup) ElementType() reflect.Type

func (*TenantGroup) ToTenantGroupOutput

func (i *TenantGroup) ToTenantGroupOutput() TenantGroupOutput

func (*TenantGroup) ToTenantGroupOutputWithContext

func (i *TenantGroup) ToTenantGroupOutputWithContext(ctx context.Context) TenantGroupOutput

type TenantGroupArgs

type TenantGroupArgs struct {
	Description pulumi.StringPtrInput
	Name        pulumi.StringPtrInput
	ParentId    pulumi.IntPtrInput
	Slug        pulumi.StringPtrInput
}

The set of arguments for constructing a TenantGroup resource.

func (TenantGroupArgs) ElementType

func (TenantGroupArgs) ElementType() reflect.Type

type TenantGroupArray

type TenantGroupArray []TenantGroupInput

func (TenantGroupArray) ElementType

func (TenantGroupArray) ElementType() reflect.Type

func (TenantGroupArray) ToTenantGroupArrayOutput

func (i TenantGroupArray) ToTenantGroupArrayOutput() TenantGroupArrayOutput

func (TenantGroupArray) ToTenantGroupArrayOutputWithContext

func (i TenantGroupArray) ToTenantGroupArrayOutputWithContext(ctx context.Context) TenantGroupArrayOutput

type TenantGroupArrayInput

type TenantGroupArrayInput interface {
	pulumi.Input

	ToTenantGroupArrayOutput() TenantGroupArrayOutput
	ToTenantGroupArrayOutputWithContext(context.Context) TenantGroupArrayOutput
}

TenantGroupArrayInput is an input type that accepts TenantGroupArray and TenantGroupArrayOutput values. You can construct a concrete instance of `TenantGroupArrayInput` via:

TenantGroupArray{ TenantGroupArgs{...} }

type TenantGroupArrayOutput

type TenantGroupArrayOutput struct{ *pulumi.OutputState }

func (TenantGroupArrayOutput) ElementType

func (TenantGroupArrayOutput) ElementType() reflect.Type

func (TenantGroupArrayOutput) Index

func (TenantGroupArrayOutput) ToTenantGroupArrayOutput

func (o TenantGroupArrayOutput) ToTenantGroupArrayOutput() TenantGroupArrayOutput

func (TenantGroupArrayOutput) ToTenantGroupArrayOutputWithContext

func (o TenantGroupArrayOutput) ToTenantGroupArrayOutputWithContext(ctx context.Context) TenantGroupArrayOutput

type TenantGroupInput

type TenantGroupInput interface {
	pulumi.Input

	ToTenantGroupOutput() TenantGroupOutput
	ToTenantGroupOutputWithContext(ctx context.Context) TenantGroupOutput
}

type TenantGroupMap

type TenantGroupMap map[string]TenantGroupInput

func (TenantGroupMap) ElementType

func (TenantGroupMap) ElementType() reflect.Type

func (TenantGroupMap) ToTenantGroupMapOutput

func (i TenantGroupMap) ToTenantGroupMapOutput() TenantGroupMapOutput

func (TenantGroupMap) ToTenantGroupMapOutputWithContext

func (i TenantGroupMap) ToTenantGroupMapOutputWithContext(ctx context.Context) TenantGroupMapOutput

type TenantGroupMapInput

type TenantGroupMapInput interface {
	pulumi.Input

	ToTenantGroupMapOutput() TenantGroupMapOutput
	ToTenantGroupMapOutputWithContext(context.Context) TenantGroupMapOutput
}

TenantGroupMapInput is an input type that accepts TenantGroupMap and TenantGroupMapOutput values. You can construct a concrete instance of `TenantGroupMapInput` via:

TenantGroupMap{ "key": TenantGroupArgs{...} }

type TenantGroupMapOutput

type TenantGroupMapOutput struct{ *pulumi.OutputState }

func (TenantGroupMapOutput) ElementType

func (TenantGroupMapOutput) ElementType() reflect.Type

func (TenantGroupMapOutput) MapIndex

func (TenantGroupMapOutput) ToTenantGroupMapOutput

func (o TenantGroupMapOutput) ToTenantGroupMapOutput() TenantGroupMapOutput

func (TenantGroupMapOutput) ToTenantGroupMapOutputWithContext

func (o TenantGroupMapOutput) ToTenantGroupMapOutputWithContext(ctx context.Context) TenantGroupMapOutput

type TenantGroupOutput

type TenantGroupOutput struct{ *pulumi.OutputState }

func (TenantGroupOutput) Description

func (o TenantGroupOutput) Description() pulumi.StringPtrOutput

func (TenantGroupOutput) ElementType

func (TenantGroupOutput) ElementType() reflect.Type

func (TenantGroupOutput) Name

func (TenantGroupOutput) ParentId

func (o TenantGroupOutput) ParentId() pulumi.IntPtrOutput

func (TenantGroupOutput) Slug

func (TenantGroupOutput) ToTenantGroupOutput

func (o TenantGroupOutput) ToTenantGroupOutput() TenantGroupOutput

func (TenantGroupOutput) ToTenantGroupOutputWithContext

func (o TenantGroupOutput) ToTenantGroupOutputWithContext(ctx context.Context) TenantGroupOutput

type TenantGroupState

type TenantGroupState struct {
	Description pulumi.StringPtrInput
	Name        pulumi.StringPtrInput
	ParentId    pulumi.IntPtrInput
	Slug        pulumi.StringPtrInput
}

func (TenantGroupState) ElementType

func (TenantGroupState) ElementType() reflect.Type

type TenantInput

type TenantInput interface {
	pulumi.Input

	ToTenantOutput() TenantOutput
	ToTenantOutputWithContext(ctx context.Context) TenantOutput
}

type TenantMap

type TenantMap map[string]TenantInput

func (TenantMap) ElementType

func (TenantMap) ElementType() reflect.Type

func (TenantMap) ToTenantMapOutput

func (i TenantMap) ToTenantMapOutput() TenantMapOutput

func (TenantMap) ToTenantMapOutputWithContext

func (i TenantMap) ToTenantMapOutputWithContext(ctx context.Context) TenantMapOutput

type TenantMapInput

type TenantMapInput interface {
	pulumi.Input

	ToTenantMapOutput() TenantMapOutput
	ToTenantMapOutputWithContext(context.Context) TenantMapOutput
}

TenantMapInput is an input type that accepts TenantMap and TenantMapOutput values. You can construct a concrete instance of `TenantMapInput` via:

TenantMap{ "key": TenantArgs{...} }

type TenantMapOutput

type TenantMapOutput struct{ *pulumi.OutputState }

func (TenantMapOutput) ElementType

func (TenantMapOutput) ElementType() reflect.Type

func (TenantMapOutput) MapIndex

func (TenantMapOutput) ToTenantMapOutput

func (o TenantMapOutput) ToTenantMapOutput() TenantMapOutput

func (TenantMapOutput) ToTenantMapOutputWithContext

func (o TenantMapOutput) ToTenantMapOutputWithContext(ctx context.Context) TenantMapOutput

type TenantOutput

type TenantOutput struct{ *pulumi.OutputState }

func (TenantOutput) Description

func (o TenantOutput) Description() pulumi.StringPtrOutput

func (TenantOutput) ElementType

func (TenantOutput) ElementType() reflect.Type

func (TenantOutput) GroupId

func (o TenantOutput) GroupId() pulumi.IntPtrOutput

func (TenantOutput) Name

func (o TenantOutput) Name() pulumi.StringOutput

func (TenantOutput) Slug

func (o TenantOutput) Slug() pulumi.StringOutput

func (TenantOutput) Tags

func (TenantOutput) TagsAlls

func (o TenantOutput) TagsAlls() pulumi.StringArrayOutput

func (TenantOutput) ToTenantOutput

func (o TenantOutput) ToTenantOutput() TenantOutput

func (TenantOutput) ToTenantOutputWithContext

func (o TenantOutput) ToTenantOutputWithContext(ctx context.Context) TenantOutput

type TenantState

type TenantState struct {
	Description pulumi.StringPtrInput
	GroupId     pulumi.IntPtrInput
	Name        pulumi.StringPtrInput
	Slug        pulumi.StringPtrInput
	Tags        pulumi.StringArrayInput
	TagsAlls    pulumi.StringArrayInput
}

func (TenantState) ElementType

func (TenantState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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