日本熟妇hd丰满老熟妇,中文字幕一区二区三区在线不卡 ,亚洲成片在线观看,免费女同在线一区二区

ModifySecurityGroupEgressRule - 修改安全組出方向規則

調用ModifySecurityGroupEgressRule修改出方向安全組規則。

接口說明

安全組相關的 API 文檔中,入方向流量的發起端為源端(Source),數據傳輸的接收端為目的端(Dest)。

在您指定安全組規則 ID 修改安全組規則時,您需要注意以下使用限制:

  • 安全組規則的授權對象分為 CIDR 地址塊(或 IP 地址)、安全組、前綴列表三種類型。您不能通過該接口修改已有安全組規則的授權對象類型。如原來授權對象類型為 IP 地址,您可以更改為另一個 IP 地址或 CIDR 地址塊,但不能修改為安全組或前綴列表。
  • 安全組規則授權對象的 IP 地址族不支持修改。如原安全組規則授權對象 CIDR 地址塊為 IPv4,您不能將其修改為 IPv6 的 CIDR 地址塊。又如規則的授權對象為一個 IPv4 地址族的前綴列表,您不能將其修改為一個 IPv6 地址族的前綴列表。
  • 修改后的安全組規則不能與已有其它規則相同。
  • 字段不支持從非空修改為空,如果需要修改建議先增加一條新規則,再刪除當前規則。

調試

您可以在OpenAPI Explorer中直接運行該接口,免去您計算簽名的困擾。運行成功后,OpenAPI Explorer可以自動生成SDK代碼示例。

授權信息

當前API暫無授權信息透出。

請求參數

名稱類型必填描述示例值
RegionIdstring

源端安全組所屬地域 ID。您可以調用 DescribeRegions 查看最新的阿里云地域列表。

cn-hangzhou
ClientTokenstring

保證請求冪等性。從您的客戶端生成一個參數值,確保不同請求間該參數值唯一。ClientToken 只支持 ASCII 字符,且不能超過 64 個字符。更多信息,請參見如何保證冪等性

123e4567-e89b-12d3-a456-426655440000
SecurityGroupIdstring

安全組 ID。

sg-bp67acfmxazb4p****
SecurityGroupRuleIdstring

安全組規則 ID。
根據安全組規則 ID 修改規則時,該參數必填。

sgr-bp67acfmxazb4q****
Policystring

訪問權限。取值范圍:

  • accept:接受訪問。
  • drop:拒絕訪問,不返回拒絕信息。

默認值:accept。

accept
Prioritystring

安全組規則優先級。取值范圍:1~100。

默認值:1。

1
IpProtocolstring

傳輸層協議。不區分大小寫。取值范圍:

  • ICMP
  • GRE
  • TCP
  • UDP
  • ALL:支持所有協議。
tcp
DestCidrIpstring

目的端 IPv4 CIDR 地址塊。支持 CIDR 格式和 IPv4 格式的 IP 地址范圍。

默認值:無。

10.0.0.0/8
Ipv6DestCidrIpstring

目的端 IPv6 CIDR 地址塊。支持 CIDR 格式和 IPv6 格式的 IP 地址范圍。

說明 僅支持 VPC 類型的 IP 地址,且該參數與DestCidrIp參數不可同時設置。

默認值:無。

2001:db8:1233:1a00::***
DestGroupIdstring

需要設置訪問權限的目的端安全組 ID。至少設置一項DestGroupId或者DestCidrIp參數。

  • 至少設置 DestGroupId、DestCidrIp、Ipv6DestCidrIp 或 DestPrefixListId 參數中的一項。
  • 如果指定了 DestGroupId 沒有指定參數 DestCidrIp,則參數 NicType 取值只能為 intranet。
  • 如果同時指定了 DestGroupId 和 DestCidrIp,則默認以 DestCidrIp 為準。
sg-bp67acfmxa123b****
DestPrefixListIdstring

目的端前綴列表 ID。您可以調用 DescribePrefixLists 查詢可以使用的前綴列表 ID。

當您指定了DestCidrIpIpv6DestCidrIp或者DestGroupId參數中的一個時,將忽略該參數。

pl-x1j1k5ykzqlixdcy****
PortRangestring

目的端安全組開放的傳輸層協議相關的端口范圍。取值范圍:

  • TCP/UDP 協議:取值范圍為 1~65535。使用斜線(/)隔開起始端口和終止端口。例如:1/200。
  • ICMP 協議:-1/-1。
  • GRE 協議:-1/-1。
  • ALL:-1/-1。
80/80
SourceCidrIpstring

源端 IPv4 CIDR 地址塊。支持 CIDR 格式和 IPv4 格式的 IP 地址范圍。

默認值:無。

10.0.0.0/8
Ipv6SourceCidrIpstring

