ibm 1.78.0 published on Wednesday, Apr 30, 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",
});
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")
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
})
}
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",
});
});
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());
}
}
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
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>
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]
func GetIsPrivatePathServiceGatewayAccountPolicies(ctx *Context, args *GetIsPrivatePathServiceGatewayAccountPoliciesArgs, opts ...InvokeOption) (*GetIsPrivatePathServiceGatewayAccountPoliciesResult, error)
func GetIsPrivatePathServiceGatewayAccountPoliciesOutput(ctx *Context, args *GetIsPrivatePathServiceGatewayAccountPoliciesOutputArgs, opts ...InvokeOption) GetIsPrivatePathServiceGatewayAccountPoliciesResultOutput
> 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)
}
public static CompletableFuture<GetIsPrivatePathServiceGatewayAccountPoliciesResult> getIsPrivatePathServiceGatewayAccountPolicies(GetIsPrivatePathServiceGatewayAccountPoliciesArgs args, InvokeOptions options)
public static Output<GetIsPrivatePathServiceGatewayAccountPoliciesResult> getIsPrivatePathServiceGatewayAccountPolicies(GetIsPrivatePathServiceGatewayAccountPoliciesArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getIsPrivatePathServiceGatewayAccountPolicies:getIsPrivatePathServiceGatewayAccountPolicies
arguments:
# arguments dictionary
The following arguments are supported:
- Private
Path stringService Gateway - 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 stringService Gateway - 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 StringService Gateway - 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 stringService Gateway - 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_ strservice_ gateway - 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.
- private
Path StringService Gateway - 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:
- Account
Policies List<GetIs Private Path Service Gateway Account Policies Account Policy> - (List) Collection of account policies. Nested scheme for account_policies:
- Id string
- (String) The unique identifier for this account policy.
- Private
Path stringService Gateway - Account string
- (List) The account for this access policy. Nested scheme for account:
- Account
Policies []GetIs Private Path Service Gateway Account Policies Account Policy - (List) Collection of account policies. Nested scheme for account_policies:
- Id string
- (String) The unique identifier for this account policy.
- Private
Path stringService Gateway - Account string
- (List) The account for this access policy. Nested scheme for account:
- account
Policies List<GetIs Private Path Service Gateway Account Policies Account Policy> - (List) Collection of account policies. Nested scheme for account_policies:
- id String
- (String) The unique identifier for this account policy.
- private
Path StringService Gateway - account String
- (List) The account for this access policy. Nested scheme for account:
- account
Policies GetIs Private Path Service Gateway Account Policies Account Policy[] - (List) Collection of account policies. Nested scheme for account_policies:
- id string
- (String) The unique identifier for this account policy.
- private
Path stringService Gateway - account string
- (List) The account for this access policy. Nested scheme for account:
- account_
policies Sequence[GetIs Private Path Service Gateway Account Policies Account Policy] - (List) Collection of account policies. Nested scheme for account_policies:
- id str
- (String) The unique identifier for this account policy.
- private_
path_ strservice_ gateway - account str
- (List) The account for this access policy. Nested scheme for account:
- account
Policies List<Property Map> - (List) Collection of account policies. Nested scheme for account_policies:
- id String
- (String) The unique identifier for this account policy.
- private
Path StringService Gateway - account String
- (List) The account for this access policy. Nested scheme for account:
Supporting Types
GetIsPrivatePathServiceGatewayAccountPoliciesAccountPolicy
- 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.
- Accounts
List<Get
Is Private Path Service Gateway Account Policies Account Policy Account> - ID of the account to retrieve the policies for.
- 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) The unique identifier for this account policy.
- 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.
- Accounts
[]Get
Is Private Path Service Gateway Account Policies Account Policy Account - ID of the account to retrieve the policies for.
- 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) The unique identifier for this account policy.
- 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.
- accounts
List<Get
Is Private Path Service Gateway Account Policies Account Policy Account> - ID of the account to retrieve the policies for.
- 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) The unique identifier for this account policy.
- 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.
- accounts
Get
Is Private Path Service Gateway Account Policies Account Policy Account[] - ID of the account to retrieve the policies for.
- 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) The unique identifier for this account policy.
- 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.
- accounts
Sequence[Get
Is Private Path Service Gateway Account Policies Account Policy Account] - ID of the account to retrieve the policies for.
- 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) The unique identifier for this account policy.
- 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.
- accounts List<Property Map>
- ID of the account to retrieve the policies for.
- 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) The unique identifier for this account policy.
- resource
Type String - (String) The resource type.
- updated
At String - (String) The date and time that the account policy was updated.
GetIsPrivatePathServiceGatewayAccountPoliciesAccountPolicyAccount
- Id string
- (String) The unique identifier for this account policy.
- Resource
Type string - (String) The resource type.
- Id string
- (String) The unique identifier for this account policy.
- Resource
Type string - (String) The resource type.
- id String
- (String) The unique identifier for this account policy.
- resource
Type String - (String) The resource type.
- id string
- (String) The unique identifier for this account policy.
- resource
Type string - (String) The resource type.
- id str
- (String) The unique identifier for this account policy.
- resource_
type str - (String) The resource type.
- id String
- (String) The unique identifier for this account policy.
- 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
ibm
Terraform Provider.