MacOSScepCertificateProfile の更新Update macOSScepCertificateProfile

重要: ベータ版の Microsoft Graph Api は変更される可能性があります。運用環境での使用はサポートされていません。Important: Microsoft Graph APIs under the /beta version are subject to change; production use is not supported.

注: Microsoft Graph API for Intune では、テナントに対してアクティブな intune ライセンスが必要です。Note: The Microsoft Graph API for Intune requires an active Intune license for the tenant.

Macosscepcertificateprofileオブジェクトのプロパティを更新します。Update the properties of a macOSScepCertificateProfile object.

前提条件Prerequisites

この API を呼び出すには、次のいずれかのアクセス許可が必要です。アクセス許可の選択方法などの詳細については、「アクセス許可」を参照してください。One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.

アクセス許可の種類Permission type アクセス許可 (特権の大きいものから小さいものへ)Permissions (from most to least privileged)
委任 (職場または学校のアカウント)Delegated (work or school account) DeviceManagementConfiguration.ReadWrite.AllDeviceManagementConfiguration.ReadWrite.All
委任 (個人用 Microsoft アカウント)Delegated (personal Microsoft account) サポートされていません。Not supported.
アプリケーションApplication DeviceManagementConfiguration.ReadWrite.AllDeviceManagementConfiguration.ReadWrite.All

HTTP 要求HTTP Request

PATCH /deviceManagement/deviceConfigurations/{deviceConfigurationId}
PATCH /deviceManagement/deviceConfigurations/{deviceConfigurationId}/groupAssignments/{deviceConfigurationGroupAssignmentId}/deviceConfiguration
PATCH /deviceManagement/deviceConfigurations/{deviceConfigurationId}/microsoft.graph.windowsDomainJoinConfiguration/networkAccessConfigurations/{deviceConfigurationId}

要求ヘッダーRequest headers

ヘッダーHeader Value
AuthorizationAuthorization ベアラー <トークン> が必要です。Bearer <token> Required.
承諾Accept application/jsonapplication/json

要求本文Request body

要求本文で、 Macosscepcertificateprofileオブジェクトの JSON 表記を指定します。In the request body, supply a JSON representation for the macOSScepCertificateProfile object.

次の表に、 Macosscepcertificateprofileの作成時に必要なプロパティを示します。The following table shows the properties that are required when you create the macOSScepCertificateProfile.

