1. Packages
  2. Dome9 Provider
  3. API Docs
  4. CloudSecurityGroupRule
dome9 1.40.3 published on Monday, Apr 14, 2025 by dome9

dome9.CloudSecurityGroupRule

Explore with Pulumi AI

Create CloudSecurityGroupRule Resource

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

Constructor syntax

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

@overload
def CloudSecurityGroupRule(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           dome9_security_group_id: Optional[str] = None,
                           cloud_security_group_rule_id: Optional[str] = None,
                           services: Optional[Sequence[CloudSecurityGroupRuleServiceArgs]] = None)
func NewCloudSecurityGroupRule(ctx *Context, name string, args CloudSecurityGroupRuleArgs, opts ...ResourceOption) (*CloudSecurityGroupRule, error)
public CloudSecurityGroupRule(string name, CloudSecurityGroupRuleArgs args, CustomResourceOptions? opts = null)
public CloudSecurityGroupRule(String name, CloudSecurityGroupRuleArgs args)
public CloudSecurityGroupRule(String name, CloudSecurityGroupRuleArgs args, CustomResourceOptions options)
type: dome9:CloudSecurityGroupRule
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. CloudSecurityGroupRuleArgs
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. CloudSecurityGroupRuleArgs
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. CloudSecurityGroupRuleArgs
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. CloudSecurityGroupRuleArgs
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. CloudSecurityGroupRuleArgs
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 cloudSecurityGroupRuleResource = new Dome9.CloudSecurityGroupRule("cloudSecurityGroupRuleResource", new()
{
    Dome9SecurityGroupId = "string",
    CloudSecurityGroupRuleId = "string",
    Services = new[]
    {
        new Dome9.Inputs.CloudSecurityGroupRuleServiceArgs
        {
            Inbounds = new[]
            {
                new Dome9.Inputs.CloudSecurityGroupRuleServiceInboundArgs
                {
                    Description = "string",
                    Name = "string",
                    OpenForAll = false,
                    Port = "string",
                    ProtocolType = "string",
                    Scopes = new[]
                    {
                        new Dome9.Inputs.CloudSecurityGroupRuleServiceInboundScopeArgs
                        {
                            Data = 
                            {
                                { "string", "string" },
                            },
                            Type = "string",
                        },
                    },
                },
            },
            Outbounds = new[]
            {
                new Dome9.Inputs.CloudSecurityGroupRuleServiceOutboundArgs
                {
                    Description = "string",
                    Name = "string",
                    OpenForAll = false,
                    Port = "string",
                    ProtocolType = "string",
                    Scopes = new[]
                    {
                        new Dome9.Inputs.CloudSecurityGroupRuleServiceOutboundScopeArgs
                        {
                            Data = 
                            {
                                { "string", "string" },
                            },
                            Type = "string",
                        },
                    },
                },
            },
        },
    },
});
Copy
example, err := dome9.NewCloudSecurityGroupRule(ctx, "cloudSecurityGroupRuleResource", &dome9.CloudSecurityGroupRuleArgs{
	Dome9SecurityGroupId:     pulumi.String("string"),
	CloudSecurityGroupRuleId: pulumi.String("string"),
	Services: dome9.CloudSecurityGroupRuleServiceArray{
		&dome9.CloudSecurityGroupRuleServiceArgs{
			Inbounds: dome9.CloudSecurityGroupRuleServiceInboundArray{
				&dome9.CloudSecurityGroupRuleServiceInboundArgs{
					Description:  pulumi.String("string"),
					Name:         pulumi.String("string"),
					OpenForAll:   pulumi.Bool(false),
					Port:         pulumi.String("string"),
					ProtocolType: pulumi.String("string"),
					Scopes: dome9.CloudSecurityGroupRuleServiceInboundScopeArray{
						&dome9.CloudSecurityGroupRuleServiceInboundScopeArgs{
							Data: pulumi.StringMap{
								"string": pulumi.String("string"),
							},
							Type: pulumi.String("string"),
						},
					},
				},
			},
			Outbounds: dome9.CloudSecurityGroupRuleServiceOutboundArray{
				&dome9.CloudSecurityGroupRuleServiceOutboundArgs{
					Description:  pulumi.String("string"),
					Name:         pulumi.String("string"),
					OpenForAll:   pulumi.Bool(false),
					Port:         pulumi.String("string"),
					ProtocolType: pulumi.String("string"),
					Scopes: dome9.CloudSecurityGroupRuleServiceOutboundScopeArray{
						&dome9.CloudSecurityGroupRuleServiceOutboundScopeArgs{
							Data: pulumi.StringMap{
								"string": pulumi.String("string"),
							},
							Type: pulumi.String("string"),
						},
					},
				},
			},
		},
	},
})
Copy
var cloudSecurityGroupRuleResource = new CloudSecurityGroupRule("cloudSecurityGroupRuleResource", CloudSecurityGroupRuleArgs.builder()
    .dome9SecurityGroupId("string")
    .cloudSecurityGroupRuleId("string")
    .services(CloudSecurityGroupRuleServiceArgs.builder()
        .inbounds(CloudSecurityGroupRuleServiceInboundArgs.builder()
            .description("string")
            .name("string")
            .openForAll(false)
            .port("string")
            .protocolType("string")
            .scopes(CloudSecurityGroupRuleServiceInboundScopeArgs.builder()
                .data(Map.of("string", "string"))
                .type("string")
                .build())
            .build())
        .outbounds(CloudSecurityGroupRuleServiceOutboundArgs.builder()
            .description("string")
            .name("string")
            .openForAll(false)
            .port("string")
            .protocolType("string")
            .scopes(CloudSecurityGroupRuleServiceOutboundScopeArgs.builder()
                .data(Map.of("string", "string"))
                .type("string")
                .build())
            .build())
        .build())
    .build());
