ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getIamAuthorizationPolicies
Explore with Pulumi AI
Retrieve information about an IAM service authorization policy. For more information, about IAM service authorizations, see using authorizations to grant access between services.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const testaccDsAuthorizationPolicy = ibm.getIamAuthorizationPolicies({});
import pulumi
import pulumi_ibm as ibm
testacc_ds_authorization_policy = ibm.get_iam_authorization_policies()
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 {
_, err := ibm.GetIamAuthorizationPolicies(ctx, &ibm.GetIamAuthorizationPoliciesArgs{}, nil)
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 testaccDsAuthorizationPolicy = Ibm.GetIamAuthorizationPolicies.Invoke();
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetIamAuthorizationPoliciesArgs;
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 testaccDsAuthorizationPolicy = IbmFunctions.getIamAuthorizationPolicies();
}
}
variables:
testaccDsAuthorizationPolicy:
fn::invoke:
function: ibm:getIamAuthorizationPolicies
arguments: {}
Using getIamAuthorizationPolicies
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 getIamAuthorizationPolicies(args: GetIamAuthorizationPoliciesArgs, opts?: InvokeOptions): Promise<GetIamAuthorizationPoliciesResult>
function getIamAuthorizationPoliciesOutput(args: GetIamAuthorizationPoliciesOutputArgs, opts?: InvokeOptions): Output<GetIamAuthorizationPoliciesResult>
def get_iam_authorization_policies(account_id: Optional[str] = None,
id: Optional[str] = None,
sort: Optional[str] = None,
transaction_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIamAuthorizationPoliciesResult
def get_iam_authorization_policies_output(account_id: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
sort: Optional[pulumi.Input[str]] = None,
transaction_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIamAuthorizationPoliciesResult]
func GetIamAuthorizationPolicies(ctx *Context, args *GetIamAuthorizationPoliciesArgs, opts ...InvokeOption) (*GetIamAuthorizationPoliciesResult, error)
func GetIamAuthorizationPoliciesOutput(ctx *Context, args *GetIamAuthorizationPoliciesOutputArgs, opts ...InvokeOption) GetIamAuthorizationPoliciesResultOutput
> Note: This function is named GetIamAuthorizationPolicies
in the Go SDK.
public static class GetIamAuthorizationPolicies
{
public static Task<GetIamAuthorizationPoliciesResult> InvokeAsync(GetIamAuthorizationPoliciesArgs args, InvokeOptions? opts = null)
public static Output<GetIamAuthorizationPoliciesResult> Invoke(GetIamAuthorizationPoliciesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetIamAuthorizationPoliciesResult> getIamAuthorizationPolicies(GetIamAuthorizationPoliciesArgs args, InvokeOptions options)
public static Output<GetIamAuthorizationPoliciesResult> getIamAuthorizationPolicies(GetIamAuthorizationPoliciesArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getIamAuthorizationPolicies:getIamAuthorizationPolicies
arguments:
# arguments dictionary
The following arguments are supported:
- Account
Id string - An alpha-numeric value identifying the account ID.
- Id string
- (String) The unique identifier of the IAM user policy. The ID is composed of
<account_id>/<authorization_policy_id>
. - Sort string
- Transaction
Id string - The TransactionID can be passed to your request for the tracking calls.
- Account
Id string - An alpha-numeric value identifying the account ID.
- Id string
- (String) The unique identifier of the IAM user policy. The ID is composed of
<account_id>/<authorization_policy_id>
. - Sort string
- Transaction
Id string - The TransactionID can be passed to your request for the tracking calls.
- account
Id String - An alpha-numeric value identifying the account ID.
- id String
- (String) The unique identifier of the IAM user policy. The ID is composed of
<account_id>/<authorization_policy_id>
. - sort String
- transaction
Id String - The TransactionID can be passed to your request for the tracking calls.
- account
Id string - An alpha-numeric value identifying the account ID.
- id string
- (String) The unique identifier of the IAM user policy. The ID is composed of
<account_id>/<authorization_policy_id>
. - sort string
- transaction
Id string - The TransactionID can be passed to your request for the tracking calls.
- account_
id str - An alpha-numeric value identifying the account ID.
- id str
- (String) The unique identifier of the IAM user policy. The ID is composed of
<account_id>/<authorization_policy_id>
. - sort str
- transaction_
id str - The TransactionID can be passed to your request for the tracking calls.
- account
Id String - An alpha-numeric value identifying the account ID.
- id String
- (String) The unique identifier of the IAM user policy. The ID is composed of
<account_id>/<authorization_policy_id>
. - sort String
- transaction
Id String - The TransactionID can be passed to your request for the tracking calls.
getIamAuthorizationPolicies Result
The following output properties are available:
- Account
Id string - Id string
- (String) The unique identifier of the IAM user policy. The ID is composed of
<account_id>/<authorization_policy_id>
. - Policies
List<Get
Iam Authorization Policies Policy> - (List) A nested block describes IAM Authorization Policies in an account.
- Transaction
Id string - Sort string
- Account
Id string - Id string
- (String) The unique identifier of the IAM user policy. The ID is composed of
<account_id>/<authorization_policy_id>
. - Policies
[]Get
Iam Authorization Policies Policy - (List) A nested block describes IAM Authorization Policies in an account.
- Transaction
Id string - Sort string
- account
Id String - id String
- (String) The unique identifier of the IAM user policy. The ID is composed of
<account_id>/<authorization_policy_id>
. - policies
List<Get
Iam Authorization Policies Policy> - (List) A nested block describes IAM Authorization Policies in an account.
- transaction
Id String - sort String
- account
Id string - id string
- (String) The unique identifier of the IAM user policy. The ID is composed of
<account_id>/<authorization_policy_id>
. - policies
Get
Iam Authorization Policies Policy[] - (List) A nested block describes IAM Authorization Policies in an account.
- transaction
Id string - sort string
- account_
id str - id str
- (String) The unique identifier of the IAM user policy. The ID is composed of
<account_id>/<authorization_policy_id>
. - policies
Sequence[Get
Iam Authorization Policies Policy] - (List) A nested block describes IAM Authorization Policies in an account.
- transaction_
id str - sort str
- account
Id String - id String
- (String) The unique identifier of the IAM user policy. The ID is composed of
<account_id>/<authorization_policy_id>
. - policies List<Property Map>
- (List) A nested block describes IAM Authorization Policies in an account.
- transaction
Id String - sort String
Supporting Types
GetIamAuthorizationPoliciesPolicy
- Description string
- (String) The description of the IAM User Policy.
- Id string
- (String) The unique identifier of the IAM user policy. The ID is composed of
<account_id>/<authorization_policy_id>
. - Roles List<string>
- (String) The roles that are assigned to the policy.
- Source
Resource stringGroup Id - (string) The source resource group id.
- Source
Resource stringInstance Id - (string) The source resource instance id.
- Source
Resource stringType - (string) The resource type of source service.
- Source
Service stringAccount - (string) The account GUID of source service.
- Source
Service stringName - (string) The source service name.
- Target
Resource stringGroup Id - (string) The target resource group id.
- Target
Resource stringInstance Id - (string) The target resource instance id.
- Target
Resource stringType - (string) The resource type of target service.
- Target
Service stringName - (string) The target service name.
- Version string
- Description string
- (String) The description of the IAM User Policy.
- Id string
- (String) The unique identifier of the IAM user policy. The ID is composed of
<account_id>/<authorization_policy_id>
. - Roles []string
- (String) The roles that are assigned to the policy.
- Source
Resource stringGroup Id - (string) The source resource group id.
- Source
Resource stringInstance Id - (string) The source resource instance id.
- Source
Resource stringType - (string) The resource type of source service.
- Source
Service stringAccount - (string) The account GUID of source service.
- Source
Service stringName - (string) The source service name.
- Target
Resource stringGroup Id - (string) The target resource group id.
- Target
Resource stringInstance Id - (string) The target resource instance id.
- Target
Resource stringType - (string) The resource type of target service.
- Target
Service stringName - (string) The target service name.
- Version string
- description String
- (String) The description of the IAM User Policy.
- id String
- (String) The unique identifier of the IAM user policy. The ID is composed of
<account_id>/<authorization_policy_id>
. - roles List<String>
- (String) The roles that are assigned to the policy.
- source
Resource StringGroup Id - (string) The source resource group id.
- source
Resource StringInstance Id - (string) The source resource instance id.
- source
Resource StringType - (string) The resource type of source service.
- source
Service StringAccount - (string) The account GUID of source service.
- source
Service StringName - (string) The source service name.
- target
Resource StringGroup Id - (string) The target resource group id.
- target
Resource StringInstance Id - (string) The target resource instance id.
- target
Resource StringType - (string) The resource type of target service.
- target
Service StringName - (string) The target service name.
- version String
- description string
- (String) The description of the IAM User Policy.
- id string
- (String) The unique identifier of the IAM user policy. The ID is composed of
<account_id>/<authorization_policy_id>
. - roles string[]
- (String) The roles that are assigned to the policy.
- source
Resource stringGroup Id - (string) The source resource group id.
- source
Resource stringInstance Id - (string) The source resource instance id.
- source
Resource stringType - (string) The resource type of source service.
- source
Service stringAccount - (string) The account GUID of source service.
- source
Service stringName - (string) The source service name.
- target
Resource stringGroup Id - (string) The target resource group id.
- target
Resource stringInstance Id - (string) The target resource instance id.
- target
Resource stringType - (string) The resource type of target service.
- target
Service stringName - (string) The target service name.
- version string
- description str
- (String) The description of the IAM User Policy.
- id str
- (String) The unique identifier of the IAM user policy. The ID is composed of
<account_id>/<authorization_policy_id>
. - roles Sequence[str]
- (String) The roles that are assigned to the policy.
- source_
resource_ strgroup_ id - (string) The source resource group id.
- source_
resource_ strinstance_ id - (string) The source resource instance id.
- source_
resource_ strtype - (string) The resource type of source service.
- source_
service_ straccount - (string) The account GUID of source service.
- source_
service_ strname - (string) The source service name.
- target_
resource_ strgroup_ id - (string) The target resource group id.
- target_
resource_ strinstance_ id - (string) The target resource instance id.
- target_
resource_ strtype - (string) The resource type of target service.
- target_
service_ strname - (string) The target service name.
- version str
- description String
- (String) The description of the IAM User Policy.
- id String
- (String) The unique identifier of the IAM user policy. The ID is composed of
<account_id>/<authorization_policy_id>
. - roles List<String>
- (String) The roles that are assigned to the policy.
- source
Resource StringGroup Id - (string) The source resource group id.
- source
Resource StringInstance Id - (string) The source resource instance id.
- source
Resource StringType - (string) The resource type of source service.
- source
Service StringAccount - (string) The account GUID of source service.
- source
Service StringName - (string) The source service name.
- target
Resource StringGroup Id - (string) The target resource group id.
- target
Resource StringInstance Id - (string) The target resource instance id.
- target
Resource StringType - (string) The resource type of target service.
- target
Service StringName - (string) The target service name.
- version String
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.