Documentation ¶
Index ¶
- type Endpoint
- type EndpointArgs
- type EndpointArray
- type EndpointArrayInput
- type EndpointArrayOutput
- func (EndpointArrayOutput) ElementType() reflect.Type
- func (o EndpointArrayOutput) Index(i pulumi.IntInput) EndpointOutput
- func (o EndpointArrayOutput) ToEndpointArrayOutput() EndpointArrayOutput
- func (o EndpointArrayOutput) ToEndpointArrayOutputWithContext(ctx context.Context) EndpointArrayOutput
- func (o EndpointArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]*Endpoint]
- type EndpointInput
- type EndpointMap
- type EndpointMapInput
- type EndpointMapOutput
- func (EndpointMapOutput) ElementType() reflect.Type
- func (o EndpointMapOutput) MapIndex(k pulumi.StringInput) EndpointOutput
- func (o EndpointMapOutput) ToEndpointMapOutput() EndpointMapOutput
- func (o EndpointMapOutput) ToEndpointMapOutputWithContext(ctx context.Context) EndpointMapOutput
- func (o EndpointMapOutput) ToOutput(ctx context.Context) pulumix.Output[map[string]*Endpoint]
- type EndpointOutput
- func (o EndpointOutput) CreateTime() pulumi.StringOutput
- func (o EndpointOutput) Description() pulumi.StringPtrOutput
- func (EndpointOutput) ElementType() reflect.Type
- func (o EndpointOutput) EndpointForwardingRule() pulumi.StringOutput
- func (o EndpointOutput) EndpointIp() pulumi.StringOutput
- func (o EndpointOutput) Location() pulumi.StringOutput
- func (o EndpointOutput) Name() pulumi.StringOutput
- func (o EndpointOutput) Network() pulumi.StringOutput
- func (o EndpointOutput) Project() pulumi.StringOutput
- func (o EndpointOutput) Severity() pulumi.StringOutput
- func (o EndpointOutput) ThreatExceptions() pulumi.StringArrayOutput
- func (o EndpointOutput) ToEndpointOutput() EndpointOutput
- func (o EndpointOutput) ToEndpointOutputWithContext(ctx context.Context) EndpointOutput
- func (o EndpointOutput) ToOutput(ctx context.Context) pulumix.Output[*Endpoint]
- func (o EndpointOutput) UpdateTime() pulumi.StringOutput
- type EndpointState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Endpoint ¶
type Endpoint struct { pulumi.CustomResourceState // Creation timestamp in RFC 3339 text format. CreateTime pulumi.StringOutput `pulumi:"createTime"` // An optional description of the endpoint. Description pulumi.StringPtrOutput `pulumi:"description"` // URL of the endpoint's network address to which traffic is to be sent by Packet Mirroring. EndpointForwardingRule pulumi.StringOutput `pulumi:"endpointForwardingRule"` // Internal IP address of the endpoint's network entry point. EndpointIp pulumi.StringOutput `pulumi:"endpointIp"` // The location for the endpoint. // // *** Location pulumi.StringOutput `pulumi:"location"` // Name of the endpoint in the format projects/{project_id}/locations/{locationId}/endpoints/{endpointId}. Name pulumi.StringOutput `pulumi:"name"` // Name of the VPC network that is connected to the IDS endpoint. This can either contain the VPC network name itself (like "src-net") or the full URL to the network (like "projects/{project_id}/global/networks/src-net"). Network pulumi.StringOutput `pulumi:"network"` // The ID of the project in which the resource belongs. // If it is not provided, the provider project is used. Project pulumi.StringOutput `pulumi:"project"` // The minimum alert severity level that is reported by the endpoint. // Possible values are: `INFORMATIONAL`, `LOW`, `MEDIUM`, `HIGH`, `CRITICAL`. Severity pulumi.StringOutput `pulumi:"severity"` // Configuration for threat IDs excluded from generating alerts. Limit: 99 IDs. ThreatExceptions pulumi.StringArrayOutput `pulumi:"threatExceptions"` // Last update timestamp in RFC 3339 text format. UpdateTime pulumi.StringOutput `pulumi:"updateTime"` }
Cloud IDS is an intrusion detection service that provides threat detection for intrusions, malware, spyware, and command-and-control attacks on your network.
To get more information about Endpoint, see:
* [API documentation](https://cloud.google.com/intrusion-detection-system/docs/configuring-ids)
## Example Usage ### Cloudids Endpoint
```go package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/cloudids" "github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/compute" "github.com/pulumi/pulumi-gcp/sdk/v6/go/gcp/servicenetworking" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := compute.NewNetwork(ctx, "default", nil) if err != nil { return err } serviceRange, err := compute.NewGlobalAddress(ctx, "serviceRange", &compute.GlobalAddressArgs{ Purpose: pulumi.String("VPC_PEERING"), AddressType: pulumi.String("INTERNAL"), PrefixLength: pulumi.Int(16), Network: _default.ID(), }) if err != nil { return err } privateServiceConnection, err := servicenetworking.NewConnection(ctx, "privateServiceConnection", &servicenetworking.ConnectionArgs{ Network: _default.ID(), Service: pulumi.String("servicenetworking.googleapis.com"), ReservedPeeringRanges: pulumi.StringArray{ serviceRange.Name, }, }) if err != nil { return err } _, err = cloudids.NewEndpoint(ctx, "example-endpoint", &cloudids.EndpointArgs{ Location: pulumi.String("us-central1-f"), Network: _default.ID(), Severity: pulumi.String("INFORMATIONAL"), }, pulumi.DependsOn([]pulumi.Resource{ privateServiceConnection, })) if err != nil { return err } return nil }) }
```
## Import
Endpoint can be imported using any of these accepted formats ¶
```sh
$ pulumi import gcp:cloudids/endpoint:Endpoint default projects/{{project}}/locations/{{location}}/endpoints/{{name}}
```
```sh
$ pulumi import gcp:cloudids/endpoint:Endpoint default {{project}}/{{location}}/{{name}}
```
```sh
$ pulumi import gcp:cloudids/endpoint:Endpoint default {{location}}/{{name}}
```
func GetEndpoint ¶
func GetEndpoint(ctx *pulumi.Context, name string, id pulumi.IDInput, state *EndpointState, opts ...pulumi.ResourceOption) (*Endpoint, error)
GetEndpoint gets an existing Endpoint 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 NewEndpoint ¶
func NewEndpoint(ctx *pulumi.Context, name string, args *EndpointArgs, opts ...pulumi.ResourceOption) (*Endpoint, error)
NewEndpoint registers a new resource with the given unique name, arguments, and options.
func (*Endpoint) ElementType ¶
func (*Endpoint) ToEndpointOutput ¶
func (i *Endpoint) ToEndpointOutput() EndpointOutput
func (*Endpoint) ToEndpointOutputWithContext ¶
func (i *Endpoint) ToEndpointOutputWithContext(ctx context.Context) EndpointOutput
type EndpointArgs ¶
type EndpointArgs struct { // An optional description of the endpoint. Description pulumi.StringPtrInput // The location for the endpoint. // // *** Location pulumi.StringInput // Name of the endpoint in the format projects/{project_id}/locations/{locationId}/endpoints/{endpointId}. Name pulumi.StringPtrInput // Name of the VPC network that is connected to the IDS endpoint. This can either contain the VPC network name itself (like "src-net") or the full URL to the network (like "projects/{project_id}/global/networks/src-net"). Network pulumi.StringInput // The ID of the project in which the resource belongs. // If it is not provided, the provider project is used. Project pulumi.StringPtrInput // The minimum alert severity level that is reported by the endpoint. // Possible values are: `INFORMATIONAL`, `LOW`, `MEDIUM`, `HIGH`, `CRITICAL`. Severity pulumi.StringInput // Configuration for threat IDs excluded from generating alerts. Limit: 99 IDs. ThreatExceptions pulumi.StringArrayInput }
The set of arguments for constructing a Endpoint resource.
func (EndpointArgs) ElementType ¶
func (EndpointArgs) ElementType() reflect.Type
type EndpointArray ¶
type EndpointArray []EndpointInput
func (EndpointArray) ElementType ¶
func (EndpointArray) ElementType() reflect.Type
func (EndpointArray) ToEndpointArrayOutput ¶
func (i EndpointArray) ToEndpointArrayOutput() EndpointArrayOutput
func (EndpointArray) ToEndpointArrayOutputWithContext ¶
func (i EndpointArray) ToEndpointArrayOutputWithContext(ctx context.Context) EndpointArrayOutput
type EndpointArrayInput ¶
type EndpointArrayInput interface { pulumi.Input ToEndpointArrayOutput() EndpointArrayOutput ToEndpointArrayOutputWithContext(context.Context) EndpointArrayOutput }
EndpointArrayInput is an input type that accepts EndpointArray and EndpointArrayOutput values. You can construct a concrete instance of `EndpointArrayInput` via:
EndpointArray{ EndpointArgs{...} }
type EndpointArrayOutput ¶
type EndpointArrayOutput struct{ *pulumi.OutputState }
func (EndpointArrayOutput) ElementType ¶
func (EndpointArrayOutput) ElementType() reflect.Type
func (EndpointArrayOutput) Index ¶
func (o EndpointArrayOutput) Index(i pulumi.IntInput) EndpointOutput
func (EndpointArrayOutput) ToEndpointArrayOutput ¶
func (o EndpointArrayOutput) ToEndpointArrayOutput() EndpointArrayOutput
func (EndpointArrayOutput) ToEndpointArrayOutputWithContext ¶
func (o EndpointArrayOutput) ToEndpointArrayOutputWithContext(ctx context.Context) EndpointArrayOutput
type EndpointInput ¶
type EndpointInput interface { pulumi.Input ToEndpointOutput() EndpointOutput ToEndpointOutputWithContext(ctx context.Context) EndpointOutput }
type EndpointMap ¶
type EndpointMap map[string]EndpointInput
func (EndpointMap) ElementType ¶
func (EndpointMap) ElementType() reflect.Type
func (EndpointMap) ToEndpointMapOutput ¶
func (i EndpointMap) ToEndpointMapOutput() EndpointMapOutput
func (EndpointMap) ToEndpointMapOutputWithContext ¶
func (i EndpointMap) ToEndpointMapOutputWithContext(ctx context.Context) EndpointMapOutput
type EndpointMapInput ¶
type EndpointMapInput interface { pulumi.Input ToEndpointMapOutput() EndpointMapOutput ToEndpointMapOutputWithContext(context.Context) EndpointMapOutput }
EndpointMapInput is an input type that accepts EndpointMap and EndpointMapOutput values. You can construct a concrete instance of `EndpointMapInput` via:
EndpointMap{ "key": EndpointArgs{...} }
type EndpointMapOutput ¶
type EndpointMapOutput struct{ *pulumi.OutputState }
func (EndpointMapOutput) ElementType ¶
func (EndpointMapOutput) ElementType() reflect.Type
func (EndpointMapOutput) MapIndex ¶
func (o EndpointMapOutput) MapIndex(k pulumi.StringInput) EndpointOutput
func (EndpointMapOutput) ToEndpointMapOutput ¶
func (o EndpointMapOutput) ToEndpointMapOutput() EndpointMapOutput
func (EndpointMapOutput) ToEndpointMapOutputWithContext ¶
func (o EndpointMapOutput) ToEndpointMapOutputWithContext(ctx context.Context) EndpointMapOutput
type EndpointOutput ¶
type EndpointOutput struct{ *pulumi.OutputState }
func (EndpointOutput) CreateTime ¶
func (o EndpointOutput) CreateTime() pulumi.StringOutput
Creation timestamp in RFC 3339 text format.
func (EndpointOutput) Description ¶
func (o EndpointOutput) Description() pulumi.StringPtrOutput
An optional description of the endpoint.
func (EndpointOutput) ElementType ¶
func (EndpointOutput) ElementType() reflect.Type
func (EndpointOutput) EndpointForwardingRule ¶
func (o EndpointOutput) EndpointForwardingRule() pulumi.StringOutput
URL of the endpoint's network address to which traffic is to be sent by Packet Mirroring.
func (EndpointOutput) EndpointIp ¶ added in v6.44.0
func (o EndpointOutput) EndpointIp() pulumi.StringOutput
Internal IP address of the endpoint's network entry point.
func (EndpointOutput) Location ¶
func (o EndpointOutput) Location() pulumi.StringOutput
The location for the endpoint.
***
func (EndpointOutput) Name ¶
func (o EndpointOutput) Name() pulumi.StringOutput
Name of the endpoint in the format projects/{project_id}/locations/{locationId}/endpoints/{endpointId}.
func (EndpointOutput) Network ¶
func (o EndpointOutput) Network() pulumi.StringOutput
Name of the VPC network that is connected to the IDS endpoint. This can either contain the VPC network name itself (like "src-net") or the full URL to the network (like "projects/{project_id}/global/networks/src-net").
func (EndpointOutput) Project ¶
func (o EndpointOutput) Project() pulumi.StringOutput
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
func (EndpointOutput) Severity ¶
func (o EndpointOutput) Severity() pulumi.StringOutput
The minimum alert severity level that is reported by the endpoint. Possible values are: `INFORMATIONAL`, `LOW`, `MEDIUM`, `HIGH`, `CRITICAL`.
func (EndpointOutput) ThreatExceptions ¶ added in v6.47.0
func (o EndpointOutput) ThreatExceptions() pulumi.StringArrayOutput
Configuration for threat IDs excluded from generating alerts. Limit: 99 IDs.
func (EndpointOutput) ToEndpointOutput ¶
func (o EndpointOutput) ToEndpointOutput() EndpointOutput
func (EndpointOutput) ToEndpointOutputWithContext ¶
func (o EndpointOutput) ToEndpointOutputWithContext(ctx context.Context) EndpointOutput
func (EndpointOutput) UpdateTime ¶
func (o EndpointOutput) UpdateTime() pulumi.StringOutput
Last update timestamp in RFC 3339 text format.
type EndpointState ¶
type EndpointState struct { // Creation timestamp in RFC 3339 text format. CreateTime pulumi.StringPtrInput // An optional description of the endpoint. Description pulumi.StringPtrInput // URL of the endpoint's network address to which traffic is to be sent by Packet Mirroring. EndpointForwardingRule pulumi.StringPtrInput // Internal IP address of the endpoint's network entry point. EndpointIp pulumi.StringPtrInput // The location for the endpoint. // // *** Location pulumi.StringPtrInput // Name of the endpoint in the format projects/{project_id}/locations/{locationId}/endpoints/{endpointId}. Name pulumi.StringPtrInput // Name of the VPC network that is connected to the IDS endpoint. This can either contain the VPC network name itself (like "src-net") or the full URL to the network (like "projects/{project_id}/global/networks/src-net"). Network pulumi.StringPtrInput // The ID of the project in which the resource belongs. // If it is not provided, the provider project is used. Project pulumi.StringPtrInput // The minimum alert severity level that is reported by the endpoint. // Possible values are: `INFORMATIONAL`, `LOW`, `MEDIUM`, `HIGH`, `CRITICAL`. Severity pulumi.StringPtrInput // Configuration for threat IDs excluded from generating alerts. Limit: 99 IDs. ThreatExceptions pulumi.StringArrayInput // Last update timestamp in RFC 3339 text format. UpdateTime pulumi.StringPtrInput }
func (EndpointState) ElementType ¶
func (EndpointState) ElementType() reflect.Type