Giter Site home page Giter Site logo

auto-join-tencent-ecs-white-list's Introduction

auto-join-tencent-ecs-white-list

功能描述

  • 1.获取本机在局域网的IP
  • 2.查询现有的安全组的入方向规则
  • 3.遍历查询匹配是否和入参的FirewallRuleDescription和port相同的入方向规则
  • 4.如果存在则删除该规则(旧规则已经过时)
  • 5.根据当前pc在局域网的IP生成新的入方向规则,添加到安全组中

在官方文档上做了一些小修改

  • 获取本地连接的IP
  • bat脚本(暂时没做shell) --java -jar tencentEcsAutoJoinWhitlist.jar secretId secretKey endpoint region instanceId protocol port action firewallRuleDescription

#加入tencent的maven 仓库

添加maven依赖

  •     <dependency>
          <groupId>com.tencentcloudapi</groupId>
          <artifactId>tencentcloud-sdk-java</artifactId>
          <!-- go to https://search.maven.org/search?q=tencentcloud-sdk-java and get the latest version. -->
          <!-- 请到https://search.maven.org/search?q=tencentcloud-sdk-java查询所有版本,最新版本如下 -->
          <version>3.1.449</version>
      </dependency>
    

auto-join-tencent-ecs-white-list's People

Contributors

santubeikawhi avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.