ALIYUN::RDS::DBInstanceSecurityIps is used to modify an IP address whitelist of an ApsaraDB for RDS instance.

Syntax

{
  "Type": "ALIYUN::RDS::DBInstanceSecurityIps",
  "Properties": {
    "DBInstanceId": String,
    "DBInstanceIPArrayName": String,
    "DBInstanceIPArrayAttribute": String
  }
}

Properties

PropertyTypeRequiredEditableDescriptionConstraint
DBInstanceId String Yes No The ID of the instance.None
DBInstanceIPArrayAttribute String Yes Yes The attribute of the IP address whitelist.Whitelists that have the "hidden" attribute are not displayed in the console.
DBInstanceIPArrayName String No No The name of the IP address whitelist.The name can only contain lowercase letters and underscores (_). Default value: Default.

Response parameters

Fn::GetAtt

SecurityIps: the IP address whitelist after the modification.

Examples

  • YAMLformat

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      RDSInstance:
        Type: String
        AssociationProperty: ALIYUN::RDS::Instance::InstanceId
    Resources:
      DBInstanceSecurityIps:
        Type: ALIYUN::RDS::DBInstanceSecurityIps
        Properties:
          DBInstanceId:
            Ref: RDSInstance
          DBInstanceIPArrayAttribute: 0.0.0.0/0
    Outputs:
      SecurityIps:
        Description: The security ips of selected database instance.
        Value:
          Fn::GetAtt:
            - DBInstanceSecurityIps
            - SecurityIps
  • JSONformat

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "RDSInstance": {
          "Type": "String",
          "AssociationProperty": "ALIYUN::RDS::Instance::InstanceId"
        }
      },
      "Resources": {
        "DBInstanceSecurityIps": {
          "Type": "ALIYUN::RDS::DBInstanceSecurityIps",
          "Properties": {
            "DBInstanceId": {
              "Ref": "RDSInstance"
            },
            "DBInstanceIPArrayAttribute": "0.0.0.0/0"
          }
        }
      },
      "Outputs": {
        "SecurityIps": {
          "Description": "The security ips of selected database instance.",
          "Value": {
            "Fn::GetAtt": [
              "DBInstanceSecurityIps",
              "SecurityIps"
            ]
          }
        }
      }
    }