源端 IPv6 CIDR 地址塊。支持 CIDR 格式和 IPv6 格式的 IP 地址范圍。

說明 僅支持 VPC 類型的 IP 地址,且該參數與SourceCidrIp參數不可同時設置。

默認值:無。

2001:db8:1234:1a00::***
SourcePortRangestring

源端安全組開放的傳輸層協議相關的端口范圍。取值范圍:

  • TCP/UDP 協議:取值范圍為 1~65535。使用斜線(/)隔開起始端口和終止端口。例如:1/200
  • ICMP 協議:-1/-1。
  • GRE 協議:-1/-1。
  • ALL:-1/-1。
80/80
DestGroupOwnerAccountstring

跨賬戶設置安全組規則時,目的端安全組所屬的阿里云賬戶。

EcsforCloud@Alibaba.com
DestGroupOwnerIdlong

跨賬戶設置安全組規則時,目的端安全組所屬的阿里云賬戶 ID。

1234567890
NicTypestring

根據安全組規則 ID 修改規則時,不支持修改該參數。
如果需要修改,建議先增加一條新規則,再刪除當前規則。

intranet
Descriptionstring

安全組規則的描述信息。長度為 1~512 個字符。

This is a new securitygroup rule.

返回參數

名稱類型描述示例值
object
RequestIdstring

請求 ID。

473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

示例

正常返回示例

JSON格式

