securitygroup

package
v0.0.0-...-81f5abf Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PkgVersion

func PkgVersion() (semver.Version, error)

PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.

Types

type GetSecurityGroupArgs

type GetSecurityGroupArgs struct {
	// Search criteria to narrow down the Security groups.
	Filter string `pulumi:"filter"`
	// List of security rules.
	Rules []GetSecurityGroupRule `pulumi:"rules"`
}

A collection of arguments for invoking getSecurityGroup.

type GetSecurityGroupLink struct {
	Href  *string  `pulumi:"href"`
	Hrefs []string `pulumi:"hrefs"`
	Rel   string   `pulumi:"rel"`
}

type GetSecurityGroupLinkArgs

type GetSecurityGroupLinkArgs struct {
	Href  pulumi.StringPtrInput   `pulumi:"href"`
	Hrefs pulumi.StringArrayInput `pulumi:"hrefs"`
	Rel   pulumi.StringInput      `pulumi:"rel"`
}

func (GetSecurityGroupLinkArgs) ElementType

func (GetSecurityGroupLinkArgs) ElementType() reflect.Type

func (GetSecurityGroupLinkArgs) ToGetSecurityGroupLinkOutput

func (i GetSecurityGroupLinkArgs) ToGetSecurityGroupLinkOutput() GetSecurityGroupLinkOutput

func (GetSecurityGroupLinkArgs) ToGetSecurityGroupLinkOutputWithContext

func (i GetSecurityGroupLinkArgs) ToGetSecurityGroupLinkOutputWithContext(ctx context.Context) GetSecurityGroupLinkOutput

type GetSecurityGroupLinkArray

type GetSecurityGroupLinkArray []GetSecurityGroupLinkInput

func (GetSecurityGroupLinkArray) ElementType

func (GetSecurityGroupLinkArray) ElementType() reflect.Type

func (GetSecurityGroupLinkArray) ToGetSecurityGroupLinkArrayOutput

func (i GetSecurityGroupLinkArray) ToGetSecurityGroupLinkArrayOutput() GetSecurityGroupLinkArrayOutput

func (GetSecurityGroupLinkArray) ToGetSecurityGroupLinkArrayOutputWithContext

func (i GetSecurityGroupLinkArray) ToGetSecurityGroupLinkArrayOutputWithContext(ctx context.Context) GetSecurityGroupLinkArrayOutput

type GetSecurityGroupLinkArrayInput

type GetSecurityGroupLinkArrayInput interface {
	pulumi.Input

	ToGetSecurityGroupLinkArrayOutput() GetSecurityGroupLinkArrayOutput
	ToGetSecurityGroupLinkArrayOutputWithContext(context.Context) GetSecurityGroupLinkArrayOutput
}

GetSecurityGroupLinkArrayInput is an input type that accepts GetSecurityGroupLinkArray and GetSecurityGroupLinkArrayOutput values. You can construct a concrete instance of `GetSecurityGroupLinkArrayInput` via:

GetSecurityGroupLinkArray{ GetSecurityGroupLinkArgs{...} }

type GetSecurityGroupLinkArrayOutput

type GetSecurityGroupLinkArrayOutput struct{ *pulumi.OutputState }

func (GetSecurityGroupLinkArrayOutput) ElementType

func (GetSecurityGroupLinkArrayOutput) Index

func (GetSecurityGroupLinkArrayOutput) ToGetSecurityGroupLinkArrayOutput

func (o GetSecurityGroupLinkArrayOutput) ToGetSecurityGroupLinkArrayOutput() GetSecurityGroupLinkArrayOutput

func (GetSecurityGroupLinkArrayOutput) ToGetSecurityGroupLinkArrayOutputWithContext

func (o GetSecurityGroupLinkArrayOutput) ToGetSecurityGroupLinkArrayOutputWithContext(ctx context.Context) GetSecurityGroupLinkArrayOutput

type GetSecurityGroupLinkInput

type GetSecurityGroupLinkInput interface {
	pulumi.Input

	ToGetSecurityGroupLinkOutput() GetSecurityGroupLinkOutput
	ToGetSecurityGroupLinkOutputWithContext(context.Context) GetSecurityGroupLinkOutput
}

GetSecurityGroupLinkInput is an input type that accepts GetSecurityGroupLinkArgs and GetSecurityGroupLinkOutput values. You can construct a concrete instance of `GetSecurityGroupLinkInput` via:

GetSecurityGroupLinkArgs{...}

type GetSecurityGroupLinkOutput

type GetSecurityGroupLinkOutput struct{ *pulumi.OutputState }

func (GetSecurityGroupLinkOutput) ElementType

func (GetSecurityGroupLinkOutput) ElementType() reflect.Type

func (GetSecurityGroupLinkOutput) Href

func (GetSecurityGroupLinkOutput) Hrefs

func (GetSecurityGroupLinkOutput) Rel

func (GetSecurityGroupLinkOutput) ToGetSecurityGroupLinkOutput

func (o GetSecurityGroupLinkOutput) ToGetSecurityGroupLinkOutput() GetSecurityGroupLinkOutput

