diff --git a/descriptions-next/api.github.com/api.github.com.2022-11-28.json b/descriptions-next/api.github.com/api.github.com.2022-11-28.json index 486faba919..7c0e738cf2 100644 --- a/descriptions-next/api.github.com/api.github.com.2022-11-28.json +++ b/descriptions-next/api.github.com/api.github.com.2022-11-28.json @@ -20426,6 +20426,11 @@ "goproxy_server" ] }, + "url": { + "description": "The URL of the private registry.", + "type": "string", + "format": "uri" + }, "username": { "description": "The username to use when authenticating with the private registry. This field should be omitted if the private registry does not require a username for authentication.", "type": [ @@ -20461,6 +20466,7 @@ }, "required": [ "registry_type", + "url", "encrypted_value", "key_id", "visibility" @@ -20471,6 +20477,7 @@ "summary": "Example of a private registry configuration with private visibility", "value": { "registry_type": "maven_repository", + "url": "https://maven.pkg.github.com/organization/", "username": "monalisa", "encrypted_value": "c2VjcmV0", "key_id": "012345678912345678", @@ -20481,6 +20488,7 @@ "summary": "Example of a private registry configuration with selected visibility", "value": { "registry_type": "maven_repository", + "url": "https://maven.pkg.github.com/organization/", "username": "monalisa", "encrypted_value": "c2VjcmV0", "key_id": "012345678912345678", @@ -20681,6 +20689,11 @@ "goproxy_server" ] }, + "url": { + "description": "The URL of the private registry.", + "type": "string", + "format": "uri" + }, "username": { "description": "The username to use when authenticating with the private registry. This field should be omitted if the private registry does not require a username for authentication.", "type": [ diff --git a/descriptions-next/api.github.com/api.github.com.2022-11-28.yaml b/descriptions-next/api.github.com/api.github.com.2022-11-28.yaml index 0137b33cc9..4f8d6ec0c4 100644 --- a/descriptions-next/api.github.com/api.github.com.2022-11-28.yaml +++ b/descriptions-next/api.github.com/api.github.com.2022-11-28.yaml @@ -14814,6 +14814,10 @@ paths: - maven_repository - nuget_feed - goproxy_server + url: + description: The URL of the private registry. + type: string + format: uri username: description: The username to use when authenticating with the private registry. This field should be omitted if the private registry @@ -14854,6 +14858,7 @@ paths: type: integer required: - registry_type + - url - encrypted_value - key_id - visibility @@ -14863,6 +14868,7 @@ paths: visibility value: registry_type: maven_repository + url: https://maven.pkg.github.com/organization/ username: monalisa encrypted_value: c2VjcmV0 key_id: '012345678912345678' @@ -14872,6 +14878,7 @@ paths: visibility value: registry_type: maven_repository + url: https://maven.pkg.github.com/organization/ username: monalisa encrypted_value: c2VjcmV0 key_id: '012345678912345678' @@ -15014,6 +15021,10 @@ paths: - maven_repository - nuget_feed - goproxy_server + url: + description: The URL of the private registry. + type: string + format: uri username: description: The username to use when authenticating with the private registry. This field should be omitted if the private registry diff --git a/descriptions-next/api.github.com/api.github.com.json b/descriptions-next/api.github.com/api.github.com.json index 486faba919..7c0e738cf2 100644 --- a/descriptions-next/api.github.com/api.github.com.json +++ b/descriptions-next/api.github.com/api.github.com.json @@ -20426,6 +20426,11 @@ "goproxy_server" ] }, + "url": { + "description": "The URL of the private registry.", + "type": "string", + "format": "uri" + }, "username": { "description": "The username to use when authenticating with the private registry. This field should be omitted if the private registry does not require a username for authentication.", "type": [ @@ -20461,6 +20466,7 @@ }, "required": [ "registry_type", + "url", "encrypted_value", "key_id", "visibility" @@ -20471,6 +20477,7 @@ "summary": "Example of a private registry configuration with private visibility", "value": { "registry_type": "maven_repository", + "url": "https://maven.pkg.github.com/organization/", "username": "monalisa", "encrypted_value": "c2VjcmV0", "key_id": "012345678912345678", @@ -20481,6 +20488,7 @@ "summary": "Example of a private registry configuration with selected visibility", "value": { "registry_type": "maven_repository", + "url": "https://maven.pkg.github.com/organization/", "username": "monalisa", "encrypted_value": "c2VjcmV0", "key_id": "012345678912345678", @@ -20681,6 +20689,11 @@ "goproxy_server" ] }, + "url": { + "description": "The URL of the private registry.", + "type": "string", + "format": "uri" + }, "username": { "description": "The username to use when authenticating with the private registry. This field should be omitted if the private registry does not require a username for authentication.", "type": [ diff --git a/descriptions-next/api.github.com/api.github.com.yaml b/descriptions-next/api.github.com/api.github.com.yaml index 0137b33cc9..4f8d6ec0c4 100644 --- a/descriptions-next/api.github.com/api.github.com.yaml +++ b/descriptions-next/api.github.com/api.github.com.yaml @@ -14814,6 +14814,10 @@ paths: - maven_repository - nuget_feed - goproxy_server + url: + description: The URL of the private registry. + type: string + format: uri username: description: The username to use when authenticating with the private registry. This field should be omitted if the private registry @@ -14854,6 +14858,7 @@ paths: type: integer required: - registry_type + - url - encrypted_value - key_id - visibility @@ -14863,6 +14868,7 @@ paths: visibility value: registry_type: maven_repository + url: https://maven.pkg.github.com/organization/ username: monalisa encrypted_value: c2VjcmV0 key_id: '012345678912345678' @@ -14872,6 +14878,7 @@ paths: visibility value: registry_type: maven_repository + url: https://maven.pkg.github.com/organization/ username: monalisa encrypted_value: c2VjcmV0 key_id: '012345678912345678' @@ -15014,6 +15021,10 @@ paths: - maven_repository - nuget_feed - goproxy_server + url: + description: The URL of the private registry. + type: string + format: uri username: description: The username to use when authenticating with the private registry. This field should be omitted if the private registry diff --git a/descriptions-next/api.github.com/dereferenced/api.github.com.2022-11-28.deref.json b/descriptions-next/api.github.com/dereferenced/api.github.com.2022-11-28.deref.json index 9b93863b42..11fbdb4baa 100644 --- a/descriptions-next/api.github.com/dereferenced/api.github.com.2022-11-28.deref.json +++ b/descriptions-next/api.github.com/dereferenced/api.github.com.2022-11-28.deref.json @@ -138219,6 +138219,11 @@ "goproxy_server" ] }, + "url": { + "description": "The URL of the private registry.", + "type": "string", + "format": "uri" + }, "username": { "description": "The username to use when authenticating with the private registry. This field should be omitted if the private registry does not require a username for authentication.", "type": [ @@ -138254,6 +138259,7 @@ }, "required": [ "registry_type", + "url", "encrypted_value", "key_id", "visibility" @@ -138264,6 +138270,7 @@ "summary": "Example of a private registry configuration with private visibility", "value": { "registry_type": "maven_repository", + "url": "https://maven.pkg.github.com/organization/", "username": "monalisa", "encrypted_value": "c2VjcmV0", "key_id": "012345678912345678", @@ -138274,6 +138281,7 @@ "summary": "Example of a private registry configuration with selected visibility", "value": { "registry_type": "maven_repository", + "url": "https://maven.pkg.github.com/organization/", "username": "monalisa", "encrypted_value": "c2VjcmV0", "key_id": "012345678912345678", @@ -138788,6 +138796,11 @@ "goproxy_server" ] }, + "url": { + "description": "The URL of the private registry.", + "type": "string", + "format": "uri" + }, "username": { "description": "The username to use when authenticating with the private registry. This field should be omitted if the private registry does not require a username for authentication.", "type": [ diff --git a/descriptions-next/api.github.com/dereferenced/api.github.com.2022-11-28.deref.yaml b/descriptions-next/api.github.com/dereferenced/api.github.com.2022-11-28.deref.yaml index bd8440b692..92cb5b4a2a 100644 --- a/descriptions-next/api.github.com/dereferenced/api.github.com.2022-11-28.deref.yaml +++ b/descriptions-next/api.github.com/dereferenced/api.github.com.2022-11-28.deref.yaml @@ -33680,6 +33680,10 @@ paths: - maven_repository - nuget_feed - goproxy_server + url: + description: The URL of the private registry. + type: string + format: uri username: description: The username to use when authenticating with the private registry. This field should be omitted if the private registry @@ -33720,6 +33724,7 @@ paths: type: integer required: - registry_type + - url - encrypted_value - key_id - visibility @@ -33729,6 +33734,7 @@ paths: visibility value: registry_type: maven_repository + url: https://maven.pkg.github.com/organization/ username: monalisa encrypted_value: c2VjcmV0 key_id: '012345678912345678' @@ -33738,6 +33744,7 @@ paths: visibility value: registry_type: maven_repository + url: https://maven.pkg.github.com/organization/ username: monalisa encrypted_value: c2VjcmV0 key_id: '012345678912345678' @@ -33939,6 +33946,10 @@ paths: - maven_repository - nuget_feed - goproxy_server + url: + description: The URL of the private registry. + type: string + format: uri username: description: The username to use when authenticating with the private registry. This field should be omitted if the private registry diff --git a/descriptions-next/api.github.com/dereferenced/api.github.com.deref.json b/descriptions-next/api.github.com/dereferenced/api.github.com.deref.json index 9b93863b42..11fbdb4baa 100644 --- a/descriptions-next/api.github.com/dereferenced/api.github.com.deref.json +++ b/descriptions-next/api.github.com/dereferenced/api.github.com.deref.json @@ -138219,6 +138219,11 @@ "goproxy_server" ] }, + "url": { + "description": "The URL of the private registry.", + "type": "string", + "format": "uri" + }, "username": { "description": "The username to use when authenticating with the private registry. This field should be omitted if the private registry does not require a username for authentication.", "type": [ @@ -138254,6 +138259,7 @@ }, "required": [ "registry_type", + "url", "encrypted_value", "key_id", "visibility" @@ -138264,6 +138270,7 @@ "summary": "Example of a private registry configuration with private visibility", "value": { "registry_type": "maven_repository", + "url": "https://maven.pkg.github.com/organization/", "username": "monalisa", "encrypted_value": "c2VjcmV0", "key_id": "012345678912345678", @@ -138274,6 +138281,7 @@ "summary": "Example of a private registry configuration with selected visibility", "value": { "registry_type": "maven_repository", + "url": "https://maven.pkg.github.com/organization/", "username": "monalisa", "encrypted_value": "c2VjcmV0", "key_id": "012345678912345678", @@ -138788,6 +138796,11 @@ "goproxy_server" ] }, + "url": { + "description": "The URL of the private registry.", + "type": "string", + "format": "uri" + }, "username": { "description": "The username to use when authenticating with the private registry. This field should be omitted if the private registry does not require a username for authentication.", "type": [ diff --git a/descriptions-next/api.github.com/dereferenced/api.github.com.deref.yaml b/descriptions-next/api.github.com/dereferenced/api.github.com.deref.yaml index bd8440b692..92cb5b4a2a 100644 --- a/descriptions-next/api.github.com/dereferenced/api.github.com.deref.yaml +++ b/descriptions-next/api.github.com/dereferenced/api.github.com.deref.yaml @@ -33680,6 +33680,10 @@ paths: - maven_repository - nuget_feed - goproxy_server + url: + description: The URL of the private registry. + type: string + format: uri username: description: The username to use when authenticating with the private registry. This field should be omitted if the private registry @@ -33720,6 +33724,7 @@ paths: type: integer required: - registry_type + - url - encrypted_value - key_id - visibility @@ -33729,6 +33734,7 @@ paths: visibility value: registry_type: maven_repository + url: https://maven.pkg.github.com/organization/ username: monalisa encrypted_value: c2VjcmV0 key_id: '012345678912345678' @@ -33738,6 +33744,7 @@ paths: visibility value: registry_type: maven_repository + url: https://maven.pkg.github.com/organization/ username: monalisa encrypted_value: c2VjcmV0 key_id: '012345678912345678' @@ -33939,6 +33946,10 @@ paths: - maven_repository - nuget_feed - goproxy_server + url: + description: The URL of the private registry. + type: string + format: uri username: description: The username to use when authenticating with the private registry. This field should be omitted if the private registry diff --git a/descriptions-next/ghec/dereferenced/ghec.2022-11-28.deref.json b/descriptions-next/ghec/dereferenced/ghec.2022-11-28.deref.json index 1b617c3b2a..c6c5a4015f 100644 --- a/descriptions-next/ghec/dereferenced/ghec.2022-11-28.deref.json +++ b/descriptions-next/ghec/dereferenced/ghec.2022-11-28.deref.json @@ -173514,6 +173514,11 @@ "goproxy_server" ] }, + "url": { + "description": "The URL of the private registry.", + "type": "string", + "format": "uri" + }, "username": { "description": "The username to use when authenticating with the private registry. This field should be omitted if the private registry does not require a username for authentication.", "type": [ @@ -173549,6 +173554,7 @@ }, "required": [ "registry_type", + "url", "encrypted_value", "key_id", "visibility" @@ -173559,6 +173565,7 @@ "summary": "Example of a private registry configuration with private visibility", "value": { "registry_type": "maven_repository", + "url": "https://maven.pkg.github.com/organization/", "username": "monalisa", "encrypted_value": "c2VjcmV0", "key_id": "012345678912345678", @@ -173569,6 +173576,7 @@ "summary": "Example of a private registry configuration with selected visibility", "value": { "registry_type": "maven_repository", + "url": "https://maven.pkg.github.com/organization/", "username": "monalisa", "encrypted_value": "c2VjcmV0", "key_id": "012345678912345678", @@ -174083,6 +174091,11 @@ "goproxy_server" ] }, + "url": { + "description": "The URL of the private registry.", + "type": "string", + "format": "uri" + }, "username": { "description": "The username to use when authenticating with the private registry. This field should be omitted if the private registry does not require a username for authentication.", "type": [ diff --git a/descriptions-next/ghec/dereferenced/ghec.2022-11-28.deref.yaml b/descriptions-next/ghec/dereferenced/ghec.2022-11-28.deref.yaml index ccde7ac4ba..31929c861c 100644 --- a/descriptions-next/ghec/dereferenced/ghec.2022-11-28.deref.yaml +++ b/descriptions-next/ghec/dereferenced/ghec.2022-11-28.deref.yaml @@ -42820,6 +42820,10 @@ paths: - maven_repository - nuget_feed - goproxy_server + url: + description: The URL of the private registry. + type: string + format: uri username: description: The username to use when authenticating with the private registry. This field should be omitted if the private registry @@ -42860,6 +42864,7 @@ paths: type: integer required: - registry_type + - url - encrypted_value - key_id - visibility @@ -42869,6 +42874,7 @@ paths: visibility value: registry_type: maven_repository + url: https://maven.pkg.github.com/organization/ username: monalisa encrypted_value: c2VjcmV0 key_id: '012345678912345678' @@ -42878,6 +42884,7 @@ paths: visibility value: registry_type: maven_repository + url: https://maven.pkg.github.com/organization/ username: monalisa encrypted_value: c2VjcmV0 key_id: '012345678912345678' @@ -43079,6 +43086,10 @@ paths: - maven_repository - nuget_feed - goproxy_server + url: + description: The URL of the private registry. + type: string + format: uri username: description: The username to use when authenticating with the private registry. This field should be omitted if the private registry diff --git a/descriptions-next/ghec/dereferenced/ghec.deref.json b/descriptions-next/ghec/dereferenced/ghec.deref.json index 1b617c3b2a..c6c5a4015f 100644 --- a/descriptions-next/ghec/dereferenced/ghec.deref.json +++ b/descriptions-next/ghec/dereferenced/ghec.deref.json @@ -173514,6 +173514,11 @@ "goproxy_server" ] }, + "url": { + "description": "The URL of the private registry.", + "type": "string", + "format": "uri" + }, "username": { "description": "The username to use when authenticating with the private registry. This field should be omitted if the private registry does not require a username for authentication.", "type": [ @@ -173549,6 +173554,7 @@ }, "required": [ "registry_type", + "url", "encrypted_value", "key_id", "visibility" @@ -173559,6 +173565,7 @@ "summary": "Example of a private registry configuration with private visibility", "value": { "registry_type": "maven_repository", + "url": "https://maven.pkg.github.com/organization/", "username": "monalisa", "encrypted_value": "c2VjcmV0", "key_id": "012345678912345678", @@ -173569,6 +173576,7 @@ "summary": "Example of a private registry configuration with selected visibility", "value": { "registry_type": "maven_repository", + "url": "https://maven.pkg.github.com/organization/", "username": "monalisa", "encrypted_value": "c2VjcmV0", "key_id": "012345678912345678", @@ -174083,6 +174091,11 @@ "goproxy_server" ] }, + "url": { + "description": "The URL of the private registry.", + "type": "string", + "format": "uri" + }, "username": { "description": "The username to use when authenticating with the private registry. This field should be omitted if the private registry does not require a username for authentication.", "type": [ diff --git a/descriptions-next/ghec/dereferenced/ghec.deref.yaml b/descriptions-next/ghec/dereferenced/ghec.deref.yaml index ccde7ac4ba..31929c861c 100644 --- a/descriptions-next/ghec/dereferenced/ghec.deref.yaml +++ b/descriptions-next/ghec/dereferenced/ghec.deref.yaml @@ -42820,6 +42820,10 @@ paths: - maven_repository - nuget_feed - goproxy_server + url: + description: The URL of the private registry. + type: string + format: uri username: description: The username to use when authenticating with the private registry. This field should be omitted if the private registry @@ -42860,6 +42864,7 @@ paths: type: integer required: - registry_type + - url - encrypted_value - key_id - visibility @@ -42869,6 +42874,7 @@ paths: visibility value: registry_type: maven_repository + url: https://maven.pkg.github.com/organization/ username: monalisa encrypted_value: c2VjcmV0 key_id: '012345678912345678' @@ -42878,6 +42884,7 @@ paths: visibility value: registry_type: maven_repository + url: https://maven.pkg.github.com/organization/ username: monalisa encrypted_value: c2VjcmV0 key_id: '012345678912345678' @@ -43079,6 +43086,10 @@ paths: - maven_repository - nuget_feed - goproxy_server + url: + description: The URL of the private registry. + type: string + format: uri username: description: The username to use when authenticating with the private registry. This field should be omitted if the private registry diff --git a/descriptions-next/ghec/ghec.2022-11-28.json b/descriptions-next/ghec/ghec.2022-11-28.json index 14d8ea0af3..e61b9e45bb 100644 --- a/descriptions-next/ghec/ghec.2022-11-28.json +++ b/descriptions-next/ghec/ghec.2022-11-28.json @@ -27681,6 +27681,11 @@ "goproxy_server" ] }, + "url": { + "description": "The URL of the private registry.", + "type": "string", + "format": "uri" + }, "username": { "description": "The username to use when authenticating with the private registry. This field should be omitted if the private registry does not require a username for authentication.", "type": [ @@ -27716,6 +27721,7 @@ }, "required": [ "registry_type", + "url", "encrypted_value", "key_id", "visibility" @@ -27726,6 +27732,7 @@ "summary": "Example of a private registry configuration with private visibility", "value": { "registry_type": "maven_repository", + "url": "https://maven.pkg.github.com/organization/", "username": "monalisa", "encrypted_value": "c2VjcmV0", "key_id": "012345678912345678", @@ -27736,6 +27743,7 @@ "summary": "Example of a private registry configuration with selected visibility", "value": { "registry_type": "maven_repository", + "url": "https://maven.pkg.github.com/organization/", "username": "monalisa", "encrypted_value": "c2VjcmV0", "key_id": "012345678912345678", @@ -27936,6 +27944,11 @@ "goproxy_server" ] }, + "url": { + "description": "The URL of the private registry.", + "type": "string", + "format": "uri" + }, "username": { "description": "The username to use when authenticating with the private registry. This field should be omitted if the private registry does not require a username for authentication.", "type": [ diff --git a/descriptions-next/ghec/ghec.2022-11-28.yaml b/descriptions-next/ghec/ghec.2022-11-28.yaml index d9c3e6561c..c72a7f0246 100644 --- a/descriptions-next/ghec/ghec.2022-11-28.yaml +++ b/descriptions-next/ghec/ghec.2022-11-28.yaml @@ -20016,6 +20016,10 @@ paths: - maven_repository - nuget_feed - goproxy_server + url: + description: The URL of the private registry. + type: string + format: uri username: description: The username to use when authenticating with the private registry. This field should be omitted if the private registry @@ -20056,6 +20060,7 @@ paths: type: integer required: - registry_type + - url - encrypted_value - key_id - visibility @@ -20065,6 +20070,7 @@ paths: visibility value: registry_type: maven_repository + url: https://maven.pkg.github.com/organization/ username: monalisa encrypted_value: c2VjcmV0 key_id: '012345678912345678' @@ -20074,6 +20080,7 @@ paths: visibility value: registry_type: maven_repository + url: https://maven.pkg.github.com/organization/ username: monalisa encrypted_value: c2VjcmV0 key_id: '012345678912345678' @@ -20216,6 +20223,10 @@ paths: - maven_repository - nuget_feed - goproxy_server + url: + description: The URL of the private registry. + type: string + format: uri username: description: The username to use when authenticating with the private registry. This field should be omitted if the private registry diff --git a/descriptions-next/ghec/ghec.json b/descriptions-next/ghec/ghec.json index 14d8ea0af3..e61b9e45bb 100644 --- a/descriptions-next/ghec/ghec.json +++ b/descriptions-next/ghec/ghec.json @@ -27681,6 +27681,11 @@ "goproxy_server" ] }, + "url": { + "description": "The URL of the private registry.", + "type": "string", + "format": "uri" + }, "username": { "description": "The username to use when authenticating with the private registry. This field should be omitted if the private registry does not require a username for authentication.", "type": [ @@ -27716,6 +27721,7 @@ }, "required": [ "registry_type", + "url", "encrypted_value", "key_id", "visibility" @@ -27726,6 +27732,7 @@ "summary": "Example of a private registry configuration with private visibility", "value": { "registry_type": "maven_repository", + "url": "https://maven.pkg.github.com/organization/", "username": "monalisa", "encrypted_value": "c2VjcmV0", "key_id": "012345678912345678", @@ -27736,6 +27743,7 @@ "summary": "Example of a private registry configuration with selected visibility", "value": { "registry_type": "maven_repository", + "url": "https://maven.pkg.github.com/organization/", "username": "monalisa", "encrypted_value": "c2VjcmV0", "key_id": "012345678912345678", @@ -27936,6 +27944,11 @@ "goproxy_server" ] }, + "url": { + "description": "The URL of the private registry.", + "type": "string", + "format": "uri" + }, "username": { "description": "The username to use when authenticating with the private registry. This field should be omitted if the private registry does not require a username for authentication.", "type": [ diff --git a/descriptions-next/ghec/ghec.yaml b/descriptions-next/ghec/ghec.yaml index d9c3e6561c..c72a7f0246 100644 --- a/descriptions-next/ghec/ghec.yaml +++ b/descriptions-next/ghec/ghec.yaml @@ -20016,6 +20016,10 @@ paths: - maven_repository - nuget_feed - goproxy_server + url: + description: The URL of the private registry. + type: string + format: uri username: description: The username to use when authenticating with the private registry. This field should be omitted if the private registry @@ -20056,6 +20060,7 @@ paths: type: integer required: - registry_type + - url - encrypted_value - key_id - visibility @@ -20065,6 +20070,7 @@ paths: visibility value: registry_type: maven_repository + url: https://maven.pkg.github.com/organization/ username: monalisa encrypted_value: c2VjcmV0 key_id: '012345678912345678' @@ -20074,6 +20080,7 @@ paths: visibility value: registry_type: maven_repository + url: https://maven.pkg.github.com/organization/ username: monalisa encrypted_value: c2VjcmV0 key_id: '012345678912345678' @@ -20216,6 +20223,10 @@ paths: - maven_repository - nuget_feed - goproxy_server + url: + description: The URL of the private registry. + type: string + format: uri username: description: The username to use when authenticating with the private registry. This field should be omitted if the private registry diff --git a/descriptions-next/ghes-3.16/dereferenced/ghes-3.16.2022-11-28.deref.json b/descriptions-next/ghes-3.16/dereferenced/ghes-3.16.2022-11-28.deref.json index 3fca5d7ba4..d0df3f9da7 100644 --- a/descriptions-next/ghes-3.16/dereferenced/ghes-3.16.2022-11-28.deref.json +++ b/descriptions-next/ghes-3.16/dereferenced/ghes-3.16.2022-11-28.deref.json @@ -143070,317 +143070,6 @@ "category": "private-registries", "subcategory": "organization-configurations" } - }, - "post": { - "summary": "Create a private registry for an organization", - "description": "\nCreates a private registry configuration with an encrypted value for an organization. Encrypt your secret using [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages). For more information, see \"[Encrypting secrets for the REST API](https://docs.github.com/enterprise-server@3.16/rest/guides/encrypting-secrets-for-the-rest-api).\"\n\nOAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.", - "tags": [ - "private-registries" - ], - "operationId": "private-registries/create-org-private-registry", - "externalDocs": { - "description": "API method documentation", - "url": "https://docs.github.com/enterprise-server@3.16/rest/private-registries/organization-configurations#create-a-private-registry-for-an-organization" - }, - "parameters": [ - { - "name": "org", - "description": "The organization name. The name is not case sensitive.", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "registry_type": { - "description": "The registry type.", - "type": "string", - "enum": [ - "maven_repository", - "nuget_feed", - "goproxy_server" - ] - }, - "username": { - "description": "The username to use when authenticating with the private registry. This field should be omitted if the private registry does not require a username for authentication.", - "type": [ - "string", - "null" - ] - }, - "encrypted_value": { - "description": "The value for your secret, encrypted with [LibSodium](https://libsodium.gitbook.io/doc/bindings_for_other_languages) using the public key retrieved from the [Get private registries public key for an organization](https://docs.github.com/enterprise-server@3.16/rest/private-registries/organization-configurations#get-private-registries-public-key-for-an-organization) endpoint.", - "type": "string", - "pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$" - }, - "key_id": { - "description": "The ID of the key you used to encrypt the secret.", - "type": "string" - }, - "visibility": { - "description": "Which type of organization repositories have access to the private registry. `selected` means only the repositories specified by `selected_repository_ids` can access the private registry.", - "type": "string", - "enum": [ - "all", - "private", - "selected" - ] - }, - "selected_repository_ids": { - "description": "An array of repository IDs that can access the organization private registry. You can only provide a list of repository IDs when `visibility` is set to `selected`. You can manage the list of selected repositories using the [Update a private registry for an organization](https://docs.github.com/enterprise-server@3.16/rest/private-registries/organization-configurations#update-a-private-registry-for-an-organization) endpoint. This field should be omitted if `visibility` is set to `all` or `private`.", - "type": "array", - "items": { - "type": "integer" - } - } - }, - "required": [ - "registry_type", - "encrypted_value", - "key_id", - "visibility" - ] - }, - "examples": { - "org-private-registry-with-private-visibility": { - "summary": "Example of a private registry configuration with private visibility", - "value": { - "registry_type": "maven_repository", - "username": "monalisa", - "encrypted_value": "c2VjcmV0", - "key_id": "012345678912345678", - "visibility": "private" - } - }, - "org-private-registry-with-selected-visibility": { - "summary": "Example of a private registry configuration with selected visibility", - "value": { - "registry_type": "maven_repository", - "username": "monalisa", - "encrypted_value": "c2VjcmV0", - "key_id": "012345678912345678", - "visibility": "selected", - "selected_repository_ids": [ - 1296269, - 1296280 - ] - } - } - } - } - } - }, - "responses": { - "201": { - "description": "The organization private registry configuration", - "content": { - "application/json": { - "schema": { - "title": "Organization private registry", - "description": "Private registry configuration for an organization", - "type": "object", - "properties": { - "name": { - "description": "The name of the private registry configuration.", - "type": "string", - "examples": [ - "MAVEN_REPOSITORY_SECRET" - ] - }, - "registry_type": { - "description": "The registry type.", - "enum": [ - "maven_repository", - "nuget_feed", - "goproxy_server" - ], - "type": "string" - }, - "username": { - "description": "The username to use when authenticating with the private registry.", - "type": "string", - "examples": [ - "monalisa" - ] - }, - "visibility": { - "description": "Which type of organization repositories have access to the private registry. `selected` means only the repositories specified by `selected_repository_ids` can access the private registry.", - "enum": [ - "all", - "private", - "selected" - ], - "type": "string" - }, - "selected_repository_ids": { - "type": "array", - "description": "An array of repository IDs that can access the organization private registry when `visibility` is set to `selected`.", - "items": { - "type": "integer" - } - }, - "created_at": { - "type": "string", - "format": "date-time" - }, - "updated_at": { - "type": "string", - "format": "date-time" - } - }, - "required": [ - "name", - "registry_type", - "visibility", - "created_at", - "updated_at" - ] - }, - "examples": { - "org-private-registry-with-selected-visibility": { - "value": { - "name": "MAVEN_REPOSITORY_SECRET", - "registry_type": "maven_repository", - "username": "monalisa", - "visibility": "private", - "created_at": "2019-08-10T14:59:22Z", - "updated_at": "2020-01-10T14:59:22Z" - } - }, - "org-private-registry-with-private-visibility": { - "value": { - "name": "MAVEN_REPOSITORY_SECRET", - "registry_type": "maven_repository", - "username": "monalisa", - "visibility": "selected", - "selected_repository_ids": [ - 1296269, - 1296280 - ], - "created_at": "2019-08-10T14:59:22Z", - "updated_at": "2020-01-10T14:59:22Z" - } - } - } - } - } - }, - "404": { - "description": "Resource not found", - "content": { - "application/json": { - "schema": { - "title": "Basic Error", - "description": "Basic Error", - "type": "object", - "properties": { - "message": { - "type": "string" - }, - "documentation_url": { - "type": "string" - }, - "url": { - "type": "string" - }, - "status": { - "type": "string" - } - } - } - } - } - }, - "422": { - "description": "Validation failed, or the endpoint has been spammed.", - "content": { - "application/json": { - "schema": { - "title": "Validation Error", - "description{"code":"deadline_exceeded","msg":"operation timed out"}