--- title: "createServiceFunctionChain" slug: "networking-vpc-createservicefunctionchain" updated: 2026-11-24T09:26:44Z published: 2026-11-24T09:26:44Z canonical: "api.ncloud-docs.com/networking-vpc-createservicefunctionchain" --- > ## Documentation Index > Fetch the complete documentation index at: https://api.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # createServiceFunctionChain VPC 환경에서 이용 가능합니다. 사용자가 지정한 조건에 따라 Service Function Chain을 생성합니다. Service Function Chain은 Transit VPC에만 생성할 수 있습니다. ## 요청 요청 형식을 설명합니다. 요청 형식은 다음과 같습니다. | 메서드 | URI | | --- | --- | | GET \| POST | /vpc/v2/createServiceFunctionChain | 참고 가이드는 GET 방식 기준으로 안내합니다. POST 방식의 호출 테스트는 네이버 클라우드 플랫폼 콘솔의 API Gateway 서비스에서 Swagger를 통해서 가능합니다. ### 요청 헤더 VPC API에서 공통으로 사용하는 헤더에 대한 정보는 [VPC 요청 헤더](/docs/networking-vpc#%EC%9A%94%EC%B2%AD%ED%97%A4%EB%8D%94)를 참조해 주십시오. ### 요청 쿼리 파라미터 요청 쿼리 파라미터에 대한 설명은 다음과 같습니다. | 필드 | 타입 | 필수 여부 | 설명 | | --- | --- | --- | --- | | `regionCode` | String | Optional | Service Function Chain을 생성하려는 리전의 코드 - 조회 결과의 첫 번째 리전(기본값) - [getRegionList](/docs/compute-vserver-server-common-getregionlist) 참조 | | `zoneCode` | String | Required | Service Function Chain을 생성하려는 존의 코드 - [getZoneList](/docs/compute-vserver-server-common-getzonelist) 참조 | | `vpcNo` | String | Required | Service Function Chain을 생성하려는 VPC의 번호 - Transit VPC만 지정 가능 - [getVpcList](/docs/networking-vpc-vpcmanagement-getvpclist) 참조 | | `serviceFunctionChainName` | String | Optional | Service Function Chain 이름 - 네이버 클라우드 플랫폼이 자동으로 부여(기본값) - 영문 소문자, 숫자, 특수 문자 '-'를 조합하여 3~30자 이내로 입력 - 문자열은 영문자로 시작해서 영문자 또는 숫자로 끝나야 함 | | `serviceFunctionChainDescription` | String | Optional | Service Function Chain에 대한 설명(Byte) - 0~1,000 | | `chainList.N.targetTypeCode` | String | Required | Chain을 구성하는 대상의 유형 - `SVR` \| `LB` \| `TRANSITVPCCONNECT` \| `IGW` \| `VGW` \| `POGW` \| `NATGW` \| `OGW` - `chainList.1`, `chainList.2` … 순서대로 트래픽이 통과 - 최대 5개 입력 가능 - 마지막 순서는 `SVR`, `LB`가 아닌 유형이어야 하고, 그 앞 순서는 `SVR`, `LB`만 가능 - 회원 및 리전별로 사용 가능한 유형만 지정 가능 | | `chainList.N.targetNo` | String | Conditional | Chain을 구성하는 대상의 식별 번호 - `targetTypeCode`가 `IGW`인 경우, 입력하지 않음 - 그 외 유형은 필수 입력 | | `chainList.N.ingressNetworkInterfaceNo` | String | Conditional | 트래픽이 들어오는 네트워크 인터페이스 번호 - `targetTypeCode`가 `SVR`인 경우에만 필수 입력 | | `destinationCidrBlockList.N` | List[String] | Optional | 목적지 IPv4 주소 범위 목록 - CIDR 표기법 사용 - <예시> destinationCidrBlockList.1=10.0.0.0/16&destinationCidrBlockList.2=192.168.0.0/24 | | `responseFormatType` | String | Optional | 응답 결과의 형식 - `xml` (기본값) \| `json` | ### 요청 예시 요청 예시는 다음과 같습니다. ``` curl --location 'https://ncloud.apigw.ntruss.com/vpc/v2/createServiceFunctionChain ?regionCode=KR &zoneCode=KR-1 &vpcNo=***38 &serviceFunctionChainName=test-*** &serviceFunctionChainDescription=test-description &chainList.1.targetTypeCode=TRANSITVPCCONNECT &chainList.1.targetNo=***60 &destinationCidrBlockList.1=192.168.100.0/24' \ --header 'x-ncp-apigw-timestamp: {Timestamp}' \ --header 'x-ncp-iam-access-key: {Access Key}' \ --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' ``` ## 응답 응답 형식을 설명합니다. ### 응답 바디 응답 바디는 [ServiceFunctionChainList](/docs/common-vapidatatype-servicefunctionchainlist)를 참조해 주십시오. ### 응답 상태 코드 VPC API에서 공통으로 사용하는 응답 상태 코드에 대한 자세한 내용은 [VPC 응답 상태 코드](/docs/networking-vpc#%EC%9D%91%EB%8B%B5%EC%83%81%ED%83%9C%EC%BD%94%EB%93%9C)를 참조해 주십시오. ### 응답 예시 응답 예시는 다음과 같습니다. ``` a221a2f1-eb7a-4983-96a2-d84ec3690d8b 0 success 1 ***63 test-*** KR KR-1 ***38 test-*** SET 설정중 test-description 192.168.100.0/24 1 TRANSITVPCCONNECT Transit VPC Connect ***60 test-*** ```