Copy
cloud_security_group_rule_resource = dome9.CloudSecurityGroupRule("cloudSecurityGroupRuleResource",
    dome9_security_group_id="string",
    cloud_security_group_rule_id="string",
    services=[{
        "inbounds": [{
            "description": "string",
            "name": "string",
            "open_for_all": False,
            "port": "string",
            "protocol_type": "string",
            "scopes": [{
                "data": {
                    "string": "string",
                },
                "type": "string",
            }],
        }],
        "outbounds": [{
            "description": "string",
            "name": "string",
            "open_for_all": False,
            "port": "string",
            "protocol_type": "string",
            "scopes": [{
                "data": {
                    "string": "string",
                },
                "type": "string",
            }],
        }],
    }])
Copy
const cloudSecurityGroupRuleResource = new dome9.CloudSecurityGroupRule("cloudSecurityGroupRuleResource", {
    dome9SecurityGroupId: "string",
    cloudSecurityGroupRuleId: "string",
    services: [{
        inbounds: [{
            description: "string",
            name: "string",
            openForAll: false,
            port: "string",
            protocolType: "string",
            scopes: [{
                data: {
                    string: "string",
                },
                type: "string",
            }],
        }],
        outbounds: [{
            description: "string",
            name: "string",
            openForAll: false,
            port: "string",
            protocolType: "string",
            scopes: [{
                data: {
                    string: "string",
                },
                type: "string",
            }],
        }],
    }],
});
Copy
type: dome9:CloudSecurityGroupRule
properties:
    cloudSecurityGroupRuleId: string
    dome9SecurityGroupId: string
    services:
        - inbounds:
            - description: string
              name: string
              openForAll: false
              port: string
              protocolType: string
              scopes:
                - data:
                    string: string
                  type: string
          outbounds:
            - description: string
              name: string
              openForAll: false
              port: string
              protocolType: string
              scopes:
                - data:
                    string: string
                  type: string
Copy

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

Outputs

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

Get an existing CloudSecurityGroupRule 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?: CloudSecurityGroupRuleState, opts?: CustomResourceOptions): CloudSecurityGroupRule
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cloud_security_group_rule_id: Optional[str] = None,
        dome9_security_group_id: Optional[str] = None,
        services: Optional[Sequence[CloudSecurityGroupRuleServiceArgs]] = None) -> CloudSecurityGroupRule
func GetCloudSecurityGroupRule(ctx *Context, name string, id IDInput, state *CloudSecurityGroupRuleState, opts ...ResourceOption) (*CloudSecurityGroupRule, error)
public static CloudSecurityGroupRule Get(string name, Input<string> id, CloudSecurityGroupRuleState? state, CustomResourceOptions? opts = null)
public static CloudSecurityGroupRule get(String name, Output<String> id, CloudSecurityGroupRuleState state, CustomResourceOptions options)
resources:  _:    type: dome9:CloudSecurityGroupRule    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.

Supporting Types

CloudSecurityGroupRuleService
, CloudSecurityGroupRuleServiceArgs

CloudSecurityGroupRuleServiceInbound
, CloudSecurityGroupRuleServiceInboundArgs

CloudSecurityGroupRuleServiceInboundScope
, CloudSecurityGroupRuleServiceInboundScopeArgs

Data This property is required. Dictionary<string, string>
Type This property is required. string
Data This property is required. map[string]string
Type This property is required. string
data This property is required. Map<String,String>
type This property is required. String
data This property is required. {[key: string]: string}
type This property is required. string
data This property is required. Mapping[str, str]
type This property is required. str
data This property is required. Map<String>
type This property is required. String

CloudSecurityGroupRuleServiceOutbound
, CloudSecurityGroupRuleServiceOutboundArgs

CloudSecurityGroupRuleServiceOutboundScope
, CloudSecurityGroupRuleServiceOutboundScopeArgs

Data Dictionary<string, string>
Type string
Data map[string]string
Type string
data Map<String,String>
type String
data {[key: string]: string}
type string
data Mapping[str, str]
type str
data Map<String>
type String

Package Details

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