ibm 1.85.0 published on Sunday, Nov 9, 2025 by ibm-cloud
ibm 1.85.0 published on Sunday, Nov 9, 2025 by ibm-cloud
Provides a read-only data source for PrivatePathServiceGatewayAccountPolicy. 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("example", {name: "example-vpc"});
const exampleIsSubnet = new ibm.IsSubnet("example", {
name: "example-subnet",
vpc: exampleIsVpc.isVpcId,
zone: "us-south-2",
ipv4CidrBlock: "10.240.0.0/24",
});
const exampleIsLb = new ibm.IsLb("example", {
name: "example-lb",
subnets: [exampleIsSubnet.isSubnetId],
});
const exampleIsPrivatePathServiceGateway = new ibm.IsPrivatePathServiceGateway("example", {
defaultAccessPolicy: "review",
name: "my-example-ppsg",
loadBalancer: exampleIsLb.isLbId,
zonalAffinity: true,
serviceEndpoints: ["example-fqdn"],
});
const exampleIsPrivatePathServiceGatewayAccountPolicy = new ibm.IsPrivatePathServiceGatewayAccountPolicy("example", {
privatePathServiceGateway: exampleIsPrivatePathServiceGateway.isPrivatePathServiceGatewayId,
accessPolicy: "review",
account: "fee82deba12e4c0fb69c3b09d1f12345",
});
const example = ibm.getIsPrivatePathServiceGatewayAccountPolicyOutput({
accountPolicy: exampleIsPrivatePathServiceGatewayAccountPolicy.isPrivatePathServiceGatewayAccountPolicyId,
privatePathServiceGateway: exampleIsPrivatePathServiceGateway.isPrivatePathServiceGatewayId,
});
import pulumi
import pulumi_ibm as ibm
example_is_vpc = ibm.IsVpc("example", name="example-vpc")
example_is_subnet = ibm.IsSubnet("example",
name="example-subnet",
vpc=example_is_vpc.is_vpc_id,
zone="us-south-2",
ipv4_cidr_block="10.240.0.0/24")
example_is_lb = ibm.IsLb("example",
name="example-lb",
subnets=[example_is_subnet.is_subnet_id])
example_is_private_path_service_gateway = ibm.IsPrivatePathServiceGateway("example",
default_access_policy="review",
name="my-example-ppsg",
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("example",
private_path_service_gateway=example_is_private_path_service_gateway.is_private_path_service_gateway_id,
access_policy="review",
account="fee82deba12e4c0fb69c3b09d1f12345")
example = ibm.get_is_private_path_service_gateway_account_policy_output(account_policy=example_is_private_path_service_gateway_account_policy.is_private_path_service_gateway_account_policy_id,
private_path_service_gateway=example_is_private_path_service_gateway.is_private_path_service_gateway_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 {
exampleIsVpc, err := ibm.NewIsVpc(ctx, "example", &ibm.IsVpcArgs{
Name: pulumi.String("example-vpc"),
})
if err != nil {
return err
}
exampleIsSubnet, err := ibm.NewIsSubnet(ctx, "example", &ibm.IsSubnetArgs{
Name: pulumi.String("example-subnet"),
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, "example", &ibm.IsLbArgs{
Name: pulumi.String("example-lb"),
Subnets: pulumi.StringArray{
exampleIsSubnet.IsSubnetId,
},
})
if err != nil {
return err
}
exampleIsPrivatePathServiceGateway, err := ibm.NewIsPrivatePathServiceGateway(ctx, "example", &ibm.IsPrivatePathServiceGatewayArgs{
DefaultAccessPolicy: pulumi.String("review"),
Name: pulumi.String("my-example-ppsg"),
LoadBalancer: exampleIsLb.IsLbId,
ZonalAffinity: pulumi.Bool(true),
ServiceEndpoints: pulumi.StringArray{
pulumi.String("example-fqdn"),
},
})
if err != nil {
return err
}
exampleIsPrivatePathServiceGatewayAccountPolicy, err := ibm.NewIsPrivatePathServiceGatewayAccountPolicy(ctx, "example", &ibm.IsPrivatePathServiceGatewayAccountPolicyArgs{
PrivatePathServiceGateway: exampleIsPrivatePathServiceGateway.IsPrivatePathServiceGatewayId,
AccessPolicy: pulumi.String("review"),
Account: pulumi.String("fee82deba12e4c0fb69c3b09d1f12345"),
})
if err != nil {
return err
}
_ = ibm.LookupIsPrivatePathServiceGatewayAccountPolicyOutput(ctx, ibm.GetIsPrivatePathServiceGatewayAccountPolicyOutputArgs{
AccountPolicy: exampleIsPrivatePathServiceGatewayAccountPolicy.IsPrivatePathServiceGatewayAccountPolicyId,
PrivatePathServiceGateway: exampleIsPrivatePathServiceGateway.IsPrivatePathServiceGatewayId,
}, nil)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var exampleIsVpc = new Ibm.IsVpc("example", new()
{
Name = "example-vpc",
});
var exampleIsSubnet = new Ibm.IsSubnet("example", new()
{
Name = "example-subnet",
Vpc = exampleIsVpc.IsVpcId,
Zone = "us-south-2",
Ipv4CidrBlock = "10.240.0.0/24",
});
var exampleIsLb = new Ibm.IsLb("example", new()
{
Name = "example-lb",
Subnets = new[]
{
exampleIsSubnet.IsSubnetId,
},
});
var exampleIsPrivatePathServiceGateway = new Ibm.IsPrivatePathServiceGateway("example", new()
{
DefaultAccessPolicy = "review",
Name = "my-example-ppsg",
LoadBalancer = exampleIsLb.IsLbId,
ZonalAffinity = true,
ServiceEndpoints = new[]
{
"example-fqdn",
},
});
var exampleIsPrivatePathServiceGatewayAccountPolicy = new Ibm.IsPrivatePathServiceGatewayAccountPolicy("example", new()
{
PrivatePathServiceGateway = exampleIsPrivatePathServiceGateway.IsPrivatePathServiceGatewayId,
AccessPolicy = "review",
Account = "fee82deba12e4c0fb69c3b09d1f12345",
});
var example = Ibm.GetIsPrivatePathServiceGatewayAccountPolicy.Invoke(new()
{
AccountPolicy = exampleIsPrivatePathServiceGatewayAccountPolicy.IsPrivatePathServiceGatewayAccountPolicyId,
PrivatePathServiceGateway = exampleIsPrivatePathServiceGateway.IsPrivatePathServiceGatewayId,
});
});
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.IsVpcArgs;
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.GetIsPrivatePathServiceGatewayAccountPolicyArgs;
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", IsVpcArgs.builder()
.name("example-vpc")
.build());
var exampleIsSubnet = new IsSubnet("exampleIsSubnet", IsSubnetArgs.builder()
.name("example-subnet")
.vpc(exampleIsVpc.isVpcId())
.zone("us-south-2")
.ipv4CidrBlock("10.240.0.0/24")
.build());
var exampleIsLb = new IsLb("exampleIsLb", IsLbArgs.builder()
.name("example-lb")
.subnets(exampleIsSubnet.isSubnetId())
.build());
var exampleIsPrivatePathServiceGateway = new IsPrivatePathServiceGateway("exampleIsPrivatePathServiceGateway", IsPrivatePathServiceGatewayArgs.builder()
.defaultAccessPolicy("review")
.name("my-example-ppsg")
.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 example = IbmFunctions.getIsPrivatePathServiceGatewayAccountPolicy(GetIsPrivatePathServiceGatewayAccountPolicyArgs.builder()
.accountPolicy(exampleIsPrivatePathServiceGatewayAccountPolicy.isPrivatePathServiceGatewayAccountPolicyId())
.privatePathServiceGateway(exampleIsPrivatePathServiceGateway.isPrivatePathServiceGatewayId())
.build());
}
}
resources:
exampleIsVpc:
type: ibm:IsVpc
name: example
properties:
name: example-vpc
exampleIsSubnet:
type: ibm:IsSubnet
name: example
properties:
name: example-subnet
vpc: ${exampleIsVpc.isVpcId}
zone: us-south-2
ipv4CidrBlock: 10.240.0.0/24
exampleIsLb:
type: ibm:IsLb
name: example
properties:
name: example-lb
subnets:
- ${exampleIsSubnet.isSubnetId}
exampleIsPrivatePathServiceGateway:
type: ibm:IsPrivatePathServiceGateway
name: example
properties:
defaultAccessPolicy: review
name: my-example-ppsg
loadBalancer: ${exampleIsLb.isLbId}
zonalAffinity: true
serviceEndpoints:
- example-fqdn
exampleIsPrivatePathServiceGatewayAccountPolicy:
type: ibm:IsPrivatePathServiceGatewayAccountPolicy
name: example
properties:
privatePathServiceGateway: ${exampleIsPrivatePathServiceGateway.isPrivatePathServiceGatewayId}
accessPolicy: review
account: fee82deba12e4c0fb69c3b09d1f12345
variables:
example:
fn::invoke:
function: ibm:getIsPrivatePathServiceGatewayAccountPolicy
arguments:
accountPolicy: ${exampleIsPrivatePathServiceGatewayAccountPolicy.isPrivatePathServiceGatewayAccountPolicyId}
privatePathServiceGateway: ${exampleIsPrivatePathServiceGateway.isPrivatePathServiceGatewayId}
Using getIsPrivatePathServiceGatewayAccountPolicy
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 getIsPrivatePathServiceGatewayAccountPolicy(args: GetIsPrivatePathServiceGatewayAccountPolicyArgs, opts?: InvokeOptions): Promise<GetIsPrivatePathServiceGatewayAccountPolicyResult>
function getIsPrivatePathServiceGatewayAccountPolicyOutput(args: GetIsPrivatePathServiceGatewayAccountPolicyOutputArgs, opts?: InvokeOptions): Output<GetIsPrivatePathServiceGatewayAccountPolicyResult>def get_is_private_path_service_gateway_account_policy(account_policy: Optional[str] = None,
id: Optional[str] = None,
private_path_service_gateway: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIsPrivatePathServiceGatewayAccountPolicyResult
def get_is_private_path_service_gateway_account_policy_output(account_policy: 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[GetIsPrivatePathServiceGatewayAccountPolicyResult]func LookupIsPrivatePathServiceGatewayAccountPolicy(ctx *Context, args *LookupIsPrivatePathServiceGatewayAccountPolicyArgs, opts ...InvokeOption) (*LookupIsPrivatePathServiceGatewayAccountPolicyResult, error)
func LookupIsPrivatePathServiceGatewayAccountPolicyOutput(ctx *Context, args *LookupIsPrivatePathServiceGatewayAccountPolicyOutputArgs, opts ...InvokeOption) LookupIsPrivatePathServiceGatewayAccountPolicyResultOutput> Note: This function is named LookupIsPrivatePathServiceGatewayAccountPolicy in the Go SDK.
public static class GetIsPrivatePathServiceGatewayAccountPolicy
{
public static Task<GetIsPrivatePathServiceGatewayAccountPolicyResult> InvokeAsync(GetIsPrivatePathServiceGatewayAccountPolicyArgs args, InvokeOptions? opts = null)
public static Output<GetIsPrivatePathServiceGatewayAccountPolicyResult> Invoke(GetIsPrivatePathServiceGatewayAccountPolicyInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetIsPrivatePathServiceGatewayAccountPolicyResult> getIsPrivatePathServiceGatewayAccountPolicy(GetIsPrivatePathServiceGatewayAccountPolicyArgs args, InvokeOptions options)
public static Output<GetIsPrivatePathServiceGatewayAccountPolicyResult> getIsPrivatePathServiceGatewayAccountPolicy(GetIsPrivatePathServiceGatewayAccountPolicyArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getIsPrivatePathServiceGatewayAccountPolicy:getIsPrivatePathServiceGatewayAccountPolicy
arguments:
# arguments dictionaryThe following arguments are supported:
- Account
Policy string - The account policy identifier.
- Private
Path stringService Gateway - The private path service gateway identifier.
- Id string
- (String)
- Account
Policy string - The account policy identifier.
- Private
Path stringService Gateway - The private path service gateway identifier.
- Id string
- (String)
- account
Policy String - The account policy identifier.
- private
Path StringService Gateway - The private path service gateway identifier.
- id String
- (String)
- account
Policy string - The account policy identifier.
- private
Path stringService Gateway - The private path service gateway identifier.
- id string
- (String)
- account_
policy str - The account policy identifier.
- private_
path_ strservice_ gateway - The private path service gateway identifier.
- id str
- (String)
- account
Policy String - The account policy identifier.
- private
Path StringService Gateway - The private path service gateway identifier.
- id String
- (String)
getIsPrivatePathServiceGatewayAccountPolicy Result
The following output properties are available:
- Access
Policy 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.
- Account
Policy string - Accounts
List<Get
Is Private Path Service Gateway Account Policy Account> - (List) The account for this access policy. Nested scheme for account:
- Created
At string - (String) The date and time that the account policy was created.
- Href string
- (String) The URL for this account policy.
- Id string
- (String)
- Private
Path stringService Gateway - Resource
Type string - (String) The resource type.
- Updated
At string - (String) The date and time that the account policy was updated.
- Access
Policy 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.
- Account
Policy string - Accounts
[]Get
Is Private Path Service Gateway Account Policy Account - (List) The account for this access policy. Nested scheme for account:
- Created
At string - (String) The date and time that the account policy was created.
- Href string
- (String) The URL for this account policy.
- Id string
- (String)
- Private
Path stringService Gateway - Resource
Type string - (String) The resource type.
- Updated
At string - (String) The date and time that the account policy was updated.
- access
Policy 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.
- account
Policy String - accounts
List<Get
Is Private Path Service Gateway Account Policy Account> - (List) The account for this access policy. Nested scheme for account:
- created
At String - (String) The date and time that the account policy was created.
- href String
- (String) The URL for this account policy.
- id String
- (String)
- private
Path StringService Gateway - resource
Type String - (String) The resource type.
- updated
At String - (String) The date and time that the account policy was updated.
- access
Policy 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.
- account
Policy string - accounts
Get
Is Private Path Service Gateway Account Policy Account[] - (List) The account for this access policy. Nested scheme for account:
- created
At string - (String) The date and time that the account policy was created.
- href string
- (String) The URL for this account policy.
- id string
- (String)
- private
Path stringService Gateway - resource
Type string - (String) The resource type.
- updated
At string - (String) The date and time that the account policy was updated.
- access_
policy 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.
- account_
policy str - accounts
Sequence[Get
Is Private Path Service Gateway Account Policy Account] - (List) The account for this access policy. Nested scheme for account:
- created_
at str - (String) The date and time that the account policy was created.
- href str
- (String) The URL for this account policy.
- id str
- (String)
- private_
path_ strservice_ gateway - resource_
type str - (String) The resource type.
- updated_
at str - (String) The date and time that the account policy was updated.
- access
Policy 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.
- account
Policy String - accounts List<Property Map>
- (List) The account for this access policy. Nested scheme for account:
- created
At String - (String) The date and time that the account policy was created.
- href String
- (String) The URL for this account policy.
- id String
- (String)
- private
Path StringService Gateway - resource
Type String - (String) The resource type.
- updated
At String - (String) The date and time that the account policy was updated.
Supporting Types
GetIsPrivatePathServiceGatewayAccountPolicyAccount
- Id string
- (String)
- Resource
Type string - (String) The resource type.
- Id string
- (String)
- Resource
Type string - (String) The resource type.
- id String
- (String)
- resource
Type String - (String) The resource type.
- id string
- (String)
- resource
Type string - (String) The resource type.
- id str
- (String)
- resource_
type str - (String) The resource type.
- id String
- (String)
- resource
Type String - (String) The resource type.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibmTerraform Provider.
ibm 1.85.0 published on Sunday, Nov 9, 2025 by ibm-cloud
