1. Packages
  2. Fortimanager Provider
  3. API Docs
  4. SystemAdminUserPolicyblock
fortimanager 1.13.0 published on Thursday, Mar 13, 2025 by fortinetdev

fortimanager.SystemAdminUserPolicyblock

Explore with Pulumi AI

Policy block write access.

This resource is a sub resource for variable policy_block of resource fortimanager.SystemAdminUser. Conflict and overwrite may occur if use both of them.

Create SystemAdminUserPolicyblock Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new SystemAdminUserPolicyblock(name: string, args: SystemAdminUserPolicyblockArgs, opts?: CustomResourceOptions);
@overload
def SystemAdminUserPolicyblock(resource_name: str,
                               args: SystemAdminUserPolicyblockArgs,
                               opts: Optional[ResourceOptions] = None)

@overload
def SystemAdminUserPolicyblock(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               user: Optional[str] = None,
                               policy_block_name: Optional[str] = None,
                               system_admin_user_policyblock_id: Optional[str] = None)
func NewSystemAdminUserPolicyblock(ctx *Context, name string, args SystemAdminUserPolicyblockArgs, opts ...ResourceOption) (*SystemAdminUserPolicyblock, error)
public SystemAdminUserPolicyblock(string name, SystemAdminUserPolicyblockArgs args, CustomResourceOptions? opts = null)
public SystemAdminUserPolicyblock(String name, SystemAdminUserPolicyblockArgs args)
public SystemAdminUserPolicyblock(String name, SystemAdminUserPolicyblockArgs args, CustomResourceOptions options)
type: fortimanager:SystemAdminUserPolicyblock
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. SystemAdminUserPolicyblockArgs
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. SystemAdminUserPolicyblockArgs
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. SystemAdminUserPolicyblockArgs
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. SystemAdminUserPolicyblockArgs
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. SystemAdminUserPolicyblockArgs
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 systemAdminUserPolicyblockResource = new Fortimanager.SystemAdminUserPolicyblock("systemAdminUserPolicyblockResource", new()
{
    User = "string",
    PolicyBlockName = "string",
    SystemAdminUserPolicyblockId = "string",
});
Copy
example, err := fortimanager.NewSystemAdminUserPolicyblock(ctx, "systemAdminUserPolicyblockResource", &fortimanager.SystemAdminUserPolicyblockArgs{
User: pulumi.String("string"),
PolicyBlockName: pulumi.String("string"),
SystemAdminUserPolicyblockId: pulumi.String("string"),
})
Copy
var systemAdminUserPolicyblockResource = new SystemAdminUserPolicyblock("systemAdminUserPolicyblockResource", SystemAdminUserPolicyblockArgs.builder()
    .user("string")
    .policyBlockName("string")
    .systemAdminUserPolicyblockId("string")
    .build());
Copy
system_admin_user_policyblock_resource = fortimanager.SystemAdminUserPolicyblock("systemAdminUserPolicyblockResource",
    user="string",
    policy_block_name="string",
    system_admin_user_policyblock_id="string")
Copy
const systemAdminUserPolicyblockResource = new fortimanager.SystemAdminUserPolicyblock("systemAdminUserPolicyblockResource", {
    user: "string",
    policyBlockName: "string",
    systemAdminUserPolicyblockId: "string",
});
Copy
type: fortimanager:SystemAdminUserPolicyblock
properties:
    policyBlockName: string
    systemAdminUserPolicyblockId: string
    user: string
Copy

SystemAdminUserPolicyblock 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 SystemAdminUserPolicyblock resource accepts the following input properties:

User This property is required. string
User.
PolicyBlockName string
Policy block names.
SystemAdminUserPolicyblockId string
an identifier for the resource with format {{policy_block_name}}.
User This property is required. string
User.
PolicyBlockName string
Policy block names.
SystemAdminUserPolicyblockId string
an identifier for the resource with format {{policy_block_name}}.
user This property is required. String
User.
policyBlockName String
Policy block names.
systemAdminUserPolicyblockId String
an identifier for the resource with format {{policy_block_name}}.
user This property is required. string
User.
policyBlockName string
Policy block names.
systemAdminUserPolicyblockId string
an identifier for the resource with format {{policy_block_name}}.
user This property is required. str
User.
policy_block_name str
Policy block names.
system_admin_user_policyblock_id str
an identifier for the resource with format {{policy_block_name}}.
user This property is required. String
User.
policyBlockName String
Policy block names.
systemAdminUserPolicyblockId String
an identifier for the resource with format {{policy_block_name}}.

Outputs

All input properties are implicitly available as output properties. Additionally, the SystemAdminUserPolicyblock 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 SystemAdminUserPolicyblock Resource

Get an existing SystemAdminUserPolicyblock 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?: SystemAdminUserPolicyblockState, opts?: CustomResourceOptions): SystemAdminUserPolicyblock
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        policy_block_name: Optional[str] = None,
        system_admin_user_policyblock_id: Optional[str] = None,
        user: Optional[str] = None) -> SystemAdminUserPolicyblock
func GetSystemAdminUserPolicyblock(ctx *Context, name string, id IDInput, state *SystemAdminUserPolicyblockState, opts ...ResourceOption) (*SystemAdminUserPolicyblock, error)
public static SystemAdminUserPolicyblock Get(string name, Input<string> id, SystemAdminUserPolicyblockState? state, CustomResourceOptions? opts = null)
public static SystemAdminUserPolicyblock get(String name, Output<String> id, SystemAdminUserPolicyblockState state, CustomResourceOptions options)
resources:  _:    type: fortimanager:SystemAdminUserPolicyblock    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:
PolicyBlockName string
Policy block names.
SystemAdminUserPolicyblockId string
an identifier for the resource with format {{policy_block_name}}.
User string
User.
PolicyBlockName string
Policy block names.
SystemAdminUserPolicyblockId string
an identifier for the resource with format {{policy_block_name}}.
User string
User.
policyBlockName String
Policy block names.
systemAdminUserPolicyblockId String
an identifier for the resource with format {{policy_block_name}}.
user String
User.
policyBlockName string
Policy block names.
systemAdminUserPolicyblockId string
an identifier for the resource with format {{policy_block_name}}.
user string
User.
policy_block_name str
Policy block names.
system_admin_user_policyblock_id str
an identifier for the resource with format {{policy_block_name}}.
user str
User.
policyBlockName String
Policy block names.
systemAdminUserPolicyblockId String
an identifier for the resource with format {{policy_block_name}}.
user String
User.

Import

System AdminUserPolicyBlock can be imported using any of these accepted formats:

Set import_options = [“user=YOUR_VALUE”] in the provider section.

$ export “FORTIMANAGER_IMPORT_TABLE”=“true”

$ pulumi import fortimanager:index/systemAdminUserPolicyblock:SystemAdminUserPolicyblock labelname {{policy_block_name}}
Copy

$ unset “FORTIMANAGER_IMPORT_TABLE”

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
fortimanager fortinetdev/terraform-provider-fortimanager
License
Notes
This Pulumi package is based on the fortimanager Terraform Provider.