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

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,
});
Copy
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)
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 {
		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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
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}
Copy

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 This property is required. string
The unique name of the resource.
args This property is required. IsPrivatePathServiceGatewayRevokeAccountArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. IsPrivatePathServiceGatewayRevokeAccountArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. IsPrivatePathServiceGatewayRevokeAccountArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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",
});
Copy
example, err := ibm.NewIsPrivatePathServiceGatewayRevokeAccount(ctx, "isPrivatePathServiceGatewayRevokeAccountResource", &ibm.IsPrivatePathServiceGatewayRevokeAccountArgs{
Account: pulumi.String("string"),
PrivatePathServiceGateway: pulumi.String("string"),
IsPrivatePathServiceGatewayRevokeAccountId: pulumi.String("string"),
})
Copy
var isPrivatePathServiceGatewayRevokeAccountResource = new IsPrivatePathServiceGatewayRevokeAccount("isPrivatePathServiceGatewayRevokeAccountResource", IsPrivatePathServiceGatewayRevokeAccountArgs.builder()
    .account("string")
    .privatePathServiceGateway("string")
    .isPrivatePathServiceGatewayRevokeAccountId("string")
    .build());
Copy
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")
Copy
const isPrivatePathServiceGatewayRevokeAccountResource = new ibm.IsPrivatePathServiceGatewayRevokeAccount("isPrivatePathServiceGatewayRevokeAccountResource", {
    account: "string",
    privatePathServiceGateway: "string",
    isPrivatePathServiceGatewayRevokeAccountId: "string",
});
Copy
type: ibm:IsPrivatePathServiceGatewayRevokeAccount
properties:
    account: string
    isPrivatePathServiceGatewayRevokeAccountId: string
    privatePathServiceGateway: string
Copy

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 This property is required. string
Account ID to revoke.
PrivatePathServiceGateway This property is required. string
The private path service gateway identifier.
IsPrivatePathServiceGatewayRevokeAccountId string
Account This property is required. string
Account ID to revoke.
PrivatePathServiceGateway This property is required. string
The private path service gateway identifier.
IsPrivatePathServiceGatewayRevokeAccountId string
account This property is required. String
Account ID to revoke.
privatePathServiceGateway This property is required. String
The private path service gateway identifier.
isPrivatePathServiceGatewayRevokeAccountId String
account This property is required. string
Account ID to revoke.
privatePathServiceGateway This property is required. string
The private path service gateway identifier.
isPrivatePathServiceGatewayRevokeAccountId string
account This property is required. str
Account ID to revoke.
private_path_service_gateway This property is required. str
The private path service gateway identifier.
is_private_path_service_gateway_revoke_account_id str
account This property is required. String
Account ID to revoke.
privatePathServiceGateway This property is required. String
The private path service gateway identifier.
isPrivatePathServiceGatewayRevokeAccountId String

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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
Account string
Account ID to revoke.
IsPrivatePathServiceGatewayRevokeAccountId string
PrivatePathServiceGateway string
The private path service gateway identifier.
Account string
Account ID to revoke.
IsPrivatePathServiceGatewayRevokeAccountId string
PrivatePathServiceGateway string
The private path service gateway identifier.
account String
Account ID to revoke.
isPrivatePathServiceGatewayRevokeAccountId String
privatePathServiceGateway String
The private path service gateway identifier.
account string
Account ID to revoke.
isPrivatePathServiceGatewayRevokeAccountId string
privatePathServiceGateway string
The private path service gateway identifier.
account str
Account ID to revoke.
is_private_path_service_gateway_revoke_account_id str
private_path_service_gateway str
The private path service gateway identifier.
account String
Account ID to revoke.
isPrivatePathServiceGatewayRevokeAccountId String
privatePathServiceGateway String
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.