Method: customers.policies.networks.defineCertificate
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
HTTP 요청
POST https://chromepolicy.googleapis.com/v1/{customer=customers/*}/policies/networks:defineCertificate
URL은 gRPC 트랜스코딩 문법을 사용합니다.
경로 매개변수
매개변수 |
customer |
string
필수 항목입니다. 인증서를 적용할 고객입니다.
|
요청 본문
요청 본문에는 다음과 같은 구조의 데이터가 포함됩니다.
JSON 표현 |
{
"targetResource": string,
"ceritificateName": string,
"certificate": string,
"settings": [
{
object (NetworkSetting )
}
]
} |
필드 |
targetResource |
string
필수 항목입니다. 이 인증서가 적용되는 대상 리소스입니다. 지원되는 리소스는 다음과 같습니다. * 조직 단위('orgunits/{orgunit_id}")
|
ceritificateName |
string
선택사항입니다. 인증서 이름입니다(선택사항). 지정하지 않으면 인증서 발급기관이 이름으로 사용됩니다.
|
certificate |
string
필수 항목입니다. .PEM, .CRT, .CER 파일의 원시 콘텐츠입니다.
|
settings[] |
object (NetworkSetting )
선택사항입니다. chrome.networks.certificates 네임스페이스의 인증서 설정
|
응답 본문
인증서를 만들기 위한 응답 객체입니다.
성공할 경우 응답 본문에 다음 구조의 데이터가 포함됩니다.
JSON 표현 |
{
"settings": [
{
object (NetworkSetting )
}
],
"networkId": string,
"targetResource": string
} |
필드 |
settings[] |
object (NetworkSetting )
인증서의 제휴 설정 (구현되지 않음)
|
networkId |
string
작업에서 생성한 인증서의 안내입니다.
|
targetResource |
string
인증서가 정의된 리소스입니다.
|
승인 범위
다음 OAuth 범위가 필요합니다.
https://www.googleapis.com/auth/chrome.management.policy
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-25(UTC)
[null,null,["최종 업데이트: 2025-07-25(UTC)"],[[["\u003cp\u003eDefines a certificate at a specified organizational unit (OU) for a customer using a POST request.\u003c/p\u003e\n"],["\u003cp\u003eRequires providing the certificate data, target resource, and optionally, a certificate name and settings.\u003c/p\u003e\n"],["\u003cp\u003eUpon successful creation, the response includes the certificate's settings, network ID, and target resource.\u003c/p\u003e\n"],["\u003cp\u003eNeeds authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/chrome.management.policy\u003c/code\u003e scope.\u003c/p\u003e\n"]]],[],null,["# Method: customers.policies.networks.defineCertificate\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n - [JSON representation](#body.DefineCertificateResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nCreates a certificate at a specified OU for a customer.\n\n### HTTP request\n\n`POST https://chromepolicy.googleapis.com/v1/{customer=customers/*}/policies/networks:defineCertificate`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|------------|-----------------------------------------------------------------------|\n| `customer` | `string` Required. The customer for which the certificate will apply. |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"targetResource\": string, \"ceritificateName\": string, \"certificate\": string, \"settings\": [ { object (/chrome/policy/reference/rest/v1/NetworkSetting) } ] } ``` |\n\n| Fields ||\n|--------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `targetResource` | `string` Required. The target resource on which this certificate is applied. The following resources are supported: \\* Organizational Unit (\"orgunits/{orgunit_id}\") |\n| `ceritificateName` | `string` Optional. The optional name of the certificate. If not specified, the certificate issuer will be used as the name. |\n| `certificate` | `string` Required. The raw contents of the .PEM, .CRT, or .CER file. |\n| `settings[]` | `object (`[NetworkSetting](/chrome/policy/reference/rest/v1/NetworkSetting)`)` Optional. Certificate settings within the chrome.networks.certificates namespace. |\n\n### Response body\n\nResponse object for creating a certificate.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"settings\": [ { object (/chrome/policy/reference/rest/v1/NetworkSetting) } ], \"networkId\": string, \"targetResource\": string } ``` |\n\n| Fields ||\n|------------------|---------------------------------------------------------------------------------------------------------------------------------------------|\n| `settings[]` | `object (`[NetworkSetting](/chrome/policy/reference/rest/v1/NetworkSetting)`)` the affiliated settings of the certificate (NOT IMPLEMENTED) |\n| `networkId` | `string` The guid of the certificate created by the action. |\n| `targetResource` | `string` the resource at which the certificate is defined. |\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/chrome.management.policy`"]]