ibm.IsPrivatePathServiceGatewayEndpointGatewayBindingOperations
Explore with Pulumi AI
Provides a resource for ibm_is_private_path_service_gateway_endpoint_gateway_binding_operations. This allows permitting or denying endpoint gateway bindings.
Example Usage
Permit All The Pending Endpoint Gateway Bindings
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
export = async () => {
const example = new ibm.IsPrivatePathServiceGateway("example", {
defaultAccessPolicy: "review",
loadBalancer: ibm_is_lb.testacc_LB.id,
zonalAffinity: true,
serviceEndpoints: ["myexamplefqdn"],
});
const bindings = await ibm.getIsPrivatePathServiceGatewayEndpointGatewayBindings({
account: "7f75c7b025e54bc5635f754b2f888665",
status: "pending",
privatePathServiceGateway: ibm_is_private_path_service_gateway.ppsg.id,
});
const policy: ibm.IsPrivatePathServiceGatewayEndpointGatewayBindingOperations[] = [];
for (const range = {value: 0}; range.value < bindings.endpointGatewayBindings.length; range.value++) {
policy.push(new ibm.IsPrivatePathServiceGatewayEndpointGatewayBindingOperations(`policy-${range.value}`, {
accessPolicy: "permit",
endpointGatewayBinding: bindings.endpointGatewayBindings[range.value].id,
privatePathServiceGateway: ibm_is_private_path_service_gateway.ppsg.id,
}));
}
}
import pulumi
import pulumi_ibm as ibm
example = ibm.IsPrivatePathServiceGateway("example",
default_access_policy="review",
load_balancer=ibm_is_lb["testacc_LB"]["id"],
zonal_affinity=True,
service_endpoints=["myexamplefqdn"])
bindings = ibm.get_is_private_path_service_gateway_endpoint_gateway_bindings(account="7f75c7b025e54bc5635f754b2f888665",
status="pending",
private_path_service_gateway=ibm_is_private_path_service_gateway["ppsg"]["id"])
policy = []
for range in [{"value": i} for i in range(0, len(bindings.endpoint_gateway_bindings))]:
policy.append(ibm.IsPrivatePathServiceGatewayEndpointGatewayBindingOperations(f"policy-{range['value']}",
access_policy="permit",
endpoint_gateway_binding=bindings.endpoint_gateway_bindings[range["value"]].id,
private_path_service_gateway=ibm_is_private_path_service_gateway["ppsg"]["id"]))
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ibm.NewIsPrivatePathServiceGateway(ctx, "example", &ibm.IsPrivatePathServiceGatewayArgs{
DefaultAccessPolicy: pulumi.String("review"),
LoadBalancer: pulumi.Any(ibm_is_lb.Testacc_LB.Id),
ZonalAffinity: pulumi.Bool(true),
ServiceEndpoints: pulumi.StringArray{
pulumi.String("myexamplefqdn"),
},
})
if err != nil {
return err
}
bindings, err := ibm.GetIsPrivatePathServiceGatewayEndpointGatewayBindings(ctx, &ibm.GetIsPrivatePathServiceGatewayEndpointGatewayBindingsArgs{
Account: pulumi.StringRef("7f75c7b025e54bc5635f754b2f888665"),
Status: pulumi.StringRef("pending"),
PrivatePathServiceGateway: ibm_is_private_path_service_gateway.Ppsg.Id,
}, nil)
if err != nil {
return err
}
var policy []*ibm.IsPrivatePathServiceGatewayEndpointGatewayBindingOperations
for index := 0; index < int(len(bindings.EndpointGatewayBindings)); index++ {
key0 := index
val0 := index
__res, err := ibm.NewIsPrivatePathServiceGatewayEndpointGatewayBindingOperations(ctx, fmt.Sprintf("policy-%v", key0), &ibm.IsPrivatePathServiceGatewayEndpointGatewayBindingOperationsArgs{
AccessPolicy: pulumi.String("permit"),
EndpointGatewayBinding: bindings.EndpointGatewayBindings[val0].Id,
PrivatePathServiceGateway: pulumi.Any(ibm_is_private_path_service_gateway.Ppsg.Id),
})
if err != nil {
return err
}
policy = append(policy, __res)
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(async() =>
{
var example = new Ibm.IsPrivatePathServiceGateway("example", new()
{
DefaultAccessPolicy = "review",
LoadBalancer = ibm_is_lb.Testacc_LB.Id,
ZonalAffinity = true,
ServiceEndpoints = new[]
{
"myexamplefqdn",
},
});
var bindings = await Ibm.GetIsPrivatePathServiceGatewayEndpointGatewayBindings.InvokeAsync(new()
{
Account = "7f75c7b025e54bc5635f754b2f888665",
Status = "pending",
PrivatePathServiceGateway = ibm_is_private_path_service_gateway.Ppsg.Id,
});
var policy = new List<Ibm.IsPrivatePathServiceGatewayEndpointGatewayBindingOperations>();
for (var rangeIndex = 0; rangeIndex < bindings.EndpointGatewayBindings.Length; rangeIndex++)
{
var range = new { Value = rangeIndex };
policy.Add(new Ibm.IsPrivatePathServiceGatewayEndpointGatewayBindingOperations($"policy-{range.Value}", new()
{
AccessPolicy = "permit",
EndpointGatewayBinding = bindings.EndpointGatewayBindings[range.Value].Id,
PrivatePathServiceGateway = ibm_is_private_path_service_gateway.Ppsg.Id,
}));
}
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IsPrivatePathServiceGateway;
import com.pulumi.ibm.IsPrivatePathServiceGatewayArgs;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetIsPrivatePathServiceGatewayEndpointGatewayBindingsArgs;
import com.pulumi.ibm.IsPrivatePathServiceGatewayEndpointGatewayBindingOperations;
import com.pulumi.ibm.IsPrivatePathServiceGatewayEndpointGatewayBindingOperationsArgs;
import com.pulumi.codegen.internal.KeyedValue;
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 example = new IsPrivatePathServiceGateway("example", IsPrivatePathServiceGatewayArgs.builder()
.defaultAccessPolicy("review")
.loadBalancer(ibm_is_lb.testacc_LB().id())
.zonalAffinity(true)
.serviceEndpoints("myexamplefqdn")
.build());
final var bindings = IbmFunctions.getIsPrivatePathServiceGatewayEndpointGatewayBindings(GetIsPrivatePathServiceGatewayEndpointGatewayBindingsArgs.builder()
.account("7f75c7b025e54bc5635f754b2f888665")
.status("pending")
.privatePathServiceGateway(ibm_is_private_path_service_gateway.ppsg().id())
.build());
for (var i = 0; i < bindings.applyValue(getIsPrivatePathServiceGatewayEndpointGatewayBindingsResult -> getIsPrivatePathServiceGatewayEndpointGatewayBindingsResult.endpointGatewayBindings()).length(); i++) {
new IsPrivatePathServiceGatewayEndpointGatewayBindingOperations("policy-" + i, IsPrivatePathServiceGatewayEndpointGatewayBindingOperationsArgs.builder()
.accessPolicy("permit")
.endpointGatewayBinding(bindings.applyValue(getIsPrivatePathServiceGatewayEndpointGatewayBindingsResult -> getIsPrivatePathServiceGatewayEndpointGatewayBindingsResult.endpointGatewayBindings())[range.value()].id())
.privatePathServiceGateway(ibm_is_private_path_service_gateway.ppsg().id())
.build());
}
}
}
Coming soon!
Create IsPrivatePathServiceGatewayEndpointGatewayBindingOperations Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IsPrivatePathServiceGatewayEndpointGatewayBindingOperations(name: string, args: IsPrivatePathServiceGatewayEndpointGatewayBindingOperationsArgs, opts?: CustomResourceOptions);
@overload
def IsPrivatePathServiceGatewayEndpointGatewayBindingOperations(resource_name: str,
args: IsPrivatePathServiceGatewayEndpointGatewayBindingOperationsArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IsPrivatePathServiceGatewayEndpointGatewayBindingOperations(resource_name: str,
opts: Optional[ResourceOptions] = None,
access_policy: Optional[str] = None,
endpoint_gateway_binding: Optional[str] = None,
private_path_service_gateway: Optional[str] = None,
is_private_path_service_gateway_endpoint_gateway_binding_operations_id: Optional[str] = None)
func NewIsPrivatePathServiceGatewayEndpointGatewayBindingOperations(ctx *Context, name string, args IsPrivatePathServiceGatewayEndpointGatewayBindingOperationsArgs, opts ...ResourceOption) (*IsPrivatePathServiceGatewayEndpointGatewayBindingOperations, error)
public IsPrivatePathServiceGatewayEndpointGatewayBindingOperations(string name, IsPrivatePathServiceGatewayEndpointGatewayBindingOperationsArgs args, CustomResourceOptions? opts = null)
public IsPrivatePathServiceGatewayEndpointGatewayBindingOperations(String name, IsPrivatePathServiceGatewayEndpointGatewayBindingOperationsArgs args)
public IsPrivatePathServiceGatewayEndpointGatewayBindingOperations(String name, IsPrivatePathServiceGatewayEndpointGatewayBindingOperationsArgs args, CustomResourceOptions options)
type: ibm:IsPrivatePathServiceGatewayEndpointGatewayBindingOperations
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args IsPrivatePathServiceGatewayEndpointGatewayBindingOperationsArgs
- 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 IsPrivatePathServiceGatewayEndpointGatewayBindingOperationsArgs
- 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 IsPrivatePathServiceGatewayEndpointGatewayBindingOperationsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IsPrivatePathServiceGatewayEndpointGatewayBindingOperationsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IsPrivatePathServiceGatewayEndpointGatewayBindingOperationsArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var isPrivatePathServiceGatewayEndpointGatewayBindingOperationsResource = new Ibm.IsPrivatePathServiceGatewayEndpointGatewayBindingOperations("isPrivatePathServiceGatewayEndpointGatewayBindingOperationsResource", new()
{
AccessPolicy = "string",
EndpointGatewayBinding = "string",
PrivatePathServiceGateway = "string",
IsPrivatePathServiceGatewayEndpointGatewayBindingOperationsId = "string",
});
example, err := ibm.NewIsPrivatePathServiceGatewayEndpointGatewayBindingOperations(ctx, "isPrivatePathServiceGatewayEndpointGatewayBindingOperationsResource", &ibm.IsPrivatePathServiceGatewayEndpointGatewayBindingOperationsArgs{
AccessPolicy: pulumi.String("string"),
EndpointGatewayBinding: pulumi.String("string"),
PrivatePathServiceGateway: pulumi.String("string"),
IsPrivatePathServiceGatewayEndpointGatewayBindingOperationsId: pulumi.String("string"),
})
var isPrivatePathServiceGatewayEndpointGatewayBindingOperationsResource = new IsPrivatePathServiceGatewayEndpointGatewayBindingOperations("isPrivatePathServiceGatewayEndpointGatewayBindingOperationsResource", IsPrivatePathServiceGatewayEndpointGatewayBindingOperationsArgs.builder()
.accessPolicy("string")
.endpointGatewayBinding("string")
.privatePathServiceGateway("string")
.isPrivatePathServiceGatewayEndpointGatewayBindingOperationsId("string")
.build());
is_private_path_service_gateway_endpoint_gateway_binding_operations_resource = ibm.IsPrivatePathServiceGatewayEndpointGatewayBindingOperations("isPrivatePathServiceGatewayEndpointGatewayBindingOperationsResource",
access_policy="string",
endpoint_gateway_binding="string",
private_path_service_gateway="string",
is_private_path_service_gateway_endpoint_gateway_binding_operations_id="string")
const isPrivatePathServiceGatewayEndpointGatewayBindingOperationsResource = new ibm.IsPrivatePathServiceGatewayEndpointGatewayBindingOperations("isPrivatePathServiceGatewayEndpointGatewayBindingOperationsResource", {
accessPolicy: "string",
endpointGatewayBinding: "string",
privatePathServiceGateway: "string",
isPrivatePathServiceGatewayEndpointGatewayBindingOperationsId: "string",
});
type: ibm:IsPrivatePathServiceGatewayEndpointGatewayBindingOperations
properties:
accessPolicy: string
endpointGatewayBinding: string
isPrivatePathServiceGatewayEndpointGatewayBindingOperationsId: string
privatePathServiceGateway: string
IsPrivatePathServiceGatewayEndpointGatewayBindingOperations Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The IsPrivatePathServiceGatewayEndpointGatewayBindingOperations resource accepts the following input properties:
- Access
Policy string - The access policy for the endpoint gateway binding:- permit: access will be permitted- deny: access will be denied. Allowable values are:
deny
,permit
. - Endpoint
Gateway stringBinding - ID of the endpoint gateway binding
- Private
Path stringService Gateway - The private path service gateway identifier.
- Is
Private stringPath Service Gateway Endpoint Gateway Binding Operations Id
- Access
Policy string - The access policy for the endpoint gateway binding:- permit: access will be permitted- deny: access will be denied. Allowable values are:
deny
,permit
. - Endpoint
Gateway stringBinding - ID of the endpoint gateway binding
- Private
Path stringService Gateway - The private path service gateway identifier.
- Is
Private stringPath Service Gateway Endpoint Gateway Binding Operations Id
- access
Policy String - The access policy for the endpoint gateway binding:- permit: access will be permitted- deny: access will be denied. Allowable values are:
deny
,permit
. - endpoint
Gateway StringBinding - ID of the endpoint gateway binding
- private
Path StringService Gateway - The private path service gateway identifier.
- is
Private StringPath Service Gateway Endpoint Gateway Binding Operations Id
- access
Policy string - The access policy for the endpoint gateway binding:- permit: access will be permitted- deny: access will be denied. Allowable values are:
deny
,permit
. - endpoint
Gateway stringBinding - ID of the endpoint gateway binding
- private
Path stringService Gateway - The private path service gateway identifier.
- is
Private stringPath Service Gateway Endpoint Gateway Binding Operations Id
- access_
policy str - The access policy for the endpoint gateway binding:- permit: access will be permitted- deny: access will be denied. Allowable values are:
deny
,permit
. - endpoint_
gateway_ strbinding - ID of the endpoint gateway binding
- private_
path_ strservice_ gateway - The private path service gateway identifier.
- is_
private_ strpath_ service_ gateway_ endpoint_ gateway_ binding_ operations_ id
- access
Policy String - The access policy for the endpoint gateway binding:- permit: access will be permitted- deny: access will be denied. Allowable values are:
deny
,permit
. - endpoint
Gateway StringBinding - ID of the endpoint gateway binding
- private
Path StringService Gateway - The private path service gateway identifier.
- is
Private StringPath Service Gateway Endpoint Gateway Binding Operations Id
Outputs
All input properties are implicitly available as output properties. Additionally, the IsPrivatePathServiceGatewayEndpointGatewayBindingOperations resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing IsPrivatePathServiceGatewayEndpointGatewayBindingOperations Resource
Get an existing IsPrivatePathServiceGatewayEndpointGatewayBindingOperations 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?: IsPrivatePathServiceGatewayEndpointGatewayBindingOperationsState, opts?: CustomResourceOptions): IsPrivatePathServiceGatewayEndpointGatewayBindingOperations
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_policy: Optional[str] = None,
endpoint_gateway_binding: Optional[str] = None,
is_private_path_service_gateway_endpoint_gateway_binding_operations_id: Optional[str] = None,
private_path_service_gateway: Optional[str] = None) -> IsPrivatePathServiceGatewayEndpointGatewayBindingOperations
func GetIsPrivatePathServiceGatewayEndpointGatewayBindingOperations(ctx *Context, name string, id IDInput, state *IsPrivatePathServiceGatewayEndpointGatewayBindingOperationsState, opts ...ResourceOption) (*IsPrivatePathServiceGatewayEndpointGatewayBindingOperations, error)
public static IsPrivatePathServiceGatewayEndpointGatewayBindingOperations Get(string name, Input<string> id, IsPrivatePathServiceGatewayEndpointGatewayBindingOperationsState? state, CustomResourceOptions? opts = null)
public static IsPrivatePathServiceGatewayEndpointGatewayBindingOperations get(String name, Output<String> id, IsPrivatePathServiceGatewayEndpointGatewayBindingOperationsState state, CustomResourceOptions options)
resources: _: type: ibm:IsPrivatePathServiceGatewayEndpointGatewayBindingOperations get: id: ${id}
- 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.
- Access
Policy string - The access policy for the endpoint gateway binding:- permit: access will be permitted- deny: access will be denied. Allowable values are:
deny
,permit
. - Endpoint
Gateway stringBinding - ID of the endpoint gateway binding
- Is
Private stringPath Service Gateway Endpoint Gateway Binding Operations Id - Private
Path stringService Gateway - The private path service gateway identifier.
- Access
Policy string - The access policy for the endpoint gateway binding:- permit: access will be permitted- deny: access will be denied. Allowable values are:
deny
,permit
. - Endpoint
Gateway stringBinding - ID of the endpoint gateway binding
- Is
Private stringPath Service Gateway Endpoint Gateway Binding Operations Id - Private
Path stringService Gateway - The private path service gateway identifier.
- access
Policy String - The access policy for the endpoint gateway binding:- permit: access will be permitted- deny: access will be denied. Allowable values are:
deny
,permit
. - endpoint
Gateway StringBinding - ID of the endpoint gateway binding
- is
Private StringPath Service Gateway Endpoint Gateway Binding Operations Id - private
Path StringService Gateway - The private path service gateway identifier.
- access
Policy string - The access policy for the endpoint gateway binding:- permit: access will be permitted- deny: access will be denied. Allowable values are:
deny
,permit
. - endpoint
Gateway stringBinding - ID of the endpoint gateway binding
- is
Private stringPath Service Gateway Endpoint Gateway Binding Operations Id - private
Path stringService Gateway - The private path service gateway identifier.
- access_
policy str - The access policy for the endpoint gateway binding:- permit: access will be permitted- deny: access will be denied. Allowable values are:
deny
,permit
. - endpoint_
gateway_ strbinding - ID of the endpoint gateway binding
- is_
private_ strpath_ service_ gateway_ endpoint_ gateway_ binding_ operations_ id - private_
path_ strservice_ gateway - The private path service gateway identifier.
- access
Policy String - The access policy for the endpoint gateway binding:- permit: access will be permitted- deny: access will be denied. Allowable values are:
deny
,permit
. - endpoint
Gateway StringBinding - ID of the endpoint gateway binding
- is
Private StringPath Service Gateway Endpoint Gateway Binding Operations Id - private
Path StringService Gateway - The private path service gateway identifier.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.