Id. de Apple de la cuenta que se usó para crear el certificado push MDM.
topicIdentifier
String
Id. del tema
lastModifiedDateTime
DateTimeOffset
Fecha y hora de la última modificación del certificado de notificación push de Apple.
expirationDateTime
DateTimeOffset
Fecha y hora de la expiración del certificado de notificación push de Apple.
certificateUploadStatus
Cadena
Estado de carga del certificado.
certificateUploadFailureReason
Cadena
Motivo por el que se produjo un error en la carga del certificado.
certificateSerialNumber
Cadena
Número de serie del certificado. Esta propiedad es de sólo lectura.
certificado
String
Todavía no documentado
Respuesta
Si se ejecuta correctamente, este método devuelve un código de respuesta 200 OK y un objeto applePushNotificationCertificate actualizado en el cuerpo de la respuesta.
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Models;
var requestBody = new ApplePushNotificationCertificate
{
OdataType = "#microsoft.graph.applePushNotificationCertificate",
AppleIdentifier = "Apple Identifier value",
TopicIdentifier = "Topic Identifier value",
ExpirationDateTime = DateTimeOffset.Parse("2016-12-31T23:57:57.2481234-08:00"),
CertificateUploadStatus = "Certificate Upload Status value",
CertificateUploadFailureReason = "Certificate Upload Failure Reason value",
CertificateSerialNumber = "Certificate Serial Number value",
Certificate = "Certificate value",
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.DeviceManagement.ApplePushNotificationCertificate.PatchAsync(requestBody);
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
ApplePushNotificationCertificate applePushNotificationCertificate = new ApplePushNotificationCertificate();
applePushNotificationCertificate.setOdataType("#microsoft.graph.applePushNotificationCertificate");
applePushNotificationCertificate.setAppleIdentifier("Apple Identifier value");
applePushNotificationCertificate.setTopicIdentifier("Topic Identifier value");
OffsetDateTime expirationDateTime = OffsetDateTime.parse("2016-12-31T23:57:57.2481234-08:00");
applePushNotificationCertificate.setExpirationDateTime(expirationDateTime);
applePushNotificationCertificate.setCertificateUploadStatus("Certificate Upload Status value");
applePushNotificationCertificate.setCertificateUploadFailureReason("Certificate Upload Failure Reason value");
applePushNotificationCertificate.setCertificateSerialNumber("Certificate Serial Number value");
applePushNotificationCertificate.setCertificate("Certificate value");
ApplePushNotificationCertificate result = graphClient.deviceManagement().applePushNotificationCertificate().patch(applePushNotificationCertificate);
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
from msgraph.generated.models.apple_push_notification_certificate import ApplePushNotificationCertificate
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = ApplePushNotificationCertificate(
odata_type = "#microsoft.graph.applePushNotificationCertificate",
apple_identifier = "Apple Identifier value",
topic_identifier = "Topic Identifier value",
expiration_date_time = "2016-12-31T23:57:57.2481234-08:00",
certificate_upload_status = "Certificate Upload Status value",
certificate_upload_failure_reason = "Certificate Upload Failure Reason value",
certificate_serial_number = "Certificate Serial Number value",
certificate = "Certificate value",
)
result = await graph_client.device_management.apple_push_notification_certificate.patch(request_body)
Aquí tiene un ejemplo de la respuesta. Nota: Es posible que el objeto de respuesta que aparezca aquí esté truncado para abreviar. Todas las propiedades se devolverán desde una llamada real.