EndpointArgs

data class EndpointArgs(val description: Output<String>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val network: Output<String>? = null, val project: Output<String>? = null, val severity: Output<String>? = null, val threatExceptions: Output<List<String>>? = null) : ConvertibleToJava<EndpointArgs>

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:

Example Usage

Cloudids Endpoint

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const _default = new gcp.compute.Network("default", {name: "tf-test-my-network"});
const serviceRange = new gcp.compute.GlobalAddress("service_range", {
name: "address",
purpose: "VPC_PEERING",
addressType: "INTERNAL",
prefixLength: 16,
network: _default.id,
});
const privateServiceConnection = new gcp.servicenetworking.Connection("private_service_connection", {
network: _default.id,
service: "servicenetworking.googleapis.com",
reservedPeeringRanges: [serviceRange&#46;name],
});
const example_endpoint = new gcp.cloudids.Endpoint("example-endpoint", {
name: "test",
location: "us-central1-f",
network: _default.id,
severity: "INFORMATIONAL",
}, {
dependsOn: [privateServiceConnection],
});
import pulumi
import pulumi_gcp as gcp
default = gcp.compute.Network("default", name="tf-test-my-network")
service_range = gcp.compute.GlobalAddress("service_range",
name="address",
purpose="VPC_PEERING",
address_type="INTERNAL",
prefix_length=16,
network=default.id)
private_service_connection = gcp.servicenetworking.Connection("private_service_connection",
network=default.id,
service="servicenetworking.googleapis.com",
reserved_peering_ranges=[service_range&#46;name])
example_endpoint = gcp.cloudids.Endpoint("example-endpoint",
name="test",
location="us-central1-f",
network=default.id,
severity="INFORMATIONAL",
opts = pulumi.ResourceOptions(depends_on=[private_service_connection]))
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var @default = new Gcp.Compute.Network("default", new()
{
Name = "tf-test-my-network",
});
var serviceRange = new Gcp.Compute.GlobalAddress("service_range", new()
{
Name = "address",
Purpose = "VPC_PEERING",
AddressType = "INTERNAL",
PrefixLength = 16,
Network = @default.Id,
});
var privateServiceConnection = new Gcp.ServiceNetworking.Connection("private_service_connection", new()
{
Network = @default.Id,
Service = "servicenetworking.googleapis.com",
ReservedPeeringRanges = new[]
{
serviceRange.Name,
},
});
var example_endpoint = new Gcp.CloudIds.Endpoint("example-endpoint", new()
{
Name = "test",
Location = "us-central1-f",
Network = @default.Id,
Severity = "INFORMATIONAL",
}, new CustomResourceOptions
{
DependsOn =
{
privateServiceConnection,
},
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/cloudids"
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
"github.com/pulumi/pulumi-gcp/sdk/v7/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", &compute.NetworkArgs{
Name: pulumi.String("tf-test-my-network"),
})
if err != nil {
return err
}
serviceRange, err := compute.NewGlobalAddress(ctx, "service_range", &compute.GlobalAddressArgs{
Name: pulumi.String("address"),
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, "private_service_connection", &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{
Name: pulumi.String("test"),
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
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.Network;
import com.pulumi.gcp.compute.NetworkArgs;
import com.pulumi.gcp.compute.GlobalAddress;
import com.pulumi.gcp.compute.GlobalAddressArgs;
import com.pulumi.gcp.servicenetworking.Connection;
import com.pulumi.gcp.servicenetworking.ConnectionArgs;
import com.pulumi.gcp.cloudids.Endpoint;
import com.pulumi.gcp.cloudids.EndpointArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var default_ = new Network("default", NetworkArgs.builder()
.name("tf-test-my-network")
.build());
var serviceRange = new GlobalAddress("serviceRange", GlobalAddressArgs.builder()
.name("address")
.purpose("VPC_PEERING")
.addressType("INTERNAL")
.prefixLength(16)
.network(default_.id())
.build());
var privateServiceConnection = new Connection("privateServiceConnection", ConnectionArgs.builder()
.network(default_.id())
.service("servicenetworking.googleapis.com")
.reservedPeeringRanges(serviceRange.name())
.build());
var example_endpoint = new Endpoint("example-endpoint", EndpointArgs.builder()
.name("test")
.location("us-central1-f")
.network(default_.id())
.severity("INFORMATIONAL")
.build(), CustomResourceOptions.builder()
.dependsOn(privateServiceConnection)
.build());
}
}
resources:
default:
type: gcp:compute:Network
properties:
name: tf-test-my-network
serviceRange:
type: gcp:compute:GlobalAddress
name: service_range
properties:
name: address
purpose: VPC_PEERING
addressType: INTERNAL
prefixLength: 16
network: ${default.id}
privateServiceConnection:
type: gcp:servicenetworking:Connection
name: private_service_connection
properties:
network: ${default.id}
service: servicenetworking.googleapis.com
reservedPeeringRanges:
- ${serviceRange.name}
example-endpoint:
type: gcp:cloudids:Endpoint
properties:
name: test
location: us-central1-f
network: ${default.id}
severity: INFORMATIONAL
options:
dependson:
- ${privateServiceConnection}

Import

Endpoint can be imported using any of these accepted formats:

  • projects/{{project}}/locations/{{location}}/endpoints/{{name}}

  • {{project}}/{{location}}/{{name}}

  • {{location}}/{{name}} When using the pulumi import command, Endpoint can be imported using one of the formats above. For example:

$ pulumi import gcp:cloudids/endpoint:Endpoint default projects/{{project}}/locations/{{location}}/endpoints/{{name}}
$ pulumi import gcp:cloudids/endpoint:Endpoint default {{project}}/{{location}}/{{name}}
$ pulumi import gcp:cloudids/endpoint:Endpoint default {{location}}/{{name}}

Constructors

Link copied to clipboard
constructor(description: Output<String>? = null, location: Output<String>? = null, name: Output<String>? = null, network: Output<String>? = null, project: Output<String>? = null, severity: Output<String>? = null, threatExceptions: Output<List<String>>? = null)

Properties

Link copied to clipboard
val description: Output<String>? = null

An optional description of the endpoint.

Link copied to clipboard
val location: Output<String>? = null

The location for the endpoint.

Link copied to clipboard
val name: Output<String>? = null

Name of the endpoint in the format projects/{project_id}/locations/{locationId}/endpoints/{endpointId}.

Link copied to clipboard
val network: Output<String>? = null

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").

Link copied to clipboard
val project: Output<String>? = null

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Link copied to clipboard
val severity: Output<String>? = null

The minimum alert severity level that is reported by the endpoint. Possible values are: INFORMATIONAL, LOW, MEDIUM, HIGH, CRITICAL.

Link copied to clipboard
val threatExceptions: Output<List<String>>? = null

Configuration for threat IDs excluded from generating alerts. Limit: 99 IDs.

Functions

Link copied to clipboard
open override fun toJava(): EndpointArgs