func (GetSecurityGroupLinkOutput) ToGetSecurityGroupLinkOutputWithContext

func (o GetSecurityGroupLinkOutput) ToGetSecurityGroupLinkOutputWithContext(ctx context.Context) GetSecurityGroupLinkOutput

type GetSecurityGroupOutputArgs

type GetSecurityGroupOutputArgs struct {
	// Search criteria to narrow down the Security groups.
	Filter pulumi.StringInput `pulumi:"filter"`
	// List of security rules.
	Rules GetSecurityGroupRuleArrayInput `pulumi:"rules"`
}

A collection of arguments for invoking getSecurityGroup.

func (GetSecurityGroupOutputArgs) ElementType

func (GetSecurityGroupOutputArgs) ElementType() reflect.Type

type GetSecurityGroupResult

type GetSecurityGroupResult struct {
	// Date when the entity was created. The date is in ISO 6801 and UTC.
	CreatedAt string `pulumi:"createdAt"`
	// A human-friendly description of the security groups.
	Description string `pulumi:"description"`
	// External entity Id on the provider side.
	ExternalId string `pulumi:"externalId"`
	// The id of the region for which this entity is defined.
	ExternalRegionId string `pulumi:"externalRegionId"`
	Filter           string `pulumi:"filter"`
	// ID of the security group.
	Id string `pulumi:"id"`
	// HATEOAS of the entity
	Links []GetSecurityGroupLink `pulumi:"links"`
	// Name of the security group.
	Name string `pulumi:"name"`
	// ID of organization that entity belongs to.
	OrganizationId string `pulumi:"organizationId"`
	Owner          string `pulumi:"owner"`
	// List of security rules.
	Rules []GetSecurityGroupRule `pulumi:"rules"`
	// Date when the entity was last updated. The date is ISO 8601 and UTC.
	UpdatedAt string `pulumi:"updatedAt"`
}

A collection of values returned by getSecurityGroup.

func GetSecurityGroup

func GetSecurityGroup(ctx *pulumi.Context, args *GetSecurityGroupArgs, opts ...pulumi.InvokeOption) (*GetSecurityGroupResult, error)

## Example Usage ### S This is an example of how to lookup security groups.

**Security groups by filter query:**

