ibm 1.79.2 published on Friday, Jun 13, 2025 by ibm-cloud
ibm.getIamActionControlTemplateVersion
Explore with Pulumi AI
Provides a read-only data source to retrieve information about a action_control_template. You can then reference the fields of the data source in other resources within the same configuration by using interpolation syntax.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const actionControlTemplate = ibm.getIamActionControlTemplateVersion({
actionControlTemplateId: ibm_iam_action_control_template_version.action_control_template.action_control_template_id,
version: "version",
});
import pulumi
import pulumi_ibm as ibm
action_control_template = ibm.get_iam_action_control_template_version(action_control_template_id=ibm_iam_action_control_template_version["action_control_template"]["action_control_template_id"],
version="version")
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.LookupIamActionControlTemplateVersion(ctx, &ibm.LookupIamActionControlTemplateVersionArgs{
ActionControlTemplateId: ibm_iam_action_control_template_version.Action_control_template.Action_control_template_id,
Version: "version",
}, 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 actionControlTemplate = Ibm.GetIamActionControlTemplateVersion.Invoke(new()
{
ActionControlTemplateId = ibm_iam_action_control_template_version.Action_control_template.Action_control_template_id,
Version = "version",
});
});
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.GetIamActionControlTemplateVersionArgs;
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 actionControlTemplate = IbmFunctions.getIamActionControlTemplateVersion(GetIamActionControlTemplateVersionArgs.builder()
.actionControlTemplateId(ibm_iam_action_control_template_version.action_control_template().action_control_template_id())
.version("version")
.build());
}
}
variables:
actionControlTemplate:
fn::invoke:
function: ibm:getIamActionControlTemplateVersion
arguments:
actionControlTemplateId: ${ibm_iam_action_control_template_version.action_control_template.action_control_template_id}
version: version
Using getIamActionControlTemplateVersion
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 getIamActionControlTemplateVersion(args: GetIamActionControlTemplateVersionArgs, opts?: InvokeOptions): Promise<GetIamActionControlTemplateVersionResult>
function getIamActionControlTemplateVersionOutput(args: GetIamActionControlTemplateVersionOutputArgs, opts?: InvokeOptions): Output<GetIamActionControlTemplateVersionResult>
def get_iam_action_control_template_version(action_control_template_id: Optional[str] = None,
id: Optional[str] = None,
version: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIamActionControlTemplateVersionResult
def get_iam_action_control_template_version_output(action_control_template_id: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
version: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIamActionControlTemplateVersionResult]
func LookupIamActionControlTemplateVersion(ctx *Context, args *LookupIamActionControlTemplateVersionArgs, opts ...InvokeOption) (*LookupIamActionControlTemplateVersionResult, error)
func LookupIamActionControlTemplateVersionOutput(ctx *Context, args *LookupIamActionControlTemplateVersionOutputArgs, opts ...InvokeOption) LookupIamActionControlTemplateVersionResultOutput
> Note: This function is named LookupIamActionControlTemplateVersion
in the Go SDK.
public static class GetIamActionControlTemplateVersion
{
public static Task<GetIamActionControlTemplateVersionResult> InvokeAsync(GetIamActionControlTemplateVersionArgs args, InvokeOptions? opts = null)
public static Output<GetIamActionControlTemplateVersionResult> Invoke(GetIamActionControlTemplateVersionInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetIamActionControlTemplateVersionResult> getIamActionControlTemplateVersion(GetIamActionControlTemplateVersionArgs args, InvokeOptions options)
public static Output<GetIamActionControlTemplateVersionResult> getIamActionControlTemplateVersion(GetIamActionControlTemplateVersionArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getIamActionControlTemplateVersion:getIamActionControlTemplateVersion
arguments:
# arguments dictionary
The following arguments are supported:
- Action
Control stringTemplate Id - The policy template ID.
- Version string
- The policy template version.
- Id string
- The unique identifier of the action_control_template.
- Action
Control stringTemplate Id - The policy template ID.
- Version string
- The policy template version.
- Id string
- The unique identifier of the action_control_template.
- action
Control StringTemplate Id - The policy template ID.
- version String
- The policy template version.
- id String
- The unique identifier of the action_control_template.
- action
Control stringTemplate Id - The policy template ID.
- version string
- The policy template version.
- id string
- The unique identifier of the action_control_template.
- action_
control_ strtemplate_ id - The policy template ID.
- version str
- The policy template version.
- id str
- The unique identifier of the action_control_template.
- action
Control StringTemplate Id - The policy template ID.
- version String
- The policy template version.
- id String
- The unique identifier of the action_control_template.
getIamActionControlTemplateVersion Result
The following output properties are available:
- Account
Id string - (String) Enterprise account ID where this template will be created.
- Action
Control stringTemplate Id - Action
Controls List<GetIam Action Control Template Version Action Control> - (Optional, List) The core set of properties associated with the template's action control objet. Nested schema for action_control:
- Committed bool
- (Boolean) Committed status of the template version.
- Created
At string - Created
By stringId - Description string
- (Optional, String) Description of the action control.
- Href string
- Id string
- The unique identifier of the action_control_template.
- Last
Modified stringAt - Last
Modified stringBy Id - Name string
- (String) Required field when creating a new template. Otherwise this field is optional. If the field is included it will change the name value for all existing versions of the template.
- Constraints: The maximum length is
30
characters. The minimum length is1
character.
- Constraints: The maximum length is
- State string
- Version string
- The action_control_template version.
- Account
Id string - (String) Enterprise account ID where this template will be created.
- Action
Control stringTemplate Id - Action
Controls []GetIam Action Control Template Version Action Control - (Optional, List) The core set of properties associated with the template's action control objet. Nested schema for action_control:
- Committed bool
- (Boolean) Committed status of the template version.
- Created
At string - Created
By stringId - Description string
- (Optional, String) Description of the action control.
- Href string
- Id string
- The unique identifier of the action_control_template.
- Last
Modified stringAt - Last
Modified stringBy Id - Name string
- (String) Required field when creating a new template. Otherwise this field is optional. If the field is included it will change the name value for all existing versions of the template.
- Constraints: The maximum length is
30
characters. The minimum length is1
character.
- Constraints: The maximum length is
- State string
- Version string
- The action_control_template version.
- account
Id String - (String) Enterprise account ID where this template will be created.
- action
Control StringTemplate Id - action
Controls List<GetIam Action Control Template Version Action Control> - (Optional, List) The core set of properties associated with the template's action control objet. Nested schema for action_control:
- committed Boolean
- (Boolean) Committed status of the template version.
- created
At String - created
By StringId - description String
- (Optional, String) Description of the action control.
- href String
- id String
- The unique identifier of the action_control_template.
- last
Modified StringAt - last
Modified StringBy Id - name String
- (String) Required field when creating a new template. Otherwise this field is optional. If the field is included it will change the name value for all existing versions of the template.
- Constraints: The maximum length is
30
characters. The minimum length is1
character.
- Constraints: The maximum length is
- state String
- version String
- The action_control_template version.
- account
Id string - (String) Enterprise account ID where this template will be created.
- action
Control stringTemplate Id - action
Controls GetIam Action Control Template Version Action Control[] - (Optional, List) The core set of properties associated with the template's action control objet. Nested schema for action_control:
- committed boolean
- (Boolean) Committed status of the template version.
- created
At string - created
By stringId - description string
- (Optional, String) Description of the action control.
- href string
- id string
- The unique identifier of the action_control_template.
- last
Modified stringAt - last
Modified stringBy Id - name string
- (String) Required field when creating a new template. Otherwise this field is optional. If the field is included it will change the name value for all existing versions of the template.
- Constraints: The maximum length is
30
characters. The minimum length is1
character.
- Constraints: The maximum length is
- state string
- version string
- The action_control_template version.
- account_
id str - (String) Enterprise account ID where this template will be created.
- action_
control_ strtemplate_ id - action_
controls Sequence[GetIam Action Control Template Version Action Control] - (Optional, List) The core set of properties associated with the template's action control objet. Nested schema for action_control:
- committed bool
- (Boolean) Committed status of the template version.
- created_
at str - created_
by_ strid - description str
- (Optional, String) Description of the action control.
- href str
- id str
- The unique identifier of the action_control_template.
- last_
modified_ strat - last_
modified_ strby_ id - name str
- (String) Required field when creating a new template. Otherwise this field is optional. If the field is included it will change the name value for all existing versions of the template.
- Constraints: The maximum length is
30
characters. The minimum length is1
character.
- Constraints: The maximum length is
- state str
- version str
- The action_control_template version.
- account
Id String - (String) Enterprise account ID where this template will be created.
- action
Control StringTemplate Id - action
Controls List<Property Map> - (Optional, List) The core set of properties associated with the template's action control objet. Nested schema for action_control:
- committed Boolean
- (Boolean) Committed status of the template version.
- created
At String - created
By StringId - description String
- (Optional, String) Description of the action control.
- href String
- id String
- The unique identifier of the action_control_template.
- last
Modified StringAt - last
Modified StringBy Id - name String
- (String) Required field when creating a new template. Otherwise this field is optional. If the field is included it will change the name value for all existing versions of the template.
- Constraints: The maximum length is
30
characters. The minimum length is1
character.
- Constraints: The maximum length is
- state String
- version String
- The action_control_template version.
Supporting Types
GetIamActionControlTemplateVersionActionControl
- Actions List<string>
- (Required, List) List of actions to control access.
- Description string
- (Optional, String) Description of the action control.
- Service
Name string - (Required, String) The service name that the action control refers.
- Actions []string
- (Required, List) List of actions to control access.
- Description string
- (Optional, String) Description of the action control.
- Service
Name string - (Required, String) The service name that the action control refers.
- actions List<String>
- (Required, List) List of actions to control access.
- description String
- (Optional, String) Description of the action control.
- service
Name String - (Required, String) The service name that the action control refers.
- actions string[]
- (Required, List) List of actions to control access.
- description string
- (Optional, String) Description of the action control.
- service
Name string - (Required, String) The service name that the action control refers.
- actions Sequence[str]
- (Required, List) List of actions to control access.
- description str
- (Optional, String) Description of the action control.
- service_
name str - (Required, String) The service name that the action control refers.
- actions List<String>
- (Required, List) List of actions to control access.
- description String
- (Optional, String) Description of the action control.
- service
Name String - (Required, String) The service name that the action control refers.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.