Alter Version (Data Management)

License Level:BasicStandardAdvanced

Summary

Alters the database version's properties of name, description, and access permissions.

Usage

Syntax

AlterVersion_management (in_workspace, in_version, {name}, {description}, {access})
ParameterExplanationData Type
in_workspace

The enterprise geodatabase where the version to be altered is located.

Workspace
in_version

Name of the version to be altered.

String
name
(Optional)

The new name of the version.

String
description
(Optional)

The new description for the version.

String
access
(Optional)

Set/change the access permissions.

  • PRIVATEOnly the owner may view the version and modify available feature classes. This is the default.
  • PUBLIC Any user may view the version and modify available feature classes.
  • PROTECTEDAny user may view the version, but only the owner may modify available feature classes.
String

Code Sample

AlterVersion example:

The following stand-alone Python script uses the AlterVersion Goeprocessing tool to alter a version.

# Name: AlterVersion_Example.py
# Description: Changes the name of a version

# Import system modules
import arcpy

# Set local variables
inWorkspace = "Database Connections/ninefour@gdb.sde"
versionName = "myVersion"
newName = "myVersion2"

# Execute AlterVersion
arcpy.AlterVersion_management(inWorkspace, versionName, newName, "#", "PUBLIC")

Environments

This tool does not use any geoprocessing environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: No
ArcGIS for Desktop Standard: Yes
ArcGIS for Desktop Advanced: Yes
11/18/2013