Les API sous la version /beta dans Microsoft Graph sont susceptibles d’être modifiées. L’utilisation de ces API dans des applications de production n’est pas prise en charge. Pour déterminer si une API est disponible dans v1.0, utilisez le sélecteur Version .
Renouveler l’expiration d’un groupe. Lorsqu’un groupe est renouvelé, la date d’expiration du groupe est repoussée du nombre de jours défini dans la stratégie.
Note: Lorsque vous appelez le point de terminaison v1.0, utilisez la méthode Renew group .
POST https://graph.microsoft.com/beta/groupLifecyclePolicies/renewGroup
Content-type: application/json
{
"groupId": "ffffffff-ffff-ffff-ffff-ffffffffffff"
}
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Beta.GroupLifecyclePolicies.RenewGroup;
var requestBody = new RenewGroupPostRequestBody
{
GroupId = "ffffffff-ffff-ffff-ffff-ffffffffffff",
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.GroupLifecyclePolicies.RenewGroup.PostAsRenewGroupPostResponseAsync(requestBody);
// Code snippets are only available for the latest major version. Current major version is $v0.*
// Dependencies
import (
"context"
msgraphsdk "github.com/microsoftgraph/msgraph-beta-sdk-go"
graphgrouplifecyclepolicies "github.com/microsoftgraph/msgraph-beta-sdk-go/grouplifecyclepolicies"
//other-imports
)
requestBody := graphgrouplifecyclepolicies.NewRenewGroupPostRequestBody()
groupId := "ffffffff-ffff-ffff-ffff-ffffffffffff"
requestBody.SetGroupId(&groupId)
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=go
renewGroup, err := graphClient.GroupLifecyclePolicies().RenewGroup().PostAsRenewGroupPostResponse(context.Background(), requestBody, nil)
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
com.microsoft.graph.beta.grouplifecyclepolicies.renewgroup.RenewGroupPostRequestBody renewGroupPostRequestBody = new com.microsoft.graph.beta.grouplifecyclepolicies.renewgroup.RenewGroupPostRequestBody();
renewGroupPostRequestBody.setGroupId("ffffffff-ffff-ffff-ffff-ffffffffffff");
var result = graphClient.groupLifecyclePolicies().renewGroup().post(renewGroupPostRequestBody);
<?php
use Microsoft\Graph\Beta\GraphServiceClient;
use Microsoft\Graph\Beta\Generated\GroupLifecyclePolicies\RenewGroup\RenewGroupPostRequestBody;
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$requestBody = new RenewGroupPostRequestBody();
$requestBody->setGroupId('ffffffff-ffff-ffff-ffff-ffffffffffff');
$result = $graphServiceClient->groupLifecyclePolicies()->renewGroup()->post($requestBody)->wait();
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph_beta import GraphServiceClient
from msgraph_beta.generated.grouplifecyclepolicies.renew_group.renew_group_post_request_body import RenewGroupPostRequestBody
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = RenewGroupPostRequestBody(
group_id = "ffffffff-ffff-ffff-ffff-ffffffffffff",
)
result = await graph_client.group_lifecycle_policies.renew_group.post(request_body)