プロパティProperty Type 説明Description
idid 文字列String エンティティのキー。Key of the entity. deviceConfiguration から継承しますInherited from deviceConfiguration
lastModifiedDateTimelastModifiedDateTime DateTimeOffsetDateTimeOffset オブジェクトの最終更新の DateTime。DateTime the object was last modified. deviceConfiguration から継承しますInherited from deviceConfiguration
roleScopeTagIdsroleScopeTagIds String コレクションString collection このエンティティインスタンスの範囲タグのリスト。List of Scope Tags for this Entity instance. deviceConfiguration から継承しますInherited from deviceConfiguration
supportsScopeTagssupportsScopeTags ブール値Boolean 基になるデバイス構成がスコープタグの割り当てをサポートしているかどうかを示します。Indicates whether or not the underlying Device Configuration supports the assignment of scope tags. この値が false である場合、ScopeTags プロパティへの割り当ては許可されません。エンティティは、スコープを持つユーザーには表示されません。Assigning to the ScopeTags property is not allowed when this value is false and entities will not be visible to scoped users. これは Silverlight で作成された従来のポリシーに対して実行され、Azure ポータルでポリシーを削除して再作成することによって解決できます。This occurs for Legacy policies created in Silverlight and can be resolved by deleting and recreating the policy in the Azure Portal. このプロパティに値を設定するには、 SetExtrusionDirection メソッドを適用します。This property is read-only. deviceConfiguration から継承しますInherited from deviceConfiguration
deviceManagementApplicabilityRuleOsEditiondeviceManagementApplicabilityRuleOsEdition deviceManagementApplicabilityRuleOsEditiondeviceManagementApplicabilityRuleOsEdition このポリシーの OS エディションの適用。The OS edition applicability for this Policy. deviceConfiguration から継承しますInherited from deviceConfiguration
deviceManagementApplicabilityRuleOsVersiondeviceManagementApplicabilityRuleOsVersion deviceManagementApplicabilityRuleOsVersiondeviceManagementApplicabilityRuleOsVersion このポリシーの OS バージョン適用ルール。The OS version applicability rule for this Policy. deviceConfiguration から継承しますInherited from deviceConfiguration
deviceManagementApplicabilityRuleDeviceModedeviceManagementApplicabilityRuleDeviceMode deviceManagementApplicabilityRuleDeviceModedeviceManagementApplicabilityRuleDeviceMode このポリシーのデバイスモード適用ルール。The device mode applicability rule for this Policy. deviceConfiguration から継承しますInherited from deviceConfiguration
createdDateTimecreatedDateTime DateTimeOffsetDateTimeOffset オブジェクトが作成された DateTime。DateTime the object was created. deviceConfiguration から継承しますInherited from deviceConfiguration
説明description StringString 管理者が指定した、デバイス構成についての説明。Admin provided description of the Device Configuration. deviceConfiguration から継承しますInherited from deviceConfiguration
displayNamedisplayName StringString 管理者が指定した、デバイス構成の名前。Admin provided name of the device configuration. deviceConfiguration から継承しますInherited from deviceConfiguration
versionversion Int32Int32 デバイス構成のバージョン。Version of the device configuration. deviceConfiguration から継承しますInherited from deviceConfiguration
renewalThresholdPercentagerenewalThresholdPercentage Int32Int32 証明書の更新しきい値の割合。Certificate renewal threshold percentage. Macoscertificateprofilebaseから継承しますInherited from macOSCertificateProfileBase
subjectNameFormatsubjectNameFormat appleSubjectNameFormatappleSubjectNameFormat 証明書のサブジェクト名の形式。Certificate Subject Name Format. Macoscertificateprofilebaseから継承します。Inherited from macOSCertificateProfileBase. 使用可能な値: commonNamecommonNameAsEmailcustomcommonNameIncludingEmailcommonNameAsIMEIcommonNameAsSerialNumberPossible values are: commonName, commonNameAsEmail, custom, commonNameIncludingEmail, commonNameAsIMEI, commonNameAsSerialNumber.
subjectAlternativeNameTypesubjectAlternativeNameType subjectAlternativeNameTypesubjectAlternativeNameType 証明書のサブジェクトの別名の種類。Certificate Subject Alternative Name Type. Macoscertificateprofilebaseから継承します。Inherited from macOSCertificateProfileBase. 可能な値は、noneemailAddressuserPrincipalNamecustomAzureADAttributedomainNameService です。Possible values are: none, emailAddress, userPrincipalName, customAzureADAttribute, domainNameService.
certificateValidityPeriodValuecertificateValidityPeriodValue Int32Int32 証明書の有効期間の値。Value for the Certificate Validity Period. Macoscertificateprofilebaseから継承しますInherited from macOSCertificateProfileBase
certificateValidityPeriodScalecertificateValidityPeriodScale certificateValidityPeriodScalecertificateValidityPeriodScale 証明書の有効期間のスケール。Scale for the Certificate Validity Period. Macoscertificateprofilebaseから継承します。Inherited from macOSCertificateProfileBase. 可能な値は daysmonthsyears です。Possible values are: days, months, years.
scepServerUrlsscepServerUrls String コレクションString collection SCEP サーバーの Url。SCEP Server Url(s).
Subjectnameformatstring プロパティsubjectNameFormatString StringString SubjectNameFormat = Custom で使用するカスタム形式。Custom format to use with SubjectNameFormat = Custom. 例: CN = {{EmailAddress}}, E = {{EmailAddress}}, OU = エンタープライズユーザー, O = Contoso Corporation, L = Redmond, ST = WA, C = USExample: CN={{EmailAddress}},E={{EmailAddress}},OU=Enterprise Users,O=Contoso Corporation,L=Redmond,ST=WA,C=US
keyUsagekeyUsage keyUsageskeyUsages SCEP キーの使用法。SCEP Key Usage. 可能な値は、keyEnciphermentdigitalSignature です。Possible values are: keyEncipherment, digitalSignature.
keySizekeySize keySizekeySize SCEP キーのサイズ。SCEP Key Size. 可能な値は、size1024size2048 です。Possible values are: size1024, size2048.
hashAlgorithmhashAlgorithm hashAlgorithmshashAlgorithms SCEP ハッシュアルゴリズム。SCEP Hash Algorithm. 可能な値は、sha1sha2 です。Possible values are: sha1, sha2.
extendedKeyUsagesextendedKeyUsages ExtendedkeyusageコレクションextendedKeyUsage collection 拡張キー使用法 (EKU) の設定。Extended Key Usage (EKU) settings. このコレクションには、最大で 500 個の要素を含めることができます。This collection can contain a maximum of 500 elements.
subjectAlternativeNameFormatStringsubjectAlternativeNameFormatString StringString AAD 属性を定義するカスタム文字列。Custom String that defines the AAD Attribute.
certificateStorecertificateStore certificateStorecertificateStore ターゲットストアの証明書。Target store certificate. 可能な値は、usermachine です。Possible values are: user, machine.
customSubjectAlternativeNamescustomSubjectAlternativeNames Customsubject代替 (ベンダー ) コレクションcustomSubjectAlternativeName collection カスタムサブジェクトの別名設定。Custom Subject Alternative Name Settings. このコレクションには、最大で 500 個の要素を含めることができます。This collection can contain a maximum of 500 elements.

応答Response

成功した場合、このメソッド200 OKは応答コードと、応答本文で更新されたMacosscepcertificateprofileオブジェクトを返します。If successful, this method returns a 200 OK response code and an updated macOSScepCertificateProfile object in the response body.

Example

要求Request

以下は、要求の例です。Here is an example of the request.

