1. Packages
  2. Ibm Provider
  3. API Docs
  4. getIsPrivatePathServiceGatewayAccountPolicies
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

ibm.getIsPrivatePathServiceGatewayAccountPolicies

Explore with Pulumi AI

Provides a read-only data source for PrivatePathServiceGatewayAccountPolicyCollection. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";

const exampleIsVpc = new ibm.IsVpc("exampleIsVpc", {});
const exampleIsSubnet = new ibm.IsSubnet("exampleIsSubnet", {
    vpc: exampleIsVpc.isVpcId,
    zone: "us-south-2",
    ipv4CidrBlock: "10.240.0.0/24",
});
const exampleIsLb = new ibm.IsLb("exampleIsLb", {subnets: [exampleIsSubnet.isSubnetId]});
const exampleIsPrivatePathServiceGateway = new ibm.IsPrivatePathServiceGateway("exampleIsPrivatePathServiceGateway", {
    defaultAccessPolicy: "review",
    loadBalancer: exampleIsLb.isLbId,
    zonalAffinity: true,
    serviceEndpoints: ["example-fqdn"],
});
const exampleIsPrivatePathServiceGatewayAccountPolicy = new ibm.IsPrivatePathServiceGatewayAccountPolicy("exampleIsPrivatePathServiceGatewayAccountPolicy", {
    privatePathServiceGateway: exampleIsPrivatePathServiceGateway.isPrivatePathServiceGatewayId,
    accessPolicy: "review",
    account: "fee82deba12e4c0fb69c3b09d1f12345",
});
const exampleIsPrivatePathServiceGatewayAccountPolicies = ibm.getIsPrivatePathServiceGatewayAccountPoliciesOutput({
    privatePathServiceGateway: exampleIsPrivatePathServiceGateway.isPrivatePathServiceGatewayId,
    account: "fee82deba12e4c0fb69c3b09d1f12345",
});
Copy
import pulumi
import pulumi_ibm as ibm

example_is_vpc = ibm.IsVpc("exampleIsVpc")
example_is_subnet = ibm.IsSubnet("exampleIsSubnet",
    vpc=example_is_vpc.is_vpc_id,
    zone="us-south-2",
    ipv4_cidr_block="10.240.0.0/24")
example_is_lb = ibm.IsLb("exampleIsLb", subnets=[example_is_subnet.is_subnet_id])
example_is_private_path_service_gateway = ibm.IsPrivatePathServiceGateway("exampleIsPrivatePathServiceGateway",
    default_access_policy="review",
    load_balancer=example_is_lb.is_lb_id,
    zonal_affinity=True,
    service_endpoints=["example-fqdn"])
example_is_private_path_service_gateway_account_policy = ibm.IsPrivatePathServiceGatewayAccountPolicy("exampleIsPrivatePathServiceGatewayAccountPolicy",
    private_path_service_gateway=example_is_private_path_service_gateway.is_private_path_service_gateway_id,
    access_policy="review",
    account="fee82deba12e4c0fb69c3b09d1f12345")
example_is_private_path_service_gateway_account_policies = ibm.get_is_private_path_service_gateway_account_policies_output(private_path_service_gateway=example_is_private_path_service_gateway.is_private_path_service_gateway_id,
    account="fee82deba12e4c0fb69c3b09d1f12345")
