1<html><body> 2<style> 3 4body, h1, h2, h3, div, span, p, pre, a { 5 margin: 0; 6 padding: 0; 7 border: 0; 8 font-weight: inherit; 9 font-style: inherit; 10 font-size: 100%; 11 font-family: inherit; 12 vertical-align: baseline; 13} 14 15body { 16 font-size: 13px; 17 padding: 1em; 18} 19 20h1 { 21 font-size: 26px; 22 margin-bottom: 1em; 23} 24 25h2 { 26 font-size: 24px; 27 margin-bottom: 1em; 28} 29 30h3 { 31 font-size: 20px; 32 margin-bottom: 1em; 33 margin-top: 1em; 34} 35 36pre, code { 37 line-height: 1.5; 38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; 39} 40 41pre { 42 margin-top: 0.5em; 43} 44 45h1, h2, h3, p { 46 font-family: Arial, sans serif; 47} 48 49h1, h2, h3 { 50 border-bottom: solid #CCC 1px; 51} 52 53.toc_element { 54 margin-top: 0.5em; 55} 56 57.firstline { 58 margin-left: 2 em; 59} 60 61.method { 62 margin-top: 1em; 63 border: solid 1px #CCC; 64 padding: 1em; 65 background: #EEE; 66} 67 68.details { 69 font-weight: bold; 70 font-size: 14px; 71} 72 73</style> 74 75<h1><a href="apigee_v1.html">Apigee API</a> . <a href="apigee_v1.organizations.html">organizations</a> . <a href="apigee_v1.organizations.environments.html">environments</a> . <a href="apigee_v1.organizations.environments.keystores.html">keystores</a> . <a href="apigee_v1.organizations.environments.keystores.aliases.html">aliases</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#close">close()</a></code></p> 79<p class="firstline">Close httplib2 connections.</p> 80<p class="toc_element"> 81 <code><a href="#create">create(parent, alias=None, body=None, format=None, ignoreExpiryValidation=None, ignoreNewlineValidation=None, x__xgafv=None, x_password=None)</a></code></p> 82<p class="firstline">Creates an alias from a key/certificate pair. The structure of the request is controlled by the `format` query parameter: - `keycertfile` - Separate PEM-encoded key and certificate files are uploaded. Set `Content-Type: multipart/form-data` and include the `keyFile`, `certFile`, and `password` (if keys are encrypted) fields in the request body. If uploading to a truststore, omit `keyFile`. - `pkcs12` - A PKCS12 file is uploaded. Set `Content-Type: multipart/form-data`, provide the file in the `file` field, and include the `password` field if the file is encrypted in the request body. - `selfsignedcert` - A new private key and certificate are generated. Set `Content-Type: application/json` and include CertificateGenerationSpec in the request body.</p> 83<p class="toc_element"> 84 <code><a href="#csr">csr(name, x__xgafv=None)</a></code></p> 85<p class="firstline">Generates a PKCS #10 Certificate Signing Request for the private key in an alias.</p> 86<p class="toc_element"> 87 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p> 88<p class="firstline">Deletes an alias.</p> 89<p class="toc_element"> 90 <code><a href="#get">get(name, x__xgafv=None)</a></code></p> 91<p class="firstline">Gets an alias.</p> 92<p class="toc_element"> 93 <code><a href="#getCertificate">getCertificate(name, x__xgafv=None)</a></code></p> 94<p class="firstline">Gets the certificate from an alias in PEM-encoded form.</p> 95<p class="toc_element"> 96 <code><a href="#update">update(name, body=None, ignoreExpiryValidation=None, ignoreNewlineValidation=None, x__xgafv=None)</a></code></p> 97<p class="firstline">Updates the certificate in an alias.</p> 98<h3>Method Details</h3> 99<div class="method"> 100 <code class="details" id="close">close()</code> 101 <pre>Close httplib2 connections.</pre> 102</div> 103 104<div class="method"> 105 <code class="details" id="create">create(parent, alias=None, body=None, format=None, ignoreExpiryValidation=None, ignoreNewlineValidation=None, x__xgafv=None, x_password=None)</code> 106 <pre>Creates an alias from a key/certificate pair. The structure of the request is controlled by the `format` query parameter: - `keycertfile` - Separate PEM-encoded key and certificate files are uploaded. Set `Content-Type: multipart/form-data` and include the `keyFile`, `certFile`, and `password` (if keys are encrypted) fields in the request body. If uploading to a truststore, omit `keyFile`. - `pkcs12` - A PKCS12 file is uploaded. Set `Content-Type: multipart/form-data`, provide the file in the `file` field, and include the `password` field if the file is encrypted in the request body. - `selfsignedcert` - A new private key and certificate are generated. Set `Content-Type: application/json` and include CertificateGenerationSpec in the request body. 107 108Args: 109 parent: string, Required. Name of the keystore. Use the following format in your request: `organizations/{org}/environments/{env}/keystores/{keystore}`. (required) 110 body: object, The request body. 111 The object takes the form of: 112 113{ # Message that represents an arbitrary HTTP body. It should only be used for payload formats that can't be represented as JSON, such as raw binary or an HTML page. This message can be used both in streaming and non-streaming API methods in the request as well as the response. It can be used as a top-level request field, which is convenient if one wants to extract parameters from either the URL or HTTP template into the request fields and also want access to the raw HTTP body. Example: message GetResourceRequest { // A unique request id. string request_id = 1; // The raw HTTP body is bound to this field. google.api.HttpBody http_body = 2; } service ResourceService { rpc GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); } Example with streaming methods: service CaldavService { rpc GetCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); } Use of this type only changes how the request and response bodies are handled, all other features will continue to work unchanged. 114 "contentType": "A String", # The HTTP Content-Type header value specifying the content type of the body. 115 "data": "A String", # The HTTP request/response body as raw binary. 116 "extensions": [ # Application specific response metadata. Must be set in the first response for streaming APIs. 117 { 118 "a_key": "", # Properties of the object. Contains field @type with type URL. 119 }, 120 ], 121} 122 123 alias: string, Alias for the key/certificate pair. Values must match the regular expression `[\w\s-.]{1,255}`. This must be provided for all formats except `selfsignedcert`; self-signed certs may specify the alias in either this parameter or the JSON body. 124 format: string, Required. Format of the data. Valid values include: `selfsignedcert`, `keycertfile`, or `pkcs12` 125 ignoreExpiryValidation: boolean, Flag that specifies whether to ignore expiry validation. If set to `true`, no expiry validation will be performed. 126 ignoreNewlineValidation: boolean, Flag that specifies whether to ignore newline validation. If set to `true`, no error is thrown when the file contains a certificate chain with no newline between each certificate. Defaults to `false`. 127 x__xgafv: string, V1 error format. 128 Allowed values 129 1 - v1 error format 130 2 - v2 error format 131 x_password: string, DEPRECATED: For improved security, specify the password in the request body instead of using the query parameter. To specify the password in the request body, set `Content-type: multipart/form-data` part with name `password`. Password for the private key file, if required. 132 133Returns: 134 An object of the form: 135 136 { # Reference to a certificate or key/certificate pair. 137 "alias": "A String", # Resource ID for this alias. Values must match the regular expression `[^/]{1,255}`. 138 "certsInfo": { # Chain of certificates under this alias. 139 "certInfo": [ # Chain of certificates under this name. 140 { # X.509 certificate as defined in RFC 5280. 141 "basicConstraints": "A String", # X.509 basic constraints extension. 142 "expiryDate": "A String", # X.509 `notAfter` validity period in milliseconds since epoch. 143 "isValid": "A String", # Flag that specifies whether the certificate is valid. Flag is set to `Yes` if the certificate is valid, `No` if expired, or `Not yet` if not yet valid. 144 "issuer": "A String", # X.509 issuer. 145 "publicKey": "A String", # Public key component of the X.509 subject public key info. 146 "serialNumber": "A String", # X.509 serial number. 147 "sigAlgName": "A String", # X.509 signatureAlgorithm. 148 "subject": "A String", # X.509 subject. 149 "subjectAlternativeNames": [ # X.509 subject alternative names (SANs) extension. 150 "A String", 151 ], 152 "validFrom": "A String", # X.509 `notBefore` validity period in milliseconds since epoch. 153 "version": 42, # X.509 version. 154 }, 155 ], 156 }, 157 "type": "A String", # Type of alias. 158}</pre> 159</div> 160 161<div class="method"> 162 <code class="details" id="csr">csr(name, x__xgafv=None)</code> 163 <pre>Generates a PKCS #10 Certificate Signing Request for the private key in an alias. 164 165Args: 166 name: string, Required. Name of the alias. Use the following format in your request: `organizations/{org}/environments/{env}/keystores/{keystore}/aliases/{alias}`. (required) 167 x__xgafv: string, V1 error format. 168 Allowed values 169 1 - v1 error format 170 2 - v2 error format 171 172Returns: 173 An object of the form: 174 175 { # Message that represents an arbitrary HTTP body. It should only be used for payload formats that can't be represented as JSON, such as raw binary or an HTML page. This message can be used both in streaming and non-streaming API methods in the request as well as the response. It can be used as a top-level request field, which is convenient if one wants to extract parameters from either the URL or HTTP template into the request fields and also want access to the raw HTTP body. Example: message GetResourceRequest { // A unique request id. string request_id = 1; // The raw HTTP body is bound to this field. google.api.HttpBody http_body = 2; } service ResourceService { rpc GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); } Example with streaming methods: service CaldavService { rpc GetCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); } Use of this type only changes how the request and response bodies are handled, all other features will continue to work unchanged. 176 "contentType": "A String", # The HTTP Content-Type header value specifying the content type of the body. 177 "data": "A String", # The HTTP request/response body as raw binary. 178 "extensions": [ # Application specific response metadata. Must be set in the first response for streaming APIs. 179 { 180 "a_key": "", # Properties of the object. Contains field @type with type URL. 181 }, 182 ], 183}</pre> 184</div> 185 186<div class="method"> 187 <code class="details" id="delete">delete(name, x__xgafv=None)</code> 188 <pre>Deletes an alias. 189 190Args: 191 name: string, Required. Name of the alias. Use the following format in your request: `organizations/{org}/environments/{env}/keystores/{keystore}/aliases/{alias}`. (required) 192 x__xgafv: string, V1 error format. 193 Allowed values 194 1 - v1 error format 195 2 - v2 error format 196 197Returns: 198 An object of the form: 199 200 { # Reference to a certificate or key/certificate pair. 201 "alias": "A String", # Resource ID for this alias. Values must match the regular expression `[^/]{1,255}`. 202 "certsInfo": { # Chain of certificates under this alias. 203 "certInfo": [ # Chain of certificates under this name. 204 { # X.509 certificate as defined in RFC 5280. 205 "basicConstraints": "A String", # X.509 basic constraints extension. 206 "expiryDate": "A String", # X.509 `notAfter` validity period in milliseconds since epoch. 207 "isValid": "A String", # Flag that specifies whether the certificate is valid. Flag is set to `Yes` if the certificate is valid, `No` if expired, or `Not yet` if not yet valid. 208 "issuer": "A String", # X.509 issuer. 209 "publicKey": "A String", # Public key component of the X.509 subject public key info. 210 "serialNumber": "A String", # X.509 serial number. 211 "sigAlgName": "A String", # X.509 signatureAlgorithm. 212 "subject": "A String", # X.509 subject. 213 "subjectAlternativeNames": [ # X.509 subject alternative names (SANs) extension. 214 "A String", 215 ], 216 "validFrom": "A String", # X.509 `notBefore` validity period in milliseconds since epoch. 217 "version": 42, # X.509 version. 218 }, 219 ], 220 }, 221 "type": "A String", # Type of alias. 222}</pre> 223</div> 224 225<div class="method"> 226 <code class="details" id="get">get(name, x__xgafv=None)</code> 227 <pre>Gets an alias. 228 229Args: 230 name: string, Required. Name of the alias. Use the following format in your request: `organizations/{org}/environments/{env}/keystores/{keystore}/aliases/{alias}`. (required) 231 x__xgafv: string, V1 error format. 232 Allowed values 233 1 - v1 error format 234 2 - v2 error format 235 236Returns: 237 An object of the form: 238 239 { # Reference to a certificate or key/certificate pair. 240 "alias": "A String", # Resource ID for this alias. Values must match the regular expression `[^/]{1,255}`. 241 "certsInfo": { # Chain of certificates under this alias. 242 "certInfo": [ # Chain of certificates under this name. 243 { # X.509 certificate as defined in RFC 5280. 244 "basicConstraints": "A String", # X.509 basic constraints extension. 245 "expiryDate": "A String", # X.509 `notAfter` validity period in milliseconds since epoch. 246 "isValid": "A String", # Flag that specifies whether the certificate is valid. Flag is set to `Yes` if the certificate is valid, `No` if expired, or `Not yet` if not yet valid. 247 "issuer": "A String", # X.509 issuer. 248 "publicKey": "A String", # Public key component of the X.509 subject public key info. 249 "serialNumber": "A String", # X.509 serial number. 250 "sigAlgName": "A String", # X.509 signatureAlgorithm. 251 "subject": "A String", # X.509 subject. 252 "subjectAlternativeNames": [ # X.509 subject alternative names (SANs) extension. 253 "A String", 254 ], 255 "validFrom": "A String", # X.509 `notBefore` validity period in milliseconds since epoch. 256 "version": 42, # X.509 version. 257 }, 258 ], 259 }, 260 "type": "A String", # Type of alias. 261}</pre> 262</div> 263 264<div class="method"> 265 <code class="details" id="getCertificate">getCertificate(name, x__xgafv=None)</code> 266 <pre>Gets the certificate from an alias in PEM-encoded form. 267 268Args: 269 name: string, Required. Name of the alias. Use the following format in your request: `organizations/{org}/environments/{env}/keystores/{keystore}/aliases/{alias}`. (required) 270 x__xgafv: string, V1 error format. 271 Allowed values 272 1 - v1 error format 273 2 - v2 error format 274 275Returns: 276 An object of the form: 277 278 { # Message that represents an arbitrary HTTP body. It should only be used for payload formats that can't be represented as JSON, such as raw binary or an HTML page. This message can be used both in streaming and non-streaming API methods in the request as well as the response. It can be used as a top-level request field, which is convenient if one wants to extract parameters from either the URL or HTTP template into the request fields and also want access to the raw HTTP body. Example: message GetResourceRequest { // A unique request id. string request_id = 1; // The raw HTTP body is bound to this field. google.api.HttpBody http_body = 2; } service ResourceService { rpc GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); } Example with streaming methods: service CaldavService { rpc GetCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); } Use of this type only changes how the request and response bodies are handled, all other features will continue to work unchanged. 279 "contentType": "A String", # The HTTP Content-Type header value specifying the content type of the body. 280 "data": "A String", # The HTTP request/response body as raw binary. 281 "extensions": [ # Application specific response metadata. Must be set in the first response for streaming APIs. 282 { 283 "a_key": "", # Properties of the object. Contains field @type with type URL. 284 }, 285 ], 286}</pre> 287</div> 288 289<div class="method"> 290 <code class="details" id="update">update(name, body=None, ignoreExpiryValidation=None, ignoreNewlineValidation=None, x__xgafv=None)</code> 291 <pre>Updates the certificate in an alias. 292 293Args: 294 name: string, Required. Name of the alias. Use the following format in your request: `organizations/{org}/environments/{env}/keystores/{keystore}/aliases/{alias}` (required) 295 body: object, The request body. 296 The object takes the form of: 297 298{ # Message that represents an arbitrary HTTP body. It should only be used for payload formats that can't be represented as JSON, such as raw binary or an HTML page. This message can be used both in streaming and non-streaming API methods in the request as well as the response. It can be used as a top-level request field, which is convenient if one wants to extract parameters from either the URL or HTTP template into the request fields and also want access to the raw HTTP body. Example: message GetResourceRequest { // A unique request id. string request_id = 1; // The raw HTTP body is bound to this field. google.api.HttpBody http_body = 2; } service ResourceService { rpc GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); } Example with streaming methods: service CaldavService { rpc GetCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); } Use of this type only changes how the request and response bodies are handled, all other features will continue to work unchanged. 299 "contentType": "A String", # The HTTP Content-Type header value specifying the content type of the body. 300 "data": "A String", # The HTTP request/response body as raw binary. 301 "extensions": [ # Application specific response metadata. Must be set in the first response for streaming APIs. 302 { 303 "a_key": "", # Properties of the object. Contains field @type with type URL. 304 }, 305 ], 306} 307 308 ignoreExpiryValidation: boolean, Required. Flag that specifies whether to ignore expiry validation. If set to `true`, no expiry validation will be performed. 309 ignoreNewlineValidation: boolean, Flag that specifies whether to ignore newline validation. If set to `true`, no error is thrown when the file contains a certificate chain with no newline between each certificate. Defaults to `false`. 310 x__xgafv: string, V1 error format. 311 Allowed values 312 1 - v1 error format 313 2 - v2 error format 314 315Returns: 316 An object of the form: 317 318 { # Reference to a certificate or key/certificate pair. 319 "alias": "A String", # Resource ID for this alias. Values must match the regular expression `[^/]{1,255}`. 320 "certsInfo": { # Chain of certificates under this alias. 321 "certInfo": [ # Chain of certificates under this name. 322 { # X.509 certificate as defined in RFC 5280. 323 "basicConstraints": "A String", # X.509 basic constraints extension. 324 "expiryDate": "A String", # X.509 `notAfter` validity period in milliseconds since epoch. 325 "isValid": "A String", # Flag that specifies whether the certificate is valid. Flag is set to `Yes` if the certificate is valid, `No` if expired, or `Not yet` if not yet valid. 326 "issuer": "A String", # X.509 issuer. 327 "publicKey": "A String", # Public key component of the X.509 subject public key info. 328 "serialNumber": "A String", # X.509 serial number. 329 "sigAlgName": "A String", # X.509 signatureAlgorithm. 330 "subject": "A String", # X.509 subject. 331 "subjectAlternativeNames": [ # X.509 subject alternative names (SANs) extension. 332 "A String", 333 ], 334 "validFrom": "A String", # X.509 `notBefore` validity period in milliseconds since epoch. 335 "version": 42, # X.509 version. 336 }, 337 ], 338 }, 339 "type": "A String", # Type of alias. 340}</pre> 341</div> 342 343</body></html>