Queries the security groups in MediaLive.
Operation description
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
ice:ListMediaLiveInputSecurityGroups | list | *All Resources * |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
MaxResults | integer | No | The number of entries per page. Valid values: 1 to 100. Default value: If you do not specify this parameter or if you set a value smaller than 10, the default value is 10. If you set a value greater than 100, the default value is 100. | 10 |
Skip | integer | No | The number of entries to be skipped in the query. If the number of entries you attempt to skip exceeds the number of entries that meet the condition, an empty list is returned. | 20 |
NextToken | string | No | The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request. You must specify the token that is obtained from the previous query as the value of NextToken. | caeba0bbb2be03f84eb48b699f0a4883 |
SortOrder | string | No | The sorting order of the security groups by creation time. Default value: asc. Valid values: desc and asc. asc indicates the ascending order, and desc indicates the descending order. | desc |
Keyword | string | No | The keyword of the query. You can perform a fuzzy search on security group ID or name. | 123 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "123e4567-e89b-12d3-a456-426614174000",
"SecurityGroups": [
{
"SecurityGroupId": "SEGK5KA6KYKAWQQH",
"Name": "mysg",
"WhitelistRules": [
"10.1.1.0/24\""
],
"CreateTime": "2024-12-03T06:56:42Z",
"InputIds": [
"SEGK5KA6KYKAWQQH"
]
}
],
"NextToken": "caeba0bbb2be03f84eb48b699f0a4883",
"MaxResults": 10,
"TotalCount": 100
}
Error codes
For a list of error codes, visit the Service error codes.