PATCH https://graph.microsoft.com/beta/deviceManagement/deviceConfigurations/{deviceConfigurationId}
Content-type: application/json
Content-length: 1962

{
  "@odata.type": "#microsoft.graph.macOSScepCertificateProfile",
  "roleScopeTagIds": [
    "Role Scope Tag Ids value"
  ],
  "supportsScopeTags": true,
  "deviceManagementApplicabilityRuleOsEdition": {
    "@odata.type": "microsoft.graph.deviceManagementApplicabilityRuleOsEdition",
    "osEditionTypes": [
      "windows10EnterpriseN"
    ],
    "name": "Name value",
    "ruleType": "exclude"
  },
  "deviceManagementApplicabilityRuleOsVersion": {
    "@odata.type": "microsoft.graph.deviceManagementApplicabilityRuleOsVersion",
    "minOSVersion": "Min OSVersion value",
    "maxOSVersion": "Max OSVersion value",
    "name": "Name value",
    "ruleType": "exclude"
  },
  "deviceManagementApplicabilityRuleDeviceMode": {
    "@odata.type": "microsoft.graph.deviceManagementApplicabilityRuleDeviceMode",
    "deviceMode": "sModeConfiguration",
    "name": "Name value",
    "ruleType": "exclude"
  },
  "description": "Description value",
  "displayName": "Display Name value",
  "version": 7,
  "renewalThresholdPercentage": 10,
  "subjectNameFormat": "commonNameAsEmail",
  "subjectAlternativeNameType": "emailAddress",
  "certificateValidityPeriodValue": 14,
  "certificateValidityPeriodScale": "months",
  "scepServerUrls": [
    "Scep Server Urls value"
  ],
  "subjectNameFormatString": "Subject Name Format String value",
  "keyUsage": "digitalSignature",
  "keySize": "size2048",
  "hashAlgorithm": "sha2",
  "extendedKeyUsages": [
    {
      "@odata.type": "microsoft.graph.extendedKeyUsage",
      "name": "Name value",
      "objectIdentifier": "Object Identifier value"
    }
  ],
  "subjectAlternativeNameFormatString": "Subject Alternative Name Format String value",
  "certificateStore": "machine",
  "customSubjectAlternativeNames": [
    {
      "@odata.type": "microsoft.graph.customSubjectAlternativeName",
      "sanType": "emailAddress",
      "name": "Name value"
    }
  ]
}

応答Response

以下は、応答の例です。注:簡潔にするために、ここに示す応答オブジェクトは切り詰められている場合があります。すべてのプロパティは実際の呼び出しから返されます。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.

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 2134

{
  "@odata.type": "#microsoft.graph.macOSScepCertificateProfile",
  "id": "78c3929d-929d-78c3-9d92-c3789d92c378",
  "lastModifiedDateTime": "2017-01-01T00:00:35.1329464-08:00",
  "roleScopeTagIds": [
    "Role Scope Tag Ids value"
  ],
  "supportsScopeTags": true,
  "deviceManagementApplicabilityRuleOsEdition": {
    "@odata.type": "microsoft.graph.deviceManagementApplicabilityRuleOsEdition",
    "osEditionTypes": [
      "windows10EnterpriseN"
    ],
    "name": "Name value",
    "ruleType": "exclude"
  },
  "deviceManagementApplicabilityRuleOsVersion": {
    "@odata.type": "microsoft.graph.deviceManagementApplicabilityRuleOsVersion",
    "minOSVersion": "Min OSVersion value",
    "maxOSVersion": "Max OSVersion value",
    "name": "Name value",
    "ruleType": "exclude"
  },
  "deviceManagementApplicabilityRuleDeviceMode": {
    "@odata.type": "microsoft.graph.deviceManagementApplicabilityRuleDeviceMode",
    "deviceMode": "sModeConfiguration",
    "name": "Name value",
    "ruleType": "exclude"
  },
  "createdDateTime": "2017-01-01T00:02:43.5775965-08:00",
  "description": "Description value",
  "displayName": "Display Name value",
  "version": 7,
  "renewalThresholdPercentage": 10,
  "subjectNameFormat": "commonNameAsEmail",
  "subjectAlternativeNameType": "emailAddress",
  "certificateValidityPeriodValue": 14,
  "certificateValidityPeriodScale": "months",
  "scepServerUrls": [
    "Scep Server Urls value"
  ],
  "subjectNameFormatString": "Subject Name Format String value",
  "keyUsage": "digitalSignature",
  "keySize": "size2048",
  "hashAlgorithm": "sha2",
  "extendedKeyUsages": [
    {
      "@odata.type": "microsoft.graph.extendedKeyUsage",
      "name": "Name value",
      "objectIdentifier": "Object Identifier value"
    }
  ],
  "subjectAlternativeNameFormatString": "Subject Alternative Name Format String value",
  "certificateStore": "machine",
  "customSubjectAlternativeNames": [
    {
      "@odata.type": "microsoft.graph.customSubjectAlternativeName",
      "sanType": "emailAddress",
      "name": "Name value"
    }
  ]
}