get Security Gateway Iam Policy
Retrieves the current IAM policy data for securitygateway
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const policy = gcp.beyondcorp.getSecurityGatewayIamPolicy({
project: example.project,
location: example.location,
securityGatewayId: example.securityGatewayId,
});
import pulumi
import pulumi_gcp as gcp
policy = gcp.beyondcorp.get_security_gateway_iam_policy(project=example["project"],
location=example["location"],
security_gateway_id=example["securityGatewayId"])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var policy = Gcp.Beyondcorp.GetSecurityGatewayIamPolicy.Invoke(new()
{
Project = example.Project,
Location = example.Location,
SecurityGatewayId = example.SecurityGatewayId,
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/beyondcorp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := beyondcorp.LookupSecurityGatewayIamPolicy(ctx, &beyondcorp.LookupSecurityGatewayIamPolicyArgs{
Project: pulumi.StringRef(example.Project),
Location: pulumi.StringRef(example.Location),
SecurityGatewayId: example.SecurityGatewayId,
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.beyondcorp.BeyondcorpFunctions;
import com.pulumi.gcp.beyondcorp.inputs.GetSecurityGatewayIamPolicyArgs;
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) {
final var policy = BeyondcorpFunctions.getSecurityGatewayIamPolicy(GetSecurityGatewayIamPolicyArgs.builder()
.project(example.project())
.location(example.location())
.securityGatewayId(example.securityGatewayId())
.build());
}
}
variables:
policy:
fn::invoke:
function: gcp:beyondcorp:getSecurityGatewayIamPolicy
arguments:
project: ${example.project}
location: ${example.location}
securityGatewayId: ${example.securityGatewayId}
Return
A collection of values returned by getSecurityGatewayIamPolicy.
Parameters
A collection of arguments for invoking getSecurityGatewayIamPolicy.
Return
A collection of values returned by getSecurityGatewayIamPolicy.
Parameters
Resource ID segment making up resource name
. It identifies the resource within its parent collection as described in https://google.aip.dev/122. Must be omitted or set to global
. Used to find the parent resource to bind the IAM policy to. If not specified, the value will be parsed from the identifier of the parent resource. If no location is provided in the parent identifier and no location is specified, it is taken from the provider configuration.
The ID of the project in which the resource belongs. If it is not provided, the project will be parsed from the identifier of the parent resource. If no project is provided in the parent identifier and no project is specified, the provider project is used.
See also
Return
A collection of values returned by getSecurityGatewayIamPolicy.
Parameters
Builder for com.pulumi.gcp.beyondcorp.kotlin.inputs.GetSecurityGatewayIamPolicyPlainArgs.