gcp.networkservices.EndpointPolicy
Explore with Pulumi AI
Import
EndpointPolicy can be imported using any of these accepted formats* projects/{{project}}/locations/global/endpointPolicies/{{name}}
* {{project}}/{{name}}
* {{name}}
In Terraform v1.5.0 and later, use an import
block to import EndpointPolicy using one of the formats above. For exampletf import {
id = “projects/{{project}}/locations/global/endpointPolicies/{{name}}”
to = google_network_services_endpoint_policy.default }
$ pulumi import gcp:networkservices/endpointPolicy:EndpointPolicy When using the [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import), EndpointPolicy can be imported using one of the formats above. For example
$ pulumi import gcp:networkservices/endpointPolicy:EndpointPolicy default projects/{{project}}/locations/global/endpointPolicies/{{name}}
$ pulumi import gcp:networkservices/endpointPolicy:EndpointPolicy default {{project}}/{{name}}
$ pulumi import gcp:networkservices/endpointPolicy:EndpointPolicy default {{name}}
Example Usage
Network Services Endpoint Policy Basic
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var @default = new Gcp.NetworkServices.EndpointPolicy("default", new()
{
Labels =
{
{ "foo", "bar" },
},
Description = "my description",
Type = "SIDECAR_PROXY",
TrafficPortSelector = new Gcp.NetworkServices.Inputs.EndpointPolicyTrafficPortSelectorArgs
{
Ports = new[]
{
"8081",
},
},
EndpointMatcher = new Gcp.NetworkServices.Inputs.EndpointPolicyEndpointMatcherArgs
{
MetadataLabelMatcher = new Gcp.NetworkServices.Inputs.EndpointPolicyEndpointMatcherMetadataLabelMatcherArgs
{
MetadataLabelMatchCriteria = "MATCH_ANY",
MetadataLabels = new[]
{
new Gcp.NetworkServices.Inputs.EndpointPolicyEndpointMatcherMetadataLabelMatcherMetadataLabelArgs
{
LabelName = "foo",
LabelValue = "bar",
},
},
},
},
}, new CustomResourceOptions
{
Provider = google_beta,
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/networkservices"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := networkservices.NewEndpointPolicy(ctx, "default", &networkservices.EndpointPolicyArgs{
Labels: pulumi.StringMap{
"foo": pulumi.String("bar"),
},
Description: pulumi.String("my description"),
Type: pulumi.String("SIDECAR_PROXY"),
TrafficPortSelector: &networkservices.EndpointPolicyTrafficPortSelectorArgs{
Ports: pulumi.StringArray{
pulumi.String("8081"),
},
},
EndpointMatcher: &networkservices.EndpointPolicyEndpointMatcherArgs{
MetadataLabelMatcher: &networkservices.EndpointPolicyEndpointMatcherMetadataLabelMatcherArgs{
MetadataLabelMatchCriteria: pulumi.String("MATCH_ANY"),
MetadataLabels: networkservices.EndpointPolicyEndpointMatcherMetadataLabelMatcherMetadataLabelArray{
&networkservices.EndpointPolicyEndpointMatcherMetadataLabelMatcherMetadataLabelArgs{
LabelName: pulumi.String("foo"),
LabelValue: pulumi.String("bar"),
},
},
},
},
}, pulumi.Provider(google_beta))
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.networkservices.EndpointPolicy;
import com.pulumi.gcp.networkservices.EndpointPolicyArgs;
import com.pulumi.gcp.networkservices.inputs.EndpointPolicyTrafficPortSelectorArgs;
import com.pulumi.gcp.networkservices.inputs.EndpointPolicyEndpointMatcherArgs;
import com.pulumi.gcp.networkservices.inputs.EndpointPolicyEndpointMatcherMetadataLabelMatcherArgs;
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 EndpointPolicy("default", EndpointPolicyArgs.builder()
.labels(Map.of("foo", "bar"))
.description("my description")
.type("SIDECAR_PROXY")
.trafficPortSelector(EndpointPolicyTrafficPortSelectorArgs.builder()
.ports("8081")
.build())
.endpointMatcher(EndpointPolicyEndpointMatcherArgs.builder()
.metadataLabelMatcher(EndpointPolicyEndpointMatcherMetadataLabelMatcherArgs.builder()
.metadataLabelMatchCriteria("MATCH_ANY")
.metadataLabels(EndpointPolicyEndpointMatcherMetadataLabelMatcherMetadataLabelArgs.builder()
.labelName("foo")
.labelValue("bar")
.build())
.build())
.build())
.build(), CustomResourceOptions.builder()
.provider(google_beta)
.build());
}
}
import pulumi
import pulumi_gcp as gcp
default = gcp.networkservices.EndpointPolicy("default",
labels={
"foo": "bar",
},
description="my description",
type="SIDECAR_PROXY",
traffic_port_selector=gcp.networkservices.EndpointPolicyTrafficPortSelectorArgs(
ports=["8081"],
),
endpoint_matcher=gcp.networkservices.EndpointPolicyEndpointMatcherArgs(
metadata_label_matcher=gcp.networkservices.EndpointPolicyEndpointMatcherMetadataLabelMatcherArgs(
metadata_label_match_criteria="MATCH_ANY",
metadata_labels=[gcp.networkservices.EndpointPolicyEndpointMatcherMetadataLabelMatcherMetadataLabelArgs(
label_name="foo",
label_value="bar",
)],
),
),
opts=pulumi.ResourceOptions(provider=google_beta))
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const _default = new gcp.networkservices.EndpointPolicy("default", {
labels: {
foo: "bar",
},
description: "my description",
type: "SIDECAR_PROXY",
trafficPortSelector: {
ports: ["8081"],
},
endpointMatcher: {
metadataLabelMatcher: {
metadataLabelMatchCriteria: "MATCH_ANY",
metadataLabels: [{
labelName: "foo",
labelValue: "bar",
}],
},
},
}, {
provider: google_beta,
});
resources:
default:
type: gcp:networkservices:EndpointPolicy
properties:
labels:
foo: bar
description: my description
type: SIDECAR_PROXY
trafficPortSelector:
ports:
- '8081'
endpointMatcher:
metadataLabelMatcher:
metadataLabelMatchCriteria: MATCH_ANY
metadataLabels:
- labelName: foo
labelValue: bar
options:
provider: ${["google-beta"]}
Network Services Endpoint Policy Empty Match
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var @default = new Gcp.NetworkServices.EndpointPolicy("default", new()
{
Labels =
{
{ "foo", "bar" },
},
Description = "my description",
Type = "SIDECAR_PROXY",
TrafficPortSelector = new Gcp.NetworkServices.Inputs.EndpointPolicyTrafficPortSelectorArgs
{
Ports = new[]
{
"8081",
},
},
EndpointMatcher = new Gcp.NetworkServices.Inputs.EndpointPolicyEndpointMatcherArgs
{
MetadataLabelMatcher = new Gcp.NetworkServices.Inputs.EndpointPolicyEndpointMatcherMetadataLabelMatcherArgs
{
MetadataLabelMatchCriteria = "MATCH_ANY",
},
},
}, new CustomResourceOptions
{
Provider = google_beta,
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/networkservices"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := networkservices.NewEndpointPolicy(ctx, "default", &networkservices.EndpointPolicyArgs{
Labels: pulumi.StringMap{
"foo": pulumi.String("bar"),
},
Description: pulumi.String("my description"),
Type: pulumi.String("SIDECAR_PROXY"),
TrafficPortSelector: &networkservices.EndpointPolicyTrafficPortSelectorArgs{
Ports: pulumi.StringArray{
pulumi.String("8081"),
},
},
EndpointMatcher: &networkservices.EndpointPolicyEndpointMatcherArgs{
MetadataLabelMatcher: &networkservices.EndpointPolicyEndpointMatcherMetadataLabelMatcherArgs{
MetadataLabelMatchCriteria: pulumi.String("MATCH_ANY"),
},
},
}, pulumi.Provider(google_beta))
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.networkservices.EndpointPolicy;
import com.pulumi.gcp.networkservices.EndpointPolicyArgs;
import com.pulumi.gcp.networkservices.inputs.EndpointPolicyTrafficPortSelectorArgs;
import com.pulumi.gcp.networkservices.inputs.EndpointPolicyEndpointMatcherArgs;
import com.pulumi.gcp.networkservices.inputs.EndpointPolicyEndpointMatcherMetadataLabelMatcherArgs;
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 EndpointPolicy("default", EndpointPolicyArgs.builder()
.labels(Map.of("foo", "bar"))
.description("my description")
.type("SIDECAR_PROXY")
.trafficPortSelector(EndpointPolicyTrafficPortSelectorArgs.builder()
.ports("8081")
.build())
.endpointMatcher(EndpointPolicyEndpointMatcherArgs.builder()
.metadataLabelMatcher(EndpointPolicyEndpointMatcherMetadataLabelMatcherArgs.builder()
.metadataLabelMatchCriteria("MATCH_ANY")
.build())
.build())
.build(), CustomResourceOptions.builder()
.provider(google_beta)
.build());
}
}
import pulumi
import pulumi_gcp as gcp
default = gcp.networkservices.EndpointPolicy("default",
labels={
"foo": "bar",
},
description="my description",
type="SIDECAR_PROXY",
traffic_port_selector=gcp.networkservices.EndpointPolicyTrafficPortSelectorArgs(
ports=["8081"],
),
endpoint_matcher=gcp.networkservices.EndpointPolicyEndpointMatcherArgs(
metadata_label_matcher=gcp.networkservices.EndpointPolicyEndpointMatcherMetadataLabelMatcherArgs(
metadata_label_match_criteria="MATCH_ANY",
),
),
opts=pulumi.ResourceOptions(provider=google_beta))
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const _default = new gcp.networkservices.EndpointPolicy("default", {
labels: {
foo: "bar",
},
description: "my description",
type: "SIDECAR_PROXY",
trafficPortSelector: {
ports: ["8081"],
},
endpointMatcher: {
metadataLabelMatcher: {
metadataLabelMatchCriteria: "MATCH_ANY",
},
},
}, {
provider: google_beta,
});
resources:
default:
type: gcp:networkservices:EndpointPolicy
properties:
labels:
foo: bar
description: my description
type: SIDECAR_PROXY
trafficPortSelector:
ports:
- '8081'
endpointMatcher:
metadataLabelMatcher:
metadataLabelMatchCriteria: MATCH_ANY
options:
provider: ${["google-beta"]}
Create EndpointPolicy Resource
new EndpointPolicy(name: string, args: EndpointPolicyArgs, opts?: CustomResourceOptions);
@overload
def EndpointPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
authorization_policy: Optional[str] = None,
client_tls_policy: Optional[str] = None,
description: Optional[str] = None,
endpoint_matcher: Optional[EndpointPolicyEndpointMatcherArgs] = None,
labels: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
project: Optional[str] = None,
server_tls_policy: Optional[str] = None,
traffic_port_selector: Optional[EndpointPolicyTrafficPortSelectorArgs] = None,
type: Optional[str] = None)
@overload
def EndpointPolicy(resource_name: str,
args: EndpointPolicyArgs,
opts: Optional[ResourceOptions] = None)
func NewEndpointPolicy(ctx *Context, name string, args EndpointPolicyArgs, opts ...ResourceOption) (*EndpointPolicy, error)
public EndpointPolicy(string name, EndpointPolicyArgs args, CustomResourceOptions? opts = null)
public EndpointPolicy(String name, EndpointPolicyArgs args)
public EndpointPolicy(String name, EndpointPolicyArgs args, CustomResourceOptions options)
type: gcp:networkservices:EndpointPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EndpointPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args EndpointPolicyArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args EndpointPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EndpointPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EndpointPolicyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
EndpointPolicy Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The EndpointPolicy resource accepts the following input properties:
- Endpoint
Matcher EndpointPolicy Endpoint Matcher Required. A matcher that selects endpoints to which the policies should be applied. Structure is documented below.
- Type string
The type of endpoint policy. This is primarily used to validate the configuration. Possible values are:
SIDECAR_PROXY
,GRPC_SERVER
.- string
This field specifies the URL of AuthorizationPolicy resource that applies authorization policies to the inbound traffic at the matched endpoints.
- Client
Tls stringPolicy A URL referring to a ClientTlsPolicy resource. ClientTlsPolicy can be set to specify the authentication for traffic from the proxy to the actual endpoints.
- Description string
A free-text description of the resource. Max length 1024 characters.
- Labels Dictionary<string, string>
Set of label tags associated with the TcpRoute resource. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- Name string
Name of the EndpointPolicy resource.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Server
Tls stringPolicy A URL referring to ServerTlsPolicy resource. ServerTlsPolicy is used to determine the authentication policy to be applied to terminate the inbound traffic at the identified backends.
- Traffic
Port EndpointSelector Policy Traffic Port Selector Port selector for the (matched) endpoints. If no port selector is provided, the matched config is applied to all ports. Structure is documented below.
- Endpoint
Matcher EndpointPolicy Endpoint Matcher Args Required. A matcher that selects endpoints to which the policies should be applied. Structure is documented below.
- Type string
The type of endpoint policy. This is primarily used to validate the configuration. Possible values are:
SIDECAR_PROXY
,GRPC_SERVER
.- string
This field specifies the URL of AuthorizationPolicy resource that applies authorization policies to the inbound traffic at the matched endpoints.
- Client
Tls stringPolicy A URL referring to a ClientTlsPolicy resource. ClientTlsPolicy can be set to specify the authentication for traffic from the proxy to the actual endpoints.
- Description string
A free-text description of the resource. Max length 1024 characters.
- Labels map[string]string
Set of label tags associated with the TcpRoute resource. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- Name string
Name of the EndpointPolicy resource.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Server
Tls stringPolicy A URL referring to ServerTlsPolicy resource. ServerTlsPolicy is used to determine the authentication policy to be applied to terminate the inbound traffic at the identified backends.
- Traffic
Port EndpointSelector Policy Traffic Port Selector Args Port selector for the (matched) endpoints. If no port selector is provided, the matched config is applied to all ports. Structure is documented below.
- endpoint
Matcher EndpointPolicy Endpoint Matcher Required. A matcher that selects endpoints to which the policies should be applied. Structure is documented below.
- type String
The type of endpoint policy. This is primarily used to validate the configuration. Possible values are:
SIDECAR_PROXY
,GRPC_SERVER
.- String
This field specifies the URL of AuthorizationPolicy resource that applies authorization policies to the inbound traffic at the matched endpoints.
- client
Tls StringPolicy A URL referring to a ClientTlsPolicy resource. ClientTlsPolicy can be set to specify the authentication for traffic from the proxy to the actual endpoints.
- description String
A free-text description of the resource. Max length 1024 characters.
- labels Map<String,String>
Set of label tags associated with the TcpRoute resource. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- name String
Name of the EndpointPolicy resource.
- project String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- server
Tls StringPolicy A URL referring to ServerTlsPolicy resource. ServerTlsPolicy is used to determine the authentication policy to be applied to terminate the inbound traffic at the identified backends.
- traffic
Port EndpointSelector Policy Traffic Port Selector Port selector for the (matched) endpoints. If no port selector is provided, the matched config is applied to all ports. Structure is documented below.
- endpoint
Matcher EndpointPolicy Endpoint Matcher Required. A matcher that selects endpoints to which the policies should be applied. Structure is documented below.
- type string
The type of endpoint policy. This is primarily used to validate the configuration. Possible values are:
SIDECAR_PROXY
,GRPC_SERVER
.- string
This field specifies the URL of AuthorizationPolicy resource that applies authorization policies to the inbound traffic at the matched endpoints.
- client
Tls stringPolicy A URL referring to a ClientTlsPolicy resource. ClientTlsPolicy can be set to specify the authentication for traffic from the proxy to the actual endpoints.
- description string
A free-text description of the resource. Max length 1024 characters.
- labels {[key: string]: string}
Set of label tags associated with the TcpRoute resource. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- name string
Name of the EndpointPolicy resource.
- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- server
Tls stringPolicy A URL referring to ServerTlsPolicy resource. ServerTlsPolicy is used to determine the authentication policy to be applied to terminate the inbound traffic at the identified backends.
- traffic
Port EndpointSelector Policy Traffic Port Selector Port selector for the (matched) endpoints. If no port selector is provided, the matched config is applied to all ports. Structure is documented below.
- endpoint_
matcher EndpointPolicy Endpoint Matcher Args Required. A matcher that selects endpoints to which the policies should be applied. Structure is documented below.
- type str
The type of endpoint policy. This is primarily used to validate the configuration. Possible values are:
SIDECAR_PROXY
,GRPC_SERVER
.- str
This field specifies the URL of AuthorizationPolicy resource that applies authorization policies to the inbound traffic at the matched endpoints.
- client_
tls_ strpolicy A URL referring to a ClientTlsPolicy resource. ClientTlsPolicy can be set to specify the authentication for traffic from the proxy to the actual endpoints.
- description str
A free-text description of the resource. Max length 1024 characters.
- labels Mapping[str, str]
Set of label tags associated with the TcpRoute resource. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- name str
Name of the EndpointPolicy resource.
- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- server_
tls_ strpolicy A URL referring to ServerTlsPolicy resource. ServerTlsPolicy is used to determine the authentication policy to be applied to terminate the inbound traffic at the identified backends.
- traffic_
port_ Endpointselector Policy Traffic Port Selector Args Port selector for the (matched) endpoints. If no port selector is provided, the matched config is applied to all ports. Structure is documented below.
- endpoint
Matcher Property Map Required. A matcher that selects endpoints to which the policies should be applied. Structure is documented below.
- type String
The type of endpoint policy. This is primarily used to validate the configuration. Possible values are:
SIDECAR_PROXY
,GRPC_SERVER
.- String
This field specifies the URL of AuthorizationPolicy resource that applies authorization policies to the inbound traffic at the matched endpoints.
- client
Tls StringPolicy A URL referring to a ClientTlsPolicy resource. ClientTlsPolicy can be set to specify the authentication for traffic from the proxy to the actual endpoints.
- description String
A free-text description of the resource. Max length 1024 characters.
- labels Map<String>
Set of label tags associated with the TcpRoute resource. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- name String
Name of the EndpointPolicy resource.
- project String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- server
Tls StringPolicy A URL referring to ServerTlsPolicy resource. ServerTlsPolicy is used to determine the authentication policy to be applied to terminate the inbound traffic at the identified backends.
- traffic
Port Property MapSelector Port selector for the (matched) endpoints. If no port selector is provided, the matched config is applied to all ports. Structure is documented below.
Outputs
All input properties are implicitly available as output properties. Additionally, the EndpointPolicy resource produces the following output properties:
- Create
Time string Time the TcpRoute was created in UTC.
- Effective
Labels Dictionary<string, string> All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Id string
The provider-assigned unique ID for this managed resource.
- Pulumi
Labels Dictionary<string, string> The combination of labels configured directly on the resource and default labels configured on the provider.
- Update
Time string Time the TcpRoute was updated in UTC.
- Create
Time string Time the TcpRoute was created in UTC.
- Effective
Labels map[string]string All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Id string
The provider-assigned unique ID for this managed resource.
- Pulumi
Labels map[string]string The combination of labels configured directly on the resource and default labels configured on the provider.
- Update
Time string Time the TcpRoute was updated in UTC.
- create
Time String Time the TcpRoute was created in UTC.
- effective
Labels Map<String,String> All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id String
The provider-assigned unique ID for this managed resource.
- pulumi
Labels Map<String,String> The combination of labels configured directly on the resource and default labels configured on the provider.
- update
Time String Time the TcpRoute was updated in UTC.
- create
Time string Time the TcpRoute was created in UTC.
- effective
Labels {[key: string]: string} All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id string
The provider-assigned unique ID for this managed resource.
- pulumi
Labels {[key: string]: string} The combination of labels configured directly on the resource and default labels configured on the provider.
- update
Time string Time the TcpRoute was updated in UTC.
- create_
time str Time the TcpRoute was created in UTC.
- effective_
labels Mapping[str, str] All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id str
The provider-assigned unique ID for this managed resource.
- pulumi_
labels Mapping[str, str] The combination of labels configured directly on the resource and default labels configured on the provider.
- update_
time str Time the TcpRoute was updated in UTC.
- create
Time String Time the TcpRoute was created in UTC.
- effective
Labels Map<String> All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id String
The provider-assigned unique ID for this managed resource.
- pulumi
Labels Map<String> The combination of labels configured directly on the resource and default labels configured on the provider.
- update
Time String Time the TcpRoute was updated in UTC.
Look up Existing EndpointPolicy Resource
Get an existing EndpointPolicy resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: EndpointPolicyState, opts?: CustomResourceOptions): EndpointPolicy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
authorization_policy: Optional[str] = None,
client_tls_policy: Optional[str] = None,
create_time: Optional[str] = None,
description: Optional[str] = None,
effective_labels: Optional[Mapping[str, str]] = None,
endpoint_matcher: Optional[EndpointPolicyEndpointMatcherArgs] = None,
labels: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
project: Optional[str] = None,
pulumi_labels: Optional[Mapping[str, str]] = None,
server_tls_policy: Optional[str] = None,
traffic_port_selector: Optional[EndpointPolicyTrafficPortSelectorArgs] = None,
type: Optional[str] = None,
update_time: Optional[str] = None) -> EndpointPolicy
func GetEndpointPolicy(ctx *Context, name string, id IDInput, state *EndpointPolicyState, opts ...ResourceOption) (*EndpointPolicy, error)
public static EndpointPolicy Get(string name, Input<string> id, EndpointPolicyState? state, CustomResourceOptions? opts = null)
public static EndpointPolicy get(String name, Output<String> id, EndpointPolicyState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- string
This field specifies the URL of AuthorizationPolicy resource that applies authorization policies to the inbound traffic at the matched endpoints.
- Client
Tls stringPolicy A URL referring to a ClientTlsPolicy resource. ClientTlsPolicy can be set to specify the authentication for traffic from the proxy to the actual endpoints.
- Create
Time string Time the TcpRoute was created in UTC.
- Description string
A free-text description of the resource. Max length 1024 characters.
- Effective
Labels Dictionary<string, string> All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Endpoint
Matcher EndpointPolicy Endpoint Matcher Required. A matcher that selects endpoints to which the policies should be applied. Structure is documented below.
- Labels Dictionary<string, string>
Set of label tags associated with the TcpRoute resource. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- Name string
Name of the EndpointPolicy resource.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Pulumi
Labels Dictionary<string, string> The combination of labels configured directly on the resource and default labels configured on the provider.
- Server
Tls stringPolicy A URL referring to ServerTlsPolicy resource. ServerTlsPolicy is used to determine the authentication policy to be applied to terminate the inbound traffic at the identified backends.
- Traffic
Port EndpointSelector Policy Traffic Port Selector Port selector for the (matched) endpoints. If no port selector is provided, the matched config is applied to all ports. Structure is documented below.
- Type string
The type of endpoint policy. This is primarily used to validate the configuration. Possible values are:
SIDECAR_PROXY
,GRPC_SERVER
.- Update
Time string Time the TcpRoute was updated in UTC.
- string
This field specifies the URL of AuthorizationPolicy resource that applies authorization policies to the inbound traffic at the matched endpoints.
- Client
Tls stringPolicy A URL referring to a ClientTlsPolicy resource. ClientTlsPolicy can be set to specify the authentication for traffic from the proxy to the actual endpoints.
- Create
Time string Time the TcpRoute was created in UTC.
- Description string
A free-text description of the resource. Max length 1024 characters.
- Effective
Labels map[string]string All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Endpoint
Matcher EndpointPolicy Endpoint Matcher Args Required. A matcher that selects endpoints to which the policies should be applied. Structure is documented below.
- Labels map[string]string
Set of label tags associated with the TcpRoute resource. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- Name string
Name of the EndpointPolicy resource.
- Project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Pulumi
Labels map[string]string The combination of labels configured directly on the resource and default labels configured on the provider.
- Server
Tls stringPolicy A URL referring to ServerTlsPolicy resource. ServerTlsPolicy is used to determine the authentication policy to be applied to terminate the inbound traffic at the identified backends.
- Traffic
Port EndpointSelector Policy Traffic Port Selector Args Port selector for the (matched) endpoints. If no port selector is provided, the matched config is applied to all ports. Structure is documented below.
- Type string
The type of endpoint policy. This is primarily used to validate the configuration. Possible values are:
SIDECAR_PROXY
,GRPC_SERVER
.- Update
Time string Time the TcpRoute was updated in UTC.
- String
This field specifies the URL of AuthorizationPolicy resource that applies authorization policies to the inbound traffic at the matched endpoints.
- client
Tls StringPolicy A URL referring to a ClientTlsPolicy resource. ClientTlsPolicy can be set to specify the authentication for traffic from the proxy to the actual endpoints.
- create
Time String Time the TcpRoute was created in UTC.
- description String
A free-text description of the resource. Max length 1024 characters.
- effective
Labels Map<String,String> All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- endpoint
Matcher EndpointPolicy Endpoint Matcher Required. A matcher that selects endpoints to which the policies should be applied. Structure is documented below.
- labels Map<String,String>
Set of label tags associated with the TcpRoute resource. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- name String
Name of the EndpointPolicy resource.
- project String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi
Labels Map<String,String> The combination of labels configured directly on the resource and default labels configured on the provider.
- server
Tls StringPolicy A URL referring to ServerTlsPolicy resource. ServerTlsPolicy is used to determine the authentication policy to be applied to terminate the inbound traffic at the identified backends.
- traffic
Port EndpointSelector Policy Traffic Port Selector Port selector for the (matched) endpoints. If no port selector is provided, the matched config is applied to all ports. Structure is documented below.
- type String
The type of endpoint policy. This is primarily used to validate the configuration. Possible values are:
SIDECAR_PROXY
,GRPC_SERVER
.- update
Time String Time the TcpRoute was updated in UTC.
- string
This field specifies the URL of AuthorizationPolicy resource that applies authorization policies to the inbound traffic at the matched endpoints.
- client
Tls stringPolicy A URL referring to a ClientTlsPolicy resource. ClientTlsPolicy can be set to specify the authentication for traffic from the proxy to the actual endpoints.
- create
Time string Time the TcpRoute was created in UTC.
- description string
A free-text description of the resource. Max length 1024 characters.
- effective
Labels {[key: string]: string} All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- endpoint
Matcher EndpointPolicy Endpoint Matcher Required. A matcher that selects endpoints to which the policies should be applied. Structure is documented below.
- labels {[key: string]: string}
Set of label tags associated with the TcpRoute resource. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- name string
Name of the EndpointPolicy resource.
- project string
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi
Labels {[key: string]: string} The combination of labels configured directly on the resource and default labels configured on the provider.
- server
Tls stringPolicy A URL referring to ServerTlsPolicy resource. ServerTlsPolicy is used to determine the authentication policy to be applied to terminate the inbound traffic at the identified backends.
- traffic
Port EndpointSelector Policy Traffic Port Selector Port selector for the (matched) endpoints. If no port selector is provided, the matched config is applied to all ports. Structure is documented below.
- type string
The type of endpoint policy. This is primarily used to validate the configuration. Possible values are:
SIDECAR_PROXY
,GRPC_SERVER
.- update
Time string Time the TcpRoute was updated in UTC.
- str
This field specifies the URL of AuthorizationPolicy resource that applies authorization policies to the inbound traffic at the matched endpoints.
- client_
tls_ strpolicy A URL referring to a ClientTlsPolicy resource. ClientTlsPolicy can be set to specify the authentication for traffic from the proxy to the actual endpoints.
- create_
time str Time the TcpRoute was created in UTC.
- description str
A free-text description of the resource. Max length 1024 characters.
- effective_
labels Mapping[str, str] All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- endpoint_
matcher EndpointPolicy Endpoint Matcher Args Required. A matcher that selects endpoints to which the policies should be applied. Structure is documented below.
- labels Mapping[str, str]
Set of label tags associated with the TcpRoute resource. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- name str
Name of the EndpointPolicy resource.
- project str
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi_
labels Mapping[str, str] The combination of labels configured directly on the resource and default labels configured on the provider.
- server_
tls_ strpolicy A URL referring to ServerTlsPolicy resource. ServerTlsPolicy is used to determine the authentication policy to be applied to terminate the inbound traffic at the identified backends.
- traffic_
port_ Endpointselector Policy Traffic Port Selector Args Port selector for the (matched) endpoints. If no port selector is provided, the matched config is applied to all ports. Structure is documented below.
- type str
The type of endpoint policy. This is primarily used to validate the configuration. Possible values are:
SIDECAR_PROXY
,GRPC_SERVER
.- update_
time str Time the TcpRoute was updated in UTC.
- String
This field specifies the URL of AuthorizationPolicy resource that applies authorization policies to the inbound traffic at the matched endpoints.
- client
Tls StringPolicy A URL referring to a ClientTlsPolicy resource. ClientTlsPolicy can be set to specify the authentication for traffic from the proxy to the actual endpoints.
- create
Time String Time the TcpRoute was created in UTC.
- description String
A free-text description of the resource. Max length 1024 characters.
- effective
Labels Map<String> All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- endpoint
Matcher Property Map Required. A matcher that selects endpoints to which the policies should be applied. Structure is documented below.
- labels Map<String>
Set of label tags associated with the TcpRoute resource. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field
effective_labels
for all of the labels present on the resource.- name String
Name of the EndpointPolicy resource.
- project String
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi
Labels Map<String> The combination of labels configured directly on the resource and default labels configured on the provider.
- server
Tls StringPolicy A URL referring to ServerTlsPolicy resource. ServerTlsPolicy is used to determine the authentication policy to be applied to terminate the inbound traffic at the identified backends.
- traffic
Port Property MapSelector Port selector for the (matched) endpoints. If no port selector is provided, the matched config is applied to all ports. Structure is documented below.
- type String
The type of endpoint policy. This is primarily used to validate the configuration. Possible values are:
SIDECAR_PROXY
,GRPC_SERVER
.- update
Time String Time the TcpRoute was updated in UTC.
Supporting Types
EndpointPolicyEndpointMatcher, EndpointPolicyEndpointMatcherArgs
- Metadata
Label EndpointMatcher Policy Endpoint Matcher Metadata Label Matcher The matcher is based on node metadata presented by xDS clients. Structure is documented below.
- Metadata
Label EndpointMatcher Policy Endpoint Matcher Metadata Label Matcher The matcher is based on node metadata presented by xDS clients. Structure is documented below.
- metadata
Label EndpointMatcher Policy Endpoint Matcher Metadata Label Matcher The matcher is based on node metadata presented by xDS clients. Structure is documented below.
- metadata
Label EndpointMatcher Policy Endpoint Matcher Metadata Label Matcher The matcher is based on node metadata presented by xDS clients. Structure is documented below.
- metadata_
label_ Endpointmatcher Policy Endpoint Matcher Metadata Label Matcher The matcher is based on node metadata presented by xDS clients. Structure is documented below.
- metadata
Label Property MapMatcher The matcher is based on node metadata presented by xDS clients. Structure is documented below.
EndpointPolicyEndpointMatcherMetadataLabelMatcher, EndpointPolicyEndpointMatcherMetadataLabelMatcherArgs
- Metadata
Label stringMatch Criteria Specifies how matching should be done. Possible values are:
MATCH_ANY
,MATCH_ALL
.- Metadata
Labels List<EndpointPolicy Endpoint Matcher Metadata Label Matcher Metadata Label> The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria Structure is documented below.
- Metadata
Label stringMatch Criteria Specifies how matching should be done. Possible values are:
MATCH_ANY
,MATCH_ALL
.- Metadata
Labels []EndpointPolicy Endpoint Matcher Metadata Label Matcher Metadata Label The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria Structure is documented below.
- metadata
Label StringMatch Criteria Specifies how matching should be done. Possible values are:
MATCH_ANY
,MATCH_ALL
.- metadata
Labels List<EndpointPolicy Endpoint Matcher Metadata Label Matcher Metadata Label> The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria Structure is documented below.
- metadata
Label stringMatch Criteria Specifies how matching should be done. Possible values are:
MATCH_ANY
,MATCH_ALL
.- metadata
Labels EndpointPolicy Endpoint Matcher Metadata Label Matcher Metadata Label[] The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria Structure is documented below.
- metadata_
label_ strmatch_ criteria Specifies how matching should be done. Possible values are:
MATCH_ANY
,MATCH_ALL
.- metadata_
labels Sequence[EndpointPolicy Endpoint Matcher Metadata Label Matcher Metadata Label] The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria Structure is documented below.
- metadata
Label StringMatch Criteria Specifies how matching should be done. Possible values are:
MATCH_ANY
,MATCH_ALL
.- metadata
Labels List<Property Map> The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria Structure is documented below.
EndpointPolicyEndpointMatcherMetadataLabelMatcherMetadataLabel, EndpointPolicyEndpointMatcherMetadataLabelMatcherMetadataLabelArgs
- Label
Name string Required. Label name presented as key in xDS Node Metadata.
- Label
Value string Required. Label value presented as value corresponding to the above key, in xDS Node Metadata.
- Label
Name string Required. Label name presented as key in xDS Node Metadata.
- Label
Value string Required. Label value presented as value corresponding to the above key, in xDS Node Metadata.
- label
Name String Required. Label name presented as key in xDS Node Metadata.
- label
Value String Required. Label value presented as value corresponding to the above key, in xDS Node Metadata.
- label
Name string Required. Label name presented as key in xDS Node Metadata.
- label
Value string Required. Label value presented as value corresponding to the above key, in xDS Node Metadata.
- label_
name str Required. Label name presented as key in xDS Node Metadata.
- label_
value str Required. Label value presented as value corresponding to the above key, in xDS Node Metadata.
- label
Name String Required. Label name presented as key in xDS Node Metadata.
- label
Value String Required. Label value presented as value corresponding to the above key, in xDS Node Metadata.
EndpointPolicyTrafficPortSelector, EndpointPolicyTrafficPortSelectorArgs
- Ports List<string>
List of ports. Can be port numbers or port range (example, [80-90] specifies all ports from 80 to 90, including 80 and 90) or named ports or * to specify all ports. If the list is empty, all ports are selected.
- Ports []string
List of ports. Can be port numbers or port range (example, [80-90] specifies all ports from 80 to 90, including 80 and 90) or named ports or * to specify all ports. If the list is empty, all ports are selected.
- ports List<String>
List of ports. Can be port numbers or port range (example, [80-90] specifies all ports from 80 to 90, including 80 and 90) or named ports or * to specify all ports. If the list is empty, all ports are selected.
- ports string[]
List of ports. Can be port numbers or port range (example, [80-90] specifies all ports from 80 to 90, including 80 and 90) or named ports or * to specify all ports. If the list is empty, all ports are selected.
- ports Sequence[str]
List of ports. Can be port numbers or port range (example, [80-90] specifies all ports from 80 to 90, including 80 and 90) or named ports or * to specify all ports. If the list is empty, all ports are selected.
- ports List<String>
List of ports. Can be port numbers or port range (example, [80-90] specifies all ports from 80 to 90, including 80 and 90) or named ports or * to specify all ports. If the list is empty, all ports are selected.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
google-beta
Terraform Provider.