```go package main

import (

"fmt"

"github.com/pulumi/pulumi-vra/sdk/go/vra/securitygroup"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-vra/sdk/go/vra/securitygroup"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := securitygroup.GetSecurityGroup(ctx, &securitygroup.GetSecurityGroupArgs{
			Filter: fmt.Sprintf("name eq '%v'", _var.Name),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

A Security group supports the following arguments:

type GetSecurityGroupResultOutput

type GetSecurityGroupResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getSecurityGroup.

func (GetSecurityGroupResultOutput) CreatedAt

Date when the entity was created. The date is in ISO 6801 and UTC.

func (GetSecurityGroupResultOutput) Description

A human-friendly description of the security groups.

func (GetSecurityGroupResultOutput) ElementType

func (GetSecurityGroupResultOutput) ExternalId

External entity Id on the provider side.

func (GetSecurityGroupResultOutput) ExternalRegionId

func (o GetSecurityGroupResultOutput) ExternalRegionId() pulumi.StringOutput

The id of the region for which this entity is defined.

func (GetSecurityGroupResultOutput) Filter

func (GetSecurityGroupResultOutput) Id

ID of the security group.

HATEOAS of the entity

func (GetSecurityGroupResultOutput) Name

Name of the security group.

func (GetSecurityGroupResultOutput) OrganizationId

ID of organization that entity belongs to.

func (GetSecurityGroupResultOutput) Owner

func (GetSecurityGroupResultOutput) Rules

List of security rules.

func (GetSecurityGroupResultOutput) ToGetSecurityGroupResultOutput

func (o GetSecurityGroupResultOutput) ToGetSecurityGroupResultOutput() GetSecurityGroupResultOutput

func (GetSecurityGroupResultOutput) ToGetSecurityGroupResultOutputWithContext

func (o GetSecurityGroupResultOutput) ToGetSecurityGroupResultOutputWithContext(ctx context.Context) GetSecurityGroupResultOutput

func (GetSecurityGroupResultOutput) UpdatedAt

Date when the entity was last updated. The date is ISO 8601 and UTC.

type GetSecurityGroupRule

type GetSecurityGroupRule struct {
	Access      string `pulumi:"access"`
	Direction   string `pulumi:"direction"`
	IpRangeCidr int    `pulumi:"ipRangeCidr"`
	// Name of the security group.
	Name     *string `pulumi:"name"`
	Ports    string  `pulumi:"ports"`
	Protocol string  `pulumi:"protocol"`
	Service  *string `pulumi:"service"`
}

type GetSecurityGroupRuleArgs

type GetSecurityGroupRuleArgs struct {
	Access      pulumi.StringInput `pulumi:"access"`
	Direction   pulumi.StringInput `pulumi:"direction"`
	IpRangeCidr pulumi.IntInput    `pulumi:"ipRangeCidr"`
	// Name of the security group.
	Name     pulumi.StringPtrInput `pulumi:"name"`
	Ports    pulumi.StringInput    `pulumi:"ports"`
	Protocol pulumi.StringInput    `pulumi:"protocol"`
	Service  pulumi.StringPtrInput `pulumi:"service"`
}

func (GetSecurityGroupRuleArgs) ElementType

func (GetSecurityGroupRuleArgs) ElementType() reflect.Type

func (GetSecurityGroupRuleArgs) ToGetSecurityGroupRuleOutput

func (i GetSecurityGroupRuleArgs) ToGetSecurityGroupRuleOutput() GetSecurityGroupRuleOutput

func (GetSecurityGroupRuleArgs) ToGetSecurityGroupRuleOutputWithContext

func (i GetSecurityGroupRuleArgs) ToGetSecurityGroupRuleOutputWithContext(ctx context.Context) GetSecurityGroupRuleOutput

type GetSecurityGroupRuleArray

type GetSecurityGroupRuleArray []GetSecurityGroupRuleInput

func (GetSecurityGroupRuleArray) ElementType

func (GetSecurityGroupRuleArray) ElementType() reflect.Type

func (GetSecurityGroupRuleArray) ToGetSecurityGroupRuleArrayOutput

func (i GetSecurityGroupRuleArray) ToGetSecurityGroupRuleArrayOutput() GetSecurityGroupRuleArrayOutput

func (GetSecurityGroupRuleArray) ToGetSecurityGroupRuleArrayOutputWithContext

func (i GetSecurityGroupRuleArray) ToGetSecurityGroupRuleArrayOutputWithContext(ctx context.Context) GetSecurityGroupRuleArrayOutput

type GetSecurityGroupRuleArrayInput

type GetSecurityGroupRuleArrayInput interface {
	pulumi.Input

	ToGetSecurityGroupRuleArrayOutput() GetSecurityGroupRuleArrayOutput
	ToGetSecurityGroupRuleArrayOutputWithContext(context.Context) GetSecurityGroupRuleArrayOutput
}

GetSecurityGroupRuleArrayInput is an input type that accepts GetSecurityGroupRuleArray and GetSecurityGroupRuleArrayOutput values. You can construct a concrete instance of `GetSecurityGroupRuleArrayInput` via:

GetSecurityGroupRuleArray{ GetSecurityGroupRuleArgs{...} }

type GetSecurityGroupRuleArrayOutput

type GetSecurityGroupRuleArrayOutput struct{ *pulumi.OutputState }

func (GetSecurityGroupRuleArrayOutput) ElementType

func (GetSecurityGroupRuleArrayOutput) Index

func (GetSecurityGroupRuleArrayOutput) ToGetSecurityGroupRuleArrayOutput

func (o GetSecurityGroupRuleArrayOutput) ToGetSecurityGroupRuleArrayOutput() GetSecurityGroupRuleArrayOutput

func (GetSecurityGroupRuleArrayOutput) ToGetSecurityGroupRuleArrayOutputWithContext

func (o GetSecurityGroupRuleArrayOutput) ToGetSecurityGroupRuleArrayOutputWithContext(ctx context.Context) GetSecurityGroupRuleArrayOutput

type GetSecurityGroupRuleInput

type GetSecurityGroupRuleInput interface {
	pulumi.Input

	ToGetSecurityGroupRuleOutput() GetSecurityGroupRuleOutput
	ToGetSecurityGroupRuleOutputWithContext(context.Context) GetSecurityGroupRuleOutput
}

GetSecurityGroupRuleInput is an input type that accepts GetSecurityGroupRuleArgs and GetSecurityGroupRuleOutput values. You can construct a concrete instance of `GetSecurityGroupRuleInput` via:

GetSecurityGroupRuleArgs{...}

type GetSecurityGroupRuleOutput

type GetSecurityGroupRuleOutput struct{ *pulumi.OutputState }

func (GetSecurityGroupRuleOutput) Access

func (GetSecurityGroupRuleOutput) Direction

func (GetSecurityGroupRuleOutput) ElementType

func (GetSecurityGroupRuleOutput) ElementType() reflect.Type

func (GetSecurityGroupRuleOutput) IpRangeCidr

func (GetSecurityGroupRuleOutput) Name

Name of the security group.

func (GetSecurityGroupRuleOutput) Ports

func (GetSecurityGroupRuleOutput) Protocol

func (GetSecurityGroupRuleOutput) Service

func (GetSecurityGroupRuleOutput) ToGetSecurityGroupRuleOutput

func (o GetSecurityGroupRuleOutput) ToGetSecurityGroupRuleOutput() GetSecurityGroupRuleOutput

func (GetSecurityGroupRuleOutput) ToGetSecurityGroupRuleOutputWithContext

func (o GetSecurityGroupRuleOutput) ToGetSecurityGroupRuleOutputWithContext(ctx context.Context) GetSecurityGroupRuleOutput

Jump to

Keyboard shortcuts

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