ibm.IsPrivatePathServiceGatewayRevokeAccount
Explore with Pulumi AI
Provides a resource for ibm_is_private_path_service_gateway_revoke_account. This revokes the access to provided account.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const exampleIsPrivatePathServiceGateway = new ibm.IsPrivatePathServiceGateway("exampleIsPrivatePathServiceGateway", {
defaultAccessPolicy: "permit",
loadBalancer: ibm_is_lb.testacc_LB.id,
zonalAffinity: true,
serviceEndpoints: ["myexamplefqdn"],
});
const exampleIsPrivatePathServiceGatewayRevokeAccount = new ibm.IsPrivatePathServiceGatewayRevokeAccount("exampleIsPrivatePathServiceGatewayRevokeAccount", {
account: "7f75c7b025e54bc5635f754b2f888665",
privatePathServiceGateway: exampleIsPrivatePathServiceGateway.isPrivatePathServiceGatewayId,
});
import pulumi
import pulumi_ibm as ibm
example_is_private_path_service_gateway = ibm.IsPrivatePathServiceGateway("exampleIsPrivatePathServiceGateway",
default_access_policy="permit",
load_balancer=ibm_is_lb["testacc_LB"]["id"],
zonal_affinity=True,
service_endpoints=["myexamplefqdn"])
example_is_private_path_service_gateway_revoke_account = ibm.IsPrivatePathServiceGatewayRevokeAccount("exampleIsPrivatePathServiceGatewayRevokeAccount",
account="7f75c7b025e54bc5635f754b2f888665",
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("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.NewIsPrivatePathServiceGatewayRevokeAccount(ctx, "exampleIsPrivatePathServiceGatewayRevokeAccount", &ibm.IsPrivatePathServiceGatewayRevokeAccountArgs{
Account: pulumi.String("7f75c7b025e54bc5635f754b2f888665"),
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 = "permit",
LoadBalancer = ibm_is_lb.Testacc_LB.Id,
ZonalAffinity = true,
ServiceEndpoints = new[]
{
"myexamplefqdn",
},
});
var exampleIsPrivatePathServiceGatewayRevokeAccount = new Ibm.IsPrivatePathServiceGatewayRevokeAccount("exampleIsPrivatePathServiceGatewayRevokeAccount", new()
{
Account = "7f75c7b025e54bc5635f754b2f888665",
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.IsPrivatePathServiceGatewayRevokeAccount;
import com.pulumi.ibm.IsPrivatePathServiceGatewayRevokeAccountArgs;
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("permit")
.loadBalancer(ibm_is_lb.testacc_LB().id())
.zonalAffinity(true)
.serviceEndpoints("myexamplefqdn")
.build());
var exampleIsPrivatePathServiceGatewayRevokeAccount = new IsPrivatePathServiceGatewayRevokeAccount("exampleIsPrivatePathServiceGatewayRevokeAccount", IsPrivatePathServiceGatewayRevokeAccountArgs.builder()
.account("7f75c7b025e54bc5635f754b2f888665")
.privatePathServiceGateway(exampleIsPrivatePathServiceGateway.isPrivatePathServiceGatewayId())
.build());
}
}
resources:
exampleIsPrivatePathServiceGateway:
type: ibm:IsPrivatePathServiceGateway
properties:
defaultAccessPolicy: permit
loadBalancer: ${ibm_is_lb.testacc_LB.id}
zonalAffinity: true
serviceEndpoints:
- myexamplefqdn
exampleIsPrivatePathServiceGatewayRevokeAccount:
type: ibm:IsPrivatePathServiceGatewayRevokeAccount
properties:
account: 7f75c7b025e54bc5635f754b2f888665
privatePathServiceGateway: ${exampleIsPrivatePathServiceGateway.isPrivatePathServiceGatewayId}
Create IsPrivatePathServiceGatewayRevokeAccount Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IsPrivatePathServiceGatewayRevokeAccount(name: string, args: IsPrivatePathServiceGatewayRevokeAccountArgs, opts?: CustomResourceOptions);
@overload
def IsPrivatePathServiceGatewayRevokeAccount(resource_name: str,
args: IsPrivatePathServiceGatewayRevokeAccountArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IsPrivatePathServiceGatewayRevokeAccount(resource_name: str,
opts: Optional[ResourceOptions] = None,
account: Optional[str] = None,
private_path_service_gateway: Optional[str] = None,
is_private_path_service_gateway_revoke_account_id: Optional[str] = None)
func NewIsPrivatePathServiceGatewayRevokeAccount(ctx *Context, name string, args IsPrivatePathServiceGatewayRevokeAccountArgs, opts ...ResourceOption) (*IsPrivatePathServiceGatewayRevokeAccount, error)
public IsPrivatePathServiceGatewayRevokeAccount(string name, IsPrivatePathServiceGatewayRevokeAccountArgs args, CustomResourceOptions? opts = null)
public IsPrivatePathServiceGatewayRevokeAccount(String name, IsPrivatePathServiceGatewayRevokeAccountArgs args)
public IsPrivatePathServiceGatewayRevokeAccount(String name, IsPrivatePathServiceGatewayRevokeAccountArgs args, CustomResourceOptions options)
type: ibm:IsPrivatePathServiceGatewayRevokeAccount
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 IsPrivatePathServiceGatewayRevokeAccountArgs
- 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 IsPrivatePathServiceGatewayRevokeAccountArgs
- 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 IsPrivatePathServiceGatewayRevokeAccountArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IsPrivatePathServiceGatewayRevokeAccountArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IsPrivatePathServiceGatewayRevokeAccountArgs
- 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 isPrivatePathServiceGatewayRevokeAccountResource = new Ibm.IsPrivatePathServiceGatewayRevokeAccount("isPrivatePathServiceGatewayRevokeAccountResource", new()
{
Account = "string",
PrivatePathServiceGateway = "string",
IsPrivatePathServiceGatewayRevokeAccountId = "string",
});
example, err := ibm.NewIsPrivatePathServiceGatewayRevokeAccount(ctx, "isPrivatePathServiceGatewayRevokeAccountResource", &ibm.IsPrivatePathServiceGatewayRevokeAccountArgs{
Account: pulumi.String("string"),
PrivatePathServiceGateway: pulumi.String("string"),
IsPrivatePathServiceGatewayRevokeAccountId: pulumi.String("string"),
})
var isPrivatePathServiceGatewayRevokeAccountResource = new IsPrivatePathServiceGatewayRevokeAccount("isPrivatePathServiceGatewayRevokeAccountResource", IsPrivatePathServiceGatewayRevokeAccountArgs.builder()
.account("string")
.privatePathServiceGateway("string")
.isPrivatePathServiceGatewayRevokeAccountId("string")
.build());
is_private_path_service_gateway_revoke_account_resource = ibm.IsPrivatePathServiceGatewayRevokeAccount("isPrivatePathServiceGatewayRevokeAccountResource",
account="string",
private_path_service_gateway="string",
is_private_path_service_gateway_revoke_account_id="string")
const isPrivatePathServiceGatewayRevokeAccountResource = new ibm.IsPrivatePathServiceGatewayRevokeAccount("isPrivatePathServiceGatewayRevokeAccountResource", {
account: "string",
privatePathServiceGateway: "string",
isPrivatePathServiceGatewayRevokeAccountId: "string",
});
type: ibm:IsPrivatePathServiceGatewayRevokeAccount
properties:
account: string
isPrivatePathServiceGatewayRevokeAccountId: string
privatePathServiceGateway: string
IsPrivatePathServiceGatewayRevokeAccount 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 IsPrivatePathServiceGatewayRevokeAccount resource accepts the following input properties:
- Account string
- Account ID to revoke.
- Private
Path stringService Gateway - The private path service gateway identifier.
- Is
Private stringPath Service Gateway Revoke Account Id
- Account string
- Account ID to revoke.
- Private
Path stringService Gateway - The private path service gateway identifier.
- Is
Private stringPath Service Gateway Revoke Account Id
- account String
- Account ID to revoke.
- private
Path StringService Gateway - The private path service gateway identifier.
- is
Private StringPath Service Gateway Revoke Account Id
- account string
- Account ID to revoke.
- private
Path stringService Gateway - The private path service gateway identifier.
- is
Private stringPath Service Gateway Revoke Account Id
- account str
- Account ID to revoke.
- private_
path_ strservice_ gateway - The private path service gateway identifier.
- is_
private_ strpath_ service_ gateway_ revoke_ account_ id
- account String
- Account ID to revoke.
- private
Path StringService Gateway - The private path service gateway identifier.
- is
Private StringPath Service Gateway Revoke Account Id
Outputs
All input properties are implicitly available as output properties. Additionally, the IsPrivatePathServiceGatewayRevokeAccount 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 IsPrivatePathServiceGatewayRevokeAccount Resource
Get an existing IsPrivatePathServiceGatewayRevokeAccount 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?: IsPrivatePathServiceGatewayRevokeAccountState, opts?: CustomResourceOptions): IsPrivatePathServiceGatewayRevokeAccount
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account: Optional[str] = None,
is_private_path_service_gateway_revoke_account_id: Optional[str] = None,
private_path_service_gateway: Optional[str] = None) -> IsPrivatePathServiceGatewayRevokeAccount
func GetIsPrivatePathServiceGatewayRevokeAccount(ctx *Context, name string, id IDInput, state *IsPrivatePathServiceGatewayRevokeAccountState, opts ...ResourceOption) (*IsPrivatePathServiceGatewayRevokeAccount, error)
public static IsPrivatePathServiceGatewayRevokeAccount Get(string name, Input<string> id, IsPrivatePathServiceGatewayRevokeAccountState? state, CustomResourceOptions? opts = null)
public static IsPrivatePathServiceGatewayRevokeAccount get(String name, Output<String> id, IsPrivatePathServiceGatewayRevokeAccountState state, CustomResourceOptions options)
resources: _: type: ibm:IsPrivatePathServiceGatewayRevokeAccount 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.
- Account string
- Account ID to revoke.
- Is
Private stringPath Service Gateway Revoke Account Id - Private
Path stringService Gateway - The private path service gateway identifier.
- Account string
- Account ID to revoke.
- Is
Private stringPath Service Gateway Revoke Account Id - Private
Path stringService Gateway - The private path service gateway identifier.
- account String
- Account ID to revoke.
- is
Private StringPath Service Gateway Revoke Account Id - private
Path StringService Gateway - The private path service gateway identifier.
- account string
- Account ID to revoke.
- is
Private stringPath Service Gateway Revoke Account Id - private
Path stringService Gateway - The private path service gateway identifier.
- account str
- Account ID to revoke.
- is_
private_ strpath_ service_ gateway_ revoke_ account_ id - private_
path_ strservice_ gateway - The private path service gateway identifier.
- account String
- Account ID to revoke.
- is
Private StringPath Service Gateway Revoke Account Id - private
Path StringService Gateway - The private path service gateway identifier.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.