{
  "RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}

錯誤碼

HTTP status code錯誤碼錯誤信息描述
400OperationDeniedThe specified IpProtocol does not exist or IpProtocol and PortRange do not match.指定的 IP 協議不存在,或與端口范圍不匹配。
400InvalidIpProtocol.MalformedThe specified parameter PortRange is not valid.IP 協議參數格式不正確,PortRange 參數不正確。
400InvalidDestCidrIp.MalformedThe specified parameter DestCidrIp is not valid.指定的 DestCidrIp 無效,請您檢查該參數是否正確。
400InvalidPolicy.MalformedThe specified parameter Policy is not valid.指定的參數無效,請您檢查該參數是否正確。
400InvalidNicType.ValueNotSupportedThe specified NicType does not exist.指定的網絡類型不存在,請您檢查網絡類型是否正確。
400InvalidNicType.MismatchThe specified NicType conflicts with the authorization record.指定的網卡類型與已有規則不匹配。
400InvalidDestGroupId.MismatchSpecified security group and destination group are not in the same VPC.指定的安全組和目標組不在同一個 VPC 下。
400InvalidDestGroup.NotFoundSpecified destination security group does not exist.指定的出方向安全組不存在。
400InvalidPriority.MalformedThe specified parameter Priority is not valid.指定的 Priority 參數不合法。
400InvalidPriority.ValueNotSupportedThe specified Priority is invalid.您指定的優先級無效。
400InvalidNicType.ValueNotSupportedThe specified NicType is not valid.指定的網絡類型不存在,請您檢查網絡類型是否正確。
400InvalidSecurityGroupDiscription.MalformedThe specified security group rule description is not valid.指定的安全組規則描述不合法。
400InvalidSecurityGroup.InvalidNetworkTypeThe specified security group network type is not support this operation, please check the security group network types. For VPC security groups, ClassicLink must be enabled.指定的安全組網絡類型不支持此操作,請檢查安全組網絡類型。對于 VPC 安全組,必須啟用 ClassicLink。
400MissingParameter.DestOne of the parameters DestCidrIp, DestGroupId or DestPrefixListId must be specified.至少需要指定參數DestCidrIp、DestGroupId或DestPrefixListId中的一個。
400InvalidParam.PortRangeThe specified parameter %s is not valid. It should be two integers less than 65535 in ?/? format.端口范圍不合法,應為斜線分隔兩個整數的格式。
400InvalidIpProtocol.ValueNotSupportedThe specified parameter IpProtocol should not be null and only tcp, udp, icmp, gre or all is supported. Ignore case.-
400InvalidPriority.ValueNotSupportedThe parameter Priority is invalid.指定的參數 Priority 無效。
400InvalidParam.SourceIpThe Parameters SourceCidrIp and Ipv6SourceCidrIp in %s cannot be set at the same time.參數SourceCidrIp和Ipv6SourceCidrIp不能被同時設置。
400InvalidParam.DestIpThe Parameters DestCidrIp and Ipv6DestCidrIp in %s cannot be set at the same time.參數DestCidrIp和Ipv6DestCidrIp不能被同時設置。
400InvalidParam.Ipv6DestCidrIpThe specified parameter %s is not valid.指定的參數Ipv6DestCidrIp不合法。
400InvalidParam.Ipv6SourceCidrIpThe specified parameter %s is not valid.指定的參數Ipv6SourceCidrIp不合法。
400InvalidParam.Ipv4ProtocolConflictWithIpv6AddressIPv6 address cannot be specified for IPv4-specific protocol.IPv4協議不能指定IPv6地址。
400InvalidParam.Ipv6ProtocolConflictWithIpv4AddressIPv4 address cannot be specified for IPv6-specific protocol.IPv6協議不能指定IPv4地址。
400InvalidParameter.Ipv6CidrIpThe specified Ipv6CidrIp is not valid.指定的Ipv6CidrIp參數不合法。
400InvalidSourcePortRange.MalformedThe specified parameter SourcePortRange is not valid.指定的參數 SourcePortRange 無效。
400InvalidParam.SourceCidrIpThe specified param SourceCidrIp is not valid.參數SourceCidrIp不合法。
400InvalidParam.DestCidrIpThe specified param DestCidrIp is not valid.您指定的參數DestCidrIp不合法。
400InvalidParameter.ConflictIPv6 and IPv4 addresses cannot exist at the same time.IPv6地址和IPv4地址不能同時指定。
400InvalidParam.SecurityGroupRuleIdThe specified parameter SecurityGroupRuleId is not valid.指定的參數SecurityGroupRuleId不合法。
400InvalidOperation.ModifySgRuleEntityTypeThe source or destination type of the rules cannot be modified.規則的源或目的類型不能被修改。
400AuthorizationLimitExceedThe limit of authorization records in the security group reaches.安全組授權規則數達到上限,請您檢查授權規則是否合理。
400InvalidPrefixListId.NotFoundThe specified prefix list was not found.前綴列表不存在。
400InvalidParam.ProtocolAndPortRangeMismatchThe specified Protocol and PortRange do not match.指定和協議和端口范圍不匹配。
400InvalidParam.ProtocolAndAddressFamilyMismatchThe specified Protocol and address family do not match.指定的協議和地址族不匹配。
400InvalidParam.PrefixListAddressFamilyMismatchThe address family of the prefix list does not match the rule.前綴列表的地址族與規則不匹配。
400InvalidParam.InvalidModifyRuleRequestThe request parameters are illegal.請求參數不合法。
400InvalidOperation.ModifyNicTypeNicType is not allowed to modify.不允許修改NicType。
400InvalidParamter.ConflictThe specified SourceCidrIp should be different from the DestCidrIp.參數 SourceCidrIp 和 DestCidrIp 不能相同。
400InvalidIpProtocol.ValueNotSupportedThe parameter %s must be specified with case insensitive TCP, UDP, ICMP, GRE or All.協議Protocol字段不合法,應指定大小寫不敏感的TCP,UDP,ICMP,GRE或All。
400InvalidOperation.RuleDuplicate%s.修改后的規則與已有規則重復。
403InvalidDestGroupId.MismatchNicType is required or NicType expects intranet.請指定 NicType,或使用內網模式。
403MissingParameterThe input parameter DestGroupId or DestCidrIp cannot be both blank.參數 DestGroupId 和 DestCidrIp 不得為空。
403InvalidParamter.ConflictThe specified SecurityGroupId should be different from the SourceGroupId.授權與被授權安全組必須不同。
403InvalidNetworkType.ConflictThe specified SecurityGroup network type should be same with SourceGroup network type (vpc or classic).指定的 SecurityGroup 的網絡類型必須與 SouceGroup 的網絡類型一致。
403InvalidSecurityGroup.IsSameThe authorized SecurityGroupId should be different from the DestGroupId.已授權的 SecurityGroupId 不能與 DestGroupId 相同。
403InvalidOperation.ResourceManagedByCloudProduct%s云產品托管的安全組不支持修改操作。
404InvalidSecurityGroupId.NotFoundThe specified SecurityGroupId does not exist.指定的安全組在該用戶賬號下不存在,請您檢查安全組 ID 是否正確。
404InvalidDestGroupId.NotFoundThe DestGroupId provided does not exist in our records.指定的出方向安全組不存在。
404SecurityGroupRule.NotFoundThe target security group rule do not exist.指定的安全組規則不存在。
404InvalidSecurityGroupRuleId.NotFoundThe specified SecurityGroupRuleId is not exists.指定的SecurityGroupRuleId不存在。
500InternalErrorThe request processing has failed due to some unknown error.內部錯誤,請重試。

訪問錯誤中心查看更多錯誤碼。

變更歷史

變更時間變更內容概要操作
2024-06-27OpenAPI 錯誤碼發生變更查看變更詳情
2023-08-23OpenAPI 錯誤碼發生變更查看變更詳情
2023-04-07OpenAPI 錯誤碼發生變更查看變更詳情
2022-09-05OpenAPI 描述信息更新、OpenAPI 錯誤碼發生變更查看變更詳情
2022-05-07OpenAPI 錯誤碼發生變更查看變更詳情