|
| 1 | +--- |
| 2 | +title: "changeCloudCertificationAuthorityStatus action" |
| 3 | +description: "Intune Cloudpkigraphservice Cloudcertificationauthority Changecloudcertificationauthoritystatus Api ." |
| 4 | +author: "jaiprakashmb" |
| 5 | +ms.localizationpriority: medium |
| 6 | +ms.subservice: "intune" |
| 7 | +doc_type: apiPageType |
| 8 | +--- |
| 9 | + |
| 10 | +# changeCloudCertificationAuthorityStatus action |
| 11 | + |
| 12 | +Namespace: microsoft.graph |
| 13 | + |
| 14 | +> **Important:** Microsoft Graph APIs under the /beta version are subject to change; production use is not supported. |
| 15 | +
|
| 16 | +> **Note:** The Microsoft Graph API for Intune requires an [active Intune license](https://go.microsoft.com/fwlink/?linkid=839381) for the tenant. |
| 17 | +
|
| 18 | + |
| 19 | + |
| 20 | +[!INCLUDE [national-cloud-support](../../includes/all-clouds.md)] |
| 21 | + |
| 22 | +## Permissions |
| 23 | +One of the following permissions is required to call this API. To learn more, including how to choose permissions, see [Permissions](/graph/permissions-reference). |
| 24 | + |
| 25 | +|Permission type|Permissions (from least to most privileged)| |
| 26 | +|:---|:---| |
| 27 | +|Delegated (work or school account)|DeviceManagementConfiguration.Read.All| |
| 28 | +|Delegated (personal Microsoft account)|Not supported.| |
| 29 | +|Application|DeviceManagementConfiguration.Read.All| |
| 30 | + |
| 31 | +## HTTP Request |
| 32 | +<!-- { |
| 33 | + "blockType": "ignored" |
| 34 | +} |
| 35 | +--> |
| 36 | +``` http |
| 37 | +POST /deviceManagement/cloudCertificationAuthority/{cloudCertificationAuthorityId}/changeCloudCertificationAuthorityStatus |
| 38 | +``` |
| 39 | + |
| 40 | +## Request headers |
| 41 | +|Header|Value| |
| 42 | +|:---|:---| |
| 43 | +|Authorization|Bearer {token}. Required. Learn more about [authentication and authorization](/graph/auth/auth-concepts).| |
| 44 | +|Accept|application/json| |
| 45 | + |
| 46 | +## Request body |
| 47 | +In the request body, supply JSON representation of the parameters. |
| 48 | + |
| 49 | +The following table shows the parameters that can be used with this action. |
| 50 | + |
| 51 | +|Property|Type|Description| |
| 52 | +|:---|:---|:---| |
| 53 | +|certificationAuthorityStatus|[cloudCertificationAuthorityStatus](../resources/intune-cloudpkigraphservice-cloudcertificationauthoritystatus.md)|The new CloudCertificationAuthorityStatus to set on the cloudCertificationAuthority entity instance.| |
| 54 | +|certificationAuthorityVersion|Int32|The CloudCertificationAuthority entity instance version to change status.| |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | +## Response |
| 59 | +If successful, this action returns a `200 OK` response code and a [cloudCertificationAuthority](../resources/intune-cloudpkigraphservice-cloudcertificationauthority.md) in the response body. |
| 60 | + |
| 61 | +## Example |
| 62 | + |
| 63 | +### Request |
| 64 | +Here is an example of the request. |
| 65 | +``` http |
| 66 | +POST https://graph.microsoft.com/beta/deviceManagement/cloudCertificationAuthority/{cloudCertificationAuthorityId}/changeCloudCertificationAuthorityStatus |
| 67 | +
|
| 68 | +Content-type: application/json |
| 69 | +Content-length: 88 |
| 70 | +
|
| 71 | +{ |
| 72 | + "certificationAuthorityStatus": "active", |
| 73 | + "certificationAuthorityVersion": 13 |
| 74 | +} |
| 75 | +``` |
| 76 | + |
| 77 | +### Response |
| 78 | +Here is an example of the response. Note: The response object shown here may be truncated for brevity. All of the properties will be returned from an actual call. |
| 79 | +``` http |
| 80 | +HTTP/1.1 200 OK |
| 81 | +Content-Type: application/json |
| 82 | +Content-Length: 2122 |
| 83 | +
|
| 84 | +{ |
| 85 | + "value": { |
| 86 | + "@odata.type": "#microsoft.graph.cloudCertificationAuthority", |
| 87 | + "id": "96c8868d-868d-96c8-8d86-c8968d86c896", |
| 88 | + "displayName": "Display Name value", |
| 89 | + "description": "Description value", |
| 90 | + "scepServerUrl": "https://example.com/scepServerUrl/", |
| 91 | + "certificateRevocationListUrl": "https://example.com/certificateRevocationListUrl/", |
| 92 | + "certificateDownloadUrl": "https://example.com/certificateDownloadUrl/", |
| 93 | + "certificationAuthorityIssuerUri": "Certification Authority Issuer Uri value", |
| 94 | + "ocspResponderUri": "Ocsp Responder Uri value", |
| 95 | + "certificationAuthorityStatus": "active", |
| 96 | + "eTag": "ETag value", |
| 97 | + "lastModifiedDateTime": "2017-01-01T00:00:35.1329464-08:00", |
| 98 | + "roleScopeTagIds": [ |
| 99 | + "Role Scope Tag Ids value" |
| 100 | + ], |
| 101 | + "createdDateTime": "2017-01-01T00:02:43.5775965-08:00", |
| 102 | + "certificationAuthorityIssuerId": "Certification Authority Issuer Id value", |
| 103 | + "issuerCommonName": "Issuer Common Name value", |
| 104 | + "cloudCertificationAuthorityType": "rootCertificationAuthority", |
| 105 | + "validityPeriodInYears": 5, |
| 106 | + "validityStartDateTime": "2016-12-31T23:59:36.3292251-08:00", |
| 107 | + "validityEndDateTime": "2016-12-31T23:57:06.8876616-08:00", |
| 108 | + "organizationName": "Organization Name value", |
| 109 | + "organizationUnit": "Organization Unit value", |
| 110 | + "countryName": "Country Name value", |
| 111 | + "stateName": "State Name value", |
| 112 | + "localityName": "Locality Name value", |
| 113 | + "certificateKeySize": "rsa2048", |
| 114 | + "cloudCertificationAuthorityHashingAlgorithm": "sha256", |
| 115 | + "thumbprint": "Thumbprint value", |
| 116 | + "serialNumber": "Serial Number value", |
| 117 | + "subjectName": "Subject Name value", |
| 118 | + "commonName": "Common Name value", |
| 119 | + "certificateSigningRequest": "Certificate Signing Request value", |
| 120 | + "extendedKeyUsages": [ |
| 121 | + { |
| 122 | + "@odata.type": "microsoft.graph.extendedKeyUsage", |
| 123 | + "name": "Name value", |
| 124 | + "objectIdentifier": "Object Identifier value" |
| 125 | + } |
| 126 | + ], |
| 127 | + "versionNumber": 13, |
| 128 | + "rootCertificateCommonName": "Root Certificate Common Name value", |
| 129 | + "keyPlatform": "software" |
| 130 | + } |
| 131 | +} |
| 132 | +``` |
0 commit comments