Copy
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 {
		exampleIsVpc, err := ibm.NewIsVpc(ctx, "exampleIsVpc", nil)
		if err != nil {
			return err
		}
		exampleIsSubnet, err := ibm.NewIsSubnet(ctx, "exampleIsSubnet", &ibm.IsSubnetArgs{
			Vpc:           exampleIsVpc.IsVpcId,
			Zone:          pulumi.String("us-south-2"),
			Ipv4CidrBlock: pulumi.String("10.240.0.0/24"),
		})
		if err != nil {
			return err
		}
		exampleIsLb, err := ibm.NewIsLb(ctx, "exampleIsLb", &ibm.IsLbArgs{
			Subnets: pulumi.StringArray{
				exampleIsSubnet.IsSubnetId,
			},
		})
		if err != nil {
			return err
		}
		exampleIsPrivatePathServiceGateway, err := ibm.NewIsPrivatePathServiceGateway(ctx, "exampleIsPrivatePathServiceGateway", &ibm.IsPrivatePathServiceGatewayArgs{
			DefaultAccessPolicy: pulumi.String("review"),
			LoadBalancer:        exampleIsLb.IsLbId,
			ZonalAffinity:       pulumi.Bool(true),
			ServiceEndpoints: pulumi.StringArray{
				pulumi.String("example-fqdn"),
			},
		})
		if err != nil {
			return err
		}
		_, err = ibm.NewIsPrivatePathServiceGatewayAccountPolicy(ctx, "exampleIsPrivatePathServiceGatewayAccountPolicy", &ibm.IsPrivatePathServiceGatewayAccountPolicyArgs{
			PrivatePathServiceGateway: exampleIsPrivatePathServiceGateway.IsPrivatePathServiceGatewayId,
			AccessPolicy:              pulumi.String("review"),
			Account:                   pulumi.String("fee82deba12e4c0fb69c3b09d1f12345"),
		})
		if err != nil {
			return err
		}
		_ = ibm.GetIsPrivatePathServiceGatewayAccountPoliciesOutput(ctx, ibm.GetIsPrivatePathServiceGatewayAccountPoliciesOutputArgs{
			PrivatePathServiceGateway: exampleIsPrivatePathServiceGateway.IsPrivatePathServiceGatewayId,
			Account:                   pulumi.String("fee82deba12e4c0fb69c3b09d1f12345"),
		}, nil)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;

return await Deployment.RunAsync(() => 
{
    var exampleIsVpc = new Ibm.IsVpc("exampleIsVpc");

    var exampleIsSubnet = new Ibm.IsSubnet("exampleIsSubnet", new()
    {
        Vpc = exampleIsVpc.IsVpcId,
        Zone = "us-south-2",
        Ipv4CidrBlock = "10.240.0.0/24",
    });

    var exampleIsLb = new Ibm.IsLb("exampleIsLb", new()
    {
        Subnets = new[]
        {
            exampleIsSubnet.IsSubnetId,
        },
    });

    var exampleIsPrivatePathServiceGateway = new Ibm.IsPrivatePathServiceGateway("exampleIsPrivatePathServiceGateway", new()
    {
        DefaultAccessPolicy = "review",
        LoadBalancer = exampleIsLb.IsLbId,
        ZonalAffinity = true,
        ServiceEndpoints = new[]
        {
            "example-fqdn",
        },
    });

    var exampleIsPrivatePathServiceGatewayAccountPolicy = new Ibm.IsPrivatePathServiceGatewayAccountPolicy("exampleIsPrivatePathServiceGatewayAccountPolicy", new()
    {
        PrivatePathServiceGateway = exampleIsPrivatePathServiceGateway.IsPrivatePathServiceGatewayId,
        AccessPolicy = "review",
        Account = "fee82deba12e4c0fb69c3b09d1f12345",
    });

    var exampleIsPrivatePathServiceGatewayAccountPolicies = Ibm.GetIsPrivatePathServiceGatewayAccountPolicies.Invoke(new()
    {
        PrivatePathServiceGateway = exampleIsPrivatePathServiceGateway.IsPrivatePathServiceGatewayId,
        Account = "fee82deba12e4c0fb69c3b09d1f12345",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IsVpc;
import com.pulumi.ibm.IsSubnet;
import com.pulumi.ibm.IsSubnetArgs;
import com.pulumi.ibm.IsLb;
import com.pulumi.ibm.IsLbArgs;
import com.pulumi.ibm.IsPrivatePathServiceGateway;
import com.pulumi.ibm.IsPrivatePathServiceGatewayArgs;
import com.pulumi.ibm.IsPrivatePathServiceGatewayAccountPolicy;
import com.pulumi.ibm.IsPrivatePathServiceGatewayAccountPolicyArgs;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetIsPrivatePathServiceGatewayAccountPoliciesArgs;
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 exampleIsVpc = new IsVpc("exampleIsVpc");

        var exampleIsSubnet = new IsSubnet("exampleIsSubnet", IsSubnetArgs.builder()
            .vpc(exampleIsVpc.isVpcId())
            .zone("us-south-2")
            .ipv4CidrBlock("10.240.0.0/24")
            .build());

        var exampleIsLb = new IsLb("exampleIsLb", IsLbArgs.builder()
            .subnets(exampleIsSubnet.isSubnetId())
            .build());

        var exampleIsPrivatePathServiceGateway = new IsPrivatePathServiceGateway("exampleIsPrivatePathServiceGateway", IsPrivatePathServiceGatewayArgs.builder()
            .defaultAccessPolicy("review")
            .loadBalancer(exampleIsLb.isLbId())
            .zonalAffinity(true)
            .serviceEndpoints("example-fqdn")
            .build());

        var exampleIsPrivatePathServiceGatewayAccountPolicy = new IsPrivatePathServiceGatewayAccountPolicy("exampleIsPrivatePathServiceGatewayAccountPolicy", IsPrivatePathServiceGatewayAccountPolicyArgs.builder()
            .privatePathServiceGateway(exampleIsPrivatePathServiceGateway.isPrivatePathServiceGatewayId())
            .accessPolicy("review")
            .account("fee82deba12e4c0fb69c3b09d1f12345")
            .build());

        final var exampleIsPrivatePathServiceGatewayAccountPolicies = IbmFunctions.getIsPrivatePathServiceGatewayAccountPolicies(GetIsPrivatePathServiceGatewayAccountPoliciesArgs.builder()
            .privatePathServiceGateway(exampleIsPrivatePathServiceGateway.isPrivatePathServiceGatewayId())
            .account("fee82deba12e4c0fb69c3b09d1f12345")
            .build());

    }
}
Copy
resources:
  exampleIsVpc:
    type: ibm:IsVpc
  exampleIsSubnet:
    type: ibm:IsSubnet
    properties:
      vpc: ${exampleIsVpc.isVpcId}
      zone: us-south-2
      ipv4CidrBlock: 10.240.0.0/24
  exampleIsLb:
    type: ibm:IsLb
    properties:
      subnets:
        - ${exampleIsSubnet.isSubnetId}
  exampleIsPrivatePathServiceGateway:
    type: ibm:IsPrivatePathServiceGateway
    properties:
      defaultAccessPolicy: review
      loadBalancer: ${exampleIsLb.isLbId}
      zonalAffinity: true
      serviceEndpoints:
        - example-fqdn
  exampleIsPrivatePathServiceGatewayAccountPolicy:
    type: ibm:IsPrivatePathServiceGatewayAccountPolicy
    properties:
      privatePathServiceGateway: ${exampleIsPrivatePathServiceGateway.isPrivatePathServiceGatewayId}
      accessPolicy: review
      account: fee82deba12e4c0fb69c3b09d1f12345
variables:
  exampleIsPrivatePathServiceGatewayAccountPolicies:
    fn::invoke:
      function: ibm:getIsPrivatePathServiceGatewayAccountPolicies
      arguments:
        privatePathServiceGateway: ${exampleIsPrivatePathServiceGateway.isPrivatePathServiceGatewayId}
        account: fee82deba12e4c0fb69c3b09d1f12345
Copy

Using getIsPrivatePathServiceGatewayAccountPolicies

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getIsPrivatePathServiceGatewayAccountPolicies(args: GetIsPrivatePathServiceGatewayAccountPoliciesArgs, opts?: InvokeOptions): Promise<GetIsPrivatePathServiceGatewayAccountPoliciesResult>
function getIsPrivatePathServiceGatewayAccountPoliciesOutput(args: GetIsPrivatePathServiceGatewayAccountPoliciesOutputArgs, opts?: InvokeOptions): Output<GetIsPrivatePathServiceGatewayAccountPoliciesResult>
Copy
def get_is_private_path_service_gateway_account_policies(account: Optional[str] = None,
                                                         id: Optional[str] = None,
                                                         private_path_service_gateway: Optional[str] = None,
                                                         opts: Optional[InvokeOptions] = None) -> GetIsPrivatePathServiceGatewayAccountPoliciesResult
def get_is_private_path_service_gateway_account_policies_output(account: Optional[pulumi.Input[str]] = None,
                                                         id: Optional[pulumi.Input[str]] = None,
                                                         private_path_service_gateway: Optional[pulumi.Input[str]] = None,
                                                         opts: Optional[InvokeOptions] = None) -> Output[GetIsPrivatePathServiceGatewayAccountPoliciesResult]
Copy
func GetIsPrivatePathServiceGatewayAccountPolicies(ctx *Context, args *GetIsPrivatePathServiceGatewayAccountPoliciesArgs, opts ...InvokeOption) (*GetIsPrivatePathServiceGatewayAccountPoliciesResult, error)
func GetIsPrivatePathServiceGatewayAccountPoliciesOutput(ctx *Context, args *GetIsPrivatePathServiceGatewayAccountPoliciesOutputArgs, opts ...InvokeOption) GetIsPrivatePathServiceGatewayAccountPoliciesResultOutput
Copy

> Note: This function is named GetIsPrivatePathServiceGatewayAccountPolicies in the Go SDK.

public static class GetIsPrivatePathServiceGatewayAccountPolicies 
{
    public static Task<GetIsPrivatePathServiceGatewayAccountPoliciesResult> InvokeAsync(GetIsPrivatePathServiceGatewayAccountPoliciesArgs args, InvokeOptions? opts = null)
    public static Output<GetIsPrivatePathServiceGatewayAccountPoliciesResult> Invoke(GetIsPrivatePathServiceGatewayAccountPoliciesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetIsPrivatePathServiceGatewayAccountPoliciesResult> getIsPrivatePathServiceGatewayAccountPolicies(GetIsPrivatePathServiceGatewayAccountPoliciesArgs args, InvokeOptions options)
public static Output<GetIsPrivatePathServiceGatewayAccountPoliciesResult> getIsPrivatePathServiceGatewayAccountPolicies(GetIsPrivatePathServiceGatewayAccountPoliciesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: ibm:index/getIsPrivatePathServiceGatewayAccountPolicies:getIsPrivatePathServiceGatewayAccountPolicies
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

PrivatePathServiceGateway This property is required. string
The private path service gateway identifier.
Account string
ID of the account to retrieve the policies for.
Id string
(String) The unique identifier for this account policy.
PrivatePathServiceGateway This property is required. string
The private path service gateway identifier.
Account string
ID of the account to retrieve the policies for.
Id string
(String) The unique identifier for this account policy.
privatePathServiceGateway This property is required. String
The private path service gateway identifier.
account String
ID of the account to retrieve the policies for.
id String
(String) The unique identifier for this account policy.
privatePathServiceGateway This property is required. string
The private path service gateway identifier.
account string
ID of the account to retrieve the policies for.
id string
(String) The unique identifier for this account policy.
private_path_service_gateway This property is required. str
The private path service gateway identifier.
account str
ID of the account to retrieve the policies for.
id str
(String) The unique identifier for this account policy.
privatePathServiceGateway This property is required. String
The private path service gateway identifier.
account String
ID of the account to retrieve the policies for.
id String
(String) The unique identifier for this account policy.

getIsPrivatePathServiceGatewayAccountPolicies Result

The following output properties are available:

AccountPolicies List<GetIsPrivatePathServiceGatewayAccountPoliciesAccountPolicy>
(List) Collection of account policies. Nested scheme for account_policies:
Id string
(String) The unique identifier for this account policy.
PrivatePathServiceGateway string
Account string
(List) The account for this access policy. Nested scheme for account:
AccountPolicies []GetIsPrivatePathServiceGatewayAccountPoliciesAccountPolicy
(List) Collection of account policies. Nested scheme for account_policies:
Id string
(String) The unique identifier for this account policy.
PrivatePathServiceGateway string
Account string
(List) The account for this access policy. Nested scheme for account:
accountPolicies List<GetIsPrivatePathServiceGatewayAccountPoliciesAccountPolicy>
(List) Collection of account policies. Nested scheme for account_policies:
id String
(String) The unique identifier for this account policy.
privatePathServiceGateway String
account String
(List) The account for this access policy. Nested scheme for account:
accountPolicies GetIsPrivatePathServiceGatewayAccountPoliciesAccountPolicy[]
(List) Collection of account policies. Nested scheme for account_policies:
id string
(String) The unique identifier for this account policy.
privatePathServiceGateway string
account string
(List) The account for this access policy. Nested scheme for account:
account_policies Sequence[GetIsPrivatePathServiceGatewayAccountPoliciesAccountPolicy]
(List) Collection of account policies. Nested scheme for account_policies:
id str
(String) The unique identifier for this account policy.
private_path_service_gateway str
account str
(List) The account for this access policy. Nested scheme for account:
accountPolicies List<Property Map>
(List) Collection of account policies. Nested scheme for account_policies:
id String
(String) The unique identifier for this account policy.
privatePathServiceGateway String
account String
(List) The account for this access policy. Nested scheme for account:

Supporting Types

GetIsPrivatePathServiceGatewayAccountPoliciesAccountPolicy

AccessPolicy This property is required. string
(String) The access policy for the account:- permit: access will be permitted- deny: access will be denied- review: access will be manually reviewedThe enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected property value was encountered.
Accounts This property is required. List<GetIsPrivatePathServiceGatewayAccountPoliciesAccountPolicyAccount>
ID of the account to retrieve the policies for.
CreatedAt This property is required. string
(String) The date and time that the account policy was created.
Href This property is required. string
(String) The URL for this account policy.
Id This property is required. string
(String) The unique identifier for this account policy.
ResourceType This property is required. string
(String) The resource type.
UpdatedAt This property is required. string
(String) The date and time that the account policy was updated.
AccessPolicy This property is required. string
(String) The access policy for the account:- permit: access will be permitted- deny: access will be denied- review: access will be manually reviewedThe enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected property value was encountered.
Accounts This property is required. []GetIsPrivatePathServiceGatewayAccountPoliciesAccountPolicyAccount
ID of the account to retrieve the policies for.
CreatedAt This property is required. string
(String) The date and time that the account policy was created.
Href This property is required. string
(String) The URL for this account policy.
Id This property is required. string
(String) The unique identifier for this account policy.
ResourceType This property is required. string
(String) The resource type.
UpdatedAt This property is required. string
(String) The date and time that the account policy was updated.
accessPolicy This property is required. String
(String) The access policy for the account:- permit: access will be permitted- deny: access will be denied- review: access will be manually reviewedThe enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected property value was encountered.
accounts This property is required. List<GetIsPrivatePathServiceGatewayAccountPoliciesAccountPolicyAccount>
ID of the account to retrieve the policies for.
createdAt This property is required. String
(String) The date and time that the account policy was created.
href This property is required. String
(String) The URL for this account policy.
id This property is required. String
(String) The unique identifier for this account policy.
resourceType This property is required. String
(String) The resource type.
updatedAt This property is required. String
(String) The date and time that the account policy was updated.
accessPolicy This property is required. string
(String) The access policy for the account:- permit: access will be permitted- deny: access will be denied- review: access will be manually reviewedThe enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected property value was encountered.
accounts This property is required. GetIsPrivatePathServiceGatewayAccountPoliciesAccountPolicyAccount[]
ID of the account to retrieve the policies for.
createdAt This property is required. string
(String) The date and time that the account policy was created.
href This property is required. string
(String) The URL for this account policy.
id This property is required. string
(String) The unique identifier for this account policy.
resourceType This property is required. string
(String) The resource type.
updatedAt This property is required. string
(String) The date and time that the account policy was updated.
access_policy This property is required. str
(String) The access policy for the account:- permit: access will be permitted- deny: access will be denied- review: access will be manually reviewedThe enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected property value was encountered.
accounts This property is required. Sequence[GetIsPrivatePathServiceGatewayAccountPoliciesAccountPolicyAccount]
ID of the account to retrieve the policies for.
created_at This property is required. str
(String) The date and time that the account policy was created.
href This property is required. str
(String) The URL for this account policy.
id This property is required. str
(String) The unique identifier for this account policy.
resource_type This property is required. str
(String) The resource type.
updated_at This property is required. str
(String) The date and time that the account policy was updated.
accessPolicy This property is required. String
(String) The access policy for the account:- permit: access will be permitted- deny: access will be denied- review: access will be manually reviewedThe enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected property value was encountered.
accounts This property is required. List<Property Map>
ID of the account to retrieve the policies for.
createdAt This property is required. String
(String) The date and time that the account policy was created.
href This property is required. String
(String) The URL for this account policy.
id This property is required. String
(String) The unique identifier for this account policy.
resourceType This property is required. String
(String) The resource type.
updatedAt This property is required. String
(String) The date and time that the account policy was updated.

GetIsPrivatePathServiceGatewayAccountPoliciesAccountPolicyAccount

Id This property is required. string
(String) The unique identifier for this account policy.
ResourceType This property is required. string
(String) The resource type.
Id This property is required. string
(String) The unique identifier for this account policy.
ResourceType This property is required. string
(String) The resource type.
id This property is required. String
(String) The unique identifier for this account policy.
resourceType This property is required. String
(String) The resource type.
id This property is required. string
(String) The unique identifier for this account policy.
resourceType This property is required. string
(String) The resource type.
id This property is required. str
(String) The unique identifier for this account policy.
resource_type This property is required. str
(String) The resource type.
id This property is required. String
(String) The unique identifier for this account policy.
resourceType This property is required. String
(String) The resource type.

Package Details

Repository
ibm ibm-cloud/terraform-provider-ibm
License
Notes
This Pulumi package is based on the ibm Terraform Provider.