Create Security Policy
Create and save a SecurityPolicy upon validation on SecurityPolicy fields
Request
URI
POST
https://{api_host}/iaas-proxy-provider/api/services/{serviceId}/network/security-policies
COPY
Path Parameters
string
serviceId
Required
The ID of the IaaS service as registered in the Component Registry service.
Request Body
The security policy object.
securityPolicy of type(s) application/json
Required
{
"internal": false,
"name": "string",
"tenantId": "string",
"securityPolicyTypeId": "string",
"description": "string",
"externalId": "string",
"id": "string",
"extensionData": {
"entries": [
{
"key": "string"
}
]
}
}
boolean
internal
Optional
internal
string
name
Optional
name
string
tenantId
Optional
tenantId
string
securityPolicyTypeId
Optional
securityPolicyTypeId
string
description
Optional
description
string
externalId
Optional
externalId
string
id
Optional
id
Responses
200
successful operation
Returns securityPolicy of type(s) */*
{
"internal": false,
"name": "string",
"tenantId": "string",
"securityPolicyTypeId": "string",
"description": "string",
"externalId": "string",
"id": "string",
"extensionData": {
"entries": [
{
"key": "string"
}
]
}
}
boolean
internal
Optional
internal
string
name
Optional
name
string
tenantId
Optional
tenantId
string
securityPolicyTypeId
Optional
securityPolicyTypeId
string
description
Optional
description
string
externalId
Optional
externalId
string
id
Optional
id
201
The security policy is created.
Returns securityPolicy of type(s) */*
{
"internal": false,
"name": "string",
"tenantId": "string",
"securityPolicyTypeId": "string",
"description": "string",
"externalId": "string",
"id": "string",
"extensionData": {
"entries": [
{
"key": "string"
}
]
}
}
boolean
internal
Optional
internal
string
name
Optional
name
string
tenantId
Optional
tenantId
string
securityPolicyTypeId
Optional
securityPolicyTypeId
string
description
Optional
description
string
externalId
Optional
externalId
string
id
Optional
id