> ## Documentation Index
> Fetch the complete documentation index at: https://docs.coreweave.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 서비스

> 샌드박스가 노출하는 유형 지정 서비스 포트입니다.

<h2 id="service">
  서비스
</h2>

소스: [src/cwsandbox/\_types.py:323](https://github.com/coreweave/cwsandbox-client/blob/v1.14.2/src/cwsandbox/_types.py#L323)

```python theme={"system"}
class Service(*, port: int, name: str | None = None, protocol: ServiceProtocol | str | None = None, visibility: ServiceVisibility | str | None = None, endpoint: Endpoint | dict[str, Any] | None = None)
```

샌드박스가 노출하는 유형 지정 서비스 포트입니다.

베타 문자열 `NetworkOptions` ingress/egress 모드 모델을 대체합니다.

**속성**

* `name` (`str | None`) : 선택 사항인 서비스 이름입니다.
* `protocol` (`ServiceProtocol | str | None`) : L4 프로토콜입니다(설정하지 않으면 기본값은 TCP). `endpoint`가 설정된 경우 설정하지 않거나
  TCP여야 합니다.
* `visibility` (`ServiceVisibility | str | None`) : 이 포트에 접근할 수 있는 대상입니다(PUBLIC/PRIVATE/CUSTOM).
  CUSTOM은 샌드박스 집합이 접근 가능 여부를 부여한다는 의미입니다. API가 URL을 반환하지 않으면 `service_urls`는
  비어 있습니다. 서비스는 여전히
  `exposed_ports`에 표시됩니다. `endpoint`가 설정된 경우 PUBLIC이어야
  합니다.
* `endpoint` (`Endpoint | dict[str, Any] | None`) : 선택 사항인 제품 엔드포인트입니다. HTTPS/OPEN(선택 사항인
  `request_timeout_seconds`) 또는 TLS\_PASSTHROUGH(인증 및
  timeout 미설정)입니다. 일반 TCP/UDP 포트의 경우 생략하세요.

***

<h2 id="serviceprotocol">
  ServiceProtocol
</h2>

소스: [src/cwsandbox/\_types.py:197](https://github.com/coreweave/cwsandbox-client/blob/v1.14.2/src/cwsandbox/_types.py#L197)

```python theme={"system"}
class ServiceProtocol
```

* `UNSPECIFIED` = `'unspecified'`
* `TCP` = `'tcp'`
* `UDP` = `'udp'`
* `SCTP` = `'sctp'`

***

<h2 id="servicevisibility">
  ServiceVisibility
</h2>

소스: [src/cwsandbox/\_types.py:188](https://github.com/coreweave/cwsandbox-client/blob/v1.14.2/src/cwsandbox/_types.py#L188)

```python theme={"system"}
class ServiceVisibility
```

* `UNSPECIFIED` = `'unspecified'`
* `PUBLIC` = `'public'`
* `PRIVATE` = `'private'`
* `CUSTOM` = `'custom'`

***
