ポータルにサイン イン(Sign In To Portal) (サーバ)

ライセンス レベル:BasicStandardAdvanced

サマリ

ポータルにサイン インできます。ArcGIS Online ポータルにサービスを公開する場合は、ArcGIS Online にサイン インする必要があります。ArcGIS Online をファイアウォールの内側や自社のプライベート クラウドで利用したい組織向けに、社内のコンピュータ ネットワーク上にインストールして使用できるバージョンが用意されています。これは Portal for ArcGIS と呼ばれています。

レガシーレガシー:

ArcGIS for Desktop を使用した ArcGIS Online または Portal for ArcGIS へのサイン インは、ArcGIS for Desktop 10.2 のリリースで変更されました。このツールを実行するときに、警告 1561 が表示される場合があります。このメッセージが表示された場合、[ポータルにサイン イン(Sign In To Portal)] ツールを使用して認証することはできません。[ファイル] [サイン イン] の順にクリックして ArcGIS Online または Portal にサイン インする必要があります。詳細については、「ArcGIS for Desktop アプリケーションでの ArcGIS Online へのサイン イン」をご参照ください。

ポータル接続の管理の詳細

使用法

構文

SignInToPortal_server (username, password, portal_url)
パラメータ説明データ タイプ
username

Portal for ArcGIS のユーザ名。このパラメータは、統合 Windows 認証を使用するポータルでは任意です。

String
password

Portal for ArcGIS のパスワード。このパラメータは、統合 Windows 認証を使用するポータルでは任意です。

Encrypted String
portal_url

[ポータルにサイン イン(Sign In To Portal)] ツールは、Desktop Administrator で URL セットを読み取ります。ユーザが入力した値は無視されます。デフォルト値は、ユーザが Desktop Administrator で現在選択している ArcGIS ポータルの URL です。

String

コードのサンプル

ArcGIS Online へのサイン イン(Python ウィンドウ)

指定したユーザ名とパスワードを使用して、ArcGIS Online にサイン インします。

import arcpy
arcpy.SignInToPortal_server("username","password", "")
ArcGIS Online への公開(スタンドアロン スクリプト)
# Name: SignInToPortal_Example1.py
# Description: Use SignInToPortal to sign-in to Portal for ArcGIS and use a
# service definition draft to create a service definition and then upload and
# publish that service definition.

# Import system modules
import arcpy
from arcpy import env

# Sign-in to ArcGIS Online
arcpy.SignInToPortal_server("username","password", "")

# Set environment settings
env.workspace = "C:/data"

# Set local variables
in_service_definition_draft = "MyMapService.sddraft"
out_service_definition = "MyMapService.sd"

# Execute StageService
arcpy.StageService_server(in_service_definition_draft, out_service_definition)

# Set local variables
in_sd_file = "MyMapService.sd"
in_server = "My Hosted Services"

# Execute UploadServiceDefinition
arcpy.UploadServiceDefinition_server(in_sd_file, in_server)

# Sign out from ArcGIS Online
arcpy.SignOutFromPortal_server()

環境

このツールはジオプロセシング環境を使用していません

関連トピック

ライセンス情報

ArcGIS for Desktop Basic: ○
ArcGIS for Desktop Standard: ○
ArcGIS for Desktop Advanced: ○
5/25/2014