ibm.IsPrivatePathServiceGatewayAccountPolicy
Explore with Pulumi AI
Provides a resource for PrivatePathServiceGatewayAccountPolicy. This allows PrivatePathServiceGatewayAccountPolicy to be created, updated and deleted.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const exampleIsPrivatePathServiceGateway = new ibm.IsPrivatePathServiceGateway("exampleIsPrivatePathServiceGateway", {
defaultAccessPolicy: "deny",
loadBalancer: ibm_is_lb.testacc_LB.id,
zonalAffinity: true,
serviceEndpoints: ["myexamplefqdn"],
});
const exampleIsPrivatePathServiceGatewayAccountPolicy = new ibm.IsPrivatePathServiceGatewayAccountPolicy("exampleIsPrivatePathServiceGatewayAccountPolicy", {
accessPolicy: "deny",
account: "fee82deba12e4c0fb69c3b09d1f12345",
privatePathServiceGateway: exampleIsPrivatePathServiceGateway.isPrivatePathServiceGatewayId,
});
import pulumi
import pulumi_ibm as ibm
example_is_private_path_service_gateway = ibm.IsPrivatePathServiceGateway("exampleIsPrivatePathServiceGateway",
default_access_policy="deny",
load_balancer=ibm_is_lb["testacc_LB"]["id"],
zonal_affinity=True,
service_endpoints=["myexamplefqdn"])
example_is_private_path_service_gateway_account_policy = ibm.IsPrivatePathServiceGatewayAccountPolicy("exampleIsPrivatePathServiceGatewayAccountPolicy",
access_policy="deny",
account="fee82deba12e4c0fb69c3b09d1f12345",
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 {
exampleIsPrivatePathServiceGateway, err := ibm.NewIsPrivatePathServiceGateway(ctx, "exampleIsPrivatePathServiceGateway", &ibm.IsPrivatePathServiceGatewayArgs{
DefaultAccessPolicy: pulumi.String("deny"),
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.NewIsPrivatePathServiceGatewayAccountPolicy(ctx, "exampleIsPrivatePathServiceGatewayAccountPolicy", &ibm.IsPrivatePathServiceGatewayAccountPolicyArgs{
AccessPolicy: pulumi.String("deny"),
Account: pulumi.String("fee82deba12e4c0fb69c3b09d1f12345"),
PrivatePathServiceGateway: exampleIsPrivatePathServiceGateway.IsPrivatePathServiceGatewayId,
})
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 exampleIsPrivatePathServiceGateway = new Ibm.IsPrivatePathServiceGateway("exampleIsPrivatePathServiceGateway", new()
{
DefaultAccessPolicy = "deny",
LoadBalancer = ibm_is_lb.Testacc_LB.Id,
ZonalAffinity = true,
ServiceEndpoints = new[]
{
"myexamplefqdn",
},
});
var exampleIsPrivatePathServiceGatewayAccountPolicy = new Ibm.IsPrivatePathServiceGatewayAccountPolicy("exampleIsPrivatePathServiceGatewayAccountPolicy", new()
{
AccessPolicy = "deny",
Account = "fee82deba12e4c0fb69c3b09d1f12345",
PrivatePathServiceGateway = exampleIsPrivatePathServiceGateway.IsPrivatePathServiceGatewayId,
});
});
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.IsPrivatePathServiceGatewayAccountPolicy;
import com.pulumi.ibm.IsPrivatePathServiceGatewayAccountPolicyArgs;
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 exampleIsPrivatePathServiceGateway = new IsPrivatePathServiceGateway("exampleIsPrivatePathServiceGateway", IsPrivatePathServiceGatewayArgs.builder()
.defaultAccessPolicy("deny")
.loadBalancer(ibm_is_lb.testacc_LB().id())
.zonalAffinity(true)
.serviceEndpoints("myexamplefqdn")
.build());
var exampleIsPrivatePathServiceGatewayAccountPolicy = new IsPrivatePathServiceGatewayAccountPolicy("exampleIsPrivatePathServiceGatewayAccountPolicy", IsPrivatePathServiceGatewayAccountPolicyArgs.builder()
.accessPolicy("deny")
.account("fee82deba12e4c0fb69c3b09d1f12345")
.privatePathServiceGateway(exampleIsPrivatePathServiceGateway.isPrivatePathServiceGatewayId())
.build());
}
}
resources:
exampleIsPrivatePathServiceGateway:
type: ibm:IsPrivatePathServiceGateway
properties:
defaultAccessPolicy: deny
loadBalancer: ${ibm_is_lb.testacc_LB.id}
zonalAffinity: true
serviceEndpoints:
- myexamplefqdn
exampleIsPrivatePathServiceGatewayAccountPolicy:
type: ibm:IsPrivatePathServiceGatewayAccountPolicy
properties:
accessPolicy: deny
account: fee82deba12e4c0fb69c3b09d1f12345
privatePathServiceGateway: ${exampleIsPrivatePathServiceGateway.isPrivatePathServiceGatewayId}
Create IsPrivatePathServiceGatewayAccountPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IsPrivatePathServiceGatewayAccountPolicy(name: string, args: IsPrivatePathServiceGatewayAccountPolicyArgs, opts?: CustomResourceOptions);
@overload
def IsPrivatePathServiceGatewayAccountPolicy(resource_name: str,
args: IsPrivatePathServiceGatewayAccountPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IsPrivatePathServiceGatewayAccountPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
access_policy: Optional[str] = None,
account: Optional[str] = None,
private_path_service_gateway: Optional[str] = None,
is_private_path_service_gateway_account_policy_id: Optional[str] = None)
func NewIsPrivatePathServiceGatewayAccountPolicy(ctx *Context, name string, args IsPrivatePathServiceGatewayAccountPolicyArgs, opts ...ResourceOption) (*IsPrivatePathServiceGatewayAccountPolicy, error)
public IsPrivatePathServiceGatewayAccountPolicy(string name, IsPrivatePathServiceGatewayAccountPolicyArgs args, CustomResourceOptions? opts = null)
public IsPrivatePathServiceGatewayAccountPolicy(String name, IsPrivatePathServiceGatewayAccountPolicyArgs args)
public IsPrivatePathServiceGatewayAccountPolicy(String name, IsPrivatePathServiceGatewayAccountPolicyArgs args, CustomResourceOptions options)
type: ibm:IsPrivatePathServiceGatewayAccountPolicy
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 IsPrivatePathServiceGatewayAccountPolicyArgs
- 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 IsPrivatePathServiceGatewayAccountPolicyArgs
- 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 IsPrivatePathServiceGatewayAccountPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IsPrivatePathServiceGatewayAccountPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IsPrivatePathServiceGatewayAccountPolicyArgs
- 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 isPrivatePathServiceGatewayAccountPolicyResource = new Ibm.IsPrivatePathServiceGatewayAccountPolicy("isPrivatePathServiceGatewayAccountPolicyResource", new()
{
AccessPolicy = "string",
Account = "string",
PrivatePathServiceGateway = "string",
IsPrivatePathServiceGatewayAccountPolicyId = "string",
});
example, err := ibm.NewIsPrivatePathServiceGatewayAccountPolicy(ctx, "isPrivatePathServiceGatewayAccountPolicyResource", &ibm.IsPrivatePathServiceGatewayAccountPolicyArgs{
AccessPolicy: pulumi.String("string"),
Account: pulumi.String("string"),
PrivatePathServiceGateway: pulumi.String("string"),
IsPrivatePathServiceGatewayAccountPolicyId: pulumi.String("string"),
})
var isPrivatePathServiceGatewayAccountPolicyResource = new IsPrivatePathServiceGatewayAccountPolicy("isPrivatePathServiceGatewayAccountPolicyResource", IsPrivatePathServiceGatewayAccountPolicyArgs.builder()
.accessPolicy("string")
.account("string")
.privatePathServiceGateway("string")
.isPrivatePathServiceGatewayAccountPolicyId("string")
.build());
is_private_path_service_gateway_account_policy_resource = ibm.IsPrivatePathServiceGatewayAccountPolicy("isPrivatePathServiceGatewayAccountPolicyResource",
access_policy="string",
account="string",
private_path_service_gateway="string",
is_private_path_service_gateway_account_policy_id="string")
const isPrivatePathServiceGatewayAccountPolicyResource = new ibm.IsPrivatePathServiceGatewayAccountPolicy("isPrivatePathServiceGatewayAccountPolicyResource", {
accessPolicy: "string",
account: "string",
privatePathServiceGateway: "string",
isPrivatePathServiceGatewayAccountPolicyId: "string",
});
type: ibm:IsPrivatePathServiceGatewayAccountPolicy
properties:
accessPolicy: string
account: string
isPrivatePathServiceGatewayAccountPolicyId: string
privatePathServiceGateway: string
IsPrivatePathServiceGatewayAccountPolicy 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 IsPrivatePathServiceGatewayAccountPolicy resource accepts the following input properties:
- Access
Policy string - The access policy for the account:- permit: access will be permitted- deny: access will be denied- review: access will be manually reviewed. Allowable values are:
deny
,permit
,review
. - Account string
- The ID of the account for this access policy.
- Private
Path stringService Gateway - The private path service gateway identifier.
- Is
Private stringPath Service Gateway Account Policy Id - The unique identifier of the PrivatePathServiceGatewayAccountPolicy. The ID is composed of
<private_path_service_gateway_id>/<account_policy_id>
.
- Access
Policy string - The access policy for the account:- permit: access will be permitted- deny: access will be denied- review: access will be manually reviewed. Allowable values are:
deny
,permit
,review
. - Account string
- The ID of the account for this access policy.
- Private
Path stringService Gateway - The private path service gateway identifier.
- Is
Private stringPath Service Gateway Account Policy Id - The unique identifier of the PrivatePathServiceGatewayAccountPolicy. The ID is composed of
<private_path_service_gateway_id>/<account_policy_id>
.
- access
Policy String - The access policy for the account:- permit: access will be permitted- deny: access will be denied- review: access will be manually reviewed. Allowable values are:
deny
,permit
,review
. - account String
- The ID of the account for this access policy.
- private
Path StringService Gateway - The private path service gateway identifier.
- is
Private StringPath Service Gateway Account Policy Id - The unique identifier of the PrivatePathServiceGatewayAccountPolicy. The ID is composed of
<private_path_service_gateway_id>/<account_policy_id>
.
- access
Policy string - The access policy for the account:- permit: access will be permitted- deny: access will be denied- review: access will be manually reviewed. Allowable values are:
deny
,permit
,review
. - account string
- The ID of the account for this access policy.
- private
Path stringService Gateway - The private path service gateway identifier.
- is
Private stringPath Service Gateway Account Policy Id - The unique identifier of the PrivatePathServiceGatewayAccountPolicy. The ID is composed of
<private_path_service_gateway_id>/<account_policy_id>
.
- access_
policy str - The access policy for the account:- permit: access will be permitted- deny: access will be denied- review: access will be manually reviewed. Allowable values are:
deny
,permit
,review
. - account str
- The ID of the account for this access policy.
- private_
path_ strservice_ gateway - The private path service gateway identifier.
- is_
private_ strpath_ service_ gateway_ account_ policy_ id - The unique identifier of the PrivatePathServiceGatewayAccountPolicy. The ID is composed of
<private_path_service_gateway_id>/<account_policy_id>
.
- access
Policy String - The access policy for the account:- permit: access will be permitted- deny: access will be denied- review: access will be manually reviewed. Allowable values are:
deny
,permit
,review
. - account String
- The ID of the account for this access policy.
- private
Path StringService Gateway - The private path service gateway identifier.
- is
Private StringPath Service Gateway Account Policy Id - The unique identifier of the PrivatePathServiceGatewayAccountPolicy. The ID is composed of
<private_path_service_gateway_id>/<account_policy_id>
.
Outputs
All input properties are implicitly available as output properties. Additionally, the IsPrivatePathServiceGatewayAccountPolicy resource produces the following output properties:
- Account
Policy string - (String) The unique identifier for this account policy.
- 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
- The provider-assigned unique ID for this managed resource.
- Resource
Type string - (String) The resource type.
- Updated
At string - (String) The date and time that the account policy was updated.
- Account
Policy string - (String) The unique identifier for this account policy.
- 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
- The provider-assigned unique ID for this managed resource.
- Resource
Type string - (String) The resource type.
- Updated
At string - (String) The date and time that the account policy was updated.
- account
Policy String - (String) The unique identifier for this account policy.
- 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
- The provider-assigned unique ID for this managed resource.
- resource
Type String - (String) The resource type.
- updated
At String - (String) The date and time that the account policy was updated.
- account
Policy string - (String) The unique identifier for this account policy.
- 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
- The provider-assigned unique ID for this managed resource.
- resource
Type string - (String) The resource type.
- updated
At string - (String) The date and time that the account policy was updated.
- account_
policy str - (String) The unique identifier for this account policy.
- 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
- The provider-assigned unique ID for this managed resource.
- resource_
type str - (String) The resource type.
- updated_
at str - (String) The date and time that the account policy was updated.
- account
Policy String - (String) The unique identifier for this account policy.
- 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
- The provider-assigned unique ID for this managed resource.
- resource
Type String - (String) The resource type.
- updated
At String - (String) The date and time that the account policy was updated.
Look up Existing IsPrivatePathServiceGatewayAccountPolicy Resource
Get an existing IsPrivatePathServiceGatewayAccountPolicy 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?: IsPrivatePathServiceGatewayAccountPolicyState, opts?: CustomResourceOptions): IsPrivatePathServiceGatewayAccountPolicy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_policy: Optional[str] = None,
account: Optional[str] = None,
account_policy: Optional[str] = None,
created_at: Optional[str] = None,
href: Optional[str] = None,
is_private_path_service_gateway_account_policy_id: Optional[str] = None,
private_path_service_gateway: Optional[str] = None,
resource_type: Optional[str] = None,
updated_at: Optional[str] = None) -> IsPrivatePathServiceGatewayAccountPolicy
func GetIsPrivatePathServiceGatewayAccountPolicy(ctx *Context, name string, id IDInput, state *IsPrivatePathServiceGatewayAccountPolicyState, opts ...ResourceOption) (*IsPrivatePathServiceGatewayAccountPolicy, error)
public static IsPrivatePathServiceGatewayAccountPolicy Get(string name, Input<string> id, IsPrivatePathServiceGatewayAccountPolicyState? state, CustomResourceOptions? opts = null)
public static IsPrivatePathServiceGatewayAccountPolicy get(String name, Output<String> id, IsPrivatePathServiceGatewayAccountPolicyState state, CustomResourceOptions options)
resources: _: type: ibm:IsPrivatePathServiceGatewayAccountPolicy 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 account:- permit: access will be permitted- deny: access will be denied- review: access will be manually reviewed. Allowable values are:
deny
,permit
,review
. - Account string
- The ID of the account for this access policy.
- Account
Policy string - (String) The unique identifier for this account policy.
- Created
At string - (String) The date and time that the account policy was created.
- Href string
- (String) The URL for this account policy.
- Is
Private stringPath Service Gateway Account Policy Id - The unique identifier of the PrivatePathServiceGatewayAccountPolicy. The ID is composed of
<private_path_service_gateway_id>/<account_policy_id>
. - Private
Path stringService Gateway - The private path service gateway identifier.
- Resource
Type string - (String) The resource type.
- Updated
At string - (String) The date and time that the account policy was updated.
- Access
Policy string - The access policy for the account:- permit: access will be permitted- deny: access will be denied- review: access will be manually reviewed. Allowable values are:
deny
,permit
,review
. - Account string
- The ID of the account for this access policy.
- Account
Policy string - (String) The unique identifier for this account policy.
- Created
At string - (String) The date and time that the account policy was created.
- Href string
- (String) The URL for this account policy.
- Is
Private stringPath Service Gateway Account Policy Id - The unique identifier of the PrivatePathServiceGatewayAccountPolicy. The ID is composed of
<private_path_service_gateway_id>/<account_policy_id>
. - Private
Path stringService Gateway - The private path service gateway identifier.
- Resource
Type string - (String) The resource type.
- Updated
At string - (String) The date and time that the account policy was updated.
- access
Policy String - The access policy for the account:- permit: access will be permitted- deny: access will be denied- review: access will be manually reviewed. Allowable values are:
deny
,permit
,review
. - account String
- The ID of the account for this access policy.
- account
Policy String - (String) The unique identifier for this account policy.
- created
At String - (String) The date and time that the account policy was created.
- href String
- (String) The URL for this account policy.
- is
Private StringPath Service Gateway Account Policy Id - The unique identifier of the PrivatePathServiceGatewayAccountPolicy. The ID is composed of
<private_path_service_gateway_id>/<account_policy_id>
. - private
Path StringService Gateway - The private path service gateway identifier.
- resource
Type String - (String) The resource type.
- updated
At String - (String) The date and time that the account policy was updated.
- access
Policy string - The access policy for the account:- permit: access will be permitted- deny: access will be denied- review: access will be manually reviewed. Allowable values are:
deny
,permit
,review
. - account string
- The ID of the account for this access policy.
- account
Policy string - (String) The unique identifier for this account policy.
- created
At string - (String) The date and time that the account policy was created.
- href string
- (String) The URL for this account policy.
- is
Private stringPath Service Gateway Account Policy Id - The unique identifier of the PrivatePathServiceGatewayAccountPolicy. The ID is composed of
<private_path_service_gateway_id>/<account_policy_id>
. - private
Path stringService Gateway - The private path service gateway identifier.
- resource
Type string - (String) The resource type.
- updated
At string - (String) The date and time that the account policy was updated.
- access_
policy str - The access policy for the account:- permit: access will be permitted- deny: access will be denied- review: access will be manually reviewed. Allowable values are:
deny
,permit
,review
. - account str
- The ID of the account for this access policy.
- account_
policy str - (String) The unique identifier for this account policy.
- created_
at str - (String) The date and time that the account policy was created.
- href str
- (String) The URL for this account policy.
- is_
private_ strpath_ service_ gateway_ account_ policy_ id - The unique identifier of the PrivatePathServiceGatewayAccountPolicy. The ID is composed of
<private_path_service_gateway_id>/<account_policy_id>
. - private_
path_ strservice_ gateway - The private path service gateway identifier.
- resource_
type str - (String) The resource type.
- updated_
at str - (String) The date and time that the account policy was updated.
- access
Policy String - The access policy for the account:- permit: access will be permitted- deny: access will be denied- review: access will be manually reviewed. Allowable values are:
deny
,permit
,review
. - account String
- The ID of the account for this access policy.
- account
Policy String - (String) The unique identifier for this account policy.
- created
At String - (String) The date and time that the account policy was created.
- href String
- (String) The URL for this account policy.
- is
Private StringPath Service Gateway Account Policy Id - The unique identifier of the PrivatePathServiceGatewayAccountPolicy. The ID is composed of
<private_path_service_gateway_id>/<account_policy_id>
. - private
Path StringService Gateway - The private path service gateway identifier.
- resource
Type String - (String) The resource type.
- updated
At String - (String) The date and time that the account policy was updated.
Import
You can import the ibm_is_private_path_service_gateway_account_policy
resource by using id
in the following format <private_path_service_gateway_id>/<id>
private_path_service_gateway
: A string. The private path service gateway identifier.id
: A string. The account policy identifier.
Syntax
$ pulumi import ibm:index/isPrivatePathServiceGatewayAccountPolicy:IsPrivatePathServiceGatewayAccountPolicy example 0767-fa41aecb-4f21-423d-8082-630bfba1e1d9/d7bec597-4726-451f-8a63-e62e6f19c32c
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.