Skip to content

Restore Core Network Policy Version

networkmanager_restore_core_network_policy_version R Documentation

Restores a previous policy version as a new, immutable version of a core network policy

Description

Restores a previous policy version as a new, immutable version of a core network policy. A subsequent change set is created showing the differences between the LIVE policy and restored policy.

Usage

networkmanager_restore_core_network_policy_version(CoreNetworkId,
  PolicyVersionId)

Arguments

CoreNetworkId

[required] The ID of a core network.

PolicyVersionId

[required] The ID of the policy version to restore.

Value

A list with the following syntax:

list(
  CoreNetworkPolicy = list(
    CoreNetworkId = "string",
    PolicyVersionId = 123,
    Alias = "LIVE"|"LATEST",
    Description = "string",
    CreatedAt = as.POSIXct(
      "2015-01-01"
    ),
    ChangeSetState = "PENDING_GENERATION"|"FAILED_GENERATION"|"READY_TO_EXECUTE"|"EXECUTING"|"EXECUTION_SUCCEEDED"|"OUT_OF_DATE",
    PolicyErrors = list(
      list(
        ErrorCode = "string",
        Message = "string",
        Path = "string"
      )
    ),
    PolicyDocument = "string"
  )
)

Request syntax

svc$restore_core_network_policy_version(
  CoreNetworkId = "string",
  PolicyVersionId = 123
)