Retrieve a list of all gateway security rules
get
/spms/v2/ships/{shipId}/configurations/gatewaySecurityRules
This is to retrieve a list of all gateway security rules
Request
Supported Media Types
- application/json
Path Parameters
-
shipId(required): number
Ship Id
Query Parameters
-
direction: number
This is for filtering the direction * 0 - Both ways * 1 - Entry / Shore to Ship * 2 - Exit / Ship to ShoreAllowed Values:
[ "0", "1", "2" ]
-
gatewayType: number
This is for filtering the gateway type * 0 - Internal Gate * 1 - Immigration Gate * 2 - Gangway / TenderAllowed Values:
[ "0", "1", "2" ]
-
isActive: boolean
This is for filtering if the rule is active or not
-
limit: integer(int32)
Minimum Value:
1
Paging limit -
offset: integer(int32)
Minimum Value:
0
Paging offset -
orderBy: string
order by id, name, gatewayType, direction, isActive with format column1:asc/desc,column2:asc/desc column3:asc/desc
Response
Supported Media Types
- application/json
200 Response
Ok
Root Schema : Gateway Security Rules Success Oracle Responses list
Type:
object
Title:
Gateway Security Rules Success Oracle Responses list
The wrapper object when returning successful values in Oracle standard
Show Source
-
count:
number
The total number of items in the list.Example:
3
-
hasMore:
boolean
Flag which indicates whether or not there are more items.Example:
false
-
items:
array items
-
limit:
number
Paging limitExample:
10
-
offset:
number
Paging offsetExample:
0
Nested Schema : items
Type:
Show Source
array
Example:
[
{
"id":"1",
"name":"Guest Confiscated Items",
"gatewayType":"0",
"message":"Please collect your confiscated item first.",
"processType":"3",
"direction":"0",
"isActive":true,
"isValidateOnGuestProfile":true,
"isValidateOnCrewProfile":false,
"isValidateOnVisitorProfile":false
},
{
"id":"2",
"name":"Do not allow minor without guardian to go shoreside",
"gatewayType":"1",
"message":"Do not allow minor without guardian to go shoreside",
"processType":"0",
"direction":"0",
"isActive":true,
"isValidateOnGuestProfile":true,
"isValidateOnCrewProfile":false,
"isValidateOnVisitorProfile":false
},
{
"id":"3",
"name":"Crew on Roster Duty Security Alert",
"gatewayType":"0",
"message":"This crew has a roster daily scheduled for today. Do you want to override?",
"processType":"1",
"direction":"1",
"isActive":true,
"isValidateOnGuestProfile":false,
"isValidateOnCrewProfile":true,
"isValidateOnVisitorProfile":false
}
]
Nested Schema : gatewaySecurityRulesPayload
Type:
object
payload
Show Source
-
direction:
number
Allowed Values:
[ "0", "1", "2" ]
Indicates the direction the rule is applied to * 0 - Both ways * 1 - Entry / Shore to Ship * 2 - Exit / Ship to Shore -
gatewayType:
number
Allowed Values:
[ "0", "1", "2" ]
Indicates whether the rule is applicable to which gateway security type * 0 - Internal Gate * 1 - Immigration Gate * 2 - Gangway / TenderExample:High Spender
-
id:
number
Minimum Value:
1
Gateway Security Rule IdExample:12345678
-
isActive:
boolean
Flag which indicates if the rule is activeExample:
true
-
isValidateOnCrewProfile:
boolean
Flag which indicates if the rule is applicable for crew/staff profilesExample:
true
-
isValidateOnGuestProfile:
boolean
Flag which indicates if the rule is applicable for guest/resident profilesExample:
true
-
isValidateOnVisitorProfile:
boolean
Flag which indicates if the rule is applicable for visitor profilesExample:
true
-
message:
string
Maximum Length:
500
Gateway Security Rule MessageExample:Please collect your confiscated item first.
-
name:
string
Maximum Length:
500
Gateway Security Rule NameExample:Guest Confiscated Item
-
processType:
number
Allowed Values:
[ "0", "1", "2", "3" ]
Indicates the process type for the rule * 0 - Override Not Allowed * 1 - Override Allow * 2 - Send Alert e-Mail only (Always Allowed) * 3 - Show Message OnlyExample:0
204 Response
No Content
400 Response
Bad Request
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"type":"HTTP://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.1",
"title":"Bad Request",
"detail":"The parameter 'shipId' has incorrect format"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
401 Response
Unauthorized
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"type":"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.2",
"title":"Unauthorized",
"detail":"Valid token is required to access this resource"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
403 Response
Forbidden
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"type":"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.4",
"title":"Forbidden",
"detail":"You are forbidden to use this API"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
404 Response
Not found
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"type":"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.5",
"title":"Not Found",
"detail":"Ship Id could not be found"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
405 Response
Method Not Allowed
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"type":"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.6",
"title":"Method Not Supported",
"detail":"HTTP method not supported for this resource"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
406 Response
Not acceptable
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"type":"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.7",
"title":"Not Acceptable",
"detail":"Request a Mime type that is supported for this Resource"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
415 Response
Unsupported Media Type
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"type":"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.16",
"title":"Invalid content",
"detail":"Content type not supported"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
500 Response
Internal Server Error
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"type":"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.5.1",
"title":"Internal Server Error",
"detail":"Issue fulfilling request. Please retry or contact support"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
501 Response
Not Implemented
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"type":"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.5.2",
"title":"Not implemented",
"detail":"Resource is not implemented in this version of the API"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source
503 Response
Service Unavailable
Root Schema : schema
Match All
Show Source
-
object
Error Response
Title:
Error Response
Error Response returned when encountered error
Example:
{
"type":"http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.5.4",
"title":"Service Unavailable",
"detail":"Service not available"
}
Nested Schema : Error Response
Type:
object
Title:
Error Response
Error Response returned when encountered error
Show Source