ListVpdGrantRules

Updated at:

Queries the details of one or more route entries for a Lingjun network segment, including the route type, route entry status, destination CIDR block, and next hop instance information.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

eflo:ListVpdGrantRules

list

*VpdGrantRule

acs:eflo:{#regionId}:{#accountId}:VpdGrantRule/*

None None

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

Yes

The region ID.

cn-wulanchabu

ErId

string

No

The instance ID of the Lingjun HUB.

er-kkopgtne

GrantTenantId

string

No

The ID of the authorized tenant.

1620939556166279

InstanceId

string

No

The ID of the network instance to query.

Note

This parameter is actually required. If it is not provided, the API returns error code 1006 (The InstanceId parameter is empty).

vpd-8rgvqazb

InstanceName

string

No

The name of the instance.

vpd-1

GrantRuleId

string

No

The ID of the authorization entry.

grant-rule-8rgvqazb

ForSelect

boolean

No

Specifies whether the parameter is used for a drop-down list.

true

ResourceGroupId

string

No

The instance ID of the resource group.

rg-aek2l4sq6l7unhi

PageNumber

integer

No

The page number. Starting value: 1. Default value: 1.

1

PageSize

integer

No

The number of entries per page. Default value: 10.

10

EnablePage

boolean

No

Specifies whether paging is enabled.

false

Response elements

Element

Type

Description

Example

object

The response information.

Code

integer

The response status code.

0

Message

string

The error message. If the instance status is abnormal, this parameter indicates the cause of the exception.

Success

RequestId

string

The ID of the request.

A56F7D3C-8850-5AF4-A342-2D71C9A9D1CC

Content

object

The response content.

Total

integer

The total number of records.

0

Data

array<object>

The list of authorization information for Lingjun network segments.

object

The authorization information for a Lingjun network segment.

RegionId

string

The region ID.

cn-wulanchabu

TenantId

string

The ID of the tenant.

1655449505171

InstanceId

string

The instance ID of the Lingjun CIDR block.

vpd-8rgvqazb

InstanceName

string

The name of the instance.

vpd-1

Product

string

The type of the authorized product. Valid values:

  • VPD: Lingjun network segment VPD instance

  • VCC: Lingjun connection VCC instance

You do not need to specify this parameter.

VPD

ErId

string

The ID of the Lingjun HUB instance to which the current network instance is authorized.

er-kkopgtne

GrantTenantId

string

The ID of the tenant to which the current instance is authorized.

1672372231790

Used

boolean

Indicates whether the current authorized instance is bound.

true

CreateTime

string

The creation time. The value is a 13-digit UNIX timestamp in milliseconds.

1643013506000

GrantRuleId

string

The ID of the authorization entry.

grant-rule-8rgvqazb

ResourceGroupId

string

The instance ID of the resource group.

rg-aek2l4sq6l7unhi

AccessDeniedDetail

string

The details of the access denial.

None

Examples

Success response

JSON format

{
  "Code": 0,
  "Message": "Succeeded",
  "RequestId": "A56F7D3C-8850-5AF4-A342-2D71C9A9D1CC",
  "Content": {
    "Total": 0,
    "Data": [
      {
        "RegionId": "cn-wulanchabu",
        "TenantId": "1655449505171",
        "InstanceId": "vpd-8rgvqazb",
        "InstanceName": "vpd-1",
        "Product": "VPD",
        "ErId": "er-kkopgtne",
        "GrantTenantId": "1672372231790",
        "Used": true,
        "CreateTime": "1643013506000",
        "GrantRuleId": "grant-rule-8rgvqazb",
        "ResourceGroupId": "rg-aek2l4sq6l7unhi"
      }
    ]
  },
  "AccessDeniedDetail": "None"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.