8
n8n 한국어amn8n.com

n8n과 GoDaddy API를 사용한 GoDaddy 서브도메인 관리 워크플로

중급

이것은DevOps분야의자동화 워크플로우로, 7개의 노드를 포함합니다.주로 If, Code, EmailSend, HttpRequest, EmailReadImap 등의 노드를 사용하며. 이메일 요청을 통한 GoDaddy 서브도메인 관리 자동화

사전 요구사항
  • 대상 API의 인증 정보가 필요할 수 있음

카테고리

워크플로우 미리보기
노드 연결 관계를 시각적으로 표시하며, 확대/축소 및 이동을 지원합니다
워크플로우 내보내기
다음 JSON 구성을 복사하여 n8n에 가져오면 이 워크플로우를 사용할 수 있습니다
{
  "id": "qhFnUCIvmwP47FhK",
  "meta": {
    "instanceId": "dd69efaf8212c74ad206700d104739d3329588a6f3f8381a46a481f34c9cc281",
    "templateCredsSetupCompleted": true
  },
  "name": "GoDaddy Subdomain Management Workflow using n8n & GoDaddy API",
  "tags": [],
  "nodes": [
    {
      "id": "ad85bd3c-1605-4b5e-823c-009280d2dae7",
      "name": "서브도메인 생성",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        660,
        460
      ],
      "parameters": {
        "url": "api_url",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n  \"domain\": \"{{ $json.domain }}\",\n  \"subdomain\": \"{{ $json.subdomain }}\",\n  \"ip\": \"{{ $json.ip }}\"\n}\n ",
        "sendBody": true,
        "sendHeaders": true,
        "specifyBody": "json",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpBasicAuth",
        "headerParameters": {
          "parameters": [
            {
              "name": "Key",
              "value": "Content-Type"
            },
            {
              "name": "Value",
              "value": "application/json"
            }
          ]
        }
      },
      "credentials": {
        "httpBasicAuth": {
          "id": "SS8MHWya3vb8KVFr",
          "name": "temporary cred"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "629e7d14-10b5-42c9-8332-2cdfbc847f33",
      "name": "서브도메인 삭제",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        660,
        660
      ],
      "parameters": {
        "url": "api_url",
        "method": "DELETE",
        "options": {},
        "jsonBody": "={\n  \"domain\": \"{{ $json.domain }}\",\n  \"subdomain\": \"{{ $json.subdomain }}\",\n  \"ip\": \"{{ $json.ip }}\"\n}\n ",
        "sendBody": true,
        "sendHeaders": true,
        "specifyBody": "json",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpBasicAuth",
        "headerParameters": {
          "parameters": [
            {
              "name": "Key",
              "value": "Content-Type"
            },
            {
              "name": "Value",
              "value": "application/json"
            }
          ]
        }
      },
      "credentials": {
        "httpBasicAuth": {
          "id": "SS8MHWya3vb8KVFr",
          "name": "temporary cred"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "66b4d0fe-037e-4337-911a-e6d2f19335d9",
      "name": "스티커 노트",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        140,
        220
      ],
      "parameters": {
        "width": 400,
        "height": 200,
        "content": "This n8n workflow automates subdomain creation and deletion on GoDaddy using their API, triggered via email requests. This empowers developers to manage subdomains directly without involving DevOps for minor tasks."
      },
      "typeVersion": 1
    },
    {
      "id": "df3c9425-7d2e-4489-aada-01a321d56b1e",
      "name": "워크플로우 시작 (GET 요청)",
      "type": "n8n-nodes-base.emailReadImap",
      "position": [
        0,
        560
      ],
      "parameters": {
        "options": {
          "customEmailConfig": "[\"UNSEEN\", [\"SUBJECT\", \"subdomain\"]]"
        }
      },
      "credentials": {
        "imap": {
          "id": "D3nLrSlP1dHWcIDE",
          "name": "IMAP account"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "e497482e-83b6-4632-bbe3-56cfeccc0a95",
      "name": "이메일에서 데이터 추출",
      "type": "n8n-nodes-base.code",
      "position": [
        220,
        560
      ],
      "parameters": {
        "jsCode": "const emailBody = $json[\"textPlain\"] || \"\";\n\nfunction matchFirst(patterns) {\n  for (const pattern of patterns) {\n    const match = emailBody.match(pattern);\n    if (match) return match[1];\n  }\n  return null;\n}\n\n// Match domain (various phrasings)\nconst domain = matchFirst([\n  /domain[:\\s*]*([a-zA-Z0-9.-]+\\.[a-z]{2,})/i,\n  /on domain\\s+([a-zA-Z0-9.-]+\\.[a-z]{2,})/i\n]);\n\n// Match subdomain\nconst subdomain = matchFirst([\n  /subdomain[:\\s*]*([a-zA-Z0-9-]+)/i,\n  /create subdomain\\s+([a-zA-Z0-9-]+)/i\n]);\n\n// Match IP address\nconst ip = matchFirst([\n  /IP\\s*(?:Address)?[:\\s*]*((?:\\d{1,3}\\.){3}\\d{1,3})/i,\n  /with IP\\s+((?:\\d{1,3}\\.){3}\\d{1,3})/i\n]);\n\n// Determine task type (create/delete)\nlet task_type = \"create\"; // default\nif (emailBody.toLowerCase().includes(\"delete\")) {\n  task_type = \"delete\";\n} else if (emailBody.toLowerCase().includes(\"create\")) {\n  task_type = \"create\";\n}\n\nreturn [\n  {\n    json: {\n      domain,\n      subdomain,\n      ip,\n      task_type\n    }\n  }\n];\n"
      },
      "typeVersion": 2
    },
    {
      "id": "473060c3-ef5a-43c4-bfd6-920b300357fc",
      "name": "작업 유형 검증",
      "type": "n8n-nodes-base.if",
      "position": [
        440,
        560
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "d4ca0b62-7d96-45ca-8c1f-30268d41bc0d",
              "operator": {
                "name": "filter.operator.equals",
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.task_type }}",
              "rightValue": "=create"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "0c9d9758-b4b8-4f7e-b35b-8647628fd7fe",
      "name": "이메일 응답 전송",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        880,
        560
      ],
      "webhookId": "41a8a8d6-4efb-4164-8d64-fe1c5ae9e068",
      "parameters": {
        "text": "={{ $json.message }}\n\n\nYou can verify the subdomain from: https://www.nslookup.io/\n",
        "options": {
          "replyTo": "={{ $('Start Workflow (GET Request)').item.json.from }}"
        },
        "subject": "={{ $('Validate Action Type').item.json.task_type === 'create' ? 'Subdomain Created Successfully' : 'Subdomain Deleted Successfully' }}\n",
        "toEmail": "={{ $('Start Workflow (GET Request)').item.json.from }}",
        "fromEmail": "xyz@gmail.com",
        "emailFormat": "text"
      },
      "credentials": {
        "smtp": {
          "id": "3QSx1pWoS0BZcK4c",
          "name": "SMTP account"
        }
      },
      "typeVersion": 2.1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "444742fb-cc81-4f14-b4e0-dd1a912d1cca",
  "connections": {
    "ad85bd3c-1605-4b5e-823c-009280d2dae7": {
      "main": [
        [
          {
            "node": "0c9d9758-b4b8-4f7e-b35b-8647628fd7fe",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "629e7d14-10b5-42c9-8332-2cdfbc847f33": {
      "main": [
        [
          {
            "node": "0c9d9758-b4b8-4f7e-b35b-8647628fd7fe",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "473060c3-ef5a-43c4-bfd6-920b300357fc": {
      "main": [
        [
          {
            "node": "ad85bd3c-1605-4b5e-823c-009280d2dae7",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "629e7d14-10b5-42c9-8332-2cdfbc847f33",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "e497482e-83b6-4632-bbe3-56cfeccc0a95": {
      "main": [
        [
          {
            "node": "473060c3-ef5a-43c4-bfd6-920b300357fc",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "df3c9425-7d2e-4489-aada-01a321d56b1e": {
      "main": [
        [
          {
            "node": "e497482e-83b6-4632-bbe3-56cfeccc0a95",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
자주 묻는 질문

이 워크플로우를 어떻게 사용하나요?

위의 JSON 구성 코드를 복사하여 n8n 인스턴스에서 새 워크플로우를 생성하고 "JSON에서 가져오기"를 선택한 후, 구성을 붙여넣고 필요에 따라 인증 설정을 수정하세요.

이 워크플로우는 어떤 시나리오에 적합한가요?

중급 - 데브옵스

유료인가요?

이 워크플로우는 완전히 무료이며 직접 가져와 사용할 수 있습니다. 다만, 워크플로우에서 사용하는 타사 서비스(예: OpenAI API)는 사용자 직접 비용을 지불해야 할 수 있습니다.

워크플로우 정보
난이도
중급
노드 수7
카테고리1
노드 유형6
난이도 설명

일정 경험을 가진 사용자를 위한 6-15개 노드의 중간 복잡도 워크플로우

저자
Oneclick AI Squad

Oneclick AI Squad

@oneclick-ai

The AI Squad Initiative is a pioneering effort to build, automate and scale AI-powered workflows using n8n.io. Our mission is to help individuals and businesses integrate AI agents seamlessly into their daily operations from automating tasks and enhancing productivity to creating innovative, intelligent solutions. We design modular, reusable AI workflow templates that empower creators, developers and teams to supercharge their automation with minimal effort and maximum impact.

외부 링크
n8n.io에서 보기

이 워크플로우 공유

카테고리

카테고리: 34