1. Packages
  2. Ibm Provider
  3. API Docs
  4. IsPrivatePathServiceGatewayOperations
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.IsPrivatePathServiceGatewayOperations

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Provides a resource for ibm_is_private_path_service_gateway_operations. This allows publishing or unpublishing the PPSG.

    Example Usage

    Publish A PPSG.

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const example = new ibm.IsPrivatePathServiceGateway("example", {
        defaultAccessPolicy: "permit",
        loadBalancer: ibm_is_lb.testacc_LB.id,
        zonalAffinity: true,
        serviceEndpoints: ["myexamplefqdn"],
    });
    const publish = new ibm.IsPrivatePathServiceGatewayOperations("publish", {
        published: true,
        privatePathServiceGateway: ibm_is_private_path_service_gateway.ppsg.id,
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    example = ibm.IsPrivatePathServiceGateway("example",
        default_access_policy="permit",
        load_balancer=ibm_is_lb["testacc_LB"]["id"],
        zonal_affinity=True,
        service_endpoints=["myexamplefqdn"])
    publish = ibm.IsPrivatePathServiceGatewayOperations("publish",
        published=True,
        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("permit"),
    			LoadBalancer:        pulumi.Any(ibm_is_lb.Testacc_LB.Id),
    			ZonalAffinity:       pulumi.Bool(true),
    			ServiceEndpoints: pulumi.StringArray{
    				pulumi.String("myexamplefqdn"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = ibm.NewIsPrivatePathServiceGatewayOperations(ctx, "publish", &ibm.IsPrivatePathServiceGatewayOperationsArgs{
    			Published:                 pulumi.Bool(true),
    			PrivatePathServiceGateway: pulumi.Any(ibm_is_private_path_service_gateway.Ppsg.Id),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ibm = Pulumi.Ibm;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Ibm.IsPrivatePathServiceGateway("example", new()
        {
            DefaultAccessPolicy = "permit",
            LoadBalancer = ibm_is_lb.Testacc_LB.Id,
            ZonalAffinity = true,
            ServiceEndpoints = new[]
            {
                "myexamplefqdn",
            },
        });
    
        var publish = new Ibm.IsPrivatePathServiceGatewayOperations("publish", new()
        {
            Published = true,
            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.IsPrivatePathServiceGatewayOperations;
    import com.pulumi.ibm.IsPrivatePathServiceGatewayOperationsArgs;
    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("permit")
                .loadBalancer(ibm_is_lb.testacc_LB().id())
                .zonalAffinity(true)
                .serviceEndpoints("myexamplefqdn")
                .build());
    
            var publish = new IsPrivatePathServiceGatewayOperations("publish", IsPrivatePathServiceGatewayOperationsArgs.builder()
                .published(true)
                .privatePathServiceGateway(ibm_is_private_path_service_gateway.ppsg().id())
                .build());
    
        }
    }
    
    resources:
      example:
        type: ibm:IsPrivatePathServiceGateway
        properties:
          defaultAccessPolicy: permit
          loadBalancer: ${ibm_is_lb.testacc_LB.id}
          zonalAffinity: true
          serviceEndpoints:
            - myexamplefqdn
      publish:
        type: ibm:IsPrivatePathServiceGatewayOperations
        properties:
          published: true
          privatePathServiceGateway: ${ibm_is_private_path_service_gateway.ppsg.id}
    

    Unpublish A PPSG.

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const example = new ibm.IsPrivatePathServiceGateway("example", {
        defaultAccessPolicy: "permit",
        loadBalancer: ibm_is_lb.testacc_LB.id,
        zonalAffinity: true,
        serviceEndpoints: ["myexamplefqdn"],
    });
    const publish = new ibm.IsPrivatePathServiceGatewayOperations("publish", {
        published: false,
        privatePathServiceGateway: ibm_is_private_path_service_gateway.ppsg.id,
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    example = ibm.IsPrivatePathServiceGateway("example",
        default_access_policy="permit",
        load_balancer=ibm_is_lb["testacc_LB"]["id"],
        zonal_affinity=True,
        service_endpoints=["myexamplefqdn"])
    publish = ibm.IsPrivatePathServiceGatewayOperations("publish",
        published=False,
        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("permit"),
    			LoadBalancer:        pulumi.Any(ibm_is_lb.Testacc_LB.Id),
    			ZonalAffinity:       pulumi.Bool(true),
    			ServiceEndpoints: pulumi.StringArray{
    				pulumi.String("myexamplefqdn"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = ibm.NewIsPrivatePathServiceGatewayOperations(ctx, "publish", &ibm.IsPrivatePathServiceGatewayOperationsArgs{
    			Published:                 pulumi.Bool(false),
    			PrivatePathServiceGateway: pulumi.Any(ibm_is_private_path_service_gateway.Ppsg.Id),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ibm = Pulumi.Ibm;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Ibm.IsPrivatePathServiceGateway("example", new()
        {
            DefaultAccessPolicy = "permit",
            LoadBalancer = ibm_is_lb.Testacc_LB.Id,
            ZonalAffinity = true,
            ServiceEndpoints = new[]
            {
                "myexamplefqdn",
            },
        });
    
        var publish = new Ibm.IsPrivatePathServiceGatewayOperations("publish", new()
        {
            Published = false,
            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.IsPrivatePathServiceGatewayOperations;
    import com.pulumi.ibm.IsPrivatePathServiceGatewayOperationsArgs;
    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("permit")
                .loadBalancer(ibm_is_lb.testacc_LB().id())
                .zonalAffinity(true)
                .serviceEndpoints("myexamplefqdn")
                .build());
    
            var publish = new IsPrivatePathServiceGatewayOperations("publish", IsPrivatePathServiceGatewayOperationsArgs.builder()
                .published(false)
                .privatePathServiceGateway(ibm_is_private_path_service_gateway.ppsg().id())
                .build());
    
        }
    }
    
    resources:
      example:
        type: ibm:IsPrivatePathServiceGateway
        properties:
          defaultAccessPolicy: permit
          loadBalancer: ${ibm_is_lb.testacc_LB.id}
          zonalAffinity: true
          serviceEndpoints:
            - myexamplefqdn
      publish:
        type: ibm:IsPrivatePathServiceGatewayOperations
        properties:
          published: false
          privatePathServiceGateway: ${ibm_is_private_path_service_gateway.ppsg.id}
    

    Create IsPrivatePathServiceGatewayOperations Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new IsPrivatePathServiceGatewayOperations(name: string, args: IsPrivatePathServiceGatewayOperationsArgs, opts?: CustomResourceOptions);
    @overload
    def IsPrivatePathServiceGatewayOperations(resource_name: str,
                                              args: IsPrivatePathServiceGatewayOperationsArgs,
                                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def IsPrivatePathServiceGatewayOperations(resource_name: str,
                                              opts: Optional[ResourceOptions] = None,
                                              private_path_service_gateway: Optional[str] = None,
                                              published: Optional[bool] = None,
                                              is_private_path_service_gateway_operations_id: Optional[str] = None)
    func NewIsPrivatePathServiceGatewayOperations(ctx *Context, name string, args IsPrivatePathServiceGatewayOperationsArgs, opts ...ResourceOption) (*IsPrivatePathServiceGatewayOperations, error)
    public IsPrivatePathServiceGatewayOperations(string name, IsPrivatePathServiceGatewayOperationsArgs args, CustomResourceOptions? opts = null)
    public IsPrivatePathServiceGatewayOperations(String name, IsPrivatePathServiceGatewayOperationsArgs args)
    public IsPrivatePathServiceGatewayOperations(String name, IsPrivatePathServiceGatewayOperationsArgs args, CustomResourceOptions options)
    
    type: ibm:IsPrivatePathServiceGatewayOperations
    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 IsPrivatePathServiceGatewayOperationsArgs
    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 IsPrivatePathServiceGatewayOperationsArgs
    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 IsPrivatePathServiceGatewayOperationsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IsPrivatePathServiceGatewayOperationsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IsPrivatePathServiceGatewayOperationsArgs
    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 isPrivatePathServiceGatewayOperationsResource = new Ibm.IsPrivatePathServiceGatewayOperations("isPrivatePathServiceGatewayOperationsResource", new()
    {
        PrivatePathServiceGateway = "string",
        Published = false,
        IsPrivatePathServiceGatewayOperationsId = "string",
    });
    
    example, err := ibm.NewIsPrivatePathServiceGatewayOperations(ctx, "isPrivatePathServiceGatewayOperationsResource", &ibm.IsPrivatePathServiceGatewayOperationsArgs{
    	PrivatePathServiceGateway:               pulumi.String("string"),
    	Published:                               pulumi.Bool(false),
    	IsPrivatePathServiceGatewayOperationsId: pulumi.String("string"),
    })
    
    var isPrivatePathServiceGatewayOperationsResource = new IsPrivatePathServiceGatewayOperations("isPrivatePathServiceGatewayOperationsResource", IsPrivatePathServiceGatewayOperationsArgs.builder()
        .privatePathServiceGateway("string")
        .published(false)
        .isPrivatePathServiceGatewayOperationsId("string")
        .build());
    
    is_private_path_service_gateway_operations_resource = ibm.IsPrivatePathServiceGatewayOperations("isPrivatePathServiceGatewayOperationsResource",
        private_path_service_gateway="string",
        published=False,
        is_private_path_service_gateway_operations_id="string")
    
    const isPrivatePathServiceGatewayOperationsResource = new ibm.IsPrivatePathServiceGatewayOperations("isPrivatePathServiceGatewayOperationsResource", {
        privatePathServiceGateway: "string",
        published: false,
        isPrivatePathServiceGatewayOperationsId: "string",
    });
    
    type: ibm:IsPrivatePathServiceGatewayOperations
    properties:
        isPrivatePathServiceGatewayOperationsId: string
        privatePathServiceGateway: string
        published: false
    

    IsPrivatePathServiceGatewayOperations 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 IsPrivatePathServiceGatewayOperations resource accepts the following input properties:

    PrivatePathServiceGateway string
    The private path service gateway identifier.
    Published bool
    Boolean to specify whether to publish or unpublish the PPSG.
    IsPrivatePathServiceGatewayOperationsId string
    PrivatePathServiceGateway string
    The private path service gateway identifier.
    Published bool
    Boolean to specify whether to publish or unpublish the PPSG.
    IsPrivatePathServiceGatewayOperationsId string
    privatePathServiceGateway String
    The private path service gateway identifier.
    published Boolean
    Boolean to specify whether to publish or unpublish the PPSG.
    isPrivatePathServiceGatewayOperationsId String
    privatePathServiceGateway string
    The private path service gateway identifier.
    published boolean
    Boolean to specify whether to publish or unpublish the PPSG.
    isPrivatePathServiceGatewayOperationsId string
    private_path_service_gateway str
    The private path service gateway identifier.
    published bool
    Boolean to specify whether to publish or unpublish the PPSG.
    is_private_path_service_gateway_operations_id str
    privatePathServiceGateway String
    The private path service gateway identifier.
    published Boolean
    Boolean to specify whether to publish or unpublish the PPSG.
    isPrivatePathServiceGatewayOperationsId String

    Outputs

    All input properties are implicitly available as output properties. Additionally, the IsPrivatePathServiceGatewayOperations 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 IsPrivatePathServiceGatewayOperations Resource

    Get an existing IsPrivatePathServiceGatewayOperations 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?: IsPrivatePathServiceGatewayOperationsState, opts?: CustomResourceOptions): IsPrivatePathServiceGatewayOperations
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            is_private_path_service_gateway_operations_id: Optional[str] = None,
            private_path_service_gateway: Optional[str] = None,
            published: Optional[bool] = None) -> IsPrivatePathServiceGatewayOperations
    func GetIsPrivatePathServiceGatewayOperations(ctx *Context, name string, id IDInput, state *IsPrivatePathServiceGatewayOperationsState, opts ...ResourceOption) (*IsPrivatePathServiceGatewayOperations, error)
    public static IsPrivatePathServiceGatewayOperations Get(string name, Input<string> id, IsPrivatePathServiceGatewayOperationsState? state, CustomResourceOptions? opts = null)
    public static IsPrivatePathServiceGatewayOperations get(String name, Output<String> id, IsPrivatePathServiceGatewayOperationsState state, CustomResourceOptions options)
    resources:  _:    type: ibm:IsPrivatePathServiceGatewayOperations    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.
    The following state arguments are supported:
    IsPrivatePathServiceGatewayOperationsId string
    PrivatePathServiceGateway string
    The private path service gateway identifier.
    Published bool
    Boolean to specify whether to publish or unpublish the PPSG.
    IsPrivatePathServiceGatewayOperationsId string
    PrivatePathServiceGateway string
    The private path service gateway identifier.
    Published bool
    Boolean to specify whether to publish or unpublish the PPSG.
    isPrivatePathServiceGatewayOperationsId String
    privatePathServiceGateway String
    The private path service gateway identifier.
    published Boolean
    Boolean to specify whether to publish or unpublish the PPSG.
    isPrivatePathServiceGatewayOperationsId string
    privatePathServiceGateway string
    The private path service gateway identifier.
    published boolean
    Boolean to specify whether to publish or unpublish the PPSG.
    is_private_path_service_gateway_operations_id str
    private_path_service_gateway str
    The private path service gateway identifier.
    published bool
    Boolean to specify whether to publish or unpublish the PPSG.
    isPrivatePathServiceGatewayOperationsId String
    privatePathServiceGateway String
    The private path service gateway identifier.
    published Boolean
    Boolean to specify whether to publish or unpublish the PPSG.

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud