DescribeCertificateAuthority SQL Server Example
CREATE PROCEDURE ChilkatSample
AS
BEGIN
DECLARE @hr int
DECLARE @iTmp0 int
DECLARE @sTmp0 nvarchar(max)
-- This example requires the Chilkat API to have been previously unlocked.
-- See Global Unlock Sample for sample code.
DECLARE @rest int
EXEC @hr = sp_OACreate 'Chilkat_9_5_0.Rest', @rest OUT
IF @hr <> 0
BEGIN
PRINT 'Failed to create ActiveX component'
RETURN
END
DECLARE @success int
DECLARE @authAws int
EXEC @hr = sp_OACreate 'Chilkat_9_5_0.AuthAws', @authAws OUT
EXEC sp_OASetProperty @authAws, 'AccessKey', 'AWS_ACCESS_KEY'
EXEC sp_OASetProperty @authAws, 'SecretKey', 'AWS_SECRET_KEY'
-- Don't forget to change the region to your particular region. (Also make the same change in the call to Connect below.)
EXEC sp_OASetProperty @authAws, 'Region', 'us-west-2'
EXEC sp_OASetProperty @authAws, 'ServiceName', 'acm-pca'
-- SetAuthAws causes Chilkat to automatically add the following headers: Authorization, X-Amz-Date
EXEC sp_OAMethod @rest, 'SetAuthAws', @success OUT, @authAws
-- URL: https://acm-pca.us-west-2.amazonaws.com/
-- Use the same region as specified above.
EXEC sp_OAMethod @rest, 'Connect', @success OUT, 'acm-pca.us-west-2.amazonaws.com', 443, 1, 1
IF @success <> 1
BEGIN
EXEC sp_OAGetProperty @rest, 'ConnectFailReason', @iTmp0 OUT
PRINT 'ConnectFailReason: ' + @iTmp0
EXEC sp_OAGetProperty @rest, 'LastErrorText', @sTmp0 OUT
PRINT @sTmp0
EXEC @hr = sp_OADestroy @rest
EXEC @hr = sp_OADestroy @authAws
RETURN
END
-- The following code creates the JSON request body.
-- The JSON created by this code is shown below.
-- Use this online tool to generate code from sample JSON:
-- Generate Code to Create JSON
DECLARE @json int
EXEC @hr = sp_OACreate 'Chilkat_9_5_0.JsonObject', @json OUT
EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'CertificateAuthorityArn', 'string'
-- The JSON request body created by the above code:
-- {
-- "CertificateAuthorityArn": "string"
-- }
EXEC sp_OAMethod @rest, 'AddHeader', @success OUT, 'Content-Type', 'application/x-amz-json-1.1'
EXEC sp_OAMethod @rest, 'AddHeader', @success OUT, 'X-Amz-Target', 'ACMPrivateCA.DescribeCertificateAuthority'
DECLARE @sbRequestBody int
EXEC @hr = sp_OACreate 'Chilkat_9_5_0.StringBuilder', @sbRequestBody OUT
EXEC sp_OAMethod @json, 'EmitSb', @success OUT, @sbRequestBody
DECLARE @sbResponseBody int
EXEC @hr = sp_OACreate 'Chilkat_9_5_0.StringBuilder', @sbResponseBody OUT
EXEC sp_OAMethod @rest, 'FullRequestSb', @success OUT, 'POST', '/', @sbRequestBody, @sbResponseBody
IF @success <> 1
BEGIN
EXEC sp_OAGetProperty @rest, 'LastErrorText', @sTmp0 OUT
PRINT @sTmp0
EXEC @hr = sp_OADestroy @rest
EXEC @hr = sp_OADestroy @authAws
EXEC @hr = sp_OADestroy @json
EXEC @hr = sp_OADestroy @sbRequestBody
EXEC @hr = sp_OADestroy @sbResponseBody
RETURN
END
DECLARE @respStatusCode int
EXEC sp_OAGetProperty @rest, 'ResponseStatusCode', @respStatusCode OUT
PRINT 'response status code = ' + @respStatusCode
IF @respStatusCode <> 200
BEGIN
PRINT 'Response Header:'
EXEC sp_OAGetProperty @rest, 'ResponseHeader', @sTmp0 OUT
PRINT @sTmp0
PRINT 'Response Body:'
EXEC sp_OAMethod @sbResponseBody, 'GetAsString', @sTmp0 OUT
PRINT @sTmp0
EXEC @hr = sp_OADestroy @rest
EXEC @hr = sp_OADestroy @authAws
EXEC @hr = sp_OADestroy @json
EXEC @hr = sp_OADestroy @sbRequestBody
EXEC @hr = sp_OADestroy @sbResponseBody
RETURN
END
DECLARE @jResp int
EXEC @hr = sp_OACreate 'Chilkat_9_5_0.JsonObject', @jResp OUT
EXEC sp_OAMethod @jResp, 'LoadSb', @success OUT, @sbResponseBody
-- The following code parses the JSON response.
-- A sample JSON response is shown below the sample code.
-- Use this online tool to generate parsing code from sample JSON:
-- Generate Parsing Code from JSON
DECLARE @DirectoryNameCommonName nvarchar(max)
DECLARE @DirectoryNameCountry nvarchar(max)
DECLARE @DirectoryNameDistinguishedNameQualifier nvarchar(max)
DECLARE @DirectoryNameGenerationQualifier nvarchar(max)
DECLARE @DirectoryNameGivenName nvarchar(max)
DECLARE @DirectoryNameInitials nvarchar(max)
DECLARE @DirectoryNameLocality nvarchar(max)
DECLARE @DirectoryNameOrganization nvarchar(max)
DECLARE @DirectoryNameOrganizationalUnit nvarchar(max)
DECLARE @DirectoryNamePseudonym nvarchar(max)
DECLARE @DirectoryNameSerialNumber nvarchar(max)
DECLARE @DirectoryNameState nvarchar(max)
DECLARE @DirectoryNameSurname nvarchar(max)
DECLARE @DirectoryNameTitle nvarchar(max)
DECLARE @DnsName nvarchar(max)
DECLARE @NameAssigner nvarchar(max)
DECLARE @PartyName nvarchar(max)
DECLARE @IpAddress nvarchar(max)
DECLARE @TypeId nvarchar(max)
DECLARE @Value nvarchar(max)
DECLARE @RegisteredId nvarchar(max)
DECLARE @Rfc822Name nvarchar(max)
DECLARE @UniformResourceIdentifier nvarchar(max)
DECLARE @AccessMethodType nvarchar(max)
DECLARE @CustomObjectIdentifier nvarchar(max)
DECLARE @Arn nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @Arn OUT, 'CertificateAuthority.Arn'
DECLARE @CRLSign int
EXEC sp_OAMethod @jResp, 'IntOf', @CRLSign OUT, 'CertificateAuthority.CertificateAuthorityConfiguration.CsrExtensions.KeyUsage.CRLSign'
DECLARE @DataEncipherment int
EXEC sp_OAMethod @jResp, 'IntOf', @DataEncipherment OUT, 'CertificateAuthority.CertificateAuthorityConfiguration.CsrExtensions.KeyUsage.DataEncipherment'
DECLARE @DecipherOnly int
EXEC sp_OAMethod @jResp, 'IntOf', @DecipherOnly OUT, 'CertificateAuthority.CertificateAuthorityConfiguration.CsrExtensions.KeyUsage.DecipherOnly'
DECLARE @DigitalSignature int
EXEC sp_OAMethod @jResp, 'IntOf', @DigitalSignature OUT, 'CertificateAuthority.CertificateAuthorityConfiguration.CsrExtensions.KeyUsage.DigitalSignature'
DECLARE @EncipherOnly int
EXEC sp_OAMethod @jResp, 'IntOf', @EncipherOnly OUT, 'CertificateAuthority.CertificateAuthorityConfiguration.CsrExtensions.KeyUsage.EncipherOnly'
DECLARE @KeyAgreement int
EXEC sp_OAMethod @jResp, 'IntOf', @KeyAgreement OUT, 'CertificateAuthority.CertificateAuthorityConfiguration.CsrExtensions.KeyUsage.KeyAgreement'
DECLARE @KeyCertSign int
EXEC sp_OAMethod @jResp, 'IntOf', @KeyCertSign OUT, 'CertificateAuthority.CertificateAuthorityConfiguration.CsrExtensions.KeyUsage.KeyCertSign'
DECLARE @KeyEncipherment int
EXEC sp_OAMethod @jResp, 'IntOf', @KeyEncipherment OUT, 'CertificateAuthority.CertificateAuthorityConfiguration.CsrExtensions.KeyUsage.KeyEncipherment'
DECLARE @NonRepudiation int
EXEC sp_OAMethod @jResp, 'IntOf', @NonRepudiation OUT, 'CertificateAuthority.CertificateAuthorityConfiguration.CsrExtensions.KeyUsage.NonRepudiation'
DECLARE @KeyAlgorithm nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @KeyAlgorithm OUT, 'CertificateAuthority.CertificateAuthorityConfiguration.KeyAlgorithm'
DECLARE @SigningAlgorithm nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @SigningAlgorithm OUT, 'CertificateAuthority.CertificateAuthorityConfiguration.SigningAlgorithm'
DECLARE @CommonName nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @CommonName OUT, 'CertificateAuthority.CertificateAuthorityConfiguration.Subject.CommonName'
DECLARE @Country nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @Country OUT, 'CertificateAuthority.CertificateAuthorityConfiguration.Subject.Country'
DECLARE @DistinguishedNameQualifier nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @DistinguishedNameQualifier OUT, 'CertificateAuthority.CertificateAuthorityConfiguration.Subject.DistinguishedNameQualifier'
DECLARE @GenerationQualifier nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @GenerationQualifier OUT, 'CertificateAuthority.CertificateAuthorityConfiguration.Subject.GenerationQualifier'
DECLARE @GivenName nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @GivenName OUT, 'CertificateAuthority.CertificateAuthorityConfiguration.Subject.GivenName'
DECLARE @Initials nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @Initials OUT, 'CertificateAuthority.CertificateAuthorityConfiguration.Subject.Initials'
DECLARE @Locality nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @Locality OUT, 'CertificateAuthority.CertificateAuthorityConfiguration.Subject.Locality'
DECLARE @Organization nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @Organization OUT, 'CertificateAuthority.CertificateAuthorityConfiguration.Subject.Organization'
DECLARE @OrganizationalUnit nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @OrganizationalUnit OUT, 'CertificateAuthority.CertificateAuthorityConfiguration.Subject.OrganizationalUnit'
DECLARE @Pseudonym nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @Pseudonym OUT, 'CertificateAuthority.CertificateAuthorityConfiguration.Subject.Pseudonym'
DECLARE @SerialNumber nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @SerialNumber OUT, 'CertificateAuthority.CertificateAuthorityConfiguration.Subject.SerialNumber'
DECLARE @State nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @State OUT, 'CertificateAuthority.CertificateAuthorityConfiguration.Subject.State'
DECLARE @Surname nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @Surname OUT, 'CertificateAuthority.CertificateAuthorityConfiguration.Subject.Surname'
DECLARE @Title nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @Title OUT, 'CertificateAuthority.CertificateAuthorityConfiguration.Subject.Title'
DECLARE @CreatedAt int
EXEC sp_OAMethod @jResp, 'IntOf', @CreatedAt OUT, 'CertificateAuthority.CreatedAt'
DECLARE @FailureReason nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @FailureReason OUT, 'CertificateAuthority.FailureReason'
DECLARE @KeyStorageSecurityStandard nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @KeyStorageSecurityStandard OUT, 'CertificateAuthority.KeyStorageSecurityStandard'
DECLARE @LastStateChangeAt int
EXEC sp_OAMethod @jResp, 'IntOf', @LastStateChangeAt OUT, 'CertificateAuthority.LastStateChangeAt'
DECLARE @NotAfter int
EXEC sp_OAMethod @jResp, 'IntOf', @NotAfter OUT, 'CertificateAuthority.NotAfter'
DECLARE @NotBefore int
EXEC sp_OAMethod @jResp, 'IntOf', @NotBefore OUT, 'CertificateAuthority.NotBefore'
DECLARE @OwnerAccount nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @OwnerAccount OUT, 'CertificateAuthority.OwnerAccount'
DECLARE @RestorableUntil int
EXEC sp_OAMethod @jResp, 'IntOf', @RestorableUntil OUT, 'CertificateAuthority.RestorableUntil'
DECLARE @CustomCname nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @CustomCname OUT, 'CertificateAuthority.RevocationConfiguration.CrlConfiguration.CustomCname'
DECLARE @Enabled int
EXEC sp_OAMethod @jResp, 'IntOf', @Enabled OUT, 'CertificateAuthority.RevocationConfiguration.CrlConfiguration.Enabled'
DECLARE @ExpirationInDays int
EXEC sp_OAMethod @jResp, 'IntOf', @ExpirationInDays OUT, 'CertificateAuthority.RevocationConfiguration.CrlConfiguration.ExpirationInDays'
DECLARE @S3BucketName nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @S3BucketName OUT, 'CertificateAuthority.RevocationConfiguration.CrlConfiguration.S3BucketName'
DECLARE @S3ObjectAcl nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @S3ObjectAcl OUT, 'CertificateAuthority.RevocationConfiguration.CrlConfiguration.S3ObjectAcl'
DECLARE @OcspConfigurationEnabled int
EXEC sp_OAMethod @jResp, 'IntOf', @OcspConfigurationEnabled OUT, 'CertificateAuthority.RevocationConfiguration.OcspConfiguration.Enabled'
DECLARE @OcspCustomCname nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @OcspCustomCname OUT, 'CertificateAuthority.RevocationConfiguration.OcspConfiguration.OcspCustomCname'
DECLARE @Serial nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @Serial OUT, 'CertificateAuthority.Serial'
DECLARE @Status nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @Status OUT, 'CertificateAuthority.Status'
DECLARE @v_Type nvarchar(max)
EXEC sp_OAMethod @jResp, 'StringOf', @v_Type OUT, 'CertificateAuthority.Type'
DECLARE @i int
SELECT @i = 0
DECLARE @count_i int
EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'CertificateAuthority.CertificateAuthorityConfiguration.CsrExtensions.SubjectInformationAccess'
WHILE @i < @count_i
BEGIN
EXEC sp_OASetProperty @jResp, 'I', @i
EXEC sp_OAMethod @jResp, 'StringOf', @DirectoryNameCommonName OUT, 'CertificateAuthority.CertificateAuthorityConfiguration.CsrExtensions.SubjectInformationAccess[i].AccessLocation.DirectoryName.CommonName'
EXEC sp_OAMethod @jResp, 'StringOf', @DirectoryNameCountry OUT, 'CertificateAuthority.CertificateAuthorityConfiguration.CsrExtensions.SubjectInformationAccess[i].AccessLocation.DirectoryName.Country'
EXEC sp_OAMethod @jResp, 'StringOf', @DirectoryNameDistinguishedNameQualifier OUT, 'CertificateAuthority.CertificateAuthorityConfiguration.CsrExtensions.SubjectInformationAccess[i].AccessLocation.DirectoryName.DistinguishedNameQualifier'
EXEC sp_OAMethod @jResp, 'StringOf', @DirectoryNameGenerationQualifier OUT, 'CertificateAuthority.CertificateAuthorityConfiguration.CsrExtensions.SubjectInformationAccess[i].AccessLocation.DirectoryName.GenerationQualifier'
EXEC sp_OAMethod @jResp, 'StringOf', @DirectoryNameGivenName OUT, 'CertificateAuthority.CertificateAuthorityConfiguration.CsrExtensions.SubjectInformationAccess[i].AccessLocation.DirectoryName.GivenName'
EXEC sp_OAMethod @jResp, 'StringOf', @DirectoryNameInitials OUT, 'CertificateAuthority.CertificateAuthorityConfiguration.CsrExtensions.SubjectInformationAccess[i].AccessLocation.DirectoryName.Initials'
EXEC sp_OAMethod @jResp, 'StringOf', @DirectoryNameLocality OUT, 'CertificateAuthority.CertificateAuthorityConfiguration.CsrExtensions.SubjectInformationAccess[i].AccessLocation.DirectoryName.Locality'
EXEC sp_OAMethod @jResp, 'StringOf', @DirectoryNameOrganization OUT, 'CertificateAuthority.CertificateAuthorityConfiguration.CsrExtensions.SubjectInformationAccess[i].AccessLocation.DirectoryName.Organization'
EXEC sp_OAMethod @jResp, 'StringOf', @DirectoryNameOrganizationalUnit OUT, 'CertificateAuthority.CertificateAuthorityConfiguration.CsrExtensions.SubjectInformationAccess[i].AccessLocation.DirectoryName.OrganizationalUnit'
EXEC sp_OAMethod @jResp, 'StringOf', @DirectoryNamePseudonym OUT, 'CertificateAuthority.CertificateAuthorityConfiguration.CsrExtensions.SubjectInformationAccess[i].AccessLocation.DirectoryName.Pseudonym'
EXEC sp_OAMethod @jResp, 'StringOf', @DirectoryNameSerialNumber OUT, 'CertificateAuthority.CertificateAuthorityConfiguration.CsrExtensions.SubjectInformationAccess[i].AccessLocation.DirectoryName.SerialNumber'
EXEC sp_OAMethod @jResp, 'StringOf', @DirectoryNameState OUT, 'CertificateAuthority.CertificateAuthorityConfiguration.CsrExtensions.SubjectInformationAccess[i].AccessLocation.DirectoryName.State'
EXEC sp_OAMethod @jResp, 'StringOf', @DirectoryNameSurname OUT, 'CertificateAuthority.CertificateAuthorityConfiguration.CsrExtensions.SubjectInformationAccess[i].AccessLocation.DirectoryName.Surname'
EXEC sp_OAMethod @jResp, 'StringOf', @DirectoryNameTitle OUT, 'CertificateAuthority.CertificateAuthorityConfiguration.CsrExtensions.SubjectInformationAccess[i].AccessLocation.DirectoryName.Title'
EXEC sp_OAMethod @jResp, 'StringOf', @DnsName OUT, 'CertificateAuthority.CertificateAuthorityConfiguration.CsrExtensions.SubjectInformationAccess[i].AccessLocation.DnsName'
EXEC sp_OAMethod @jResp, 'StringOf', @NameAssigner OUT, 'CertificateAuthority.CertificateAuthorityConfiguration.CsrExtensions.SubjectInformationAccess[i].AccessLocation.EdiPartyName.NameAssigner'
EXEC sp_OAMethod @jResp, 'StringOf', @PartyName OUT, 'CertificateAuthority.CertificateAuthorityConfiguration.CsrExtensions.SubjectInformationAccess[i].AccessLocation.EdiPartyName.PartyName'
EXEC sp_OAMethod @jResp, 'StringOf', @IpAddress OUT, 'CertificateAuthority.CertificateAuthorityConfiguration.CsrExtensions.SubjectInformationAccess[i].AccessLocation.IpAddress'
EXEC sp_OAMethod @jResp, 'StringOf', @TypeId OUT, 'CertificateAuthority.CertificateAuthorityConfiguration.CsrExtensions.SubjectInformationAccess[i].AccessLocation.OtherName.TypeId'
EXEC sp_OAMethod @jResp, 'StringOf', @Value OUT, 'CertificateAuthority.CertificateAuthorityConfiguration.CsrExtensions.SubjectInformationAccess[i].AccessLocation.OtherName.Value'
EXEC sp_OAMethod @jResp, 'StringOf', @RegisteredId OUT, 'CertificateAuthority.CertificateAuthorityConfiguration.CsrExtensions.SubjectInformationAccess[i].AccessLocation.RegisteredId'
EXEC sp_OAMethod @jResp, 'StringOf', @Rfc822Name OUT, 'CertificateAuthority.CertificateAuthorityConfiguration.CsrExtensions.SubjectInformationAccess[i].AccessLocation.Rfc822Name'
EXEC sp_OAMethod @jResp, 'StringOf', @UniformResourceIdentifier OUT, 'CertificateAuthority.CertificateAuthorityConfiguration.CsrExtensions.SubjectInformationAccess[i].AccessLocation.UniformResourceIdentifier'
EXEC sp_OAMethod @jResp, 'StringOf', @AccessMethodType OUT, 'CertificateAuthority.CertificateAuthorityConfiguration.CsrExtensions.SubjectInformationAccess[i].AccessMethod.AccessMethodType'
EXEC sp_OAMethod @jResp, 'StringOf', @CustomObjectIdentifier OUT, 'CertificateAuthority.CertificateAuthorityConfiguration.CsrExtensions.SubjectInformationAccess[i].AccessMethod.CustomObjectIdentifier'
SELECT @i = @i + 1
END
-- A sample JSON response body parsed by the above code:
-- {
-- "CertificateAuthority": {
-- "Arn": "string",
-- "CertificateAuthorityConfiguration": {
-- "CsrExtensions": {
-- "KeyUsage": {
-- "CRLSign": boolean,
-- "DataEncipherment": boolean,
-- "DecipherOnly": boolean,
-- "DigitalSignature": boolean,
-- "EncipherOnly": boolean,
-- "KeyAgreement": boolean,
-- "KeyCertSign": boolean,
-- "KeyEncipherment": boolean,
-- "NonRepudiation": boolean
-- },
-- "SubjectInformationAccess": [
-- {
-- "AccessLocation": {
-- "DirectoryName": {
-- "CommonName": "string",
-- "Country": "string",
-- "DistinguishedNameQualifier": "string",
-- "GenerationQualifier": "string",
-- "GivenName": "string",
-- "Initials": "string",
-- "Locality": "string",
-- "Organization": "string",
-- "OrganizationalUnit": "string",
-- "Pseudonym": "string",
-- "SerialNumber": "string",
-- "State": "string",
-- "Surname": "string",
-- "Title": "string"
-- },
-- "DnsName": "string",
-- "EdiPartyName": {
-- "NameAssigner": "string",
-- "PartyName": "string"
-- },
-- "IpAddress": "string",
-- "OtherName": {
-- "TypeId": "string",
-- "Value": "string"
-- },
-- "RegisteredId": "string",
-- "Rfc822Name": "string",
-- "UniformResourceIdentifier": "string"
-- },
-- "AccessMethod": {
-- "AccessMethodType": "string",
-- "CustomObjectIdentifier": "string"
-- }
-- }
-- ]
-- },
-- "KeyAlgorithm": "string",
-- "SigningAlgorithm": "string",
-- "Subject": {
-- "CommonName": "string",
-- "Country": "string",
-- "DistinguishedNameQualifier": "string",
-- "GenerationQualifier": "string",
-- "GivenName": "string",
-- "Initials": "string",
-- "Locality": "string",
-- "Organization": "string",
-- "OrganizationalUnit": "string",
-- "Pseudonym": "string",
-- "SerialNumber": "string",
-- "State": "string",
-- "Surname": "string",
-- "Title": "string"
-- }
-- },
-- "CreatedAt": number,
-- "FailureReason": "string",
-- "KeyStorageSecurityStandard": "string",
-- "LastStateChangeAt": number,
-- "NotAfter": number,
-- "NotBefore": number,
-- "OwnerAccount": "string",
-- "RestorableUntil": number,
-- "RevocationConfiguration": {
-- "CrlConfiguration": {
-- "CustomCname": "string",
-- "Enabled": boolean,
-- "ExpirationInDays": number,
-- "S3BucketName": "string",
-- "S3ObjectAcl": "string"
-- },
-- "OcspConfiguration": {
-- "Enabled": boolean,
-- "OcspCustomCname": "string"
-- }
-- },
-- "Serial": "string",
-- "Status": "string",
-- "Type": "string"
-- }
-- }
EXEC @hr = sp_OADestroy @rest
EXEC @hr = sp_OADestroy @authAws
EXEC @hr = sp_OADestroy @json
EXEC @hr = sp_OADestroy @sbRequestBody
EXEC @hr = sp_OADestroy @sbResponseBody
EXEC @hr = sp_OADestroy @jResp
END
GO