Identifying the Security Rules Applicable to an Instance

Over time, you may create multiple security rules for different purposes. To find out which security rules are applicable to an Compute Classic instance, you must identify the security lists to which the instance belongs and then determine the security rules in which each of those security lists is specified.

Task Procedure / CLI Command
1. Find out the vcable ID of the instance. instance get

In the response, note the value of the vcable_id parameter.

2. Get a list of all the security associations for the vcable ID that you noted in step 1. sec-association list

Note the security list returned for each security association.

3. For each security list from step 2, get a list of all the security rules in which the given security list is the destination. sec-rule list

Note the security rules returned for each security list.

4. For each security list from step 2, get a list of all the security rules in which the given security list is the source. sec-application list

Note the security rules returned for each security list.

5. Combine the output from steps 3 and 4 to get a list of all the security rules applicable to your instance.