| Copyright | (c) 2015 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.Google.Resource.SQL.SSLCerts.Insert
Description
Creates an SSL certificate and returns it along with the private key and server certificate authority. The new certificate will not be usable until the instance is restarted.
See: Cloud SQL Administration API Reference for sql.sslCerts.insert.
- type SSLCertsInsertResource = "sql" :> ("v1beta4" :> ("projects" :> (Capture "project" Text :> ("instances" :> (Capture "instance" Text :> ("sslCerts" :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` SSLCertsInsertRequest :> Post `[JSON]` SSLCertsInsertResponse))))))))
- sslCertsInsert :: Text -> SSLCertsInsertRequest -> Text -> SSLCertsInsert
- data SSLCertsInsert
- sciProject :: Lens' SSLCertsInsert Text
- sciPayload :: Lens' SSLCertsInsert SSLCertsInsertRequest
- sciInstance :: Lens' SSLCertsInsert Text
REST Resource
type SSLCertsInsertResource = "sql" :> ("v1beta4" :> ("projects" :> (Capture "project" Text :> ("instances" :> (Capture "instance" Text :> ("sslCerts" :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` SSLCertsInsertRequest :> Post `[JSON]` SSLCertsInsertResponse)))))))) Source
A resource alias for sql.sslCerts.insert method which the
SSLCertsInsert request conforms to.
Creating a Request
Arguments
| :: Text | |
| -> SSLCertsInsertRequest | |
| -> Text | |
| -> SSLCertsInsert |
Creates a value of SSLCertsInsert with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data SSLCertsInsert Source
Creates an SSL certificate and returns it along with the private key and server certificate authority. The new certificate will not be usable until the instance is restarted.
See: sslCertsInsert smart constructor.
Request Lenses
sciProject :: Lens' SSLCertsInsert Text Source
Project ID of the project to which the newly created Cloud SQL instances should belong.
sciPayload :: Lens' SSLCertsInsert SSLCertsInsertRequest Source
Multipart request metadata.
sciInstance :: Lens' SSLCertsInsert Text Source
Cloud SQL instance ID. This does not include the project ID.