cyral.RepositoryNetworkAccessPolicy
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cyral from "@pulumi/cyral";
// Repository the policy refers to
const mySqlserverRepo = new cyral.Repository("mySqlserverRepo", {
    type: "sqlserver",
    repoNodes: [{
        host: "sqlserver.mycompany.com",
        port: 1433,
    }],
});
const confAuth = new cyral.RepositoryConfAuth("confAuth", {
    repositoryId: mySqlserverRepo.id,
    allowNativeAuth: true,
    clientTls: "enable",
    repoTls: "enable",
});
// Allow access from IPs 1.2.3.4 and 4.3.2.1 for Admin database
// account, and from any IP address for accounts Engineer and
// Analyst.
const accessPolicy = new cyral.RepositoryNetworkAccessPolicy("accessPolicy", {
    repositoryId: mySqlserverRepo.id,
    networkAccessRules: [
        {
            name: "rule1",
            dbAccounts: ["Admin"],
            sourceIps: [
                "1.2.3.4",
                "4.3.2.1",
            ],
        },
        {
            name: "rule2",
            dbAccounts: [
                "Engineer",
                "Analyst",
            ],
        },
    ],
}, {
    dependsOn: [confAuth],
});
import pulumi
import pulumi_cyral as cyral
# Repository the policy refers to
my_sqlserver_repo = cyral.Repository("mySqlserverRepo",
    type="sqlserver",
    repo_nodes=[{
        "host": "sqlserver.mycompany.com",
        "port": 1433,
    }])
conf_auth = cyral.RepositoryConfAuth("confAuth",
    repository_id=my_sqlserver_repo.id,
    allow_native_auth=True,
    client_tls="enable",
    repo_tls="enable")
