Create Security Rule
POST/projects/:projectId/providers/Aruba.Network/vpcs/:vpcId/securityGroups/:securityGroupId/securityRules
Create Security Rule
Request
Path Parameters
unique identifier of the project CMP
unique identifier of the vpc in which the security group has been created
unique identifier of the security group in which the security rule will be created
Query Parameters
The requested API version
1.0
- application/json
- text/json
- application/*+json
Body
the security rule to create
- ITBG-Bergamo
- Ingress
- Egress
- ANY
- TCP
- UDP
- ICMP
- ANY and ICMP must not have a port
- TCP and UPD can have
- a single numeric port. For instance "80", "443" etc.
- a port range. For instance "80-100"
- the "*" value indicating any ports
- Ip
- SecurityGroup
metadata
object
Metadata of the resource
Name of the resource
location
object
Contains information about the Region of a resource
Value of the region in which the resource will be located. Available regions at present:
For more information, check the documentation.
List of tags for the resource
properties
object
nullable
Properties of a security rule
Direction of the rule. Admissible values:
Possible values: [Ingress
, Egress
]
Name of the protocol. Admissible values:
Port can be set with different values, according to the protocol.
target
object
The target of the rule (source or destination according to the direction)
Type of the target. Admissibile values.
Possible values: [Ip
, SecurityGroup
]
Value of the target. If kind = "Ip", the value must be a valid network address in CIDR notation (included 0.0.0.0/0) If kind = "SecurityGroup", the value must be a valid uri of any security group within the same vpc
Body
the security rule to create
- ITBG-Bergamo
- Ingress
- Egress
- ANY
- TCP
- UDP
- ICMP
- ANY and ICMP must not have a port
- TCP and UPD can have
- a single numeric port. For instance "80", "443" etc.
- a port range. For instance "80-100"
- the "*" value indicating any ports
- Ip
- SecurityGroup
metadata
object
Metadata of the resource
Name of the resource
location
object
Contains information about the Region of a resource
Value of the region in which the resource will be located. Available regions at present:
For more information, check the documentation.
List of tags for the resource
properties
object
nullable
Properties of a security rule
Direction of the rule. Admissible values:
Possible values: [Ingress
, Egress
]
Name of the protocol. Admissible values:
Port can be set with different values, according to the protocol.
target
object
The target of the rule (source or destination according to the direction)
Type of the target. Admissibile values.
Possible values: [Ip
, SecurityGroup
]
Value of the target. If kind = "Ip", the value must be a valid network address in CIDR notation (included 0.0.0.0/0) If kind = "SecurityGroup", the value must be a valid uri of any security group within the same vpc
Body
the security rule to create
- ITBG-Bergamo
- Ingress
- Egress
- ANY
- TCP
- UDP
- ICMP
- ANY and ICMP must not have a port
- TCP and UPD can have
- a single numeric port. For instance "80", "443" etc.
- a port range. For instance "80-100"
- the "*" value indicating any ports
- Ip
- SecurityGroup
metadata
object
Metadata of the resource
Name of the resource
location
object
Contains information about the Region of a resource
Value of the region in which the resource will be located. Available regions at present:
For more information, check the documentation.
List of tags for the resource
properties
object
nullable
Properties of a security rule
Direction of the rule. Admissible values:
Possible values: [Ingress
, Egress
]
Name of the protocol. Admissible values:
Port can be set with different values, according to the protocol.
target
object
The target of the rule (source or destination according to the direction)
Type of the target. Admissibile values.
Possible values: [Ip
, SecurityGroup
]
Value of the target. If kind = "Ip", the value must be a valid network address in CIDR notation (included 0.0.0.0/0) If kind = "SecurityGroup", the value must be a valid uri of any security group within the same vpc
Responses
- 201
- 400
- 500
Created
- text/plain
- application/json
- text/json
- Schema
- Example (from schema)
Schema
Array [
]
metadata
object
nullable
location
object
nullable
project
object
nullable
category
object
nullable
typology
object
nullable
status
object
nullable
disableStatusInfo
object
nullable
previousStatus
object
nullable
properties
object
nullable
linkedResources
object[]
nullable
Direction of the rule.
Protocol
Port range
target
object
nullable
The target of the rule (source or destination according to the direction)
Type of the target.
Possible values: [Ip
, SecurityGroup
]
Value of the target.
data
object
nullable
private
object
nullable
{}
- Schema
- Example (from schema)
Schema
Array [
]
metadata
object
nullable
location
object
nullable
project
object
nullable
category
object
nullable
typology
object
nullable
status
object
nullable
disableStatusInfo
object
nullable
previousStatus
object
nullable
properties
object
nullable
linkedResources
object[]
nullable
Direction of the rule.
Protocol
Port range
target
object
nullable
The target of the rule (source or destination according to the direction)
Type of the target.
Possible values: [Ip
, SecurityGroup
]
Value of the target.
data
object
nullable
private
object
nullable
{}
- Schema
- Example (from schema)
Schema
Array [
]
metadata
object
nullable
location
object
nullable
project
object
nullable
category
object
nullable
typology
object
nullable
status
object
nullable
disableStatusInfo
object
nullable
previousStatus
object
nullable
properties
object
nullable
linkedResources
object[]
nullable
Direction of the rule.
Protocol
Port range
target
object
nullable
The target of the rule (source or destination according to the direction)
Type of the target.
Possible values: [Ip
, SecurityGroup
]
Value of the target.
data
object
nullable
private
object
nullable
{}
Bad Request
- text/plain
- application/json
- text/json
- Schema
- Example (from schema)
Schema
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}
- Schema
- Example (from schema)
Schema
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}
- Schema
- Example (from schema)
Schema
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}
Server Error