修改安全组

最近更新时间:2018-01-30 16:12:00

ModifySecurityGroup( 更改安全组信息)

Request Parameters(请求参数)

SecurityGroupId

  • 安全组的ID
  • 类型: String
  • 是否可缺省: 否

SecurityGroupName

  • 安全组的名称
  • 类型:String
  • 是否可缺省: 是

Response Elements(返回值)

RequestId

  • 请求ID
  • 类型: String

SecurityGroup

Examples(例子)

Sample Request(请求)
http://vpc.region.api.ksyun.com/?Action=ModifySecurityGroup
&Version=2016-03-04
&SecurityGroupId=9fa539c7-2e58-47f1-a8d3-d3eaaf843774
&SecurityGroupName=test_name
Sample Response(返回)
<ModifySecurityGroupResponse xmlns="http://vpc.api.ksyun.com/doc/2016-03-04/">
    <CreateTime>2016-04-28 10:32:18</CreateTime>
    <VpcId>4e8d1f11-264a-468b-ae37-09b465477415</VpcId>
    <SecurityGroupId>9fa539c7-2e58-47f1-a8d3-d3eaaf843774</SecurityGroupId>
    <SecurityGroupName>test_name</SecurityGroupName>
    <RequestId>0333914f-4919-45a7-b33c-509a23771c0e</RequestId>
    <SecurityGroupEntrySet>
        <item>
            <CidrBlock>20.20.20.0/26</CidrBlock>
            <Direction>in</Direction>
            <IcmpCode>22</IcmpCode>
            <IcmpType>9</IcmpType>
            <SecurityGroupEntryId>0f42bbd3-91ed-44ab-be50-c996ebfeb160</SecurityGroupEntryId>
            <Protocol>icmp</Protocol>
        </item>
        <item>
            <CidrBlock>0.0.0.0/0</CidrBlock>
            <Direction>out</Direction>
            <SecurityGroupEntryId>688bc79a-708e-4bbb-9503-4135e70015c7</SecurityGroupEntryId>
            <Protocol>ip</Protocol>
        </item>
        <item>
            <CidrBlock>0.0.0.0/0</CidrBlock>
            <Direction>in</Direction>
            <SecurityGroupEntryId>ce1e65cb-0888-4856-83e0-0c8025285a53</SecurityGroupEntryId>
            <PortRangeTo>22</PortRangeTo>
            <PortRangeFrom>22</PortRangeFrom>
            <Protocol>tcp</Protocol>
        </item>
        <item>
            <CidrBlock>0.0.0.0/0</CidrBlock>
            <Direction>in</Direction>
            <SecurityGroupEntryId>e8600cd3-0800-4eef-bd1f-d33d62d1d4a0</SecurityGroupEntryId>
            <PortRangeTo>22</PortRangeTo>
            <PortRangeFrom>22</PortRangeFrom>
            <Protocol>udp</Protocol>
        </item>
    </SecurityGroupEntrySet>
    <SecurityGroupType>default</SecurityGroupType>
</ModifySecurityGroupResponse>

金山云,开启您的云计算之旅

注册有礼