# Allow access from IPs 1.2.3.4 and 4.3.2.1 for Admin database
# account, and from any IP address for accounts Engineer and
# Analyst.
access_policy = cyral.RepositoryNetworkAccessPolicy("accessPolicy",
    repository_id=my_sqlserver_repo.id,
    network_access_rules=[
        {
            "name": "rule1",
            "db_accounts": ["Admin"],
            "source_ips": [
                "1.2.3.4",
                "4.3.2.1",
            ],
        },
        {
            "name": "rule2",
            "db_accounts": [
                "Engineer",
                "Analyst",
            ],
        },
    ],
    opts = pulumi.ResourceOptions(depends_on=[conf_auth]))
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/cyral/v4/cyral"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		// Repository the policy refers to
		mySqlserverRepo, err := cyral.NewRepository(ctx, "mySqlserverRepo", &cyral.RepositoryArgs{
			Type: pulumi.String("sqlserver"),
			RepoNodes: cyral.RepositoryRepoNodeArray{
				&cyral.RepositoryRepoNodeArgs{
					Host: pulumi.String("sqlserver.mycompany.com"),
					Port: pulumi.Float64(1433),
				},
			},
		})
		if err != nil {
			return err
		}
		confAuth, err := cyral.NewRepositoryConfAuth(ctx, "confAuth", &cyral.RepositoryConfAuthArgs{
			RepositoryId:    mySqlserverRepo.ID(),
			AllowNativeAuth: pulumi.Bool(true),
			ClientTls:       pulumi.String("enable"),
			RepoTls:         pulumi.String("enable"),
		})
		if err != nil {
			return err
		}
		// Allow access from IPs 1.2.3.4 and 4.3.2.1 for Admin database
		// account, and from any IP address for accounts Engineer and
		// Analyst.
		_, err = cyral.NewRepositoryNetworkAccessPolicy(ctx, "accessPolicy", &cyral.RepositoryNetworkAccessPolicyArgs{
			RepositoryId: mySqlserverRepo.ID(),
			NetworkAccessRules: cyral.RepositoryNetworkAccessPolicyNetworkAccessRuleArray{
				&cyral.RepositoryNetworkAccessPolicyNetworkAccessRuleArgs{
					Name: pulumi.String("rule1"),
					DbAccounts: pulumi.StringArray{
						pulumi.String("Admin"),
					},
					SourceIps: pulumi.StringArray{
						pulumi.String("1.2.3.4"),
						pulumi.String("4.3.2.1"),
					},
				},
				&cyral.RepositoryNetworkAccessPolicyNetworkAccessRuleArgs{
					Name: pulumi.String("rule2"),
					DbAccounts: pulumi.StringArray{
						pulumi.String("Engineer"),
						pulumi.String("Analyst"),
					},
				},
			},
		}, pulumi.DependsOn([]pulumi.Resource{
			confAuth,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cyral = Pulumi.Cyral;
return await Deployment.RunAsync(() => 
{
    // Repository the policy refers to
    var mySqlserverRepo = new Cyral.Repository("mySqlserverRepo", new()
    {
        Type = "sqlserver",
        RepoNodes = new[]
        {
            new Cyral.Inputs.RepositoryRepoNodeArgs
            {
                Host = "sqlserver.mycompany.com",
                Port = 1433,
            },
        },
    });
    var confAuth = new Cyral.RepositoryConfAuth("confAuth", new()
    {
        RepositoryId = mySqlserverRepo.Id,
        AllowNativeAuth = true,
        ClientTls = "enable",
        RepoTls = "enable",
    });
    // Allow access from IPs 1.2.3.4 and 4.3.2.1 for Admin database
    // account, and from any IP address for accounts Engineer and
    // Analyst.
    var accessPolicy = new Cyral.RepositoryNetworkAccessPolicy("accessPolicy", new()
    {
        RepositoryId = mySqlserverRepo.Id,
        NetworkAccessRules = new[]
        {
            new Cyral.Inputs.RepositoryNetworkAccessPolicyNetworkAccessRuleArgs
            {
                Name = "rule1",
                DbAccounts = new[]
                {
                    "Admin",
                },
                SourceIps = new[]
                {
                    "1.2.3.4",
                    "4.3.2.1",
                },
            },
            new Cyral.Inputs.RepositoryNetworkAccessPolicyNetworkAccessRuleArgs
            {
                Name = "rule2",
                DbAccounts = new[]
                {
                    "Engineer",
                    "Analyst",
                },
            },
        },
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            confAuth,
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cyral.Repository;
import com.pulumi.cyral.RepositoryArgs;
import com.pulumi.cyral.inputs.RepositoryRepoNodeArgs;
import com.pulumi.cyral.RepositoryConfAuth;
import com.pulumi.cyral.RepositoryConfAuthArgs;
import com.pulumi.cyral.RepositoryNetworkAccessPolicy;
import com.pulumi.cyral.RepositoryNetworkAccessPolicyArgs;
import com.pulumi.cyral.inputs.RepositoryNetworkAccessPolicyNetworkAccessRuleArgs;
import com.pulumi.resources.CustomResourceOptions;
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) {
        // Repository the policy refers to
        var mySqlserverRepo = new Repository("mySqlserverRepo", RepositoryArgs.builder()
            .type("sqlserver")
            .repoNodes(RepositoryRepoNodeArgs.builder()
                .host("sqlserver.mycompany.com")
                .port(1433)
                .build())
            .build());
        var confAuth = new RepositoryConfAuth("confAuth", RepositoryConfAuthArgs.builder()
            .repositoryId(mySqlserverRepo.id())
            .allowNativeAuth(true)
            .clientTls("enable")
            .repoTls("enable")
            .build());
        // Allow access from IPs 1.2.3.4 and 4.3.2.1 for Admin database
        // account, and from any IP address for accounts Engineer and
        // Analyst.
        var accessPolicy = new RepositoryNetworkAccessPolicy("accessPolicy", RepositoryNetworkAccessPolicyArgs.builder()
            .repositoryId(mySqlserverRepo.id())
            .networkAccessRules(            
                RepositoryNetworkAccessPolicyNetworkAccessRuleArgs.builder()
                    .name("rule1")
                    .dbAccounts("Admin")
                    .sourceIps(                    
                        "1.2.3.4",
                        "4.3.2.1")
                    .build(),
                RepositoryNetworkAccessPolicyNetworkAccessRuleArgs.builder()
                    .name("rule2")
                    .dbAccounts(                    
                        "Engineer",
                        "Analyst")
                    .build())
            .build(), CustomResourceOptions.builder()
                .dependsOn(confAuth)
                .build());
    }
}
resources:
  # Repository the policy refers to
  mySqlserverRepo:
    type: cyral:Repository
    properties:
      type: sqlserver
      repoNodes:
        - host: sqlserver.mycompany.com
          port: 1433
  confAuth:
    type: cyral:RepositoryConfAuth
    properties:
      repositoryId: ${mySqlserverRepo.id}
      allowNativeAuth: true
      clientTls: enable
      repoTls: enable
  # Allow access from IPs 1.2.3.4 and 4.3.2.1 for Admin database
  # account, and from any IP address for accounts Engineer and
  # Analyst.
  accessPolicy:
    type: cyral:RepositoryNetworkAccessPolicy
    properties:
      repositoryId: ${mySqlserverRepo.id}
      networkAccessRules:
        - name: rule1
          dbAccounts:
            - Admin
          sourceIps:
            - 1.2.3.4
            - 4.3.2.1
        - name: rule2
          dbAccounts:
            - Engineer
            - Analyst
    options:
      dependsOn:
        - ${confAuth}
Create RepositoryNetworkAccessPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RepositoryNetworkAccessPolicy(name: string, args: RepositoryNetworkAccessPolicyArgs, opts?: CustomResourceOptions);@overload
def RepositoryNetworkAccessPolicy(resource_name: str,
                                  args: RepositoryNetworkAccessPolicyArgs,
                                  opts: Optional[ResourceOptions] = None)
@overload
def RepositoryNetworkAccessPolicy(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  repository_id: Optional[str] = None,
                                  enabled: Optional[bool] = None,
                                  network_access_rules: Optional[Sequence[RepositoryNetworkAccessPolicyNetworkAccessRuleArgs]] = None,
                                  network_access_rules_block_access: Optional[bool] = None)func NewRepositoryNetworkAccessPolicy(ctx *Context, name string, args RepositoryNetworkAccessPolicyArgs, opts ...ResourceOption) (*RepositoryNetworkAccessPolicy, error)public RepositoryNetworkAccessPolicy(string name, RepositoryNetworkAccessPolicyArgs args, CustomResourceOptions? opts = null)
public RepositoryNetworkAccessPolicy(String name, RepositoryNetworkAccessPolicyArgs args)
public RepositoryNetworkAccessPolicy(String name, RepositoryNetworkAccessPolicyArgs args, CustomResourceOptions options)
type: cyral:RepositoryNetworkAccessPolicy
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 RepositoryNetworkAccessPolicyArgs
- 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 RepositoryNetworkAccessPolicyArgs
- 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 RepositoryNetworkAccessPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RepositoryNetworkAccessPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RepositoryNetworkAccessPolicyArgs
- 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 repositoryNetworkAccessPolicyResource = new Cyral.RepositoryNetworkAccessPolicy("repositoryNetworkAccessPolicyResource", new()
{
    RepositoryId = "string",
    Enabled = false,
    NetworkAccessRules = new[]
    {
        new Cyral.Inputs.RepositoryNetworkAccessPolicyNetworkAccessRuleArgs
        {
            Name = "string",
            DbAccounts = new[]
            {
                "string",
            },
            Description = "string",
            SourceIps = new[]
            {
                "string",
            },
        },
    },
    NetworkAccessRulesBlockAccess = false,
});
example, err := cyral.NewRepositoryNetworkAccessPolicy(ctx, "repositoryNetworkAccessPolicyResource", &cyral.RepositoryNetworkAccessPolicyArgs{
	RepositoryId: pulumi.String("string"),
	Enabled:      pulumi.Bool(false),
	NetworkAccessRules: cyral.RepositoryNetworkAccessPolicyNetworkAccessRuleArray{
		&cyral.RepositoryNetworkAccessPolicyNetworkAccessRuleArgs{
			Name: pulumi.String("string"),
			DbAccounts: pulumi.StringArray{
				pulumi.String("string"),
			},
			Description: pulumi.String("string"),
			SourceIps: pulumi.StringArray{
				pulumi.String("string"),
			},
		},
	},
	NetworkAccessRulesBlockAccess: pulumi.Bool(false),
})
var repositoryNetworkAccessPolicyResource = new RepositoryNetworkAccessPolicy("repositoryNetworkAccessPolicyResource", RepositoryNetworkAccessPolicyArgs.builder()
    .repositoryId("string")
    .enabled(false)
    .networkAccessRules(RepositoryNetworkAccessPolicyNetworkAccessRuleArgs.builder()
        .name("string")
        .dbAccounts("string")
        .description("string")
        .sourceIps("string")
        .build())
    .networkAccessRulesBlockAccess(false)
    .build());
repository_network_access_policy_resource = cyral.RepositoryNetworkAccessPolicy("repositoryNetworkAccessPolicyResource",
    repository_id="string",
    enabled=False,
    network_access_rules=[{
        "name": "string",
        "db_accounts": ["string"],
        "description": "string",
        "source_ips": ["string"],
    }],
    network_access_rules_block_access=False)
const repositoryNetworkAccessPolicyResource = new cyral.RepositoryNetworkAccessPolicy("repositoryNetworkAccessPolicyResource", {
    repositoryId: "string",
    enabled: false,
    networkAccessRules: [{
        name: "string",
        dbAccounts: ["string"],
        description: "string",
        sourceIps: ["string"],
    }],
    networkAccessRulesBlockAccess: false,
});
type: cyral:RepositoryNetworkAccessPolicy
properties:
    enabled: false
    networkAccessRules:
        - dbAccounts:
            - string
          description: string
          name: string
          sourceIps:
            - string
    networkAccessRulesBlockAccess: false
    repositoryId: string
RepositoryNetworkAccessPolicy 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 RepositoryNetworkAccessPolicy resource accepts the following input properties:
- RepositoryId string
- ID of the repository for which to configure a network access policy.
- Enabled bool
- Is the network access policy enabled? Default is true.
- NetworkAccess List<RepositoryRules Network Access Policy Network Access Rule> 
- Network access policy that decides whether access should be granted based on a set of rules.
- NetworkAccess boolRules Block Access 
- Determines what happens if an incoming connection matches one of the rules in network_access_rule. If set to true, the connection is blocked if it matches some rule (and allowed otherwise). Otherwise set to false, the connection is allowed only if it matches some rule. Default is false.
- RepositoryId string
- ID of the repository for which to configure a network access policy.
- Enabled bool
- Is the network access policy enabled? Default is true.
- NetworkAccess []RepositoryRules Network Access Policy Network Access Rule Args 
- Network access policy that decides whether access should be granted based on a set of rules.
- NetworkAccess boolRules Block Access 
- Determines what happens if an incoming connection matches one of the rules in network_access_rule. If set to true, the connection is blocked if it matches some rule (and allowed otherwise). Otherwise set to false, the connection is allowed only if it matches some rule. Default is false.
- repositoryId String
- ID of the repository for which to configure a network access policy.
- enabled Boolean
- Is the network access policy enabled? Default is true.
- networkAccess List<RepositoryRules Network Access Policy Network Access Rule> 
- Network access policy that decides whether access should be granted based on a set of rules.
- networkAccess BooleanRules Block Access 
- Determines what happens if an incoming connection matches one of the rules in network_access_rule. If set to true, the connection is blocked if it matches some rule (and allowed otherwise). Otherwise set to false, the connection is allowed only if it matches some rule. Default is false.
- repositoryId string
- ID of the repository for which to configure a network access policy.
- enabled boolean
- Is the network access policy enabled? Default is true.
- networkAccess RepositoryRules Network Access Policy Network Access Rule[] 
- Network access policy that decides whether access should be granted based on a set of rules.
- networkAccess booleanRules Block Access 
- Determines what happens if an incoming connection matches one of the rules in network_access_rule. If set to true, the connection is blocked if it matches some rule (and allowed otherwise). Otherwise set to false, the connection is allowed only if it matches some rule. Default is false.
- repository_id str
- ID of the repository for which to configure a network access policy.
- enabled bool
- Is the network access policy enabled? Default is true.
- network_access_ Sequence[Repositoryrules Network Access Policy Network Access Rule Args] 
- Network access policy that decides whether access should be granted based on a set of rules.
- network_access_ boolrules_ block_ access 
- Determines what happens if an incoming connection matches one of the rules in network_access_rule. If set to true, the connection is blocked if it matches some rule (and allowed otherwise). Otherwise set to false, the connection is allowed only if it matches some rule. Default is false.
- repositoryId String
- ID of the repository for which to configure a network access policy.
- enabled Boolean
- Is the network access policy enabled? Default is true.
- networkAccess List<Property Map>Rules 
- Network access policy that decides whether access should be granted based on a set of rules.
- networkAccess BooleanRules Block Access 
- Determines what happens if an incoming connection matches one of the rules in network_access_rule. If set to true, the connection is blocked if it matches some rule (and allowed otherwise). Otherwise set to false, the connection is allowed only if it matches some rule. Default is false.
Outputs
All input properties are implicitly available as output properties. Additionally, the RepositoryNetworkAccessPolicy 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 RepositoryNetworkAccessPolicy Resource
Get an existing RepositoryNetworkAccessPolicy 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?: RepositoryNetworkAccessPolicyState, opts?: CustomResourceOptions): RepositoryNetworkAccessPolicy@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        enabled: Optional[bool] = None,
        network_access_rules: Optional[Sequence[RepositoryNetworkAccessPolicyNetworkAccessRuleArgs]] = None,
        network_access_rules_block_access: Optional[bool] = None,
        repository_id: Optional[str] = None) -> RepositoryNetworkAccessPolicyfunc GetRepositoryNetworkAccessPolicy(ctx *Context, name string, id IDInput, state *RepositoryNetworkAccessPolicyState, opts ...ResourceOption) (*RepositoryNetworkAccessPolicy, error)public static RepositoryNetworkAccessPolicy Get(string name, Input<string> id, RepositoryNetworkAccessPolicyState? state, CustomResourceOptions? opts = null)public static RepositoryNetworkAccessPolicy get(String name, Output<String> id, RepositoryNetworkAccessPolicyState state, CustomResourceOptions options)resources:  _:    type: cyral:RepositoryNetworkAccessPolicy    get:      id: ${id}- 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.
- Enabled bool
- Is the network access policy enabled? Default is true.
- NetworkAccess List<RepositoryRules Network Access Policy Network Access Rule> 
- Network access policy that decides whether access should be granted based on a set of rules.
- NetworkAccess boolRules Block Access 
- Determines what happens if an incoming connection matches one of the rules in network_access_rule. If set to true, the connection is blocked if it matches some rule (and allowed otherwise). Otherwise set to false, the connection is allowed only if it matches some rule. Default is false.
- RepositoryId string
- ID of the repository for which to configure a network access policy.
- Enabled bool
- Is the network access policy enabled? Default is true.
- NetworkAccess []RepositoryRules Network Access Policy Network Access Rule Args 
- Network access policy that decides whether access should be granted based on a set of rules.
- NetworkAccess boolRules Block Access 
- Determines what happens if an incoming connection matches one of the rules in network_access_rule. If set to true, the connection is blocked if it matches some rule (and allowed otherwise). Otherwise set to false, the connection is allowed only if it matches some rule. Default is false.
- RepositoryId string
- ID of the repository for which to configure a network access policy.
- enabled Boolean
- Is the network access policy enabled? Default is true.
- networkAccess List<RepositoryRules Network Access Policy Network Access Rule> 
- Network access policy that decides whether access should be granted based on a set of rules.
- networkAccess BooleanRules Block Access 
- Determines what happens if an incoming connection matches one of the rules in network_access_rule. If set to true, the connection is blocked if it matches some rule (and allowed otherwise). Otherwise set to false, the connection is allowed only if it matches some rule. Default is false.
- repositoryId String
- ID of the repository for which to configure a network access policy.
- enabled boolean
- Is the network access policy enabled? Default is true.
- networkAccess RepositoryRules Network Access Policy Network Access Rule[] 
- Network access policy that decides whether access should be granted based on a set of rules.
- networkAccess booleanRules Block Access 
- Determines what happens if an incoming connection matches one of the rules in network_access_rule. If set to true, the connection is blocked if it matches some rule (and allowed otherwise). Otherwise set to false, the connection is allowed only if it matches some rule. Default is false.
- repositoryId string
- ID of the repository for which to configure a network access policy.
- enabled bool
- Is the network access policy enabled? Default is true.
- network_access_ Sequence[Repositoryrules Network Access Policy Network Access Rule Args] 
- Network access policy that decides whether access should be granted based on a set of rules.
- network_access_ boolrules_ block_ access 
- Determines what happens if an incoming connection matches one of the rules in network_access_rule. If set to true, the connection is blocked if it matches some rule (and allowed otherwise). Otherwise set to false, the connection is allowed only if it matches some rule. Default is false.
- repository_id str
- ID of the repository for which to configure a network access policy.
- enabled Boolean
- Is the network access policy enabled? Default is true.
- networkAccess List<Property Map>Rules 
- Network access policy that decides whether access should be granted based on a set of rules.
- networkAccess BooleanRules Block Access 
- Determines what happens if an incoming connection matches one of the rules in network_access_rule. If set to true, the connection is blocked if it matches some rule (and allowed otherwise). Otherwise set to false, the connection is allowed only if it matches some rule. Default is false.
- repositoryId String
- ID of the repository for which to configure a network access policy.
Supporting Types
RepositoryNetworkAccessPolicyNetworkAccessRule, RepositoryNetworkAccessPolicyNetworkAccessRuleArgs              
- Name string
- Name of the rule.
- DbAccounts List<string>
- Specify which accounts this rule applies to. The account name must match an existing account in your database.
- Description string
- Description of the network access policy.
- SourceIps List<string>
- Specify IPs to restrict the range of allowed IP addresses for this rule.
- Name string
- Name of the rule.
- DbAccounts []string
- Specify which accounts this rule applies to. The account name must match an existing account in your database.
- Description string
- Description of the network access policy.
- SourceIps []string
- Specify IPs to restrict the range of allowed IP addresses for this rule.
- name String
- Name of the rule.
- dbAccounts List<String>
- Specify which accounts this rule applies to. The account name must match an existing account in your database.
- description String
- Description of the network access policy.
- sourceIps List<String>
- Specify IPs to restrict the range of allowed IP addresses for this rule.
- name string
- Name of the rule.
- dbAccounts string[]
- Specify which accounts this rule applies to. The account name must match an existing account in your database.
- description string
- Description of the network access policy.
- sourceIps string[]
- Specify IPs to restrict the range of allowed IP addresses for this rule.
- name str
- Name of the rule.
- db_accounts Sequence[str]
- Specify which accounts this rule applies to. The account name must match an existing account in your database.
- description str
- Description of the network access policy.
- source_ips Sequence[str]
- Specify IPs to restrict the range of allowed IP addresses for this rule.
- name String
- Name of the rule.
- dbAccounts List<String>
- Specify which accounts this rule applies to. The account name must match an existing account in your database.
- description String
- Description of the network access policy.
- sourceIps List<String>
- Specify IPs to restrict the range of allowed IP addresses for this rule.
Package Details
- Repository
- cyral cyralinc/terraform-provider-cyral
- License
- Notes
- This Pulumi package is based on the cyralTerraform Provider.