Scope Access Review History Definition By Id
Access Review History Definition. Uses Azure REST API version 2021-12-01-preview. In version 2.x of the Azure Native provider, it used API version 2021-12-01-preview.
Example Usage
PutAccessReviewHistoryDefinition
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var scopeAccessReviewHistoryDefinitionById = new AzureNative.Authorization.ScopeAccessReviewHistoryDefinitionById("scopeAccessReviewHistoryDefinitionById", new()
{
HistoryDefinitionId = "44724910-d7a5-4c29-b28f-db73e717165a",
Scope = "subscriptions/129a304b-4aea-4b86-a9f7-ba7e2b23737a",
});
});
package main
import (
authorization "github.com/pulumi/pulumi-azure-native-sdk/authorization/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := authorization.NewScopeAccessReviewHistoryDefinitionById(ctx, "scopeAccessReviewHistoryDefinitionById", &authorization.ScopeAccessReviewHistoryDefinitionByIdArgs{
HistoryDefinitionId: pulumi.String("44724910-d7a5-4c29-b28f-db73e717165a"),
Scope: pulumi.String("subscriptions/129a304b-4aea-4b86-a9f7-ba7e2b23737a"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.authorization.ScopeAccessReviewHistoryDefinitionById;
import com.pulumi.azurenative.authorization.ScopeAccessReviewHistoryDefinitionByIdArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var scopeAccessReviewHistoryDefinitionById = new ScopeAccessReviewHistoryDefinitionById("scopeAccessReviewHistoryDefinitionById", ScopeAccessReviewHistoryDefinitionByIdArgs.builder()
.historyDefinitionId("44724910-d7a5-4c29-b28f-db73e717165a")
.scope("subscriptions/129a304b-4aea-4b86-a9f7-ba7e2b23737a")
.build());
}
}
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:authorization:ScopeAccessReviewHistoryDefinitionById 44724910-d7a5-4c29-b28f-db73e717165a /{scope}/providers/Microsoft.Authorization/accessReviewHistoryDefinitions/{historyDefinitionId}
Properties
The Azure API version of the resource.
Date time when history definition was created
The display name for the history definition.
Set of access review history instances for this history definition.
The identity id
The identity display name
The identity type : user/servicePrincipal
Access Review History Definition recurrence settings.
Date time used when selecting review data, all reviews included in data end on or before this date. For use only with one-time/non-recurring reports.
Date time used when selecting review data, all reviews included in data start on or after this date. For use only with one-time/non-recurring reports.
A collection of scopes used when selecting review history data
The user principal name(if valid)