1. Packages
  2. Azure Classic
  3. API Docs
  4. hpc
  5. CacheAccessPolicy

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi

azure.hpc.CacheAccessPolicy

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi

    Manages a HPC Cache Access Policy.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = new azure.core.ResourceGroup("example", {
        name: "example-resources",
        location: "West Europe",
    });
    const exampleVirtualNetwork = new azure.network.VirtualNetwork("example", {
        name: "examplevn",
        addressSpaces: ["10.0.0.0/16"],
        location: example.location,
        resourceGroupName: example.name,
    });
    const exampleSubnet = new azure.network.Subnet("example", {
        name: "examplesubnet",
        resourceGroupName: example.name,
        virtualNetworkName: exampleVirtualNetwork.name,
        addressPrefixes: ["10.0.1.0/24"],
    });
    const exampleCache = new azure.hpc.Cache("example", {
        name: "examplehpccache",
        resourceGroupName: example.name,
        location: example.location,
        cacheSizeInGb: 3072,
        subnetId: exampleSubnet.id,
        skuName: "Standard_2G",
    });
    const exampleCacheAccessPolicy = new azure.hpc.CacheAccessPolicy("example", {
        name: "example",
        hpcCacheId: exampleCache.id,
        accessRules: [{
            scope: "default",
            access: "rw",
        }],
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.core.ResourceGroup("example",
        name="example-resources",
        location="West Europe")
    example_virtual_network = azure.network.VirtualNetwork("example",
        name="examplevn",
        address_spaces=["10.0.0.0/16"],
        location=example.location,
        resource_group_name=example.name)
    example_subnet = azure.network.Subnet("example",
        name="examplesubnet",
        resource_group_name=example.name,
        virtual_network_name=example_virtual_network.name,
        address_prefixes=["10.0.1.0/24"])
    example_cache = azure.hpc.Cache("example",
        name="examplehpccache",
        resource_group_name=example.name,
        location=example.location,
        cache_size_in_gb=3072,
        subnet_id=example_subnet.id,
        sku_name="Standard_2G")
    example_cache_access_policy = azure.hpc.CacheAccessPolicy("example",
        name="example",
        hpc_cache_id=example_cache.id,
        access_rules=[{
            "scope": "default",
            "access": "rw",
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/hpc"
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/network"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
    			Name:     pulumi.String("example-resources"),
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "example", &network.VirtualNetworkArgs{
    			Name: pulumi.String("examplevn"),
    			AddressSpaces: pulumi.StringArray{
    				pulumi.String("10.0.0.0/16"),
    			},
    			Location:          example.Location,
    			ResourceGroupName: example.Name,
    		})
    		if err != nil {
    			return err
    		}
    		exampleSubnet, err := network.NewSubnet(ctx, "example", &network.SubnetArgs{
    			Name:               pulumi.String("examplesubnet"),
    			ResourceGroupName:  example.Name,
    			VirtualNetworkName: exampleVirtualNetwork.Name,
    			AddressPrefixes: pulumi.StringArray{
    				pulumi.String("10.0.1.0/24"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		exampleCache, err := hpc.NewCache(ctx, "example", &hpc.CacheArgs{
    			Name:              pulumi.String("examplehpccache"),
    			ResourceGroupName: example.Name,
    			Location:          example.Location,
    			CacheSizeInGb:     pulumi.Int(3072),
    			SubnetId:          exampleSubnet.ID(),
    			SkuName:           pulumi.String("Standard_2G"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = hpc.NewCacheAccessPolicy(ctx, "example", &hpc.CacheAccessPolicyArgs{
    			Name:       pulumi.String("example"),
    			HpcCacheId: exampleCache.ID(),
    			AccessRules: hpc.CacheAccessPolicyAccessRuleArray{
    				&hpc.CacheAccessPolicyAccessRuleArgs{
    					Scope:  pulumi.String("default"),
    					Access: pulumi.String("rw"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Azure.Core.ResourceGroup("example", new()
        {
            Name = "example-resources",
            Location = "West Europe",
        });
    
        var exampleVirtualNetwork = new Azure.Network.VirtualNetwork("example", new()
        {
            Name = "examplevn",
            AddressSpaces = new[]
            {
                "10.0.0.0/16",
            },
            Location = example.Location,
            ResourceGroupName = example.Name,
        });
    
        var exampleSubnet = new Azure.Network.Subnet("example", new()
        {
            Name = "examplesubnet",
            ResourceGroupName = example.Name,
            VirtualNetworkName = exampleVirtualNetwork.Name,
            AddressPrefixes = new[]
            {
                "10.0.1.0/24",
            },
        });
    
        var exampleCache = new Azure.Hpc.Cache("example", new()
        {
            Name = "examplehpccache",
            ResourceGroupName = example.Name,
            Location = example.Location,
            CacheSizeInGb = 3072,
            SubnetId = exampleSubnet.Id,
            SkuName = "Standard_2G",
        });
    
        var exampleCacheAccessPolicy = new Azure.Hpc.CacheAccessPolicy("example", new()
        {
            Name = "example",
            HpcCacheId = exampleCache.Id,
            AccessRules = new[]
            {
                new Azure.Hpc.Inputs.CacheAccessPolicyAccessRuleArgs
                {
                    Scope = "default",
                    Access = "rw",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azure.core.ResourceGroup;
    import com.pulumi.azure.core.ResourceGroupArgs;
    import com.pulumi.azure.network.VirtualNetwork;
    import com.pulumi.azure.network.VirtualNetworkArgs;
    import com.pulumi.azure.network.Subnet;
    import com.pulumi.azure.network.SubnetArgs;
    import com.pulumi.azure.hpc.Cache;
    import com.pulumi.azure.hpc.CacheArgs;
    import com.pulumi.azure.hpc.CacheAccessPolicy;
    import com.pulumi.azure.hpc.CacheAccessPolicyArgs;
    import com.pulumi.azure.hpc.inputs.CacheAccessPolicyAccessRuleArgs;
    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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
                .name("example-resources")
                .location("West Europe")
                .build());
    
            var exampleVirtualNetwork = new VirtualNetwork("exampleVirtualNetwork", VirtualNetworkArgs.builder()
                .name("examplevn")
                .addressSpaces("10.0.0.0/16")
                .location(example.location())
                .resourceGroupName(example.name())
                .build());
    
            var exampleSubnet = new Subnet("exampleSubnet", SubnetArgs.builder()
                .name("examplesubnet")
                .resourceGroupName(example.name())
                .virtualNetworkName(exampleVirtualNetwork.name())
                .addressPrefixes("10.0.1.0/24")
                .build());
    
            var exampleCache = new Cache("exampleCache", CacheArgs.builder()
                .name("examplehpccache")
                .resourceGroupName(example.name())
                .location(example.location())
                .cacheSizeInGb(3072)
                .subnetId(exampleSubnet.id())
                .skuName("Standard_2G")
                .build());
    
            var exampleCacheAccessPolicy = new CacheAccessPolicy("exampleCacheAccessPolicy", CacheAccessPolicyArgs.builder()
                .name("example")
                .hpcCacheId(exampleCache.id())
                .accessRules(CacheAccessPolicyAccessRuleArgs.builder()
                    .scope("default")
                    .access("rw")
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: azure:core:ResourceGroup
        properties:
          name: example-resources
          location: West Europe
      exampleVirtualNetwork:
        type: azure:network:VirtualNetwork
        name: example
        properties:
          name: examplevn
          addressSpaces:
            - 10.0.0.0/16
          location: ${example.location}
          resourceGroupName: ${example.name}
      exampleSubnet:
        type: azure:network:Subnet
        name: example
        properties:
          name: examplesubnet
          resourceGroupName: ${example.name}
          virtualNetworkName: ${exampleVirtualNetwork.name}
          addressPrefixes:
            - 10.0.1.0/24
      exampleCache:
        type: azure:hpc:Cache
        name: example
        properties:
          name: examplehpccache
          resourceGroupName: ${example.name}
          location: ${example.location}
          cacheSizeInGb: 3072
          subnetId: ${exampleSubnet.id}
          skuName: Standard_2G
      exampleCacheAccessPolicy:
        type: azure:hpc:CacheAccessPolicy
        name: example
        properties:
          name: example
          hpcCacheId: ${exampleCache.id}
          accessRules:
            - scope: default
              access: rw
    

    Create CacheAccessPolicy Resource

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

    Constructor syntax

    new CacheAccessPolicy(name: string, args: CacheAccessPolicyArgs, opts?: CustomResourceOptions);
    @overload
    def CacheAccessPolicy(resource_name: str,
                          args: CacheAccessPolicyArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def CacheAccessPolicy(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          access_rules: Optional[Sequence[CacheAccessPolicyAccessRuleArgs]] = None,
                          hpc_cache_id: Optional[str] = None,
                          name: Optional[str] = None)
    func NewCacheAccessPolicy(ctx *Context, name string, args CacheAccessPolicyArgs, opts ...ResourceOption) (*CacheAccessPolicy, error)
    public CacheAccessPolicy(string name, CacheAccessPolicyArgs args, CustomResourceOptions? opts = null)
    public CacheAccessPolicy(String name, CacheAccessPolicyArgs args)
    public CacheAccessPolicy(String name, CacheAccessPolicyArgs args, CustomResourceOptions options)
    
    type: azure:hpc:CacheAccessPolicy
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args CacheAccessPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args CacheAccessPolicyArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args CacheAccessPolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CacheAccessPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CacheAccessPolicyArgs
    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 cacheAccessPolicyResource = new Azure.Hpc.CacheAccessPolicy("cacheAccessPolicyResource", new()
    {
        AccessRules = new[]
        {
            new Azure.Hpc.Inputs.CacheAccessPolicyAccessRuleArgs
            {
                Access = "string",
                Scope = "string",
                AnonymousGid = 0,
                AnonymousUid = 0,
                Filter = "string",
                RootSquashEnabled = false,
                SubmountAccessEnabled = false,
                SuidEnabled = false,
            },
        },
        HpcCacheId = "string",
        Name = "string",
    });
    
    example, err := hpc.NewCacheAccessPolicy(ctx, "cacheAccessPolicyResource", &hpc.CacheAccessPolicyArgs{
    	AccessRules: hpc.CacheAccessPolicyAccessRuleArray{
    		&hpc.CacheAccessPolicyAccessRuleArgs{
    			Access:                pulumi.String("string"),
    			Scope:                 pulumi.String("string"),
    			AnonymousGid:          pulumi.Int(0),
    			AnonymousUid:          pulumi.Int(0),
    			Filter:                pulumi.String("string"),
    			RootSquashEnabled:     pulumi.Bool(false),
    			SubmountAccessEnabled: pulumi.Bool(false),
    			SuidEnabled:           pulumi.Bool(false),
    		},
    	},
    	HpcCacheId: pulumi.String("string"),
    	Name:       pulumi.String("string"),
    })
    
    var cacheAccessPolicyResource = new CacheAccessPolicy("cacheAccessPolicyResource", CacheAccessPolicyArgs.builder()
        .accessRules(CacheAccessPolicyAccessRuleArgs.builder()
            .access("string")
            .scope("string")
            .anonymousGid(0)
            .anonymousUid(0)
            .filter("string")
            .rootSquashEnabled(false)
            .submountAccessEnabled(false)
            .suidEnabled(false)
            .build())
        .hpcCacheId("string")
        .name("string")
        .build());
    
    cache_access_policy_resource = azure.hpc.CacheAccessPolicy("cacheAccessPolicyResource",
        access_rules=[{
            "access": "string",
            "scope": "string",
            "anonymous_gid": 0,
            "anonymous_uid": 0,
            "filter": "string",
            "root_squash_enabled": False,
            "submount_access_enabled": False,
            "suid_enabled": False,
        }],
        hpc_cache_id="string",
        name="string")
    
    const cacheAccessPolicyResource = new azure.hpc.CacheAccessPolicy("cacheAccessPolicyResource", {
        accessRules: [{
            access: "string",
            scope: "string",
            anonymousGid: 0,
            anonymousUid: 0,
            filter: "string",
            rootSquashEnabled: false,
            submountAccessEnabled: false,
            suidEnabled: false,
        }],
        hpcCacheId: "string",
        name: "string",
    });
    
    type: azure:hpc:CacheAccessPolicy
    properties:
        accessRules:
            - access: string
              anonymousGid: 0
              anonymousUid: 0
              filter: string
              rootSquashEnabled: false
              scope: string
              submountAccessEnabled: false
              suidEnabled: false
        hpcCacheId: string
        name: string
    

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

    AccessRules List<CacheAccessPolicyAccessRule>
    One or more access_rule blocks (up to three) as defined below.
    HpcCacheId string
    The ID of the HPC Cache that this HPC Cache Access Policy resides in. Changing this forces a new HPC Cache Access Policy to be created.
    Name string
    The name which should be used for this HPC Cache Access Policy. Changing this forces a new HPC Cache Access Policy to be created.
    AccessRules []CacheAccessPolicyAccessRuleArgs
    One or more access_rule blocks (up to three) as defined below.
    HpcCacheId string
    The ID of the HPC Cache that this HPC Cache Access Policy resides in. Changing this forces a new HPC Cache Access Policy to be created.
    Name string
    The name which should be used for this HPC Cache Access Policy. Changing this forces a new HPC Cache Access Policy to be created.
    accessRules List<CacheAccessPolicyAccessRule>
    One or more access_rule blocks (up to three) as defined below.
    hpcCacheId String
    The ID of the HPC Cache that this HPC Cache Access Policy resides in. Changing this forces a new HPC Cache Access Policy to be created.
    name String
    The name which should be used for this HPC Cache Access Policy. Changing this forces a new HPC Cache Access Policy to be created.
    accessRules CacheAccessPolicyAccessRule[]
    One or more access_rule blocks (up to three) as defined below.
    hpcCacheId string
    The ID of the HPC Cache that this HPC Cache Access Policy resides in. Changing this forces a new HPC Cache Access Policy to be created.
    name string
    The name which should be used for this HPC Cache Access Policy. Changing this forces a new HPC Cache Access Policy to be created.
    access_rules Sequence[CacheAccessPolicyAccessRuleArgs]
    One or more access_rule blocks (up to three) as defined below.
    hpc_cache_id str
    The ID of the HPC Cache that this HPC Cache Access Policy resides in. Changing this forces a new HPC Cache Access Policy to be created.
    name str
    The name which should be used for this HPC Cache Access Policy. Changing this forces a new HPC Cache Access Policy to be created.
    accessRules List<Property Map>
    One or more access_rule blocks (up to three) as defined below.
    hpcCacheId String
    The ID of the HPC Cache that this HPC Cache Access Policy resides in. Changing this forces a new HPC Cache Access Policy to be created.
    name String
    The name which should be used for this HPC Cache Access Policy. Changing this forces a new HPC Cache Access Policy to be created.

    Outputs

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

    Get an existing CacheAccessPolicy 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?: CacheAccessPolicyState, opts?: CustomResourceOptions): CacheAccessPolicy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            access_rules: Optional[Sequence[CacheAccessPolicyAccessRuleArgs]] = None,
            hpc_cache_id: Optional[str] = None,
            name: Optional[str] = None) -> CacheAccessPolicy
    func GetCacheAccessPolicy(ctx *Context, name string, id IDInput, state *CacheAccessPolicyState, opts ...ResourceOption) (*CacheAccessPolicy, error)
    public static CacheAccessPolicy Get(string name, Input<string> id, CacheAccessPolicyState? state, CustomResourceOptions? opts = null)
    public static CacheAccessPolicy get(String name, Output<String> id, CacheAccessPolicyState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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:
    AccessRules List<CacheAccessPolicyAccessRule>
    One or more access_rule blocks (up to three) as defined below.
    HpcCacheId string
    The ID of the HPC Cache that this HPC Cache Access Policy resides in. Changing this forces a new HPC Cache Access Policy to be created.
    Name string
    The name which should be used for this HPC Cache Access Policy. Changing this forces a new HPC Cache Access Policy to be created.
    AccessRules []CacheAccessPolicyAccessRuleArgs
    One or more access_rule blocks (up to three) as defined below.
    HpcCacheId string
    The ID of the HPC Cache that this HPC Cache Access Policy resides in. Changing this forces a new HPC Cache Access Policy to be created.
    Name string
    The name which should be used for this HPC Cache Access Policy. Changing this forces a new HPC Cache Access Policy to be created.
    accessRules List<CacheAccessPolicyAccessRule>
    One or more access_rule blocks (up to three) as defined below.
    hpcCacheId String
    The ID of the HPC Cache that this HPC Cache Access Policy resides in. Changing this forces a new HPC Cache Access Policy to be created.
    name String
    The name which should be used for this HPC Cache Access Policy. Changing this forces a new HPC Cache Access Policy to be created.
    accessRules CacheAccessPolicyAccessRule[]
    One or more access_rule blocks (up to three) as defined below.
    hpcCacheId string
    The ID of the HPC Cache that this HPC Cache Access Policy resides in. Changing this forces a new HPC Cache Access Policy to be created.
    name string
    The name which should be used for this HPC Cache Access Policy. Changing this forces a new HPC Cache Access Policy to be created.
    access_rules Sequence[CacheAccessPolicyAccessRuleArgs]
    One or more access_rule blocks (up to three) as defined below.
    hpc_cache_id str
    The ID of the HPC Cache that this HPC Cache Access Policy resides in. Changing this forces a new HPC Cache Access Policy to be created.
    name str
    The name which should be used for this HPC Cache Access Policy. Changing this forces a new HPC Cache Access Policy to be created.
    accessRules List<Property Map>
    One or more access_rule blocks (up to three) as defined below.
    hpcCacheId String
    The ID of the HPC Cache that this HPC Cache Access Policy resides in. Changing this forces a new HPC Cache Access Policy to be created.
    name String
    The name which should be used for this HPC Cache Access Policy. Changing this forces a new HPC Cache Access Policy to be created.

    Supporting Types

    CacheAccessPolicyAccessRule, CacheAccessPolicyAccessRuleArgs

    Access string
    The access level for this rule. Possible values are: rw, ro, no.
    Scope string

    The scope of this rule. The scope and (potentially) the filter determine which clients match the rule. Possible values are: default, network, host.

    NOTE: Each access_rule should set a unique scope.

    AnonymousGid int
    The anonymous GID used when root_squash_enabled is true.
    AnonymousUid int
    The anonymous UID used when root_squash_enabled is true.
    Filter string
    The filter applied to the scope for this rule. The filter's format depends on its scope: default scope matches all clients and has no filter value; network scope takes a CIDR format; host takes an IP address or fully qualified domain name. If a client does not match any filter rule and there is no default rule, access is denied.
    RootSquashEnabled bool
    Whether to enable root squash?
    SubmountAccessEnabled bool
    Whether allow access to subdirectories under the root export?
    SuidEnabled bool
    Whether SUID is allowed?
    Access string
    The access level for this rule. Possible values are: rw, ro, no.
    Scope string

    The scope of this rule. The scope and (potentially) the filter determine which clients match the rule. Possible values are: default, network, host.

    NOTE: Each access_rule should set a unique scope.

    AnonymousGid int
    The anonymous GID used when root_squash_enabled is true.
    AnonymousUid int
    The anonymous UID used when root_squash_enabled is true.
    Filter string
    The filter applied to the scope for this rule. The filter's format depends on its scope: default scope matches all clients and has no filter value; network scope takes a CIDR format; host takes an IP address or fully qualified domain name. If a client does not match any filter rule and there is no default rule, access is denied.
    RootSquashEnabled bool
    Whether to enable root squash?
    SubmountAccessEnabled bool
    Whether allow access to subdirectories under the root export?
    SuidEnabled bool
    Whether SUID is allowed?
    access String
    The access level for this rule. Possible values are: rw, ro, no.
    scope String

    The scope of this rule. The scope and (potentially) the filter determine which clients match the rule. Possible values are: default, network, host.

    NOTE: Each access_rule should set a unique scope.

    anonymousGid Integer
    The anonymous GID used when root_squash_enabled is true.
    anonymousUid Integer
    The anonymous UID used when root_squash_enabled is true.
    filter String
    The filter applied to the scope for this rule. The filter's format depends on its scope: default scope matches all clients and has no filter value; network scope takes a CIDR format; host takes an IP address or fully qualified domain name. If a client does not match any filter rule and there is no default rule, access is denied.
    rootSquashEnabled Boolean
    Whether to enable root squash?
    submountAccessEnabled Boolean
    Whether allow access to subdirectories under the root export?
    suidEnabled Boolean
    Whether SUID is allowed?
    access string
    The access level for this rule. Possible values are: rw, ro, no.
    scope string

    The scope of this rule. The scope and (potentially) the filter determine which clients match the rule. Possible values are: default, network, host.

    NOTE: Each access_rule should set a unique scope.

    anonymousGid number
    The anonymous GID used when root_squash_enabled is true.
    anonymousUid number
    The anonymous UID used when root_squash_enabled is true.
    filter string
    The filter applied to the scope for this rule. The filter's format depends on its scope: default scope matches all clients and has no filter value; network scope takes a CIDR format; host takes an IP address or fully qualified domain name. If a client does not match any filter rule and there is no default rule, access is denied.
    rootSquashEnabled boolean
    Whether to enable root squash?
    submountAccessEnabled boolean
    Whether allow access to subdirectories under the root export?
    suidEnabled boolean
    Whether SUID is allowed?
    access str
    The access level for this rule. Possible values are: rw, ro, no.
    scope str

    The scope of this rule. The scope and (potentially) the filter determine which clients match the rule. Possible values are: default, network, host.

    NOTE: Each access_rule should set a unique scope.

    anonymous_gid int
    The anonymous GID used when root_squash_enabled is true.
    anonymous_uid int
    The anonymous UID used when root_squash_enabled is true.
    filter str
    The filter applied to the scope for this rule. The filter's format depends on its scope: default scope matches all clients and has no filter value; network scope takes a CIDR format; host takes an IP address or fully qualified domain name. If a client does not match any filter rule and there is no default rule, access is denied.
    root_squash_enabled bool
    Whether to enable root squash?
    submount_access_enabled bool
    Whether allow access to subdirectories under the root export?
    suid_enabled bool
    Whether SUID is allowed?
    access String
    The access level for this rule. Possible values are: rw, ro, no.
    scope String

    The scope of this rule. The scope and (potentially) the filter determine which clients match the rule. Possible values are: default, network, host.

    NOTE: Each access_rule should set a unique scope.

    anonymousGid Number
    The anonymous GID used when root_squash_enabled is true.
    anonymousUid Number
    The anonymous UID used when root_squash_enabled is true.
    filter String
    The filter applied to the scope for this rule. The filter's format depends on its scope: default scope matches all clients and has no filter value; network scope takes a CIDR format; host takes an IP address or fully qualified domain name. If a client does not match any filter rule and there is no default rule, access is denied.
    rootSquashEnabled Boolean
    Whether to enable root squash?
    submountAccessEnabled Boolean
    Whether allow access to subdirectories under the root export?
    suidEnabled Boolean
    Whether SUID is allowed?

    Import

    HPC Cache Access Policies can be imported using the resource id, e.g.

    $ pulumi import azure:hpc/cacheAccessPolicy:CacheAccessPolicy example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/group1/providers/Microsoft.StorageCache/caches/cache1/cacheAccessPolicies/policy1
    

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

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi